summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPranjal Shrivastava <praan@google.com>2026-09-10 14:26:52 +0000
committerJoerg Roedel <joerg.roedel@amd.com>2026-09-24 13:50:33 +0200
commit15d5b3027d9f823754911b0f9c3fd05f598fbc62 (patch)
treed56896bdd0c5f3b75b8c9a499bdd9343aa66fca7 /tools/perf/scripts/python
parentbf5bdfd1f8d4ad5c6020468d09b68b09c2adc5c2 (diff)
iommu/amd: Refactor device probe and capability initialization
Restructure the device probe path to improve readability and prepare for cleaner error handling. Refactor check_device() into lookup_device to explicitly validate and return the amd_iommu ptr & devid. Refactor iommu_init_device() to return the allocated dev_data. Consolidate all PCI cap inits (MSI domains, PASID, ATS) into a new helper: iommu_init_device_caps(). Suggested-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Pranjal Shrivastava <praan@google.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions