All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>,
	Suraj Kandpal <suraj.kandpal@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/dp: Clear VSC SDP during post ddi disable routine
Date: Wed, 24 Jul 2024 18:18:55 +0300	[thread overview]
Message-ID: <87ed7ikecg.fsf@intel.com> (raw)
In-Reply-To: <5e9a2674-8582-4fd9-9495-440322d457fc@intel.com>

On Wed, 24 Jul 2024, "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com> wrote:
> On 7/23/2024 9:58 AM, Suraj Kandpal wrote:
>> Clear VSC SDP if intel_dp_set_infoframes is called from post ddi disable
>> routine i.e with the variable of enable as false. This is to avoid
>> an infoframes.enable mismatch issue which is caused when pipe is
>> connected to eDp which has psr then connected to DPMST. In this case
>> eDp's post ddi disable routine does not clear infoframes.enable VSC
>> for the given pipe and DPMST does not recompute VSC SDP and write
>> infoframes.enable which causes a mismatch.
>>
>> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
>
> LGTM
>
> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>
>> ---
>>   drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
>> index 1e43e32e0519..8b60d7f34ab8 100644
>> --- a/drivers/gpu/drm/i915/display/intel_dp.c
>> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
>> @@ -4370,7 +4370,7 @@ void intel_dp_set_infoframes(struct intel_encoder *encoder,
>>   		val &= ~VDIP_ENABLE_PPS;
>>   
>>   	/* When PSR is enabled, this routine doesn't disable VSC DIP */
>> -	if (!crtc_state->has_psr)
>> +	if (!enable || !crtc_state->has_psr)

The comment no longer matches the code with this.

BR,
Jani.

>>   		val &= ~VIDEO_DIP_ENABLE_VSC_HSW;
>>   
>>   	intel_de_write(dev_priv, reg, val);

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-07-24 15:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23  4:28 [PATCH] drm/i915/dp: Clear VSC SDP during post ddi disable routine Suraj Kandpal
2024-07-23  5:16 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-07-23 15:12 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-07-24  6:10 ` [PATCH] " Nautiyal, Ankit K
2024-07-24 15:18   ` Jani Nikula [this message]
2024-07-24 16:37 ` Suraj Kandpal
2024-07-25  9:46   ` Kandpal, Suraj
2024-07-24 17:48 ` ✗ Fi.CI.BAT: failure for drm/i915/dp: Clear VSC SDP during post ddi disable routine (rev2) Patchwork
2024-07-25  9:04 ` Patchwork
2024-07-25  9:06 ` ✓ Fi.CI.BAT: success " Patchwork
2024-07-25 23:24 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-07-25 23:31 ` Patchwork

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=87ed7ikecg.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=suraj.kandpal@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.