linux/drivers
Rafael J. Wysocki 60fa6ae6e6 ACPI: EC: Install address space handler at the namespace root
It is reported that _DSM evaluation fails in ucsi_acpi_dsm() on Lenovo
IdeaPad Pro 5 due to a missing address space handler for the EC address
space:

 ACPI Error: No handler for Region [ECSI] (000000007b8176ee) [EmbeddedControl] (20230628/evregion-130)

This happens because if there is no ECDT, the EC driver only registers
the EC address space handler for operation regions defined in the EC
device scope of the ACPI namespace while the operation region being
accessed by the _DSM in question is located beyond that scope.

To address this, modify the ACPI EC driver to install the EC address
space handler at the root of the ACPI namespace for the first EC that
can be found regardless of whether or not an ECDT is present.

Note that this change is consistent with some examples in the ACPI
specification in which EC operation regions located outside the EC
device scope are used (for example, see Section 9.17.15 in ACPI 6.5),
so the current behavior of the EC driver is arguably questionable.

Reported-by: webcaptcha <webcapcha@gmail.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218789
Link: https://uefi.org/specs/ACPI/6.5/09_ACPI_Defined_Devices_and_Device_Specific_Objects.html#example-asl-code
Link: https://lore.kernel.org/linux-acpi/Zi+0whTvDbAdveHq@kuha.fi.intel.com
Suggested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2024-05-16 18:31:05 +02:00
..
accel drm/print: drop include debugfs.h and include where needed 2024-04-25 17:05:48 +03:00
accessibility speakup: Avoid crash on very long word 2024-04-11 14:32:53 +02:00
acpi ACPI: EC: Install address space handler at the namespace root 2024-05-16 18:31:05 +02:00
amba
android binder: check offset alignment in binder_get_object() 2024-04-11 15:19:12 +02:00
ata SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
atm atm/fore200e: Delete unused 'fore200e_boards' 2024-05-06 18:26:47 -07:00
auxdisplay auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=y 2024-04-11 13:34:29 +03:00
base drm for 6.10-rc1 2024-05-15 09:43:42 -07:00
bcma
block for-6.10/block-20240511 2024-05-13 13:03:54 -07:00
bluetooth MMC core: 2024-05-16 08:56:49 -07:00
bus Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
cache cache: sifive_ccache: Silence unused variable warning 2024-04-11 07:28:37 +01:00
cdrom
cdx
char This update includes the following changes: 2024-05-13 14:53:05 -07:00
clk soc: drivers for 6.10 2024-05-13 08:48:42 -07:00
clocksource clocksource/drivers/arm_arch_timer: Mark hisi_161010101_oem_info const 2024-05-10 10:43:21 +02:00
comedi comedi: vmk80xx: fix incomplete endpoint checking 2024-04-11 15:16:23 +02:00
connector
counter
cpufreq Power management updates for 6.10-rc1 2024-05-14 13:19:15 -07:00
cpuidle pmdomain core: 2024-05-16 08:50:32 -07:00
crypto Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
cxl CXL changes for v6.10 merge window 2024-05-15 14:32:27 -07:00
dax Updates for nvdimm for 6.10 2024-05-15 14:28:56 -07:00
dca
devfreq PM / devfreq: exynos: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions 2024-05-09 00:30:37 +09:00
dio
dma dmaengine: idxd: add a write() method for applications to submit work 2024-05-13 14:07:45 +00:00
dma-buf dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS 2024-04-15 13:56:32 -03:00
dpll dpll: fix return value check for kmemdup 2024-05-13 16:53:53 -07:00
edac - Have skx_edac decode error addresses belonging to SGX properly 2024-05-14 08:31:10 -07:00
eisa alpha: remove DECpc AXP150 (Jensen) support 2024-05-03 22:09:50 +02:00
extcon
firewire firewire updates for v6.10 2024-05-14 18:57:22 -07:00
firmware sound updates for 6.10-rc1 2024-05-15 10:02:36 -07:00
fpga fpga: dfl-pci: add PCI subdevice ID for Intel D5005 card 2024-04-26 12:14:28 +08:00
fsi
gnss
gpio gpio updates for v6.10-rc1 2024-05-14 15:07:07 -07:00
gpu drm urgent for 6.10-rc1 merge: 2024-05-16 08:44:19 -07:00
greybus
hid Merge branch 'for-6.10/winwing' into for-linus 2024-05-14 13:58:46 +02:00
hsi
hte hte: tegra-194: Convert to platform remove callback returning void 2024-04-12 11:02:58 -07:00
hv hyperv-fixes for v6.9-rc4 2024-04-11 16:23:56 -07:00
hwmon pwm: Changes for v6.10-rc1 2024-05-14 15:03:19 -07:00
hwspinlock
hwtracing
i2c i2c: smbus: fix NULL function pointer dereference 2024-04-27 12:57:57 +02:00
i3c
idle
iio regulator: Updates for v6.10 2024-05-14 14:36:09 -07:00
infiniband Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-05-09 10:01:01 -07:00
input ACPI updates for 6.10-rc1 2024-05-14 13:31:24 -07:00
interconnect interconnect fixes for v6.9-rc 2024-04-11 14:44:49 +02:00
iommu X86 interrupt handling update: 2024-05-14 10:01:29 -07:00
ipack
irqchip Updates for the interrupt subsystem: 2024-05-14 09:47:14 -07:00
isdn Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-11 14:23:47 -07:00
leds
macintosh macintosh/via-macii: Fix "BUG: sleeping function called from invalid context" 2024-04-29 16:45:53 +02:00
mailbox
mcb
md Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
media media updates for v6.10-rc1 2024-05-16 08:45:44 -07:00
memory memory: mtk-smi: fix module autoloading 2024-04-11 08:22:26 +02:00
memstick memstick: rtsx_usb_ms: Convert to platform remove callback returning void 2024-04-25 11:58:52 +02:00
message SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
mfd mfd: axp20x: Add support for AXP717 PMIC 2024-03-28 09:50:59 +00:00
misc hardening updates for 6.10-rc1 2024-05-13 14:14:05 -07:00
mmc MMC core: 2024-05-16 08:56:49 -07:00
most
mtd * MTD 2024-05-16 09:04:52 -07:00
mux
net MMC core: 2024-05-16 08:56:49 -07:00
nfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-25 12:41:37 -07:00
ntb
nubus
nvdimm nvdimm/btt: always set max_integrity_segments 2024-04-25 12:37:12 -07:00
nvme for-6.10/block-20240511 2024-05-13 13:03:54 -07:00
nvmem
of Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
opp OPP: OF: Export dev_opp_pm_calc_power() for usage from EM 2024-04-08 16:05:14 +02:00
parisc
parport
pci pci-v6.9-fixes-2 2024-05-08 09:37:58 -07:00
pcmcia
peci
perf ARM: 2024-05-15 14:46:43 -07:00
phy Merge tag 'drm-msm-next-2024-05-07' of https://gitlab.freedesktop.org/drm/msm into drm-next 2024-05-10 10:22:59 +10:00
pinctrl gpio updates for v6.10-rc1 2024-05-14 15:07:07 -07:00
platform platform-drivers-x86 for v6.10-1 2024-05-16 09:14:50 -07:00
pmdomain pmdomain: Merge branch fixes into next 2024-05-03 15:48:21 +02:00
pnp PNP: add HAS_IOPORT dependencies 2024-04-22 18:30:39 +02:00
power power: supply: mt6360_charger: Fix of_match for usb-otg-vbus regulator 2024-04-15 13:31:37 +02:00
powercap powercap: intel_rapl_tpmi: Enable PMU support 2024-04-30 21:10:37 +02:00
pps
ps3
ptp Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
pwm pwm: pca9685: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-10 07:30:27 +02:00
rapidio
ras
regulator regulator: Updates for v6.10 2024-05-14 14:36:09 -07:00
remoteproc
reset reset: k210: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 2024-04-05 16:42:51 +01:00
rpmsg
rtc
s390 Networking changes for 6.10. 2024-05-14 19:42:24 -07:00
sbus
scsi SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
sh
siox
slimbus slimbus: qcom-ngd-ctrl: Add timeout for wait operation 2024-05-03 07:30:32 +02:00
soc spi: Updates for v6.10 2024-05-14 14:41:01 -07:00
soundwire soundwire: amd: fix for wake interrupt handling for clockstop mode 2024-03-28 23:40:33 +05:30
spi spi: Updates for v6.10 2024-05-14 14:41:01 -07:00
spmi
ssb
staging media updates for v6.10-rc1 2024-05-16 08:45:44 -07:00
target SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
tc
tee TEE driver for Trusted Services 2024-04-29 22:29:44 +02:00
thermal ACPI updates for 6.10-rc1 2024-05-14 13:31:24 -07:00
thunderbolt thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-10 10:49:58 +03:00
tty printk changes for 6.10 2024-05-15 12:34:46 -07:00
ufs SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
uio hyperv-fixes for v6.9-rc4 2024-04-11 16:23:56 -07:00
usb SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
vdpa vDPA: code clean for vhost_vdpa uapi 2024-04-22 17:07:13 -04:00
vfio VFIO: Add the SPR_DSA and SPR_IAX devices to the denylist 2024-05-13 14:07:33 +00:00
vhost net: extend ubuf_info callback to ops structure 2024-04-22 16:21:35 -07:00
video fbdev fixes and cleanups for 6.10-rc1: 2024-05-15 09:53:06 -07:00
virt ACPI updates for 6.10-rc1 2024-05-14 13:31:24 -07:00
virtio virtio_ring: enable premapped mode whatever use_dma_api 2024-05-13 17:07:41 -07:00
w1
watchdog
xen
zorro zorro: Use helpers from ioport.h 2024-04-29 16:45:53 +02:00
Kconfig
Makefile