drm/i915: Make the DERRMR SRM target global GTT
Subsystems (2)
PATCH 1/1 drm/i915: Make the DERRMR SRM target global GTT
From: Ville Syrjälä <[email protected]>
The ring scratch pages don't have a PPGTT mapping, so the DERRM SRM should target the global GTT instead.
--- drivers/gpu/drm/i915/intel_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +2 -1
@@ -8566,7 +8566,8 @@ static int intel_gen7_queue_flip(struct drm_device *dev,intel_ring_emit (ring, ~(DERRMR_PIPEA_PRI_FLIP_DONE |DERRMR_PIPEB_PRI_FLIP_DONE |DERRMR_PIPEC_PRI_FLIP_DONE )); -intel_ring_emit (ring,MI_STORE_REGISTER_MEM (1 )); +intel_ring_emit (ring,MI_STORE_REGISTER_MEM (1 ) | +MI_SRM_LRM_GLOBAL_GTT );intel_ring_emit (ring,DERRMR );intel_ring_emit (ring, ring->scratch.gtt_offset +256 ); }
Signature · 6 lines
1.8.3.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · On Thu, Nov 28, 2013 at 10:14:41PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
The ring scratch pages don't have a PPGTT mapping, so the DERRM SRM should target the global GTT instead.
Signed-off-by Ville Syrjälä <[email protected]>
Oops. Looking forward to the day where we nuke the scratch page for ppgtt. Picked up for -fixes, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 10 lines · Daniel Vetter
Quoted 6 lines · On Thu, Nov 28, 2013 at 10:14:41PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
The ring scratch pages don't have a PPGTT mapping, so the DERRM SRM should target the global GTT instead.
Signed-off-by Ville Syrjälä <[email protected]>Oops. Looking forward to the day where we nuke the scratch page for ppgtt. Picked up for -fixes, thanks for the patch.
This seems to want your fbc series so dropped again - it seems unhappy with the cmd #defines when compiling.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
PATCH v2 1/1 drm/i915: Make the DERRMR SRM target global GTT
From: Ville Syrjälä <[email protected]>
The ring scratch pages don't have a PPGTT mapping, so the DERRM SRM should target the global GTT instead.
v2: Add MI_SRM_LRM_GLOBAL_GTT define for -fixes
--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_display.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -235,6 +235,7 @@*/ #define MI_LOAD_REGISTER_IMM (x) MI_INSTR(0x22, 2*x-1)#define MI_STORE_REGISTER_MEM (x) MI_INSTR(0x24, 2*x-1) +#define MI_SRM_LRM_GLOBAL_GTT (1<<22)#define MI_FLUSH_DW MI_INSTR(0x26, 1)/* for GEN6 */ #define MI_FLUSH_DW_STORE_INDEX (1<<21)#define MI_INVALIDATE_TLB (1<<18)
drivers/gpu/drm/i915/intel_display.c +2 -1
@@ -8354,7 +8354,8 @@ static int intel_gen7_queue_flip(struct drm_device *dev,intel_ring_emit (ring, ~(DERRMR_PIPEA_PRI_FLIP_DONE |DERRMR_PIPEB_PRI_FLIP_DONE |DERRMR_PIPEC_PRI_FLIP_DONE )); -intel_ring_emit (ring,MI_STORE_REGISTER_MEM (1 )); +intel_ring_emit (ring,MI_STORE_REGISTER_MEM (1 ) | +MI_SRM_LRM_GLOBAL_GTT );intel_ring_emit (ring,DERRMR );intel_ring_emit (ring, ring->scratch.gtt_offset +256 ); }
Signature · 6 lines
1.8.3.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · On Thu, Nov 28, 2013 at 10:14:41PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
The ring scratch pages don't have a PPGTT mapping, so the DERRM SRM should target the global GTT instead.
Signed-off-by Ville Syrjälä <[email protected]>
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre