drm/amdgpu: make BO type check less restrictive
authorNirmoy Das <nirmoy.das@amd.com>
Mon, 15 Mar 2021 15:02:37 +0000 (16:02 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:45:37 +0000 (16:45 -0400)
commit030bb4addb36ee94e286eb51486f990cac433825
tree0e3a59593cf49f0b98df423bd9ffed38bb931697
parentcc1bcf85b0112ad660e70464d00d3e36e103cedd
drm/amdgpu: make BO type check less restrictive

BO with ttm_bo_type_sg type can also have tiling_flag and metadata.
So so BO type check for only ttm_bo_type_kernel.

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