drm/i915: Introduce bit definitions of CTXT_SR_CTRL register.
Subsystems (2)
PATCH 1/1 drm/i915: Introduce bit definitions of CTXT_SR_CTRL register.
This patch introduces 2 bit definitions of context save/restore control register.
Thanks comments from David/Thomas/Daniel.
--- drivers/gpu/drm/i915/intel_lrc.c | 3 ++- drivers/gpu/drm/i915/intel_lrc.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_lrc.c +2 -1
@@ -1668,7 +1668,8 @@ populate_lr_context(struct intel_context *ctx, struct drm_i915_gem_object *ctx_o reg_state[CTX_LRI_HEADER_0 ] |=MI_LRI_FORCE_POSTED ; reg_state[CTX_CONTEXT_CONTROL ] =RING_CONTEXT_CONTROL (ring); reg_state[CTX_CONTEXT_CONTROL +1 ] = -_MASKED_BIT_ENABLE ((1 <<3 ) |MI_RESTORE_INHIBIT ); +_MASKED_BIT_ENABLE (CTX_CTRL_INHIBIT_SYN_CTX_SWITCH | +CTX_CTRL_ENGINE_CTX_RESTORE_INHIBIT ); reg_state[CTX_RING_HEAD ] =RING_HEAD (ring->mmio_base); reg_state[CTX_RING_HEAD +1 ] =0 ; reg_state[CTX_RING_TAIL ] =RING_TAIL (ring->mmio_base);
drivers/gpu/drm/i915/intel_lrc.h +2 -0
@@ -30,6 +30,8 @@#define RING_ELSP (ring) ((ring)->mmio_base+0x230)#define RING_EXECLIST_STATUS (ring) ((ring)->mmio_base+0x234)#define RING_CONTEXT_CONTROL (ring) ((ring)->mmio_base+0x244) +#define CTX_CTRL_INHIBIT_SYN_CTX_SWITCH (1 << 3) +#define CTX_CTRL_ENGINE_CTX_RESTORE_INHIBIT (1 << 0)#define RING_CONTEXT_STATUS_BUF (ring) ((ring)->mmio_base+0x370)#define RING_CONTEXT_STATUS_PTR (ring) ((ring)->mmio_base+0x3a0)
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 4 lines · Zhi Wang
This patch introduces 2 bit definitions of context save/restore control register.
Thanks comments from David/Thomas/Daniel.
Instead of Thanks just add the usual Suggested-by: lines. And please Cc:
everyone from the previous discussion when you follow up with a patch. I've added that now.
Quoted 2 lines
Signed-off-by Zhi Wang <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Quoted 39 lines
--- drivers/gpu/drm/i915/intel_lrc.c | 3 ++- drivers/gpu/drm/i915/intel_lrc.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_lrc.c +2
-1@@ -1668,7 +1668,8 @@ populate_lr_context(struct intel_context *ctx, struct drm_i915_gem_object *ctx_o reg_state[CTX_LRI_HEADER_0 ] |=MI_LRI_FORCE_POSTED ; reg_state[CTX_CONTEXT_CONTROL ] =RING_CONTEXT_CONTROL (ring); reg_state[CTX_CONTEXT_CONTROL +1 ] = -_MASKED_BIT_ENABLE ((1 <<3 ) |MI_RESTORE_INHIBIT ); +_MASKED_BIT_ENABLE (CTX_CTRL_INHIBIT_SYN_CTX_SWITCH | +CTX_CTRL_ENGINE_CTX_RESTORE_INHIBIT ); reg_state[CTX_RING_HEAD ] =RING_HEAD (ring->mmio_base); reg_state[CTX_RING_HEAD +1 ] =0 ; reg_state[CTX_RING_TAIL ] =RING_TAIL (ring->mmio_base);drivers/gpu/drm/i915/intel_lrc.h +2
-0@@ -30,6 +30,8 @@#define RING_ELSP (ring) ((ring)->mmio_base+0x230)#define RING_EXECLIST_STATUS (ring) ((ring)->mmio_base+0x234)#define RING_CONTEXT_CONTROL (ring) ((ring)->mmio_base+0x244) +#define CTX_CTRL_INHIBIT_SYN_CTX_SWITCH (1 << 3) +#define CTX_CTRL_ENGINE_CTX_RESTORE_INHIBIT (1 << 0)#define RING_CONTEXT_STATUS_BUF (ring) ((ring)->mmio_base+0x370)#define RING_CONTEXT_STATUS_PTR (ring) ((ring)->mmio_base+0x3a0)Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Thanks Daniel! :)
Quoted 47 lines · Daniel Vetter
Quoted 4 lines · Zhi Wang
This patch introduces 2 bit definitions of context save/restore control register.
Thanks comments from David/Thomas/Daniel.
Instead of Thanks just add the usual Suggested-by: lines. And please Cc:
everyone from the previous discussion when you follow up with a patch. I've added that now.Quoted 2 lines
Signed-off-by Zhi Wang <[email protected]>Queued for -next, thanks for the patch.
-DanielQuoted 32 lines
--- drivers/gpu/drm/i915/intel_lrc.c | 3 ++- drivers/gpu/drm/i915/intel_lrc.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_lrc.c +2
-1@@ -1668,7 +1668,8 @@ populate_lr_context(struct intel_context *ctx, struct drm_i915_gem_object *ctx_o reg_state[CTX_LRI_HEADER_0 ] |=MI_LRI_FORCE_POSTED ; reg_state[CTX_CONTEXT_CONTROL ] =RING_CONTEXT_CONTROL (ring); reg_state[CTX_CONTEXT_CONTROL +1 ] = -_MASKED_BIT_ENABLE ((1 <<3 ) |MI_RESTORE_INHIBIT ); +_MASKED_BIT_ENABLE (CTX_CTRL_INHIBIT_SYN_CTX_SWITCH | +CTX_CTRL_ENGINE_CTX_RESTORE_INHIBIT ); reg_state[CTX_RING_HEAD ] =RING_HEAD (ring->mmio_base); reg_state[CTX_RING_HEAD +1 ] =0 ; reg_state[CTX_RING_TAIL ] =RING_TAIL (ring->mmio_base);drivers/gpu/drm/i915/intel_lrc.h +2
-0@@ -30,6 +30,8 @@#define RING_ELSP (ring) ((ring)->mmio_base+0x230)#define RING_EXECLIST_STATUS (ring) ((ring)->mmio_base+0x234)#define RING_CONTEXT_CONTROL (ring) ((ring)->mmio_base+0x244) +#define CTX_CTRL_INHIBIT_SYN_CTX_SWITCH (1 << 3) +#define CTX_CTRL_ENGINE_CTX_RESTORE_INHIBIT (1 << 0)#define RING_CONTEXT_STATUS_BUF (ring) ((ring)->mmio_base+0x370)#define RING_CONTEXT_STATUS_PTR (ring) ((ring)->mmio_base+0x3a0)
Quoted 8 lines
Quoted 7 lines
--
1.9.1_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx