diff options
author | Christian König <christian.koenig@amd.com> | 2021-02-16 19:03:52 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-05-03 12:50:41 +0200 |
commit | d79025c7f5e376413780f547e3a31b16575b83d7 (patch) | |
tree | 2a62cc58ed5248d4ef9dbada12c5b5a198c9ce2c /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | b072b9cd54f3dbd9597f2c0c2b8496a43c179806 (diff) | |
download | linux-d79025c7f5e376413780f547e3a31b16575b83d7.tar.bz2 |
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
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 3bef0432cac2..8c7ec09eb1a4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1018,8 +1018,6 @@ int amdgpu_ttm_alloc_gart(struct ttm_buffer_object *bo) } else { /* allocate GART space */ - tmp = bo->mem; - tmp.mm_node = NULL; placement.num_placement = 1; placement.placement = &placements; placement.num_busy_placement = 1; |