iommu/vt-d: Move pfsid and ats_qdep calculation to device probe path
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 13 Apr 2023 04:06:32 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:47 +0000 (12:05 +0200)
commit5ae4008055fed503f7bf42aeed45d3b032a79876
treef51719dc2270bedffa76f204d63490b426fda9ae
parent3d4c7cc3d168dc728dd3472688b2360b6db124e3
iommu/vt-d: Move pfsid and ats_qdep calculation to device probe path

They should be part of the per-device iommu private data initialization.

Reviewed-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230324120234.313643-5-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c