]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ttm: Add a flag to allow drivers to skip clear-on-free
authorNirmoy Das <nirmoy.das@intel.com>
Fri, 16 Aug 2024 13:51:53 +0000 (15:51 +0200)
committerNirmoy Das <nirmoy.das@intel.com>
Mon, 19 Aug 2024 15:49:00 +0000 (17:49 +0200)
commitdecbfaf06db05fa1f9b33149ebb3c145b44e878f
treeeb2d280c10b5dd65790062c0f117a0173b8e83e1
parent6841a26e2c6715dc52a1cdd888e958dd2a92a5bc
drm/ttm: Add a flag to allow drivers to skip clear-on-free

Add TTM_TT_FLAG_CLEARED_ON_FREE, which DRM drivers can set before
releasing backing stores if they want to skip clear-on-free.

Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240816135154.19678-1-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
drivers/gpu/drm/ttm/ttm_pool.c
include/drm/ttm/ttm_tt.h