From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED284606A68D for ; Mon, 30 Nov 2026 05:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VNRKhCg0 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FB4A10E705; Mon, 30 Nov 2026 05:14:45 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3AFBC10E705; Mon, 30 Nov 2026 05:14:39 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 0C60641AA7; Mon, 30 Nov 2026 05:14:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B51AE1F00896; Mon, 30 Nov 2026 05:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796015678; bh=egXkKN0qc/+JOIeDpRkbNR2Sq81u10uAAKiX7Vz6Z5k=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=VNRKhCg0nrohN1h9aS5w7uURPJCTDMj1RYsS4W5hYUuTXK8sAKeBKf3wIY0oVF71Y VWTF3j/nkqWTIF6S6xNWQQjbVgJwq/FDy1pWQwLhuCvTFH8j0Mwh5dZW9kCVGi3Cus ur7UN4FcQS9Ng8/UTnnFFAXstqC4nmxBu/SENB6hKUXq0TEF370tJQYoLCb/59kjFE AqsbNlco5bGY1XMQ0zaO+E1hJnY91PdfDnABnQ+tDjkjCgc4E2mVVBx+ilKSzDzjhJ 9VMFL4HXTgqJ00e3aADnhKrnf7+FJfh6ruAUERM8Oo1xh9v3yuRbMh2fELqoqoaupS z79QTCLU7asIQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 06/14] drm/i915/audio: Program Hblank Early for the MSA WA shift left To: "Chaitanya Kumar Borah" , intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org In-Reply-To: <20261130043253.2165877-7-chaitanya.kumar.borah@intel.com> References: <20261130043253.2165877-1-chaitanya.kumar.borah@intel.com> <20261130043253.2165877-7-chaitanya.kumar.borah@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 05:14:38 +0000 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-gfx" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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_e= ncoder *encoder, > val |=3D NUMBER_SAMPLES_PER_LINE(cpu_transcoder, 0x0); > } > =20 > + /* > + * 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 &=3D ~HBLANK_START_COUNT_MASK(cpu_transcoder); > + val |=3D 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 =3D=3D false and without 4K+ DSC will retain the stale 128-pixel start count (and on DISPLAY_VER >=3D 13 sub-4K DSC modes, needs_audio_hblank_early_scaling() still enables 4x scaling, keeping the full 512-pixel Hblank Early count active). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130043253.2165= 877-1-chaitanya.kumar.borah@intel.com?part=3D6