]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3202aa7f4a0e342e5c753ec04ba69ef46131e309
treeb485e9df3a35973cd5c959c0c08f6a7e609704e9
parent72a23649d0143e67a260803c9fbf5ff13327f7a6
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