On Mon, 2023-10-16 at 14:16 +0300, Jouni Högander wrote: > Signed-off-by: Jouni Högander <jouni.hogander@xxxxxxxxx> > --- > drivers/gpu/drm/i915/display/intel_display_params.c | 3 +++ > drivers/gpu/drm/i915/display/intel_display_params.h | 1 + > drivers/gpu/drm/i915/display/intel_dp.c | 6 +++--- > drivers/gpu/drm/i915/i915_params.c | 3 --- > drivers/gpu/drm/i915/i915_params.h | 1 - > 5 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display_params.c b/drivers/gpu/drm/i915/display/intel_display_params.c > index 3045a1b9b704..8e6353c1c25e 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_params.c > +++ b/drivers/gpu/drm/i915/display/intel_display_params.c > @@ -93,6 +93,9 @@ intel_display_param_named(verbose_state_checks, bool, 0400, > intel_display_param_named_unsafe(nuclear_pageflip, bool, 0400, > "Force enable atomic functionality on platforms that don't have full support yet."); > > +intel_display_param_named_unsafe(enable_dp_mst, bool, 0400, > + "Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true)"); > + > intel_display_param_named_unsafe(enable_fbc, int, 0400, > "Enable frame buffer compression for power savings " > "(default: -1 (use per-chip default))"); > diff --git a/drivers/gpu/drm/i915/display/intel_display_params.h b/drivers/gpu/drm/i915/display/intel_display_params.h > index d25e17f88a78..83c4429ada35 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_params.h > +++ b/drivers/gpu/drm/i915/display/intel_display_params.h > @@ -41,6 +41,7 @@ struct drm_i915_private; > param(bool, disable_display, false, 0400) \ > param(bool, verbose_state_checks, true, 0) \ > param(bool, nuclear_pageflip, false, 0400) \ > + param(bool, enable_dp_mst, true, 0600) \ > param(int, enable_fbc, -1, 0600) \ > param(int, enable_psr, -1, 0600) \ > param(bool, psr_safest_params, false, 0400) \ > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c > index 4f6835a7578e..f90d8cace6a6 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -3749,7 +3749,7 @@ intel_dp_can_mst(struct intel_dp *intel_dp) > { > struct drm_i915_private *i915 = dp_to_i915(intel_dp); > > - return i915->params.enable_dp_mst && > + return i915->display.params.enable_dp_mst && > intel_dp_mst_source_support(intel_dp) && > drm_dp_read_mst_cap(&intel_dp->aux, intel_dp->dpcd); > } > @@ -3767,13 +3767,13 @@ intel_dp_configure_mst(struct intel_dp *intel_dp) > encoder->base.base.id, encoder->base.name, > str_yes_no(intel_dp_mst_source_support(intel_dp)), > str_yes_no(sink_can_mst), > - str_yes_no(i915->params.enable_dp_mst)); > + str_yes_no(i915->display.params.enable_dp_mst)); > > if (!intel_dp_mst_source_support(intel_dp)) > return; > > intel_dp->is_mst = sink_can_mst && > - i915->params.enable_dp_mst; > + i915->display.params.enable_dp_mst; > > drm_dp_mst_topology_mgr_set_mst(&intel_dp->mst_mgr, > intel_dp->is_mst); > diff --git a/drivers/gpu/drm/i915/i915_params.c b/drivers/gpu/drm/i915/i915_params.c > index 18424873442d..de43048543e8 100644 > --- a/drivers/gpu/drm/i915/i915_params.c > +++ b/drivers/gpu/drm/i915/i915_params.c > @@ -114,9 +114,6 @@ i915_param_named_unsafe(dmc_firmware_path, charp, 0400, > i915_param_named_unsafe(gsc_firmware_path, charp, 0400, > "GSC firmware path to use instead of the default one"); > > -i915_param_named_unsafe(enable_dp_mst, bool, 0400, > - "Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true)"); > - > #if IS_ENABLED(CONFIG_DRM_I915_DEBUG) > i915_param_named_unsafe(inject_probe_failure, uint, 0400, > "Force an error after a number of failure check points (0:disabled (default), N:force failure at the Nth failure check point)"); > diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h > index c7fff571db2c..1315d7fac850 100644 > --- a/drivers/gpu/drm/i915/i915_params.h > +++ b/drivers/gpu/drm/i915/i915_params.h > @@ -64,7 +64,6 @@ struct drm_printer; > /* leave bools at the end to not create holes */ \ > param(bool, enable_hangcheck, true, 0600) \ > param(bool, error_capture, true, IS_ENABLED(CONFIG_DRM_I915_CAPTURE_ERROR) ? 0600 : 0) \ > - param(bool, enable_dp_mst, true, 0600) \ > param(bool, enable_gvt, false, IS_ENABLED(CONFIG_DRM_I915_GVT) ? 0400 : 0) > > #define MEMBER(T, member, ...) T member; Reviewed-by: Luca Coelho <luciano.coelho@xxxxxxxxx> -- Cheers, Luca.