aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h4
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
743struct amdgpu_ctx_mgr { 744struct amdgpu_ctx_mgr {
@@ -760,9 +761,12 @@ void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx,
760int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, 761int amdgpu_ctx_ioctl(struct drm_device *dev, void *data,
761 struct drm_file *filp); 762 struct drm_file *filp);
762 763
764int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id);
765
763void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); 766void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr);
764void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr); 767void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr);
765 768
769
766/* 770/*
767 * file private structure 771 * file private structure
768 */ 772 */