]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amdgpu: sync bo and shadow V3
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 4 Aug 2016 08:51:18 +0000 (16:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Aug 2016 17:47:18 +0000 (13:47 -0400)
commit20f4eff1c8ba344d5c22234ac5611ff1489fbea6
tree5269d95537b47d5d33558888f9c66a2fb4f0fe13
parente24db98529ab90387b4603ce580b04f7ad152e8a
drm/amdgpu: sync bo and shadow V3

Use shadow flag to judge which direction to sync.
V2:
Don't need bo pin, so remove it.

V3:
1. Split to two functions, one is backup_to_shadow, another is
restore_from_shadow.
2. Clean up previous shadow direction difinitions.

Signed-off-by: Chunming Zhou <David1.Zhou@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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h