diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2024-03-05 15:21:19 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-03-06 19:35:58 +0300 |
commit | 301f1a80487fd2f51012533792583d4425e8b8c0 (patch) | |
tree | 25dd2c7a0fbdaf2d11603a7471a6a6adf97d1263 /tools/perf/scripts/python/stackcollapse.py | |
parent | 81e921fd321614c2ad8ac333b041aae1da7a1c6d (diff) | |
download | linux-301f1a80487fd2f51012533792583d4425e8b8c0.tar.xz |
iommu/vt-d: Setup scalable mode context entry in probe path
In contrast to legacy mode, the DMA translation table is configured in
the PASID table entry instead of the context entry for scalable mode.
For this reason, it is more appropriate to set up the scalable mode
context entry in the device_probe callback and direct it to the
appropriate PASID table.
The iommu domain attach/detach operations only affect the PASID table
entry. Therefore, there is no need to modify the context entry when
configuring the translation type and page table.
The only exception is the kdump case, where context entry setup is
postponed until the device driver invokes the first DMA interface.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240305013305.204605-4-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