Skip to contentSkip to conversation

Enable GuC SLPC default balancing strategies

PATCH New Rodrigo Vivi 2 participants 7 messages Dec 16, 2024 – Dec 18, 2024

Subsystems (2)
lore
Share & tools
lore

Rodrigo Vivi

author maintainer
#0 lore raw

cover Enable GuC SLPC default balancing strategies

They are complementary to waitboost and they can potentially improve performance in some very limited cases like when system is in high cpu and gpu usage and under TDP constrains.

Rodrigo Vivi (2):
drm/i915/guc/slpc: Enable GuC SLPC default strategies drm/i915/guc/slpc: Print more SLPC debug status information

 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 34 ++++++++++-----------
 1 file changed, 17 insertions(+), 17 deletions(-)
Signature · 1 line
2.47.1
author maintainer
#1 lore raw

PATCH 1/2 drm/i915/guc/slpc: Enable GuC SLPC default strategies

The Balancer and DCC strategies were left off on a fear that these strategies would conflict with the i915's waitboost. However, these strategies are only active in certain conditions where the system is TDP limited. So, they don't conflict, but help the waitboost by guaranteeing a bit more of GT frequency.

Without these strategies we were likely leaving some performance behind on some scenarious.

Cc Vinay Belgaumkar <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 17 -----------------
 1 file changed, 17 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c +0 -17
index 706fffca698b..722da8a7f852 100644
@@ -76,17 +76,6 @@ static void slpc_mem_set_enabled(struct slpc_shared_data *data,
 	slpc_mem_set_param(data, disable_id, 0);
 }
 
