diff options
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 951c8db01412..76033e2cdba8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -738,6 +738,7 @@ struct amdgpu_ctx { | |||
738 | bool preamble_presented; | 738 | bool preamble_presented; |
739 | enum amd_sched_priority init_priority; | 739 | enum amd_sched_priority init_priority; |
740 | enum amd_sched_priority override_priority; | 740 | enum amd_sched_priority override_priority; |
741 | struct mutex lock; | ||
741 | }; | 742 | }; |
742 | 743 | ||
743 | struct amdgpu_ctx_mgr { | 744 | struct amdgpu_ctx_mgr { |
@@ -760,9 +761,12 @@ void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx, | |||
760 | int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, | 761 | int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, |
761 | struct drm_file *filp); | 762 | struct drm_file *filp); |
762 | 763 | ||
764 | int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id); | ||
765 | |||
763 | void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); | 766 | void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); |
764 | void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr); | 767 | void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr); |
765 | 768 | ||
769 | |||
766 | /* | 770 | /* |
767 | * file private structure | 771 | * file private structure |
768 | */ | 772 | */ |