Skip to contentSkip to conversation

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

PATCH In review [email protected] 2 participants 3 messages Jan 4, 2024 – Jan 5, 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

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

== Series Details ==

== Series Details ==

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

== Summary ==

CI Bug Log - changes from CI_DRM_14080 -> Patchwork_128223v1
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_128223v1, 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_128223v1/index.html

Participating hosts (39 -> 38)
------------------------------

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

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

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

### 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_14080/fi-rkl-11600/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/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_14080/bat-dg1-7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/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_14080/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/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_14080/bat-mtlp-6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/bat-mtlp-6/igt@[email protected]
- bat-mtlp-8: [PASS][9] -> [INCOMPLETE][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14080/bat-mtlp-8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/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][11] -> [ABORT][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14080/bat-adls-6/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/bat-adls-6/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

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

* igt@i915_module_load@load:
- fi-pnv-d510: [PASS][14] -> [DMESG-WARN][15] ([i915#1982])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14080/fi-pnv-d510/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/fi-pnv-d510/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@hangcheck:
- {bat-rpls-3}: [DMESG-WARN][16] ([i915#5591]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14080/bat-rpls-3/igt@i915_selftest@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/bat-rpls-3/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-dg2-11: [DMESG-FAIL][18] ([i915#9500]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14080/bat-dg2-11/igt@i915_selftest@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_128223v1/bat-dg2-11/igt@i915_selftest@[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#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#9500]: https://gitlab.freedesktop.org/drm/intel/issues/9500

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

* Linux: CI_DRM_14080 -> Patchwork_128223v1

CI-20190529: 20190529
CI_DRM_14080: d7426b5fc261046501ca418fe0e69ad1d6ba59be @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7656: 149297384db8cab03928c12b37ae1bb61089bdad @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_128223v1: d7426b5fc261046501ca418fe0e69ad1d6ba59be @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

d1d492f750d6 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_128223v1/index.html

#2 lore raw
In reply to [email protected]
Quoted 47 lines · On Thu, 2024-01-04 at 11:04 -0800, [email protected] wrote:

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 +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 static int icl_get_qgv_points(struct drm_i915_private *dev_priv, · line 321

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_bw.c +3 -0
+	if (ret)
+		return ret;
+
 	return 0;
 }

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/ . Apologies, the first patch you replied to was sent with an email that was not registered with intel-gfx. I had to resubmit.