Skip to contentSkip to conversation

drm/i915: Make the DERRMR SRM target global GTT

PATCH Superseded [email protected] 3 participants 5 messages Nov 28, 2013 – Nov 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 0cbe86d..9fb3d09 100644
@@ -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
#1 lore raw
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.

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
#2 lore raw
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.

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
#3 lore raw

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
index f9eafb6..ee27421 100644
@@ -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
index 898bd98..4e779f3 100644
@@ -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
Reviewed-by on v1 1/1
#4 lore raw
In reply to [email protected]
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.

-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre