aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lrc.h')
-rw-r--r--drivers/gpu/drm/i915/intel_lrc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.h b/drivers/gpu/drm/i915/intel_lrc.h
index 33c3b4bf28c5..14b216b9be7f 100644
--- a/drivers/gpu/drm/i915/intel_lrc.h
+++ b/drivers/gpu/drm/i915/intel_lrc.h
@@ -24,6 +24,8 @@
24#ifndef _INTEL_LRC_H_ 24#ifndef _INTEL_LRC_H_
25#define _INTEL_LRC_H_ 25#define _INTEL_LRC_H_
26 26
27#define GEN8_LR_CONTEXT_ALIGN 4096
28
27/* Execlists regs */ 29/* Execlists regs */
28#define RING_ELSP(ring) ((ring)->mmio_base+0x230) 30#define RING_ELSP(ring) ((ring)->mmio_base+0x230)
29#define RING_EXECLIST_STATUS(ring) ((ring)->mmio_base+0x234) 31#define RING_EXECLIST_STATUS(ring) ((ring)->mmio_base+0x234)
@@ -67,6 +69,8 @@ int intel_lr_context_render_state_init(struct intel_engine_cs *ring,
67void intel_lr_context_free(struct intel_context *ctx); 69void intel_lr_context_free(struct intel_context *ctx);
68int intel_lr_context_deferred_create(struct intel_context *ctx, 70int intel_lr_context_deferred_create(struct intel_context *ctx,
69 struct intel_engine_cs *ring); 71 struct intel_engine_cs *ring);
72void intel_lr_context_unpin(struct intel_engine_cs *ring,
73 struct intel_context *ctx);
70 74
71/* Execlists */ 75/* Execlists */
72int intel_sanitize_enable_execlists(struct drm_device *dev, int enable_execlists); 76int intel_sanitize_enable_execlists(struct drm_device *dev, int enable_execlists);
@@ -104,11 +108,11 @@ struct intel_ctx_submit_request {
104 u32 tail; 108 u32 tail;
105 109
106 struct list_head execlist_link; 110 struct list_head execlist_link;
107 struct work_struct work;
108 111
109 int elsp_submitted; 112 int elsp_submitted;
110}; 113};
111 114
112void intel_execlists_handle_ctx_events(struct intel_engine_cs *ring); 115void intel_execlists_handle_ctx_events(struct intel_engine_cs *ring);
116void intel_execlists_retire_requests(struct intel_engine_cs *ring);
113 117
114#endif /* _INTEL_LRC_H_ */ 118#endif /* _INTEL_LRC_H_ */