iommu/amd: Remove amd_io_pgtable::pgtbl_cfg
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Aug 2024 00:06:16 +0000 (21:06 -0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Sep 2024 09:38:33 +0000 (11:38 +0200)
commit977fc27ca7f8a83b67ccd91264ac56b0fb996f51
tree88bf206ace4f5de192116ea716df057caa62dfbf
parent670b57796c5dc1ca58912132cad914cf4b3c0cdd
iommu/amd: Remove amd_io_pgtable::pgtbl_cfg

This struct is already in iop.cfg, we don't need two.

AMD is using this API sort of wrong, the cfg is supposed to be passed in
and then the allocation function will allocate ops memory and copy the
passed config into the new memory. Keep it kind of wrong and pass in the
cfg memory that is already part of the pagetable struct.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/7-v2-831cdc4d00f3+1a315-amd_iopgtbl_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/iommu.c