Skip to contentSkip to conversation

drm/i915/guc: Remove log size module parameters

PATCH Superseded Joonas Lahtinen 3 participants 4 messages Aug 26, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Joonas Lahtinen

author maintainer
#0 lore raw

PATCH 1/1 drm/i915/guc: Remove log size module parameters

Remove the module parameters for configuring GuC log size.

We should instead rely on tuning the defaults to be usable for reporting bugs.

Fixes 8ad0152afb1b ("drm/i915/guc: Make GuC log sizes runtime configurable")
Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc John Harrison <[email protected]>
Cc Alan Previn <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  7 +++----
 drivers/gpu/drm/i915/i915_params.c         | 12 ------------
 drivers/gpu/drm/i915/i915_params.h         |  3 ---
 3 files changed, 3 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3 -4
index 3a2243b4ac9f..909e5079657b 100644
@@ -79,9 +79,9 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
 		}
 	};
 	s32 params[GUC_LOG_SECTIONS_LIMIT] = {
-		i915->params.guc_log_size_crash,
-		i915->params.guc_log_size_debug,
-		i915->params.guc_log_size_capture,
+		GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
+		GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
+		GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
 	};
 	int i;
 
@@ -90,7 +90,6 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
 
 	/* If debug size > 1MB then bump default crash size to keep the same units */
 	if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
-	    (i915->params.guc_log_size_crash == -1) &&
 	    GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
 		log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
 
drivers/gpu/drm/i915/i915_params.c +0 -12
index 06ca5b822111..6fc475a5db61 100644
@@ -171,18 +171,6 @@ i915_param_named(guc_log_level, int, 0400,
 	"GuC firmware logging level. Requires GuC to be loaded. "
 	"(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
-i915_param_named(guc_log_size_crash, int, 0400,
-	"GuC firmware logging buffer size for crash dumps (in MB)"
-	"(-1=auto [default], NB: max = 4, other restrictions apply)");
-
-i915_param_named(guc_log_size_debug, int, 0400,
-	"GuC firmware logging buffer size for debug logs (in MB)"
-	"(-1=auto [default], NB: max = 16, other restrictions apply)");
-
-i915_param_named(guc_log_size_capture, int, 0400,
-	"GuC error capture register dump buffer size (in MB)"
-	"(-1=auto [default], NB: max = 4, other restrictions apply)");
-
 i915_param_named_unsafe(guc_firmware_path, charp, 0400,
 	"GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +0 -3
index f684d1ab8707..2733cb6cfe09 100644
@@ -61,9 +61,6 @@ struct drm_printer;
 	param(int, invert_brightness, 0, 0600) \
 	param(int, enable_guc, -1, 0400) \
 	param(int, guc_log_level, -1, 0400) \
-	param(int, guc_log_size_crash, -1, 0400) \
-	param(int, guc_log_size_debug, -1, 0400) \
-	param(int, guc_log_size_capture, -1, 0400) \
 	param(char *, guc_firmware_path, NULL, 0400) \
 	param(char *, huc_firmware_path, NULL, 0400) \
 	param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
2.37.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Joonas Lahtinen

Remove the module parameters for configuring GuC log size.

We should instead rely on tuning the defaults to be usable for reporting bugs.

Quoted 76 lines
Fixes 8ad0152afb1b ("drm/i915/guc: Make GuC log sizes runtime configurable")
Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc John Harrison <[email protected]>
Cc Alan Previn <[email protected]>
---
 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c |  7 +++----
 drivers/gpu/drm/i915/i915_params.c         | 12 ------------
 drivers/gpu/drm/i915/i915_params.h         |  3 ---
 3 files changed, 3 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +3 -4
index 3a2243b4ac9f..909e5079657b 100644
@@ -79,9 +79,9 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
 		}
 	};
 	s32 params[GUC_LOG_SECTIONS_LIMIT] = {
-		i915->params.guc_log_size_crash,
-		i915->params.guc_log_size_debug,
-		i915->params.guc_log_size_capture,
+		GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE,
+		GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE,
+		GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE,
 	};
 	int i;
 
