iommu/amd: Update device_state structure to include PCI seg ID
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 6 Jul 2022 11:38:24 +0000 (17:08 +0530)
committerJoerg Roedel <jroedel@suse.de>
Thu, 7 Jul 2022 07:37:54 +0000 (09:37 +0200)
commit196dff712ea2c86f4957ad1a99bc7d65d4b01c5d
tree1a7ea2912d046e6c167b2feda843ac91c4cb23cd
parentb36a5b0f1cedbb2de2f527883d4eda8a5025591d
iommu/amd: Update device_state structure to include PCI seg ID

Rename struct device_state.devid variable to struct device_state.sbdf
and extend it to 32-bit to include the 16-bit PCI segment ID via
the helper function get_pci_sbdf_id().

Co-developed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220706113825.25582-35-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu_v2.c