Skip to contentSkip to conversation

drm/i915: clear the QGV mask set by GOP while booting

PATCH In review George D Sworo 4 participants 5 messages Jan 4, 2024 – Jan 8, 2024

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

PATCH 1/1 drm/i915: clear the QGV mask set by GOP while booting

From: George D Sworo <[email protected]>

GOP driver in the firmware is masking the QGV points except the one which can
provide high Bandwidth required for panel.

On boot to the OS the mask is already set, and is not cleared anywhere in the i915 driver
even though sagv is enabled. This means Pcode is unable to switch to other QGV work points
except the one enabled by default in the GOP driver at boot time.

This change resets the mask, when i915 driver is finding the QGV points at the boot time. So that Pcode can switch to QGV work points based
on the Workloads.

---
 drivers/gpu/drm/i915/display/intel_bw.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_bw.c +6 -0
index bef96db62c80..e2576c0fb729 100644
@@ -212,6 +212,7 @@ static int icl_get_qgv_points(struct drm_i915_private *dev_priv,
 			      bool is_y_tile)
 {
 	const struct dram_info *dram_info = &dev_priv->dram_info;
+	u32 val = 0x00, val2 = 0;
 	int i, ret;
 
 	qi->num_points = dram_info->num_qgv_points;
@@ -311,6 +312,11 @@ static int icl_get_qgv_points(struct drm_i915_private *dev_priv,
 				    i, qi->psf_points[i].clk);
 	}
 
+	/* clear the QGV points mask set by the GOP driver while booting */
+	ret = snb_pcode_read(&dev_priv->uncore, ICL_PCODE_SAGV_DE_MEM_SS_CONFIG, &val, &val2);
+	if (ret)
+		return ret;
+
 	return 0;
 }
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 12 lines · George D Sworo

From: George D Sworo <[email protected]>

GOP driver in the firmware is masking the QGV points except the one which can
provide high Bandwidth required for panel.

On boot to the OS the mask is already set, and is not cleared anywhere in the i915 driver
even though sagv is enabled. This means Pcode is unable to switch to other QGV work points
except the one enabled by default in the GOP driver at boot time.

Quoted 6 lines

This change resets the mask, when i915 driver is finding the QGV points at the boot time. So that Pcode can switch to QGV work points based
on the Workloads.

Hi,

We already have a case similar to this, you might want to check this out:

https://patchwork.freedesktop.org/series/126962/

Stan

Quoted 31 lines
---
 drivers/gpu/drm/i915/display/intel_bw.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_bw.c +6 -0
index bef96db62c80..e2576c0fb729 100644
@@ -212,6 +212,7 @@ static int icl_get_qgv_points(struct drm_i915_private *dev_priv,
 			      bool is_y_tile)
 {
 	const struct dram_info *dram_info = &dev_priv->dram_info;
+	u32 val = 0x00, val2 = 0;
 	int i, ret;
 
 	qi->num_points = dram_info->num_qgv_points;
@@ -311,6 +312,11 @@ static int icl_get_qgv_points(struct drm_i915_private *dev_priv,
 				    i, qi->psf_points[i].clk);
 	}
 
+	/* clear the QGV points mask set by the GOP driver while booting */
+	ret = snb_pcode_read(&dev_priv->uncore, ICL_PCODE_SAGV_DE_MEM_SS_CONFIG, &val, &val2);
+	if (ret)
+		return ret;
+
 	return 0;
 }
 
Signature · 1 line
2.34.1
#2 lore raw
Quoted 65 lines · Stanislav
Quoted 14 lines · George D Sworo

From: George D Sworo <[email protected]>

GOP driver in the firmware is masking the QGV points except the one which can
provide high Bandwidth required for panel.

On boot to the OS the mask is already set, and is not cleared anywhere
in the i915 driver
even though sagv is enabled. This means Pcode is unable to switch to
other QGV work points
except the one enabled by default in the GOP driver at boot time.

Quoted 7 lines

This change resets the mask, when i915 driver is finding the QGV points at the boot time. So that Pcode can switch to QGV work points
based
on the Workloads.

Hi,

We already have a case similar to this, you might want to check this out:

https://patchwork.freedesktop.org/series/126962/

Stan

Quoted 33 lines
---
 drivers/gpu/drm/i915/display/intel_bw.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_bw.c +1 -0
index bef96db62c80..e2576c0fb729 100644
@@ -212,6 +212,7 @@ static int icl_get_qgv_points(struct
 drm_i915_private *dev_priv,
 			      bool is_y_tile)
 {
 	const struct dram_info *dram_info = &dev_priv->dram_info;
+	u32 val = 0x00, val2 = 0;
 	int i, ret;
 
drivers/gpu/drm/i915/display/intel_bw.c +1 -0
 	qi->num_points = dram_info->num_qgv_points;
@@ -311,6 +312,11 @@ static int icl_get_qgv_points(struct
 drm_i915_private *dev_priv,
 				    i, qi->psf_points[i].clk);
 	}
 
+	/* clear the QGV points mask set by the GOP driver while

booting */

drivers/gpu/drm/i915/display/intel_bw.c +1 -0
+	ret = snb_pcode_read(&dev_priv->uncore,

ICL_PCODE_SAGV_DE_MEM_SS_CONFIG, &val, &val2);

drivers/gpu/drm/i915/display/intel_bw.c +3 -0
+	if (ret)
+		return ret;
+
 	return 0;
 }
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
2.34.1

hi Stan,

Thanks for the quick reply. unfortunately, SAGV frequency doesnt seem to be scaling even with this patch added
https://patchwork.freedesktop.org/series/126962/ .

#3 lore raw
In reply to George D Sworo
Quoted 12 lines · George D Sworo

From: George D Sworo <[email protected]>

GOP driver in the firmware is masking the QGV points except the one which can
provide high Bandwidth required for panel.

On boot to the OS the mask is already set, and is not cleared anywhere in the i915 driver
even though sagv is enabled. This means Pcode is unable to switch to other QGV work points
except the one enabled by default in the GOP driver at boot time.

Quoted 6 lines

This change resets the mask, when i915 driver is finding the QGV points at the boot time. So that Pcode can switch to QGV work points based
on the Workloads.

Hi,

We already have a case similar to this, you might want to check this out:

https://patchwork.freedesktop.org/series/126962/

Stan

Quoted 31 lines
---
 drivers/gpu/drm/i915/display/intel_bw.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/display/intel_bw.c +6 -0
index bef96db62c80..e2576c0fb729 100644
@@ -212,6 +212,7 @@ static int icl_get_qgv_points(struct drm_i915_private *dev_priv,
 			      bool is_y_tile)
 {
 	const struct dram_info *dram_info = &dev_priv->dram_info;
+	u32 val = 0x00, val2 = 0;
 	int i, ret;
 
 	qi->num_points = dram_info->num_qgv_points;
@@ -311,6 +312,11 @@ static int icl_get_qgv_points(struct drm_i915_private *dev_priv,
 				    i, qi->psf_points[i].clk);
 	}
 
+	/* clear the QGV points mask set by the GOP driver while booting */
+	ret = snb_pcode_read(&dev_priv->uncore, ICL_PCODE_SAGV_DE_MEM_SS_CONFIG, &val, &val2);
+	if (ret)
+		return ret;
+
 	return 0;
 }
 
Signature · 1 line
2.34.1
#4 lore raw

✗ Fi.CI.BAT: failure for drm/i915: clear the QGV mask set by GOP while booting (rev2)

In reply to George D Sworo
== Series Details ==

== Series Details ==

Series: drm/i915: clear the QGV mask set by GOP while booting (rev2)
URL : https://patchwork.freedesktop.org/series/128223/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_14093 -> Patchwork_128223v2
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_128223v2 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_128223v2, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

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

Participating hosts (37 -> 39)
------------------------------

Additional (3): bat-rpls-2 fi-bsw-n3050 fi-pnv-d510
Missing (1): fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_128223v2:

### IGT changes ###

#### Possible regressions ####

* igt@i915_module_load@load:
- fi-rkl-11600: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/fi-rkl-11600/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/fi-rkl-11600/igt@[email protected]
- bat-dg1-7: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-dg1-7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-dg1-7/igt@[email protected]
- fi-tgl-1115g4: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/fi-tgl-1115g4/igt@[email protected]
- bat-mtlp-6: [PASS][7] -> [INCOMPLETE][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-mtlp-6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-mtlp-6/igt@[email protected]
- bat-rpls-2: NOTRUN -> [ABORT][9]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-rpls-2/igt@[email protected]
- bat-mtlp-8: [PASS][10] -> [INCOMPLETE][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-mtlp-8/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-mtlp-8/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_module_load@load:
- {bat-adls-6}: [PASS][12] -> [ABORT][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-adls-6/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-adls-6/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_lmem_swapping@basic:
- fi-pnv-d510: NOTRUN -> [SKIP][14] ([fdo#109271]) +31 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/fi-pnv-d510/igt@[email protected]

* igt@gem_lmem_swapping@random-engines:
- fi-bsw-n3050: NOTRUN -> [SKIP][15] ([fdo#109271]) +15 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/fi-bsw-n3050/igt@[email protected]

* igt@kms_pm_backlight@basic-brightness@edp-1:
- bat-rplp-1: NOTRUN -> [ABORT][16] ([i915#8668])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-rplp-1/igt@kms_pm_backlight@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@hangcheck:
- {bat-rpls-3}: [DMESG-WARN][17] ([i915#5591]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-rpls-3/igt@i915_selftest@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-rpls-3/igt@i915_selftest@[email protected]
- {bat-dg2-14}: [ABORT][19] ([i915#9840]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-dg2-14/igt@i915_selftest@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-dg2-14/igt@i915_selftest@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [ABORT][21] ([i915#8668] / [i915#9368]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-b-dp-3:
- fi-kbl-7567u: [FAIL][23] -> [PASS][24] +2 other tests pass
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14093/fi-kbl-7567u/igt@kms_pipe_crc_basic@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/fi-kbl-7567u/igt@kms_pipe_crc_basic@[email protected]

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

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#9368]: https://gitlab.freedesktop.org/drm/intel/issues/9368
[i915#9840]: https://gitlab.freedesktop.org/drm/intel/issues/9840

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

* Linux: CI_DRM_14093 -> Patchwork_128223v2

CI-20190529: 20190529
CI_DRM_14093: 9b1ed6b14bc86ec11c031a76c807bffe43609198 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7661: 17df2eb8cded19c629cacee8a369629b56976068 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_128223v2: 9b1ed6b14bc86ec11c031a76c807bffe43609198 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

428bf8f437c9 drm/i915: clear the QGV mask set by GOP while booting

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v2/index.html