summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2025-03-11 15:19:25 +0000
committerJoerg Roedel <jroedel@suse.de>2025-04-17 16:31:07 +0200
commit0c8e9c148e29a983e67060fb4944a8ca79d4362a (patch)
treeea1a89fd472e4518f795c4dcf4fba54f509df2a8 /tools/perf/scripts/python/gecko.py
parent249d3327f0236302a92d9eccb2b32f64c8daaf86 (diff)
iommu: Avoid introducing more races
Although the lock-juggling is only a temporary workaround, we don't want it to make things avoidably worse. Jason was right to be nervous, since bus_iommu_probe() doesn't care *which* IOMMU instance it's probing for, so it probably is possible for one walk to finish a probe which a different walk started, thus we do want to check for that. Also there's no need to drop the lock just to have of_iommu_configure() do nothing when a fwspec already exists; check that directly and avoid opening a window at all in that (still somewhat likely) case. Suggested-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/09d901ad11b3a410fbb6e27f7d04ad4609c3fe4a.1741706365.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions