All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] drm/i915: Support more QGV points
@ 2019-11-22 11:15 ` Stanislav Lisovskiy
  0 siblings, 0 replies; 10+ messages in thread
From: Stanislav Lisovskiy @ 2019-11-22 11:15 UTC (permalink / raw)
  To: intel-gfx; +Cc: tomi.p.sarvela

According to BSpec 53998, there is a mask of
max 8 SAGV/QGV points we need to support.

Bumping this up to keep the CI happy(currently
preventing tests to run), until all SAGV
changes land.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=112189
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
---
 drivers/gpu/drm/i915/display/intel_bw.c | 2 +-
 drivers/gpu/drm/i915/i915_drv.h         | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c
index 86e75e858008..ec4c127a40b6 100644
--- a/drivers/gpu/drm/i915/display/intel_bw.c
+++ b/drivers/gpu/drm/i915/display/intel_bw.c
@@ -15,7 +15,7 @@ struct intel_qgv_point {
 };
 
 struct intel_qgv_info {
-	struct intel_qgv_point points[3];
+	struct intel_qgv_point points[I915_NUM_SAGV_POINTS];
 	u8 num_points;
 	u8 num_channels;
 	u8 t_bl;
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index fdae5a919bc8..bd8ce341be22 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -621,6 +621,10 @@ struct i915_gem_mm {
 
 #define I915_ENGINE_WEDGED_TIMEOUT  (60 * HZ)  /* Reset but no recovery? */
 
+/* BSpec precisely defines this */
+#define I915_NUM_SAGV_POINTS 8
+
+
 struct ddi_vbt_port_info {
 	/* Non-NULL if port present. */
 	const struct child_device_config *child;
-- 
2.17.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-11-22 13:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-22 11:15 [PATCH v1] drm/i915: Support more QGV points Stanislav Lisovskiy
2019-11-22 11:15 ` [Intel-gfx] " Stanislav Lisovskiy
2019-11-22 11:46 ` Jani Nikula
2019-11-22 11:46   ` [Intel-gfx] " Jani Nikula
2019-11-22 11:57   ` Lisovskiy, Stanislav
2019-11-22 11:57     ` [Intel-gfx] " Lisovskiy, Stanislav
2019-11-22 12:39 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-11-22 12:39   ` [Intel-gfx] " Patchwork
2019-11-22 13:03 ` ✓ Fi.CI.BAT: success " Patchwork
2019-11-22 13:03   ` [Intel-gfx] " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.