drm/ttm: always initialize the full ttm_resource v2
authorChristian König <christian.koenig@amd.com>
Tue, 16 Feb 2021 18:03:52 +0000 (19:03 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 3 May 2021 10:50:41 +0000 (12:50 +0200)
commitd79025c7f5e376413780f547e3a31b16575b83d7
tree2a62cc58ed5248d4ef9dbada12c5b5a198c9ce2c
parentb072b9cd54f3dbd9597f2c0c2b8496a43c179806
drm/ttm: always initialize the full ttm_resource v2

Init all fields in ttm_resource_alloc() when we create a new resource.

v2: use place->mem_type instead of res->mem_type

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430092508.60710-2-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_resource.c