aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2023-02-13 10:42:48 +0000
committerMarc Zyngier <[email protected]>2023-02-13 19:31:24 +0000
commit601363cc08da25747feb87c55573dd54de91d66a (patch)
tree586e6bbcb208633cf0ccd19c84efd975b5e9f152 /tools/perf/scripts/python/mem-phys-addr.py
parentirqdomain: Refactor __irq_domain_alloc_irqs() (diff)
downloadkernel-601363cc08da25747feb87c55573dd54de91d66a.tar.gz
kernel-601363cc08da25747feb87c55573dd54de91d66a.zip
irqdomain: Fix mapping-creation race
Parallel probing of devices that share interrupts (e.g. when a driver uses asynchronous probing) can currently result in two mappings for the same hardware interrupt to be created due to missing serialisation. Make sure to hold the irq_domain_mutex when creating mappings so that looking for an existing mapping before creating a new one is done atomically. Fixes: 765230b5f084 ("driver-core: add asynchronous probing support for drivers") Fixes: b62b2cf5759b ("irqdomain: Fix handling of type settings for existing mappings") Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] # 4.8 Cc: Dmitry Torokhov <[email protected]> Cc: Jon Hunter <[email protected]> Tested-by: Hsin-Yi Wang <[email protected]> Tested-by: Mark-PK Tsai <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions