From: sashiko-bot@kernel.org
To: "Chaitanya Kumar Borah" <chaitanya.kumar.borah@intel.com>,
intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 06/14] drm/i915/audio: Program Hblank Early for the MSA WA shift left
Date: Mon, 30 Nov 2026 05:14:38 +0000 [thread overview]
Message-ID: <sashiko-outbox-240392@kernel.org> (raw)
In-Reply-To: <20261130043253.2165877-7-chaitanya.kumar.borah@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/audio: stale HBLANK_START_COUNT_128 in
enable_audio_hblank_early()
--
commit 4f5298bec906485b8c1e0e09b9207132a3a80375
Author: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
drm/i915/audio: Program Hblank Early for the MSA WA shift left
This commit programs the audio Hblank Early start count to 128 pixels with
4x pixel count scaling in TRANS_CONF when the MSA placement workaround
shifts the data end of line left.
> diff --git a/drivers/gpu/drm/i915/display/intel_audio.c b/drivers/gpu/drm/i915/display/intel_audio.c
> index e656f7cfd49e6..6bde28d2627b4 100644
> --- a/drivers/gpu/drm/i915/display/intel_audio.c
> +++ b/drivers/gpu/drm/i915/display/intel_audio.c
> @@ -548,6 +548,17 @@ static void enable_audio_hblank_early(struct intel_encoder *encoder,
> val |= NUMBER_SAMPLES_PER_LINE(cpu_transcoder, 0x0);
> }
>
> + /*
> + * Wa_14027342164: With the MSA placement WA shifting the data end of
> + * line left, the Hblank Early must be 128 pixels, scaled by 4 via
> + * TRANS_CONF for a total of 512 pixels. With DSC this overrides only
> + * the Hblank Early start count computed above.
> + */
> + if (crtc_state->dp_m_n.msa_wa_shift_left) {
> + val &= ~HBLANK_START_COUNT_MASK(cpu_transcoder);
> + val |= HBLANK_START_COUNT(cpu_transcoder, HBLANK_START_COUNT_128);
> + }
> +
> intel_de_write(display, AUD_CONFIG_BE, val);
> }
[Severity: Medium]
Does this leave HBLANK_START_COUNT_128 programmed in AUD_CONFIG_BE on later
modesets where msa_wa_shift_left is false?
enable_audio_hblank_early() performs a read-modify-write on AUD_CONFIG_BE
and only clears HBLANK_START_COUNT_MASK(cpu_transcoder) when
msa_wa_shift_left is true or on 4K+ DSC modes, and
hsw_audio_codec_disable() does not clear it either. Unlike
TRANSCONF_PIXEL_COUNT_SCALING_MASK, which intel_disable_transcoder() clears
on disable, a subsequent modeset on the same transcoder with
msa_wa_shift_left == false and without 4K+ DSC will retain the stale
128-pixel start count (and on DISPLAY_VER >= 13 sub-4K DSC modes,
needs_audio_hblank_early_scaling() still enables 4x scaling, keeping the
full 512-pixel Hblank Early count active).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130043253.2165877-1-chaitanya.kumar.borah@intel.com?part=6
next prev parent reply other threads:[~2026-11-30 5:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 4:32 [PATCH 00/14] drm/i915/dp: Add the MSA placement Data M/N WA (Wa_14027342164) Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 01/14] drm/i915/dp: Add the MSA placement Data M/N WA computation Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 02/14] drm/i915/kunit: Export the MSA placement WA Data M/N helper for testing Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 03/14] drm/i915/kunit: Add MSA placement WA Data M/N tests Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 04/14] drm/xe/kunit: Build the MSA placement WA display tests Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 05/14] drm/i915/audio: Rename enable_audio_dsc_wa() Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 06/14] drm/i915/audio: Program Hblank Early for the MSA WA shift left Chaitanya Kumar Borah
2026-11-30 5:14 ` sashiko-bot [this message]
2026-11-30 4:32 ` [PATCH 07/14] drm/i915/dp: Move intel_dp_has_audio() and intel_dp_port_has_audio() up Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 08/14] drm/i915/dp: Account for the MSA WA in SST link config selection Chaitanya Kumar Borah
2026-11-30 5:06 ` sashiko-bot
2026-11-30 4:32 ` [PATCH 09/14] drm/i915/dp: Prune uncompressed modes failing the MSA WA Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 10/14] drm/i915/dp: Move intel_dp_mode_valid_format() and intel_dp_mode_valid() down Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 11/14] drm/i915/dp: Account for the MSA WA in DSC mode validation Chaitanya Kumar Borah
2026-11-30 4:32 ` [PATCH 12/14] drm/i915/dp: Apply the MSA WA to the Data M/N Chaitanya Kumar Borah
2026-11-30 5:17 ` sashiko-bot
2026-11-30 4:32 ` [PATCH 13/14] drm/i915/display: Enable Wa_14027342164 on Xe3p Chaitanya Kumar Borah
2026-11-30 5:12 ` sashiko-bot
2026-11-30 4:32 ` [PATCH 14/14] drm/i915/dp: Add a debugfs knob to disable the MSA placement WA Chaitanya Kumar Borah
2026-11-30 5:41 ` ✓ i915.CI.BAT: success for drm/i915/dp: Add the MSA placement Data M/N WA (Wa_14027342164) Patchwork
2026-11-30 7:35 ` ✗ i915.CI.Full: failure " 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=sashiko-outbox-240392@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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