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 31195606A322 for ; Fri, 4 Dec 2026 23:32:14 +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=ImmRZmoX Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C5A3510ECD1; Fri, 4 Dec 2026 23:32:08 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 109C310ECD1 for ; Fri, 4 Dec 2026 23:32:02 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 4F94A60112; Fri, 4 Dec 2026 23:32:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5BED1F0093B; Fri, 4 Dec 2026 23:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796427121; bh=JqJr1fV8oJ9CVbGEutvK4/Esg0Hup5R5ohnkqmIgoH8=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=ImmRZmoXzNzLncbzEcgOZ4nv9+Dl7CXAW/pO7/VHWeQXaKy8VQYvICycOxzsH7OoT m58g+4J3Rk0OnCV44bWPeRD81Mzx7IZXMlm7jznjlSPttmMhhrIkZGDubbJQ4+3wUa Ut9l2Gwi3CzNe5HV0DbW1PparTBiRo6LyA1rFgmZ6/kkU9nPuv27/orkEb7K5hNxqr 72wn1CLhhb9LNC/DtU0rPc4bYa5CC/waE7ggE6tUJbV7QMoj6NtXKbPAetEpRC1qB/ vL849ajHMgGbkdhDlVGuthn07D4cE/R9y4gkldljqkO+lVMYOaClFBqcDVgDlUq9gA Z/fp94fJki9Jg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] drm/i915/cdclk: Ignore the DPLL0 override bit on SKL/derivatives To: "Ville Syrjala" , intel-gfx@lists.freedesktop.org In-Reply-To: <20261204231720.922-1-ville.syrjala@linux.intel.com> References: <20261204231720.922-1-ville.syrjala@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 23:32:00 +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=-11.2 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=ham 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: skl_ddi_dpll0_get_hw_state() reads override bit, breaking fastset -- commit d965d59fcd0d0125b022c064ac6a5c54491c339f Author: Ville Syrj=C3=A4l=C3=A4 drm/i915/cdclk: Ignore the DPLL0 override bit on SKL/derivatives This commit stops checking DPLL_CTRL1_OVERRIDE(SKL_DPLL0) in skl_dpll0_update() so that SKL/derivative systems where the GOP leaves that bit clear do not trigger a warning and CDCLK sanitization. > diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm= /i915/display/intel_cdclk.c > index 0f2f693c78d48..525b37e68fd87 100644 > --- a/drivers/gpu/drm/i915/display/intel_cdclk.c > +++ b/drivers/gpu/drm/i915/display/intel_cdclk.c > @@ -1019,11 +1019,14 @@ static void skl_dpll0_update(struct intel_display= *display, > =20 > val =3D intel_de_read(display, DPLL_CTRL1); > =20 > + /* > + * DPLL_CTRL1_OVERRIDE doesn't seem to do anything > + * for DPLL0, and the firmware fails to set it on > + * some systems (eg. HP 17-by0001nw). Ignore it. > + */ > if (drm_WARN_ON(display->drm, > - (val & (DPLL_CTRL1_HDMI_MODE(SKL_DPLL0) | > - DPLL_CTRL1_SSC(SKL_DPLL0) | > - DPLL_CTRL1_OVERRIDE(SKL_DPLL0))) !=3D > - DPLL_CTRL1_OVERRIDE(SKL_DPLL0))) > + val & (DPLL_CTRL1_HDMI_MODE(SKL_DPLL0) | > + DPLL_CTRL1_SSC(SKL_DPLL0)))) > return; [Severity: Medium] Does skipping CDCLK sanitization here leave DPLL_CTRL1_OVERRIDE(SKL_DPLL0) clear during DPLL state readout and break fastset? Previously, skl_sanitize_cdclk() reprogrammed DPLL0 with the override bit set before intel_modeset_setup_hw_state(). Now skl_ddi_dpll0_get_hw_state() reads hw_state->ctrl1 with the 0x3f mask and records bit 0 as 0, while skl_ddi_dp_set_dpll_hw_state() always sets DPLL_CTRL1_OVERRIDE(0). On the first non-internal atomic commit, intel_crtc_check_fastset() calls skl_compare_hw_state(), which checks exact ctrl1 equality. The bit 0 mismatch rejects fastset and forces a full modeset, or fails with -EINVAL when DRM_MODE_ATOMIC_ALLOW_MODESET is not set. If the GOP also routed a second active pipe to DPLL0 and a commit modesets only the eDP CRTC, intel_find_dpll() fails its memcmp() against dpll_state[DPLL0].hw_state and causes skl_get_dpll() to return -EINVAL. Setting DPLL_CTRL1_OVERRIDE(0) in skl_ddi_dpll0_get_hw_state() when reading out hw_state->ctrl1 would keep readout, skl_compare_hw_state(), and intel_find_dpll() consistent. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204231720.922-= 1-ville.syrjala@linux.intel.com?part=3D1