]> www.infradead.org Git - linux.git/commit
drm/ttm: Add ttm_bo_access
authorMatthew Brost <matthew.brost@intel.com>
Tue, 26 Nov 2024 17:46:09 +0000 (09:46 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 28 Nov 2024 00:38:50 +0000 (16:38 -0800)
commit7d08df5d0bd3d12d14dcec773fcddbe3eed3a8e8
treeee69b35b2f52c839544a87c96a3607687340592b
parentf85dc3c5abddaa6ef3674755f28cf49774d27ea5
drm/ttm: Add ttm_bo_access

Non-contiguous VRAM cannot easily be mapped in TTM nor can non-visible
VRAM easily be accessed. Add ttm_bo_access, which is similar to
ttm_bo_vm_access, to access such memory.

v4:
 - Fix checkpatch warnings (CI)
v5:
 - Fix checkpatch warnings (CI)
v6:
 - Fix kernel doc (Auld)
v7:
 - Move ttm_bo_access to ttm_bo_vm.c (Christian)

Cc: Christian König <christian.koenig@amd.com>
Reported-by: Christoph Manszewski <christoph.manszewski@intel.com>
Suggested-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Tested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241126174615.2665852-3-matthew.brost@intel.com
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/ttm/ttm_bo.h