Unmatched enable poweroff, LEDs, mmap PCI

Bug #1942806 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-riscv (Ubuntu)
Fix Released
Undecided
Dimitri John Ledkov

Bug Description

[Impact]

 * Unable to use gpio-poweroff driver to poweroff via u-boot/opensbi/kernel
 * Unable to use LED colors
 * Unable to mmap PCI resources

 * Cherrypick dtb changes from meta-sifive 2021.08 release https://github.com/sifive/meta-sifive/tree/2021.08/recipes-kernel/linux/files

  * Fixup linux kernel to allow using gpio-poweroff driver for poweroff, without re-enabling back deprecated OpenSBI v0.1 extensions support (CONFIG_RISCV_SBI_V01) Submitted at https://lore<email address hidden>/T/#u

[Test Plan]

 * Boot Unmatched board, poweroff, it should poweroff.

 * No test case for LEDs (will try to figure it out)

 * No test case for mmap PCI resources (needs compatible hardware)

[Where problems could occur]

 * DTB changes have already landed in opensbi/u-boot and thus kernel is being brought it line with matching support. pm_power_off reboot handling will have to change again in the future when support for OpenSBI v0.3 system reset extension is added in the kernel. When available, it will be used by default with regular power drivers probably compiled only as modules.

[Other Info]

 * Alternative to taking these patches, poweroff support could be enabled by turning back on deprecated OpenSBI v0.1 extensions, which is a step backwards. OpenSBI v0.1 will not be available in the future.

https://lists.ubuntu.com/archives/kernel-team/2021-September/123845.html

CVE References

Changed in linux-riscv (Ubuntu):
assignee: nobody → Dimitri John Ledkov (xnox)
status: New → In Progress
summary: - unmatched 2020.08 enablement
+ Unmatched enable poweroff, LEDs, mmap PCI
description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (157.6 KiB)

This bug was fixed in the package linux-riscv - 5.13.0-1003.3

---------------
linux-riscv (5.13.0-1003.3) impish; urgency=medium

  * impish/linux-riscv: 5.13.0-1003.3 -proposed tracker (LP: #1941884)

  * Unmatched enable poweroff, LEDs, mmap PCI (LP: #1942806)
    - riscv: sifive: unmatched: add D12 PWM LED
    - riscv: sifive: unmatched: add D2 RGB LED
    - riscv: sifive: unmatched: define LEDs color
    - riscv: enable generic PCI resource mapping
    - riscv: sifive: unmatched: add gpio-poweroff node
    - SAUCE: riscv: set default pm_power_off to NULL

  * Miscellaneous Ubuntu changes
    - [Config] update configs and annotations after rebase

  [ Ubuntu: 5.13.0-16.16 ]

  * impish/linux: 5.13.0-16.16 -proposed tracker (LP: #1942611)
  * Miscellaneous Ubuntu changes
    - [Config] update toolchain in configs
  * Miscellaneous upstream changes
    - Revert "UBUNTU: [Config] Enable CONFIG_UBSAN_BOUNDS"

  [ Ubuntu: 5.13.0-15.15 ]

  * impish/linux: 5.13.0-15.15 -proposed tracker (LP: #1941886)
  * Packaging resync (LP: #1786013)
    - update dkms package versions
  * Fix Intel AC9560 BT function cannot turn on if BT turn off before S3 entry
    (LP: #1941696)
    - SAUCE: Bluetooth: btusb: add a reject table to disable msft
  * Add USB4 support for AMD SoC (LP: #1941036)
    - thunderbolt: Split NVM read/write generic functions out from usb4.c
    - thunderbolt: Make tb_port_type() take const parameter
    - thunderbolt: Read router preferred credit allocation information
    - thunderbolt: Add vendor specific NHI quirk for auto-clearing interrupt
      status
    - thunderbolt: Handle ring interrupt by reading interrupt status register
    - thunderbolt: Do not read control adapter config space
    - thunderbolt: Fix port linking by checking all adapters
  * Support builtin revoked certificates (LP: #1932029)
    - [Config] Enforce SYSTEM_TRUSTED_KEYS and SYSTEM_REVOCATION_KEYS
  * GPIO error logs in start and dmesg after update of kernel (LP: #1937897)
    - ODM: mfd: Check AAEON BFPI version before adding device
  * Impish update: v5.13.13 upstream stable release (LP: #1941789)
    - mtd: cfi_cmdset_0002: fix crash when erasing/writing AMD cards
    - io_uring: Use WRITE_ONCE() when writing to sq_flags
    - USB: core: Avoid WARNings for 0-length descriptor requests
    - USB: core: Fix incorrect pipe calculation in do_proc_control()
    - dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
    - dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
    - spi: spi-mux: Add module info needed for autoloading
    - net: xfrm: Fix end of loop tests for list_for_each_entry
    - ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
    - dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not
      yet available
    - scsi: pm80xx: Fix TMF task completion race condition
    - scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
    - scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach()
    - scsi: core: Avoid printing an error if target_alloc() returns -ENXIO
    - scsi: core: Fix capacity set to zero after offlinining device
    - drm/amdgpu: fix the doorbell...

Changed in linux-riscv (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.