@@ -90,7 +90,6 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
 
 	/* If debug size > 1MB then bump default crash size to keep the same units */
 	if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M &&
-	    (i915->params.guc_log_size_crash == -1) &&
 	    GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
 		log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
 
drivers/gpu/drm/i915/i915_params.c +0 -12
index 06ca5b822111..6fc475a5db61 100644
@@ -171,18 +171,6 @@ i915_param_named(guc_log_level, int, 0400,
 	"GuC firmware logging level. Requires GuC to be loaded. "
 	"(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)");
 
-i915_param_named(guc_log_size_crash, int, 0400,
-	"GuC firmware logging buffer size for crash dumps (in MB)"
-	"(-1=auto [default], NB: max = 4, other restrictions apply)");
-
-i915_param_named(guc_log_size_debug, int, 0400,
-	"GuC firmware logging buffer size for debug logs (in MB)"
-	"(-1=auto [default], NB: max = 16, other restrictions apply)");
-
-i915_param_named(guc_log_size_capture, int, 0400,
-	"GuC error capture register dump buffer size (in MB)"
-	"(-1=auto [default], NB: max = 4, other restrictions apply)");
-
 i915_param_named_unsafe(guc_firmware_path, charp, 0400,
 	"GuC firmware path to use instead of the default one");
 
drivers/gpu/drm/i915/i915_params.h +0 -3
index f684d1ab8707..2733cb6cfe09 100644
@@ -61,9 +61,6 @@ struct drm_printer;
 	param(int, invert_brightness, 0, 0600) \
 	param(int, enable_guc, -1, 0400) \
 	param(int, guc_log_level, -1, 0400) \
-	param(int, guc_log_size_crash, -1, 0400) \
-	param(int, guc_log_size_debug, -1, 0400) \
-	param(int, guc_log_size_capture, -1, 0400) \
 	param(char *, guc_firmware_path, NULL, 0400) \
 	param(char *, huc_firmware_path, NULL, 0400) \
 	param(char *, dmc_firmware_path, NULL, 0400) \
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#3 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/guc: Remove log size module parameters

In reply to Joonas Lahtinen
== Series Details ==

== Series Details ==

Series: drm/i915/guc: Remove log size module parameters
URL : https://patchwork.freedesktop.org/series/107780/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12030 -> Patchwork_107780v1
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_107780v1, please notify your bug team 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_107780v1/index.html

Participating hosts (33 -> 36)
------------------------------

Additional (4): bat-rplp-1 bat-dg2-10 bat-adlp-4 bat-jsl-3
Missing (1): fi-rkl-11600

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@guc:
- fi-adl-ddr5: [PASS][1] -> [DMESG-WARN][2] +41 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/fi-adl-ddr5/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/fi-adl-ddr5/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@ring_submission:
- bat-adlp-4: NOTRUN -> [DMESG-WARN][3] +41 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@i915_selftest@live@ring_submission.html

* igt@i915_selftest@live@slpc:
- fi-cfl-guc: [PASS][4] -> [DMESG-WARN][5] +41 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/fi-cfl-guc/igt@i915_selftest@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/fi-cfl-guc/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@vma:
- fi-rkl-guc: [PASS][6] -> [DMESG-WARN][7] +41 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/fi-rkl-guc/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/fi-rkl-guc/igt@i915_selftest@[email protected]
- bat-dg1-6: [PASS][8] -> [DMESG-WARN][9] +38 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/bat-dg1-6/igt@i915_selftest@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-dg1-6/igt@i915_selftest@[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-dg2-10}: NOTRUN -> [DMESG-WARN][10]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-dg2-10/igt@[email protected]

* igt@i915_selftest@live@client:
- {bat-dg2-8}: [PASS][11] -> [DMESG-WARN][12] +39 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/bat-dg2-8/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-dg2-8/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@coherency:
- {bat-dg2-9}: [PASS][13] -> [DMESG-WARN][14] +40 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/bat-dg2-9/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-dg2-9/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@perf:
- {bat-dg2-11}: [PASS][15] -> [DMESG-WARN][16] +37 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/bat-dg2-11/igt@i915_selftest@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-dg2-11/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@sanitycheck:
- {bat-rplp-1}: NOTRUN -> [DMESG-WARN][17] +41 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-rplp-1/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@workarounds:
- {bat-rpls-1}: [PASS][18] -> [DMESG-WARN][19] +27 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/bat-rpls-1/igt@i915_selftest@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-rpls-1/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@fbdev@read:
- bat-adlp-4: NOTRUN -> [SKIP][20] ([i915#2582]) +4 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- bat-adlp-4: NOTRUN -> [SKIP][21] ([i915#4613]) +3 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-adlp-4: NOTRUN -> [SKIP][22] ([i915#3282])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@gem_tiled_pread_basic.html

* igt@i915_pm_backlight@basic-brightness:
- bat-adlp-4: NOTRUN -> [SKIP][23] ([i915#1155])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@i915_pm_rps@basic-api:
- bat-adlp-4: NOTRUN -> [SKIP][24] ([i915#6621])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- bat-dg1-6: [PASS][25] -> [DMESG-FAIL][26] ([i915#4494] / [i915#4957])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12030/bat-dg1-6/igt@i915_selftest@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-dg1-6/igt@i915_selftest@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- bat-adlp-4: NOTRUN -> [SKIP][27] ([fdo#111827]) +8 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@kms_flip@basic-flip-vs-wf_vblank:
- bat-adlp-4: NOTRUN -> [SKIP][28] ([i915#3637]) +3 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@kms_flip@basic-flip-vs-wf_vblank.html

* igt@kms_force_connector_basic@force-load-detect:
- bat-adlp-4: NOTRUN -> [SKIP][29] ([i915#4093]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- bat-adlp-4: NOTRUN -> [SKIP][30] ([i915#4342])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- bat-adlp-4: NOTRUN -> [SKIP][31] ([i915#3546]) +10 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@kms_psr@sprite_plane_onoff:
- bat-adlp-4: NOTRUN -> [SKIP][32] ([i915#1072]) +3 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@kms_psr@sprite_plane_onoff.html

* igt@kms_setmode@basic-clone-single-crtc:
- bat-adlp-4: NOTRUN -> [SKIP][33] ([i915#3555] / [i915#4579])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- bat-adlp-4: NOTRUN -> [SKIP][34] ([fdo#109295] / [i915#3546] / [i915#3708])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@prime_vgem@basic-userptr:
- bat-adlp-4: NOTRUN -> [SKIP][35] ([fdo#109295] / [i915#3301] / [i915#3708])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-adlp-4: NOTRUN -> [SKIP][36] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_107780v1/bat-adlp-4/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#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3003]: https://gitlab.freedesktop.org/drm/intel/issues/3003
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4093]: https://gitlab.freedesktop.org/drm/intel/issues/4093
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4342]: https://gitlab.freedesktop.org/drm/intel/issues/4342
[i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4957]: https://gitlab.freedesktop.org/drm/intel/issues/4957
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5153]: https://gitlab.freedesktop.org/drm/intel/issues/5153
[i915#5278]: https://gitlab.freedesktop.org/drm/intel/issues/5278
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6599]: https://gitlab.freedesktop.org/drm/intel/issues/6599
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6643]: https://gitlab.freedesktop.org/drm/intel/issues/6643

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

* Linux: CI_DRM_12030 -> Patchwork_107780v1

CI-20190529: 20190529
CI_DRM_12030: 71b77bb6545e058474ba8947a820f438b3e56666 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6636: 1298b5f0e1b3e010657ffba41d2e775fab028e08 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_107780v1: 71b77bb6545e058474ba8947a820f438b3e56666 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

20bdc9df8c20 drm/i915/guc: Remove log size module parameters

== Logs ==

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