diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2016-08-30 04:13:10 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-31 15:21:12 -0400 |
commit | 5c1354bd30c118326236e13cfdc49db03d2b5855 (patch) | |
tree | cbcbcabc509367914f3224167c6aa2fa12e5b487 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 78fbb6859b739f7f67c820ab8c9e7a25add977b5 (diff) |
drm/amdgpu: link all gtt when binding them V2
V2:
spin lock instead of mutex for gtt list
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 86762cd74f6d..829b0b4eb838 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -2121,6 +2121,10 @@ struct amdgpu_device { | |||
2121 | /* link all shadow bo */ | 2121 | /* link all shadow bo */ |
2122 | struct list_head shadow_list; | 2122 | struct list_head shadow_list; |
2123 | struct mutex shadow_list_lock; | 2123 | struct mutex shadow_list_lock; |
2124 | /* link all gtt */ | ||
2125 | spinlock_t gtt_list_lock; | ||
2126 | struct list_head gtt_list; | ||
2127 | |||
2124 | }; | 2128 | }; |
2125 | 2129 | ||
2126 | bool amdgpu_device_is_px(struct drm_device *dev); | 2130 | bool amdgpu_device_is_px(struct drm_device *dev); |