diff options
author | 2018-12-19 19:52:14 +1100 | |
---|---|---|
committer | 2018-12-21 16:20:46 +1100 | |
commit | e0bf78b0f9594d47dfa7e364a9071442fc1d9445 (patch) | |
tree | 1fff7178e9d5b863322b855594a3a3eb3a2b9f3a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2 (diff) | |
download | wireguard-linux-e0bf78b0f9594d47dfa7e364a9071442fc1d9445.tar.xz wireguard-linux-e0bf78b0f9594d47dfa7e364a9071442fc1d9445.zip |
powerpc/mm/iommu/vfio_spapr_tce: Change mm_iommu_get to reference a region
Normally mm_iommu_get() should add a reference and mm_iommu_put() should
remove it. However historically mm_iommu_find() does the referencing and
mm_iommu_get() is doing allocation and referencing.
We are going to add another helper to preregister device memory so
instead of having mm_iommu_new() (which pre-registers the normal memory
and references the region), we need separate helpers for pre-registering
and referencing.
This renames:
- mm_iommu_get to mm_iommu_new;
- mm_iommu_find to mm_iommu_get.
This changes mm_iommu_get() to reference the region so the name now
reflects what it does.
This removes the check for exact match from mm_iommu_new() as we want it
to fail on existing regions; mm_iommu_get() should be used instead.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions