Skip to contentSkip to conversation

drm/i915: Support more QGV points

PATCH Superseded Stanislav Lisovskiy 3 participants 5 messages Nov 22, 2019

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Support more QGV points

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.

---
 drivers/gpu/drm/i915/display/intel_bw.c | 2 +-
 drivers/gpu/drm/i915/i915_drv.h         | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_bw.c +1 -1
index 86e75e858008..ec4c127a40b6 100644
@@ -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;
drivers/gpu/drm/i915/i915_drv.h +4 -0
index fdae5a919bc8..bd8ce341be22 100644
@@ -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;
Signature · 6 lines
2.17.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
maintainer
#1 lore raw
Quoted 32 lines · Stanislav Lisovskiy

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.

---
 drivers/gpu/drm/i915/display/intel_bw.c | 2 +-
 drivers/gpu/drm/i915/i915_drv.h         | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_bw.c +1 -1
index 86e75e858008..ec4c127a40b6 100644
@@ -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;
drivers/gpu/drm/i915/i915_drv.h +0 -0
index fdae5a919bc8..bd8ce341be22 100644

drivers/gpu/drm/i915/i915_drv.h struct i915_gem_mm { · line 625

Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.h +2 -0
@@ -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

Please put this in intel_bw.c, and we can move it out when we need it elsewhere. And at that point, let's put it somewhere other than i915_drv.h which should be reduced in size, not increased.

BR,
Jani.

Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.h +2 -0
+
+
 struct ddi_vbt_port_info {
 	/* Non-NULL if port present. */
 	const struct child_device_config *child;
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 40 lines · Jani Nikula
Quoted 38 lines · Stanislav Lisovskiy

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.

---
 drivers/gpu/drm/i915/display/intel_bw.c | 2 +-
 drivers/gpu/drm/i915/i915_drv.h         | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_bw.c +1 -1
index 86e75e858008..ec4c127a40b6 100644
@@ -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;
drivers/gpu/drm/i915/i915_drv.h +0 -0
index fdae5a919bc8..bd8ce341be22 100644
@@ -621,6 +621,10 @@ struct i915_gem_mm {
 
 #define I915_ENGINE_WEDGED_TIMEOUT  (60 * HZ)  /* Reset but no

recovery? */

Quoted 6 lines

drivers/gpu/drm/i915/i915_drv.h struct i915_gem_mm { · line 625

Quoted 2 lines
drivers/gpu/drm/i915/i915_drv.h +2 -0
+/* BSpec precisely defines this */
+#define I915_NUM_SAGV_POINTS 8

Please put this in intel_bw.c, and we can move it out when we need it elsewhere. And at that point, let's put it somewhere other than i915_drv.h which should be reduced in size, not increased.

Yes sure, looks like it is still doesn't work properly for TGL - there seems to be this 3 hardcoded in other places, so I will probably still test it locally more a bit.
There seems to be also hardcoded stuff in algorithm - this all would be fixed by my SAGV patch, but that one has much more stuff to change. So need to figure out now some temporary but still working solution on how just to increase amount of QGV points but without pulling in major SAGV changes.

Stan

Quoted 5 lines

BR,
Jani.

Quoted 7 lines

drivers/gpu/drm/i915/i915_drv.h struct i915_gem_mm { · line 630

Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.h +2 -0
+
+
 struct ddi_vbt_port_info {
 	/* Non-NULL if port present. */
 	const struct child_device_config *child;

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

✗ Fi.CI.CHECKPATCH: warning for drm/i915: Support more QGV points

In reply to Stanislav Lisovskiy
== Series Details ==

== Series Details ==

Series: drm/i915: Support more QGV points
URL : https://patchwork.freedesktop.org/series/69886/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
4eb525978d3f drm/i915: Support more QGV points
-:40: CHECK:LINE_SPACING: Please don't use multiple blank lines
#40: FILE: drivers/gpu/drm/i915/i915_drv.h:627:
+
+

total: 0 errors, 0 warnings, 1 checks, 18 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

✓ Fi.CI.BAT: success for drm/i915: Support more QGV points

In reply to Stanislav Lisovskiy
== Series Details ==

== Series Details ==

Series: drm/i915: Support more QGV points
URL : https://patchwork.freedesktop.org/series/69886/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_7404 -> Patchwork_15393
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/index.html

Known issues
------------

Here are the changes found in Patchwork_15393 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_chamelium@dp-crc-fast:
- fi-icl-u2: [PASS][1] -> [FAIL][2] ([fdo#109635 ] / [fdo#110387])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7404/fi-icl-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/fi-icl-u2/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live_blt:
- fi-bsw-nick: [DMESG-FAIL][3] ([fdo#112176]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7404/fi-bsw-nick/igt@i915_selftest@live_blt.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/fi-bsw-nick/igt@i915_selftest@live_blt.html

* igt@i915_selftest@live_gem_contexts:
- fi-cfl-8700k: [INCOMPLETE][5] ([fdo#111700]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7404/fi-cfl-8700k/igt@i915_selftest@live_gem_contexts.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/fi-cfl-8700k/igt@i915_selftest@live_gem_contexts.html

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][7] ([fdo#111407]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7404/fi-kbl-7500u/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/fi-kbl-7500u/igt@[email protected]

#### Warnings ####

* igt@kms_busy@basic-flip-pipe-b:
- fi-kbl-x1275: [DMESG-WARN][9] ([fdo#103558] / [fdo#105602]) -> [DMESG-WARN][10] ([fdo#103558] / [fdo#105602] / [fdo#105763]) +6 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7404/fi-kbl-x1275/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/fi-kbl-x1275/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- fi-kbl-x1275: [DMESG-WARN][11] ([fdo#103558] / [fdo#105602] / [fdo#105763]) -> [DMESG-WARN][12] ([fdo#103558] / [fdo#105602]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7404/fi-kbl-x1275/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/fi-kbl-x1275/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#109964]: https://bugs.freedesktop.org/show_bug.cgi?id=109964
[fdo#110387]: https://bugs.freedesktop.org/show_bug.cgi?id=110387
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111700]: https://bugs.freedesktop.org/show_bug.cgi?id=111700
[fdo#112176]: https://bugs.freedesktop.org/show_bug.cgi?id=112176
[fdo#112298]: https://bugs.freedesktop.org/show_bug.cgi?id=112298

Participating hosts (51 -> 43)
------------------------------

Missing (8): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-icl-dsi fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_7404 -> Patchwork_15393

CI-20190529: 20190529
CI_DRM_7404: 997d2cef9d8039d891c88a551885063ecb0eb885 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5300: 6bd74ebaeb95c33973508367c5610b40b73ee15d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15393: 4eb525978d3faf0ba385d6dde2859a7ef32a59f9 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

4eb525978d3f drm/i915: Support more QGV points

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15393/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx