]> git.baikalelectronics.ru Git - kernel.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)
commitea4b560a66cbf6dd9fc7f0e84223c6516d100716
tree5269d95537b47d5d33558888f9c66a2fb4f0fe13
parent1a22507a4ee8a5e8ee0cb222914aa47be50288c1
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