-static void slpc_mem_set_disabled(struct slpc_shared_data *data,
-				  u8 enable_id, u8 disable_id)
-{
-	/*
-	 * Disabling a param involves setting the enable_id
-	 * to 0 and disable_id to 1.
-	 */
-	slpc_mem_set_param(data, disable_id, 1);
-	slpc_mem_set_param(data, enable_id, 0);
-}
-
 static u32 slpc_get_state(struct intel_guc_slpc *slpc)
 {
 	struct slpc_shared_data *data;
@@ -366,12 +355,6 @@ static void slpc_shared_data_reset(struct slpc_shared_data *data)
 	/* Enable only GTPERF task, disable others */
 	slpc_mem_set_enabled(data, SLPC_PARAM_TASK_ENABLE_GTPERF,
 			     SLPC_PARAM_TASK_DISABLE_GTPERF);
-
-	slpc_mem_set_disabled(data, SLPC_PARAM_TASK_ENABLE_BALANCER,
-			      SLPC_PARAM_TASK_DISABLE_BALANCER);
-
-	slpc_mem_set_disabled(data, SLPC_PARAM_TASK_ENABLE_DCC,
-			      SLPC_PARAM_TASK_DISABLE_DCC);
 }
 
 /**
Signature · 1 line
2.47.1
author maintainer
#2 lore raw

PATCH 2/2 drm/i915/guc/slpc: Print more SLPC debug status information

In reply to Rodrigo Vivi

Let's peak on the Balancer and DCC status, now that we are using the default strategies.

Cc Vinay Belgaumkar <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c +17 -0
index 722da8a7f852..8b23e3a9f14e 100644
@@ -774,6 +774,23 @@ int intel_guc_slpc_print_info(struct intel_guc_slpc *slpc, struct drm_printer *p
 			drm_printf(p, "\tSLPC state: %s\n", slpc_get_state_string(slpc));
 			drm_printf(p, "\tGTPERF task active: %s\n",
 				   str_yes_no(slpc_tasks->status & SLPC_GTPERF_TASK_ENABLED));
+			drm_printf(p, "\tDCC enabled: %s\n",
+			   str_yes_no(slpc_tasks->status &
+				      SLPC_DCC_TASK_ENABLED));
+			drm_printf(p, "\tDCC in: %s\n",
+				   str_yes_no(slpc_tasks->status & SLPC_IN_DCC));
+			drm_printf(p, "\tBalancer enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_BALANCER_ENABLED));
+			drm_printf(p, "\tIBC enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_IBC_TASK_ENABLED));
+			drm_printf(p, "\tBalancer IA LMT enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_BALANCER_IA_LMT_ENABLED));
+			drm_printf(p, "\tBalancer IA LMT active: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_BALANCER_IA_LMT_ACTIVE));
 			drm_printf(p, "\tMax freq: %u MHz\n",
 				   slpc_decode_max_freq(slpc));
 			drm_printf(p, "\tMin freq: %u MHz\n",
Signature · 1 line
2.47.1
author maintainer
#3 lore raw

PATCH 1/1 drm/i915/guc/slpc: Print more SLPC debug status information

Let's peak on the Balancer and DCC status, now that we are using the default strategies.

v2: fix identation

Cc Vinay Belgaumkar <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c +17 -0
index 722da8a7f852..7a9a79fb46fb 100644
@@ -774,6 +774,23 @@ int intel_guc_slpc_print_info(struct intel_guc_slpc *slpc, struct drm_printer *p
 			drm_printf(p, "\tSLPC state: %s\n", slpc_get_state_string(slpc));
 			drm_printf(p, "\tGTPERF task active: %s\n",
 				   str_yes_no(slpc_tasks->status & SLPC_GTPERF_TASK_ENABLED));
+			drm_printf(p, "\tDCC enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_DCC_TASK_ENABLED));
+			drm_printf(p, "\tDCC in: %s\n",
+				   str_yes_no(slpc_tasks->status & SLPC_IN_DCC));
+			drm_printf(p, "\tBalancer enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_BALANCER_ENABLED));
+			drm_printf(p, "\tIBC enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_IBC_TASK_ENABLED));
+			drm_printf(p, "\tBalancer IA LMT enabled: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_BALANCER_IA_LMT_ENABLED));
+			drm_printf(p, "\tBalancer IA LMT active: %s\n",
+				   str_yes_no(slpc_tasks->status &
+					      SLPC_BALANCER_IA_LMT_ACTIVE));
 			drm_printf(p, "\tMax freq: %u MHz\n",
 				   slpc_decode_max_freq(slpc));
 			drm_printf(p, "\tMin freq: %u MHz\n",
Signature · 1 line
2.47.1
#4 lore raw

✗ Fi.CI.CHECKPATCH: warning for Enable GuC SLPC default balancing strategies

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: Enable GuC SLPC default balancing strategies
URL : https://patchwork.freedesktop.org/series/142676/
State : warning

== Summary ==

Error: dim checkpatch failed
234da58b3759 drm/i915/guc/slpc: Enable GuC SLPC default strategies 5ca3fb3b7d8c drm/i915/guc/slpc: Print more SLPC debug status information -:21: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #21: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c:778:
+ drm_printf(p, "\tDCC enabled: %s\n",
+ str_yes_no(slpc_tasks->status &

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

#5 lore raw

✗ i915.CI.BAT: failure for Enable GuC SLPC default balancing strategies

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: Enable GuC SLPC default balancing strategies
URL : https://patchwork.freedesktop.org/series/142676/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_15855 -> Patchwork_142676v1
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (45 -> 44)
------------------------------

Missing (1): fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@gt_engines:
- bat-twl-2: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-twl-2/igt@i915_selftest@live@gt_engines.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-twl-2/igt@i915_selftest@live@gt_engines.html
- bat-twl-1: [PASS][3] -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-twl-1/igt@i915_selftest@live@gt_engines.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-twl-1/igt@i915_selftest@live@gt_engines.html

* igt@i915_selftest@live@gt_lrc:
- bat-twl-1: [PASS][5] -> [DMESG-FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-twl-1/igt@i915_selftest@live@gt_lrc.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-twl-1/igt@i915_selftest@live@gt_lrc.html

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

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

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- fi-pnv-d510: NOTRUN -> [SKIP][7] +3 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/fi-pnv-d510/igt@[email protected]

* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: NOTRUN -> [ABORT][8] ([i915#13169])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/fi-pnv-d510/igt@[email protected]

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

#### Possible fixes ####

* igt@i915_selftest@live@workarounds:
- bat-arlh-3: [ABORT][11] ([i915#12061]) -> [PASS][12] +1 other test pass
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-arlh-3/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-arlh-3/igt@i915_selftest@[email protected]
- bat-arls-5: [ABORT][13] ([i915#12061]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-arls-5/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-arls-5/igt@i915_selftest@[email protected]
- {bat-mtlp-9}: [ABORT][15] ([i915#12061]) -> [PASS][16] +1 other test pass
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-mtlp-9/igt@i915_selftest@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-mtlp-9/igt@i915_selftest@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- {bat-arls-6}: [SKIP][17] ([i915#13272]) -> [PASS][18] +2 other tests pass
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15855/bat-arls-6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v1/bat-arls-6/igt@[email protected]

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

[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#13169]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13169
[i915#13272]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13272
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197

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

* Linux: CI_DRM_15855 -> Patchwork_142676v1

CI-20190529: 20190529
CI_DRM_15855: 8bfb48c045396305771aaea35f06d5ef3bf3a191 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8157: 48a70f6795e6d68b9fae275261ae3b09d3401fe1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_142676v1: 8bfb48c045396305771aaea35f06d5ef3bf3a191 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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

#6 lore raw

✗ i915.CI.BAT: failure for Enable GuC SLPC default balancing strategies (rev2)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: Enable GuC SLPC default balancing strategies (rev2)
URL : https://patchwork.freedesktop.org/series/142676/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_15861 -> Patchwork_142676v2
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (45 -> 44)
------------------------------

Missing (1): fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@gt_engines:
- bat-twl-2: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-twl-2/igt@i915_selftest@live@gt_engines.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-twl-2/igt@i915_selftest@live@gt_engines.html
- bat-twl-1: [PASS][3] -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-twl-1/igt@i915_selftest@live@gt_engines.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-twl-1/igt@i915_selftest@live@gt_engines.html

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

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

### IGT changes ###

#### Issues hit ####

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

* igt@i915_pm_rpm@module-reload:
- bat-dg2-11: [PASS][7] -> [FAIL][8] ([i915#12903])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-dg2-11/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-dg2-11/igt@[email protected]
- bat-rpls-4: [PASS][9] -> [FAIL][10] ([i915#12903])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-rpls-4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-rpls-4/igt@[email protected]

* igt@i915_selftest@live:
- bat-mtlp-8: [PASS][11] -> [ABORT][12] ([i915#12061]) +1 other test abort
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-mtlp-8/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-mtlp-8/igt@[email protected]
- bat-arlh-2: [PASS][13] -> [ABORT][14] ([i915#13091]) +1 other test abort
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-arlh-2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-arlh-2/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-mtlp-6: [PASS][15] -> [ABORT][16] ([i915#12061]) +1 other test abort
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-mtlp-6/igt@i915_selftest@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-mtlp-6/igt@i915_selftest@[email protected]

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

#### Possible fixes ####

* igt@i915_selftest@live:
- fi-skl-6600u: [INCOMPLETE][19] ([i915#13050]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/fi-skl-6600u/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/fi-skl-6600u/igt@[email protected]

* igt@i915_selftest@live@gt_timelines:
- fi-skl-6600u: [INCOMPLETE][21] -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/fi-skl-6600u/igt@i915_selftest@live@gt_timelines.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/fi-skl-6600u/igt@i915_selftest@live@gt_timelines.html

* igt@i915_selftest@live@workarounds:
- {bat-mtlp-9}: [ABORT][23] ([i915#12061]) -> [PASS][24] +1 other test pass
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-mtlp-9/igt@i915_selftest@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/bat-mtlp-9/igt@i915_selftest@[email protected]
- {bat-arls-6}: [ABORT][25] ([i915#12061]) -> [PASS][26] +1 other test pass
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15861/bat-arls-6/igt@i915_selftest@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_142676v2/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#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12903]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12903
[i915#13050]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13050
[i915#13091]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13091
[i915#13203]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13203
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197

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

* Linux: CI_DRM_15861 -> Patchwork_142676v2

CI-20190529: 20190529
CI_DRM_15861: 561947cbde53a2d22434977709610f42e4f0229b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8160: 4f10d98c56498ab29445ae0b06aab6f5a8ec2eca @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_142676v2: 561947cbde53a2d22434977709610f42e4f0229b @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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