diff options
author | Pasha Tatashin <[email protected]> | 2024-04-13 00:25:22 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2024-04-15 14:31:48 +0200 |
commit | 212c5c078d83d780cf2873ca931df135771e8bb7 (patch) | |
tree | ba8fdc336d0a937a9769022fb671a1965b584784 /drivers/spi/spi-fsl-dspi.c | |
parent | bd3520a93a84cd8c3897283e5891a9106fcf5acc (diff) |
iommu: account IOMMU allocated memory
In order to be able to limit the amount of memory that is allocated
by IOMMU subsystem, the memory must be accounted.
Account IOMMU as part of the secondary pagetables as it was discussed
at LPC.
The value of SecPageTables now contains mmeory allocation by IOMMU
and KVM.
There is a difference between GFP_ACCOUNT and what NR_IOMMU_PAGES shows.
GFP_ACCOUNT is set only where it makes sense to charge to user
processes, i.e. IOMMU Page Tables, but there more IOMMU shared data
that should not really be charged to a specific process.
Signed-off-by: Pasha Tatashin <[email protected]>
Acked-by: David Rientjes <[email protected]>
Tested-by: Bagas Sanjaya <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
0 files changed, 0 insertions, 0 deletions