powerpc/pseries/iommu: Fix the VFIO_IOMMU_SPAPR_TCE_GET_INFO ioctl output
authorShivaprasad G Bhat <sbhat@linux.ibm.com>
Mon, 24 Jun 2024 12:38:34 +0000 (12:38 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Jun 2024 07:03:39 +0000 (17:03 +1000)
commit6af67f2ddfcbbca551d786415beda14c48fb6ddf
tree687c998f409142413ab529bb15e6999c8dd12a63
parentb09c031d9433dda3186190e5845ba0d720212567
powerpc/pseries/iommu: Fix the VFIO_IOMMU_SPAPR_TCE_GET_INFO ioctl output

The ioctl VFIO_IOMMU_SPAPR_TCE_GET_INFO is not reporting the
actuals on the platform as not all the details are correctly
collected during the platform probe/scan into the iommu_table_group.

Collect the information during the device setup time as the DMA
window property is already looked up on parent nodes anyway.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/171923271138.1397.7908302630061814623.stgit@linux.ibm.com
arch/powerpc/platforms/pseries/iommu.c