summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2026-11-05 19:27:16 +0000
committerGuenter Roeck <linux@roeck-us.net>2026-11-08 17:45:19 -0800
commit4174239c6702e313ccc7c0d6c216335f2ebe704a (patch)
tree2d0826d5d126208a2304d7817f6a095483a285c2 /tools/perf/scripts/python
parent7a5d1a8d0c3cdc60457b766b16ee9387658a9f6b (diff)
watchdog: sp5100_tco: Use release_mem_region() for EFCH MMIO resource
sp5100_tco_setupdevice_mmio() reserves the EFCH power management MMIO region using request_mem_region_muxed(), which sets IORESOURCE_MUXED and places concurrent requesters of the same region (such as i2c-piix4) to sleep in TASK_UNINTERRUPTIBLE on muxed_resource_wait. However, on exit, sp5100_tco_setupdevice_mmio() releases the region by calling release_resource() and kfree() instead of release_mem_region(). Unlike __release_region(), release_resource() only unlinks the resource from the tree without checking IORESOURCE_MUXED or waking up muxed_resource_wait, leaving any task that contended on the muxed region sleeping in TASK_UNINTERRUPTIBLE. Replace release_resource() and kfree() with release_mem_region(), and drop the now-unused struct resource pointer variable. Fixes: 0578fff4aae5 ("Watchdog: sp5100_tco: Add initialization using EFCH MMIO") Reported-by: Sashiko <sashiko@sashiko.dev> Link: https://sashiko.dev/#/bug/linux-5038b175-de57-4915-a10c-03b16bad7c01 Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions