drm/xe/display: Update intel_bo_read_from_page to use ttm_bo_access
authorMatthew Brost <matthew.brost@intel.com>
Tue, 26 Nov 2024 17:46:12 +0000 (09:46 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 28 Nov 2024 00:38:53 +0000 (16:38 -0800)
commitb6308aaa24a7ad3dfc6157b6afc550b9ab7e8945
tree31e2cfd50e25a5e86640f9652a3230d016453afc
parent1c6878af115a4586a40d6c14d530fa9f93e0bd83
drm/xe/display: Update intel_bo_read_from_page to use ttm_bo_access

Don't open code vmap of a BO, use ttm_bo_access helper which is safe for
non-contiguous BOs and non-visible BOs.

Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241126174615.2665852-6-matthew.brost@intel.com
drivers/gpu/drm/xe/display/intel_bo.c