From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Golani,
Mitulkumar Ajitkumar" <mitulkumar.ajitkumar.golani@intel.com>,
"Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: RE: [PATCH v1] drm/i915/display: Add command line param for DC balance
Date: Fri, 04 Sep 2026 11:44:07 +0300 [thread overview]
Message-ID: <9d5bd09bf9446fd8142804271d52dbc5964e5e72@intel.com> (raw)
In-Reply-To: <IA1PR11MB6348B33BDBECAB92F9E5F87EB2B52@IA1PR11MB6348.namprd11.prod.outlook.com>
On Fri, 04 Sep 2026, "Golani, Mitulkumar Ajitkumar" <mitulkumar.ajitkumar.golani@intel.com> wrote:
>> -----Original Message-----
>> From: Borah, Chaitanya Kumar <chaitanya.kumar.borah@intel.com>
>> Sent: 28 August 2026 15:46
>> To: Golani, Mitulkumar Ajitkumar <mitulkumar.ajitkumar.golani@intel.com>;
>> intel-gfx@lists.freedesktop.org
>> Cc: intel-xe@lists.freedesktop.org; Nautiyal, Ankit K
>> <ankit.k.nautiyal@intel.com>
>> Subject: Re: [PATCH v1] drm/i915/display: Add command line param for DC
>> balance
>>
>>
>>
>> On 8/28/2026 2:20 PM, Mitul Golani wrote:
>> > Add a new module parameter 'enable_dc_balance' to allow enabling or
>> > disabling the VRR DC balance feature at runtime. The DC balance
>> > computation in intel_vrr_dc_balance_compute_config() now honours this
>> > parameter, so the feature can be toggled without recompiling.
>> >
>> > Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
>> > ---
>> > 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_vrr.c | 4 +++-
>> > 3 files changed, 7 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/display/intel_display_params.c
>> > b/drivers/gpu/drm/i915/display/intel_display_params.c
>> > index 2aed110c5b09..ed3aa84c5d43 100644
>> > --- a/drivers/gpu/drm/i915/display/intel_display_params.c
>> > +++ b/drivers/gpu/drm/i915/display/intel_display_params.c
>> > @@ -120,6 +120,9 @@ intel_display_param_named_unsafe(enable_psr, int,
>> 0400,
>> > "(0=disabled, 1=enable up to PSR1, 2=enable up to PSR2) "
>> > "Default: -1 (use per-chip default)");
>> >
>> > +intel_display_param_named_unsafe(enable_dc_balance, int, 0400,
>> > + "Enable DC Balance (0=disabled, 1=enable). Default: 1 (use per-chip
>> > +default)");
>> > +
>> > intel_display_param_named_unsafe(enable_panel_replay, int, 0400,
>> > "Enable Panel Replay (0=disabled, 1=enabled). 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 b95ecf728daa..8c28c27e2c46 100644
>> > --- a/drivers/gpu/drm/i915/display/intel_display_params.h
>> > +++ b/drivers/gpu/drm/i915/display/intel_display_params.h
>> > @@ -46,6 +46,7 @@ struct drm_printer;
>> > param(bool, enable_dp_mst, true, 0600) \
>> > param(int, enable_fbc, -1, 0600) \
>> > param(int, enable_psr, -1, 0600) \
>> > + param(int, enable_dc_balance, false, 0600) \
>>
>> You mean true?
>
> Yes should be true by default. I will update in next revision.
My comment on the rationale of the whole module parameter is more
important, but if we end up with this, the parameter types and values
need to match, i.e. int and integers, bool and true/false.
BR,
Jani.
>
> Thanks
>
>>
>> > param(int, enable_panel_replay, -1, 0600) \
>> > param(bool, psr_safest_params, false, 0400) \
>> > param(bool, enable_psr2_sel_fetch, true, 0400) \ diff --git
>> > a/drivers/gpu/drm/i915/display/intel_vrr.c
>> > b/drivers/gpu/drm/i915/display/intel_vrr.c
>> > index e36db1174440..1698c54e258b 100644
>> > --- a/drivers/gpu/drm/i915/display/intel_vrr.c
>> > +++ b/drivers/gpu/drm/i915/display/intel_vrr.c
>> > @@ -439,10 +439,12 @@ static bool intel_vrr_dc_balance_possible(const
>> struct intel_crtc_state *crtc_st
>> > static void
>> > intel_vrr_dc_balance_compute_config(struct intel_crtc_state *crtc_state)
>> > {
>> > + struct intel_display *display = to_intel_display(crtc_state);
>> > int guardband_usec, adjustment_usec;
>> > struct drm_display_mode *adjusted_mode =
>> > &crtc_state->hw.adjusted_mode;
>> >
>> > - if (!intel_vrr_dc_balance_possible(crtc_state) || !crtc_state-
>> >vrr.enable)
>> > + if (!intel_vrr_dc_balance_possible(crtc_state) ||
>> > + !crtc_state->vrr.enable || !display->params.enable_dc_balance)
>> > return;
>> >
>> > crtc_state->vrr.dc_balance.vmax = crtc_state->vrr.vmax;
>
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-09-04 8:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 8:50 [PATCH v1] drm/i915/display: Add command line param for DC balance Mitul Golani
2026-08-28 9:06 ` ✗ CI.checkpatch: warning for " Patchwork
2026-08-28 9:07 ` [PATCH v1] " sashiko-bot
2026-08-28 9:07 ` ✓ CI.KUnit: success for " Patchwork
2026-08-28 9:46 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-28 10:15 ` [PATCH v1] " Borah, Chaitanya Kumar
2026-09-04 5:53 ` Golani, Mitulkumar Ajitkumar
2026-09-04 8:44 ` Jani Nikula [this message]
2026-08-28 11:00 ` ✓ Xe.CI.FULL: success for " Patchwork
2026-09-04 8:28 ` [PATCH v1] " Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d5bd09bf9446fd8142804271d52dbc5964e5e72@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mitulkumar.ajitkumar.golani@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox