Skip to content
Commit 24243212 authored by Matthew Auld's avatar Matthew Auld Committed by Christian König
Browse files

drm/ttm: clear the ttm_tt when bo->resource is NULL



In the next few patches, when initially creating a ttm BO, the
bo->resource is NULL, and the driver is then expected to handle the
initial dummy move.  However, if this is created as a system resource
the first ttm_tt we create will always have the clear value set to
false. Previously the initial ttm_tt would be created in
ttm_bo_validate() with the clear parameter always set to true.

Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Reviewed-by: default avatarChristian König <ckoenig.leichtzumerken@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230130101230.25347-3-matthew.auld@intel.com


Acked-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 58c7ee06
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment