@@ -1016,8 +1016,7 @@ static int guc_create_log_relay_file(struct intel_guc *guc)
/* Keep the size of sub buffers same as shared log buffer */
subbuf_size = guc->log.obj->base.size;
- /* TODO: Decide based on the User's input */
- n_subbufs = 4;
+ n_subbufs = i915.guc_log_buffer_nr
guc_log_relay_chan = relay_open("guc_log", log_dir,
subbuf_size, n_subbufs, &relay_callbacks, dev);
@@ -57,6 +57,7 @@ struct i915_params i915 __read_mostly = {
.enable_guc_loading = -1,
.enable_guc_submission = -1,
.guc_log_level = -1,
+ .guc_log_buffer_nr = 4,
.enable_dp_mst = true,
.inject_load_failure = 0,
.enable_dpcd_backlight = false,
@@ -214,6 +215,10 @@ module_param_named(guc_log_level, i915.guc_log_level, int, 0400);
MODULE_PARM_DESC(guc_log_level,
"GuC firmware logging level (-1:disabled (default), 0-3:enabled)");
+module_param_named(guc_log_buffer_nr, i915.guc_log_buffer_nr, int, 0400);
+MODULE_PARM_DESC(guc_log_buffer_nr,
+ "Number of sub buffers to store GuC firmware logs (default: 4)");
+
module_param_named_unsafe(enable_dp_mst, i915.enable_dp_mst, bool, 0600);
MODULE_PARM_DESC(enable_dp_mst,
"Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true)");
@@ -48,6 +48,7 @@ struct i915_params {
int enable_guc_loading;
int enable_guc_submission;
int guc_log_level;
+ int guc_log_buffer_nr;
int use_mmio_flip;
int mmio_debug;
int edp_vswing;