From: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian@intel.com>
To: "Kandpal, Suraj" <suraj.kandpal@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Cc: "Manna, Animesh" <animesh.manna@intel.com>,
"Shankar, Uma" <uma.shankar@intel.com>
Subject: Re: [PATCH 1/1] drm/i915/display/psr: Block DC3CO entry during active frame
Date: Wed, 1 Jul 2026 12:02:16 +0530 [thread overview]
Message-ID: <2bf3f7a5-deff-472d-ac70-801cea21145b@intel.com> (raw)
In-Reply-To: <DS4PPFE901A304F76B8301BE5F920A333D4E3F62@DS4PPFE901A304F.namprd11.prod.outlook.com>
On 7/1/2026 11:15 AM, Kandpal, Suraj wrote:
>> Subject: [PATCH 1/1] drm/i915/display/psr: Block DC3CO entry during active
>> frame
> Only drm/i915/psr should be enough as prefix
Thanks for the review. I'll remove it in the next version.
>> On Xe3P onwards, when PSR2 is enabled on a panel that does not support Early
>> Transport, DC3CO can be entered in the middle of an active frame. This
>> prevents the pipe from completing the frame and leaves it in a bad state that
>> does not recover well, causing visible corruption on screen.
>>
>> Set CHICKEN_DCPR_4 bit 24 in the PSR2 enable path when Early Transport is
>> not in use, to notify DMC to prevent DC3CO entry.
>>
>> BSpec: 71483
> Add 75253 here too
Will add this in the next version.
>> Signed-off-by: Dibin Moolakadan Subrahmanian
>> <dibin.moolakadan.subrahmanian@intel.com>
>> ---
>> .../gpu/drm/i915/display/intel_display_regs.h | 3 +++
>> drivers/gpu/drm/i915/display/intel_psr.c | 16 ++++++++++++++++
>> 2 files changed, 19 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_display_regs.h
>> b/drivers/gpu/drm/i915/display/intel_display_regs.h
>> index 39e50423132f..754bb9b188b6 100644
>> --- a/drivers/gpu/drm/i915/display/intel_display_regs.h
>> +++ b/drivers/gpu/drm/i915/display/intel_display_regs.h
>> @@ -1747,6 +1747,9 @@
>> #define XELPD_CHICKEN_DCPR_3 _MMIO(0x46438)
>> #define DMD_RSP_TIMEOUT_DISABLE REG_BIT(19)
>>
>> +#define XE3LPD_CHICKEN_DCPR_4 _MMIO(0x454a0)
> This should be XE3P_CHICKEN_DCPR_4
Will correct this in the next version.
>
>> +#define DCPR4_BLOCK_DC3CO_ACTIVE_FRAME REG_BIT(24)
>> +
>> #define SKL_DFSM _MMIO(0x51000)
>> #define SKL_DFSM_DISPLAY_PM_DISABLE (1 << 27)
>> #define SKL_DFSM_DISPLAY_HDCP_DISABLE (1 << 25)
>> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
>> b/drivers/gpu/drm/i915/display/intel_psr.c
>> index 911afb9cb24e..ad6ece3ce04d 100644
>> --- a/drivers/gpu/drm/i915/display/intel_psr.c
>> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
>> @@ -2103,6 +2103,18 @@ static void intel_psr_enable_source(struct intel_dp
>> *intel_dp,
>> else if (display->platform.alderlake_p)
>> intel_de_rmw(display, CLKGATE_DIS_MISC, 0,
>> CLKGATE_DIS_MISC_DMASC_GATING_DIS);
>> +
>> + /*
>> + * HSD: 14026643300
> This can be WA: <WA no.>
>
>> + * On Xe3P+, restrict DC3CO entry during active frame when
>> PSR2 is
>> + * enabled without panel Early Transport; required to avoid
>> pipe bad state.
>> + * DMC honours CHICKEN_DCPR_4 bit 24 to block DC3CO entry
>> during active frame.
>> + */
>> + if (HAS_DC3CO(display) &&
> We can do away with HAS_DC3CO and just use the intel_display_wa framework
> Check intel_display_wa.c intel_display_wa.h as reference.
>
>
Agreed,will add14026643300 to the intel_display_wa framework and use that here.
>> + !intel_dp->psr.panel_replay_enabled &&
>> + !intel_dp->psr.su_region_et_enabled)
>> + intel_de_rmw(display, XE3LPD_CHICKEN_DCPR_4,
>> + 0, DCPR4_BLOCK_DC3CO_ACTIVE_FRAME);
>> }
>>
>> /* Wa_16025596647 */
>> @@ -2344,6 +2356,10 @@ static void intel_psr_disable_locked(struct intel_dp
>> *intel_dp)
>> else if (display->platform.alderlake_p)
>> intel_de_rmw(display, CLKGATE_DIS_MISC,
>> CLKGATE_DIS_MISC_DMASC_GATING_DIS,
>> 0);
>> +
>> + if (HAS_DC3CO(display))
>> + intel_de_rmw(display, XE3LPD_CHICKEN_DCPR_4,
>> + DCPR4_BLOCK_DC3CO_ACTIVE_FRAME, 0);
> Ditto.
>
> Regards,
> Suraj Kandpal
>
>> }
>>
>> if (intel_dp_is_edp(intel_dp))
>> --
>> 2.43.0
next prev parent reply other threads:[~2026-07-01 6:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 8:59 [PATCH 0/1] drm/i915/display/psr: PSR2 DC3CO fix Dibin Moolakadan Subrahmanian
2026-06-30 8:59 ` [PATCH 1/1] drm/i915/display/psr: Block DC3CO entry during active frame Dibin Moolakadan Subrahmanian
2026-07-01 5:45 ` Kandpal, Suraj
2026-07-01 6:32 ` Dibin Moolakadan Subrahmanian [this message]
2026-08-07 4:20 ` kernel test robot
2026-08-08 1:54 ` kernel test robot
2026-06-30 9:32 ` ✓ CI.KUnit: success for drm/i915/display/psr: PSR2 DC3CO fix Patchwork
2026-06-30 10:38 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-30 12:51 ` ✓ i915.CI.BAT: " Patchwork
2026-06-30 21:05 ` ✓ i915.CI.Full: " Patchwork
2026-06-30 23:23 ` ✓ Xe.CI.FULL: " 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=2bf3f7a5-deff-472d-ac70-801cea21145b@intel.com \
--to=dibin.moolakadan.subrahmanian@intel.com \
--cc=animesh.manna@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
--cc=uma.shankar@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.