Skip to contentSkip to conversation

drm/i915: enable PPGTT on VLV

PATCH Applied Jesse Barnes 3 participants 5 messages May 29, 2014 – Jun 6, 2014

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

PATCH 1/1 drm/i915: enable PPGTT on VLV

Working for real this time. i915_ppgtt_info has all sorts of good stuff in it and X is running nicely on top.

---
 drivers/gpu/drm/i915/i915_drv.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -4
index bea9ab40..8631fb3 100644
@@ -1936,10 +1936,8 @@ struct drm_i915_cmd_table {
 #define I915_NEED_GFX_HWS(dev)	(INTEL_INFO(dev)->need_gfx_hws)
 
 #define HAS_HW_CONTEXTS(dev)	(INTEL_INFO(dev)->gen >= 6)
-#define HAS_ALIASING_PPGTT(dev)	(INTEL_INFO(dev)->gen >= 6 && \
-				 (!IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev)))
-#define HAS_PPGTT(dev)		(INTEL_INFO(dev)->gen >= 7 \
-				 && !IS_GEN8(dev))
+#define HAS_ALIASING_PPGTT(dev)	(INTEL_INFO(dev)->gen >= 6)
+#define HAS_PPGTT(dev)		(INTEL_INFO(dev)->gen >= 7 && !IS_GEN8(dev))
 #define USES_PPGTT(dev)		intel_enable_ppgtt(dev, false)
 #define USES_FULL_PPGTT(dev)	intel_enable_ppgtt(dev, true)
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Jesse Barnes

Working for real this time. i915_ppgtt_info has all sorts of good stuff in it and X is running nicely on top.

Maintainer-nitpick: Please don't forget the patch changelog ... -Daniel

Quoted 28 lines
---
 drivers/gpu/drm/i915/i915_drv.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -4
index bea9ab40..8631fb3 100644
@@ -1936,10 +1936,8 @@ struct drm_i915_cmd_table {
 #define I915_NEED_GFX_HWS(dev)	(INTEL_INFO(dev)->need_gfx_hws)
 
 #define HAS_HW_CONTEXTS(dev)	(INTEL_INFO(dev)->gen >= 6)
-#define HAS_ALIASING_PPGTT(dev)	(INTEL_INFO(dev)->gen >= 6 && \
-				 (!IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev)))
-#define HAS_PPGTT(dev)		(INTEL_INFO(dev)->gen >= 7 \
-				 && !IS_GEN8(dev))
+#define HAS_ALIASING_PPGTT(dev)	(INTEL_INFO(dev)->gen >= 6)
+#define HAS_PPGTT(dev)		(INTEL_INFO(dev)->gen >= 7 && !IS_GEN8(dev))
 #define USES_PPGTT(dev)		intel_enable_ppgtt(dev, false)
 #define USES_FULL_PPGTT(dev)	intel_enable_ppgtt(dev, true)
 
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Reviewed-by on v1 1/1
#2 lore raw
In reply to Jesse Barnes
Quoted 4 lines · Jesse Barnes

Working for real this time. i915_ppgtt_info has all sorts of good stuff in it and X is running nicely on top.

So it wasn't just my vlv where it appears to work. That's nice.

Quoted 27 lines
---
 drivers/gpu/drm/i915/i915_drv.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +2 -4
index bea9ab40..8631fb3 100644
@@ -1936,10 +1936,8 @@ struct drm_i915_cmd_table {
 #define I915_NEED_GFX_HWS(dev)	(INTEL_INFO(dev)->need_gfx_hws)
 
 #define HAS_HW_CONTEXTS(dev)	(INTEL_INFO(dev)->gen >= 6)
-#define HAS_ALIASING_PPGTT(dev)	(INTEL_INFO(dev)->gen >= 6 && \
-				 (!IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev)))
-#define HAS_PPGTT(dev)		(INTEL_INFO(dev)->gen >= 7 \
-				 && !IS_GEN8(dev))
+#define HAS_ALIASING_PPGTT(dev)	(INTEL_INFO(dev)->gen >= 6)
+#define HAS_PPGTT(dev)		(INTEL_INFO(dev)->gen >= 7 && !IS_GEN8(dev))
 #define USES_PPGTT(dev)		intel_enable_ppgtt(dev, false)
 #define USES_FULL_PPGTT(dev)	intel_enable_ppgtt(dev, true)
 
Signature · 5 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]

http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 2 lines
Ville Syrjälä
Intel OTC
#3 lore raw
Quoted 9 lines · Ville Syrjälä
Quoted 4 lines · Jesse Barnes

Working for real this time. i915_ppgtt_info has all sorts of good stuff in it and X is running nicely on top.

So it wasn't just my vlv where it appears to work. That's nice.

Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
#4 lore raw
Quoted 5 lines · Daniel Vetter
Quoted 4 lines · Ville Syrjälä
Quoted 3 lines · Jesse Barnes

Working for real this time. i915_ppgtt_info has all sorts of good stuff in it and X is running nicely on top.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

So it wasn't just my vlv where it appears to work. That's nice.

Queued for -next, thanks for the patch.

https://bugs.freedesktop.org/show_bug.cgi?id=79670

There's more that are suspect.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch