iommu/amd: Introduce per PCI segment device table size
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 6 Jul 2022 11:38:01 +0000 (17:08 +0530)
committerJoerg Roedel <jroedel@suse.de>
Thu, 7 Jul 2022 07:37:40 +0000 (09:37 +0200)
commitb5c852907e0e8a52f8660235390b831ce0a2b50c
tree30020eafcb19dbbc409183f320f8b454c2203bcd
parent307959008d80cdfd67fb19a146932582bb68a399
iommu/amd: Introduce per PCI segment device table size

With multiple pci segment support, number of BDF supported by each
segment may differ. Hence introduce per segment device table size
which depends on last_bdf. This will replace global
"device_table_size" variable.

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-12-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c