aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2019-02-25 10:46:36 +0800
committerJoerg Roedel <[email protected]>2019-02-26 11:55:14 +0100
commit117266fd59ddf46e98e36df09326d861738c6180 (patch)
tree9efb4b722b308aaf060b355620e0b87b58f3edf1 /tools/perf/scripts/python/export-to-postgresql.py
parent61363c1474b146114fb4c5e5af2908c8afcf1c5e (diff)
iommu/vt-d: Check identity map for hot-added devices
The Intel IOMMU driver will put devices into a static identity mapped domain during boot if the kernel parameter "iommu=pt" is used. That means the IOMMU hardware will translate a DMA address into the same memory address. Unfortunately, hot-added devices are not subject to this. That results in some devices not working properly after hot added. A quick way to reproduce this issue is to boot a system with iommu=pt and, remove then readd the pci device with echo 1 > /sys/bus/pci/devices/[pci_source_id]/remove echo 1 > /sys/bus/pci/rescan You will find the identity mapped domain was replaced with a normal domain. Cc: Ashok Raj <[email protected]> Cc: Jacob Pan <[email protected]> Cc: Fenghua Yu <[email protected]> Cc: [email protected] Reported-by: Jis Ben <[email protected]> Signed-off-by: Lu Baolu <[email protected]> Tested-by: James Dong <[email protected]> Fixes: 99dcadede42f ('intel-iommu: Support PCIe hot-plug') Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions