aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChunming Zhou <David1.Zhou@amd.com>2016-08-04 04:51:18 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-08-22 13:47:18 -0400
commit20f4eff1c8ba344d5c22234ac5611ff1489fbea6 (patch)
tree5269d95537b47d5d33558888f9c66a2fb4f0fe13 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parente24db98529ab90387b4603ce580b04f7ad152e8a (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 6fa826846e6d..1d6f077d605b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -438,12 +438,6 @@ struct amdgpu_bo_va {
438 438
439#define AMDGPU_GEM_DOMAIN_MAX 0x3 439#define AMDGPU_GEM_DOMAIN_MAX 0x3
440 440
441enum amdgpu_bo_shadow {
442 AMDGPU_BO_SHADOW_TO_NONE = 0,
443 AMDGPU_BO_SHADOW_TO_PARENT,
444 AMDGPU_BO_SHADOW_TO_SHADOW,
445};
446
447struct amdgpu_bo { 441struct amdgpu_bo {
448 /* Protected by gem.mutex */ 442 /* Protected by gem.mutex */
449 struct list_head list; 443 struct list_head list;
@@ -470,8 +464,6 @@ struct amdgpu_bo {
470 struct drm_gem_object gem_base; 464 struct drm_gem_object gem_base;
471 struct amdgpu_bo *parent; 465 struct amdgpu_bo *parent;
472 struct amdgpu_bo *shadow; 466 struct amdgpu_bo *shadow;
473 /* indicate if need to sync between bo and shadow */
474 enum amdgpu_bo_shadow backup_shadow;
475 467
476 struct ttm_bo_kmap_obj dma_buf_vmap; 468 struct ttm_bo_kmap_obj dma_buf_vmap;
477 struct amdgpu_mn *mn; 469 struct amdgpu_mn *mn;