powerpc/ioda/iommu/debugfs: Generate unique debugfs entries
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 14 Jul 2022 08:08:00 +0000 (18:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Jul 2022 06:22:13 +0000 (16:22 +1000)
commitd73b46c3c1449bf27f793b9d9ee86ed70c7a7163
tree5b87409b0ab438580dea90b2140369473c9e6cba
parentb1fc44eaa9ba31e28c4125d6b9205a3582b47b5d
powerpc/ioda/iommu/debugfs: Generate unique debugfs entries

The iommu_table::it_index is a LIOBN which is not initialized on PowerNV
as it is not used except IOMMU debugfs where it is used for a node name.

This initializes it_index witn a unique number to avoid warnings and
have a node for every iommu_table.

This should not cause any behavioral change without CONFIG_IOMMU_DEBUGFS.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220714080800.3712998-1-aik@ozlabs.ru
arch/powerpc/platforms/powernv/pci-ioda.c