OSDN Git Service

drm/admgpu: add two shadow BO helper functions
authorNirmoy Das <nirmoy.das@amd.com>
Wed, 26 May 2021 16:18:40 +0000 (18:18 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:55:38 +0000 (22:55 -0400)
commit1fdc79f6f9dcb9c8af9f53feb2ff61209b4d8287
treed0dcf8c785d822d498a41442908efc5c72de05c8
parent2a675640bc2db198866499cdc1cc28709a90d8c5
drm/admgpu: add two shadow BO helper functions

Add amdgpu_bo_add_to_shadow_list() to handle shadow list
additions and amdgpu_bo_shadowed() to check if a BO is shadowed.

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_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h