]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Use xe_map_resource_to_region helper instead of direct access
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Tue, 7 Apr 2026 05:51:08 +0000 (11:21 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Wed, 8 Apr 2026 16:04:00 +0000 (21:34 +0530)
commit764c0e2abf3b7c8611a3695af26febfffe236c68
treeb24d858b98d3c96326a1ee56841d1fe91482bca6
parent62ef3e610b347b743042c9ab3b942b4be7aab501
Use xe_map_resource_to_region helper instead of direct access

Renaming:
The helper function res_to_mem_region is now xe_map_resource_to_region.

Abstraction:
The patch removes instances where block->private was accessed directly
to obtain VRAM region data allowing VRAM manager to own block->private
for future use cases.

V2(MattB): Add more detail about patch also adjust variable placement

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260407055107.2782450-2-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_svm.c
drivers/gpu/drm/xe/xe_vram.c
drivers/gpu/drm/xe/xe_vram.h