drm/amdgpu: use amdgpu_bo_user bo for metadata and tiling flag
authorNirmoy Das <nirmoy.das@amd.com>
Mon, 8 Mar 2021 13:03:35 +0000 (14:03 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:45:31 +0000 (16:45 -0400)
commitcc1bcf85b0112ad660e70464d00d3e36e103cedd
treeb485e9df3a35973cd5c959c0c08f6a7e609704e9
parent22b40f7a3ad17176b05413893228a82823bbe9e5
drm/amdgpu: use amdgpu_bo_user bo for metadata and tiling flag

Tiling flag and metadata are only needed for BOs created by
amdgpu_gem_object_create(), so we can remove those from the
base class.

v2: * squash tiling_flags and metadata relared patches into one
    * use BUG_ON for non ttm_bo_type_device type when accessing
    tiling_flags and metadata._
v3: *include to_amdgpu_bo_user

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h