Skip to contentSkip to conversation

drm/i915/display: Don't update DBUF_TRACKER_STATE_SERVICE

PATCH In review Ravi Kumar Vodapalli 4 participants 4 messages Jan 8, 2025 – Jan 10, 2025

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

PATCH v3 1/1 drm/i915/display: Don't update DBUF_TRACKER_STATE_SERVICE

The bspec only asks the driver to reprogram the DBUF_CTL's DBUF_TRACKER_STATE_SERVICE field to 0x8 on DG2 and platforms with display version 12. All other platforms should avoid reprogramming this register at driver init.

Although we've been accidentally reprogramming DBUF_CTL on platforms where the spec does not ask us to, that mistake has been harmless so far because the value being programmed by the driver happened to match the hardware's default settings.

So, update DBUF_TRACKER_STATE_SERVICE field to 0x8 only for
1. display version 12
2. DG2.
Other platforms unless stated should use their default value.

Bspec: 49213

---
 drivers/gpu/drm/i915/display/intel_display_power.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +1 -4
index 34465d56def0..9c20459053fe 100644
@@ -1126,9 +1126,6 @@ static void gen12_dbuf_slices_config(struct intel_display *display)
 {
 	enum dbuf_slice slice;
 
-	if (display->platform.alderlake_p)
-		return;
-
 	for_each_dbuf_slice(display, slice)
 		intel_de_rmw(display, DBUF_CTL_S(slice),
 			     DBUF_TRACKER_STATE_SERVICE_MASK,
@@ -1681,7 +1678,7 @@ static void icl_display_core_init(struct intel_display *display,
 	/* 4. Enable CDCLK. */
 	intel_cdclk_init_hw(display);
 
-	if (DISPLAY_VER(display) >= 12)
+	if (DISPLAY_VER(display) == 12 || display->platform.dg2)
 		gen12_dbuf_slices_config(display);
 
 	/* 5. Enable DBUF. */
Signature · 1 line
2.25.1
Reviewed-by on v3 1/1
#1 lore raw
Quoted 10 lines · Ravi Kumar Vodapalli

The bspec only asks the driver to reprogram the DBUF_CTL's DBUF_TRACKER_STATE_SERVICE field to 0x8 on DG2 and platforms with display version 12. All other platforms should avoid reprogramming this register at driver init.

Although we've been accidentally reprogramming DBUF_CTL on platforms where the spec does not ask us to, that mistake has been harmless so far because the value being programmed by the driver happened to match the hardware's default settings.

Quoted 7 lines

So, update DBUF_TRACKER_STATE_SERVICE field to 0x8 only for
1. display version 12
2. DG2.
Other platforms unless stated should use their default value.

Bspec: 49213

I just noticed that the patch subject isn't quite right (it implies that we aren't updating that field on _any_ platforms), but I can tweak that while applying the patch; no need to re-send.

And since the CI results on the previous version were clean (aside from one false positive on a DG1 GEM test) and the only changes in this version are to the commit message, applied to drm-intel-next. Thanks for the patch.

Matt

Quoted 30 lines
---
 drivers/gpu/drm/i915/display/intel_display_power.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +1 -4
index 34465d56def0..9c20459053fe 100644
@@ -1126,9 +1126,6 @@ static void gen12_dbuf_slices_config(struct intel_display *display)
 {
 	enum dbuf_slice slice;
 
-	if (display->platform.alderlake_p)
-		return;
-
 	for_each_dbuf_slice(display, slice)
 		intel_de_rmw(display, DBUF_CTL_S(slice),
 			     DBUF_TRACKER_STATE_SERVICE_MASK,
@@ -1681,7 +1678,7 @@ static void icl_display_core_init(struct intel_display *display,
 	/* 4. Enable CDCLK. */
 	intel_cdclk_init_hw(display);
 
-	if (DISPLAY_VER(display) >= 12)
+	if (DISPLAY_VER(display) == 12 || display->platform.dg2)
 		gen12_dbuf_slices_config(display);
 
 	/* 5. Enable DBUF. */
Signature · 1 line
2.25.1
Signature · 4 lines
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
#2 lore raw

✗ i915.CI.BAT: failure for drm/i915/display: Don't update DBUF_TRACKER_STATE_SERVICE (rev3)

In reply to Ravi Kumar Vodapalli
== Series Details ==

== Series Details ==

Series: drm/i915/display: Don't update DBUF_TRACKER_STATE_SERVICE (rev3)
URL : https://patchwork.freedesktop.org/series/142892/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_15924 -> Patchwork_142892v3
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (38 -> 37)
------------------------------

Missing (1): fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-xr24@pipe-a-dp-1:
- fi-kbl-7567u: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/fi-kbl-7567u/igt@kms_pipe_crc_basic@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/fi-kbl-7567u/igt@kms_pipe_crc_basic@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_module_load@load:
- fi-pnv-d510: [PASS][3] -> [ABORT][4] ([i915#13203])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/fi-pnv-d510/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/fi-pnv-d510/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- fi-tgl-1115g4: [PASS][5] -> [FAIL][6] ([i915#13401])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/fi-tgl-1115g4/igt@[email protected]

* igt@i915_selftest@live:
- bat-arlh-2: [PASS][7] -> [INCOMPLETE][8] ([i915#12435] / [i915#13050])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-arlh-2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-arlh-2/igt@[email protected]

* igt@i915_selftest@live@slpc:
- bat-arlh-2: [PASS][9] -> [INCOMPLETE][10] ([i915#13050])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-arlh-2/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-arlh-2/igt@i915_selftest@[email protected]

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-xr24@pipe-c-dp-1:
- fi-kbl-7567u: [PASS][11] -> [DMESG-WARN][12] ([i915#13436]) +1 other test dmesg-warn
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/fi-kbl-7567u/igt@kms_pipe_crc_basic@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/fi-kbl-7567u/igt@kms_pipe_crc_basic@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: [PASS][13] -> [SKIP][14] ([i915#9197]) +3 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-dg2-11/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-dg2-11/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live:
- bat-twl-2: [ABORT][15] ([i915#12919] / [i915#13397]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-twl-2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-twl-2/igt@[email protected]
- bat-jsl-3: [INCOMPLETE][17] ([i915#13241]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-jsl-3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-jsl-3/igt@[email protected]

* igt@i915_selftest@live@gt_mocs:
- bat-twl-2: [ABORT][19] ([i915#12919]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-twl-2/igt@i915_selftest@live@gt_mocs.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-twl-2/igt@i915_selftest@live@gt_mocs.html

* igt@i915_selftest@live@gt_pm:
- bat-jsl-3: [DMESG-FAIL][21] ([i915#13132]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-jsl-3/igt@i915_selftest@live@gt_pm.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-jsl-3/igt@i915_selftest@live@gt_pm.html

* igt@i915_selftest@live@objects:
- bat-jsl-3: [INCOMPLETE][23] -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-jsl-3/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-jsl-3/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-arlh-3: [DMESG-FAIL][25] ([i915#13393]) -> [PASS][26] +1 other test pass
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-arlh-3/igt@i915_selftest@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-arlh-3/igt@i915_selftest@[email protected]
- {bat-arls-6}: [DMESG-FAIL][27] ([i915#13393]) -> [PASS][28] +1 other test pass
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15924/bat-arls-6/igt@i915_selftest@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142892v3/bat-arls-6/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).

[i915#12435]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12435
[i915#12919]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12919
[i915#13050]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13050
[i915#13132]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13132
[i915#13203]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13203
[i915#13241]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13241
[i915#13393]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13393
[i915#13397]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13397
[i915#13401]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13401
[i915#13436]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13436
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197

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

* Linux: CI_DRM_15924 -> Patchwork_142892v3

CI-20190529: 20190529
CI_DRM_15924: 9cbe590862ef629f35ce9f4c2dc5c0a6a4553f48 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8181: 32ed9fc482fee95777054d53b96d19a7e30eaa18 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_142892v3: 9cbe590862ef629f35ce9f4c2dc5c0a6a4553f48 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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

#3 lore raw
In reply to Ravi Kumar Vodapalli
Quoted 23 lines

-----Original Message-----
From: Vodapalli, Ravi Kumar <[email protected]>
Sent: Thursday, January 9, 2025 1:32 AM
To: [email protected]
Cc: Vivekanandan, Balasubramani <[email protected]>; Roper, Matthew D <[email protected]>; De Marchi, Lucas <[email protected]>; Sousa, Gustavo <[email protected]>; Taylor, Clinton A <[email protected]>; Atwood, Matthew S <[email protected]>; Bhadane, Dnyaneshwar <[email protected]>; Kalvala, Haridhar <[email protected]>; Chauhan, Shekhar <[email protected]>
Subject: [PATCH v3] drm/i915/display: Don't update DBUF_TRACKER_STATE_SERVICE

The bspec only asks the driver to reprogram the DBUF_CTL's DBUF_TRACKER_STATE_SERVICE field to 0x8 on DG2 and platforms with display version 12. All other platforms should avoid reprogramming this register at driver init.

Quoted 9 lines

Although we've been accidentally reprogramming DBUF_CTL on platforms where the spec does not ask us to, that mistake has been harmless so far because the value being programmed by the driver happened to match the hardware's default settings.

So, update DBUF_TRACKER_STATE_SERVICE field to 0x8 only for 1. display version 12 2. DG2.
Other platforms unless stated should use their default value.

Please write revision history. It will be easy for the reviewer what has been address/changed from the previous version reviews.

Regards,
Dnyaneshwar

Quoted 33 lines

Bspec: 49213

---
 drivers/gpu/drm/i915/display/intel_display_power.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +0 -3
index 34465d56def0..9c20459053fe 100644
@@ -1126,9 +1126,6 @@ static void gen12_dbuf_slices_config(struct
 intel_display *display)  {
 	enum dbuf_slice slice;
 
-	if (display->platform.alderlake_p)
-		return;
-
 	for_each_dbuf_slice(display, slice)
 		intel_de_rmw(display, DBUF_CTL_S(slice),
 			     DBUF_TRACKER_STATE_SERVICE_MASK, @@ -

1681,7 +1678,7 @@ static void icl_display_core_init(struct intel_display *display,

drivers/gpu/drm/i915/display/intel_display_power.c +1 -2
 	/* 4. Enable CDCLK. */
 	intel_cdclk_init_hw(display);
 
-	if (DISPLAY_VER(display) >= 12)
+	if (DISPLAY_VER(display) == 12 || display->platform.dg2)
 		gen12_dbuf_slices_config(display);
 
 	/* 5. Enable DBUF. */
--

2.25.1