diff options
author | Ethan Zhao <haifeng.zhao@linux.intel.com> | 2024-03-05 15:21:16 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-03-06 19:35:55 +0300 |
commit | 80a9b50c0b9e297669a8a400eb35468cd87a9aed (patch) | |
tree | 3744618d0bf552eddfdd43dea8fd5ca1ec9133b8 /tools/perf/scripts/python/stackcollapse.py | |
parent | 4fc82cd907ac075648789cc3a00877778aa1838b (diff) | |
download | linux-80a9b50c0b9e297669a8a400eb35468cd87a9aed.tar.xz |
iommu/vt-d: Improve ITE fault handling if target device isn't present
Because surprise removal could happen anytime, e.g. user could request safe
removal to EP(endpoint device) via sysfs and brings its link down to do
surprise removal cocurrently. such aggressive cases would cause ATS
invalidation request issued to non-existence target device, then deadly
loop to retry that request after ITE fault triggered in interrupt context.
this patch aims to optimize the ITE handling by checking the target device
presence state to avoid retrying the timeout request blindly, thus avoid
hard lockup or system hang.
Devices TLB should only be invalidated when devices are in the
iommu->device_rbtree (probed, not released) and present.
Fixes: 6ba6c3a4cacf ("VT-d: add device IOTLB invalidation support")
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Ethan Zhao <haifeng.zhao@linux.intel.com>
Link: https://lore.kernel.org/r/20240301080727.3529832-4-haifeng.zhao@linux.intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions