Commit f54e515c authored by Joonas Lahtinen's avatar Joonas Lahtinen

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.

v2:
- Use correct 1M unit

Fixes: 8ad0152a ("drm/i915/guc: Make GuC log sizes runtime configurable")
Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220826092343.184568-1-joonas.lahtinen@linux.intel.com
parent 25bcc828
...@@ -79,9 +79,9 @@ static void _guc_log_init_sizes(struct intel_guc_log *log) ...@@ -79,9 +79,9 @@ static void _guc_log_init_sizes(struct intel_guc_log *log)
} }
}; };
s32 params[GUC_LOG_SECTIONS_LIMIT] = { s32 params[GUC_LOG_SECTIONS_LIMIT] = {
i915->params.guc_log_size_crash, GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE / SZ_1M,
i915->params.guc_log_size_debug, GUC_LOG_DEFAULT_DEBUG_BUFFER_SIZE / SZ_1M,
i915->params.guc_log_size_capture, GUC_LOG_DEFAULT_CAPTURE_BUFFER_SIZE / SZ_1M,
}; };
int i; int i;
...@@ -90,7 +90,6 @@ static void _guc_log_init_sizes(struct intel_guc_log *log) ...@@ -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 debug size > 1MB then bump default crash size to keep the same units */
if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M && 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) GUC_LOG_DEFAULT_CRASH_BUFFER_SIZE < SZ_1M)
log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M; log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M;
......
...@@ -171,18 +171,6 @@ i915_param_named(guc_log_level, int, 0400, ...@@ -171,18 +171,6 @@ i915_param_named(guc_log_level, int, 0400,
"GuC firmware logging level. Requires GuC to be loaded. " "GuC firmware logging level. Requires GuC to be loaded. "
"(-1=auto [default], 0=disable, 1..4=enable with verbosity min..max)"); "(-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, i915_param_named_unsafe(guc_firmware_path, charp, 0400,
"GuC firmware path to use instead of the default one"); "GuC firmware path to use instead of the default one");
......
...@@ -61,9 +61,6 @@ struct drm_printer; ...@@ -61,9 +61,6 @@ struct drm_printer;
param(int, invert_brightness, 0, 0600) \ param(int, invert_brightness, 0, 0600) \
param(int, enable_guc, -1, 0400) \ param(int, enable_guc, -1, 0400) \
param(int, guc_log_level, -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 *, guc_firmware_path, NULL, 0400) \
param(char *, huc_firmware_path, NULL, 0400) \ param(char *, huc_firmware_path, NULL, 0400) \
param(char *, dmc_firmware_path, NULL, 0400) \ param(char *, dmc_firmware_path, NULL, 0400) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment