diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2025-04-28 12:22:17 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-05-12 06:06:42 -0400 |
commit | 8cad47130566123b2c70ef2aa53be02ef1aee5e5 (patch) | |
tree | a54ebcc3f5a574461ecf3f37d666226d990bf74b /scripts/gdb/linux/utils.py | |
parent | 285e871884ff3dc31c0c2c1a87f0018481bc8471 (diff) |
mm/hmm: provide generic DMA managing logic
HMM callers use PFN list to populate range while calling
to hmm_range_fault(), the conversion from PFN to DMA address
is done by the callers with help of another DMA list. However,
it is wasteful on any modern platform and by doing the right
logic, that DMA list can be avoided.
Provide generic logic to manage these lists and gave an interface
to map/unmap PFNs to DMA addresses, without requiring from the callers
to be an experts in DMA core API.
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions