From patchwork Tue Dec 19 12:32:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Kahola X-Patchwork-Id: 13498228 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B537C46CCD for ; Tue, 19 Dec 2023 12:39:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 49C3810E0A1; Tue, 19 Dec 2023 12:39:11 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id D842510E0A1 for ; Tue, 19 Dec 2023 12:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702989550; x=1734525550; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KItoAJg6JdBAPRy7+6xTlwDzofwKoLXz/UClehihyDg=; b=PRKwRC7cOTV5KblX0Wxwf6ZC9IOJqi7szuaOu+r+czdiyfz+qgK7ZE3W hJmSbP13XXiDgCy9GpZRKMXhkusd5w4z0y1uODTUR6Ld5CUkrNP0oJK8A 1LTpKdXDxbXu7JN7tdCnPQSaUswgAYi/XTnjwz3gcXyGPpZz4zu0CV6vB CMeaHxjkTcxi9qebkZTYkPJQongB4d3yPTYgE0IL30FiSjBG6zfT3Rcht RwDC5XpW+Bl3kCNFJFZJwKw4qiJUxvMsg7uteRaVbl6fqXaNGt9kUYTK4 AvjFIRE9aTm6XCLpaBrZEl935qlaZ6wNRWTiaktsKIJ25p8/bNHSwxmYR g==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="9098498" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="9098498" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 04:39:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="841868874" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="841868874" Received: from sorvi2.fi.intel.com ([10.237.72.194]) by fmsmga008.fm.intel.com with ESMTP; 19 Dec 2023 04:39:07 -0800 From: Mika Kahola To: intel-gfx@lists.freedesktop.org Subject: [PATCH] drm/i915/display: Skip C10 state verification in case of fastset Date: Tue, 19 Dec 2023 14:32:46 +0200 Message-Id: <20231219123246.832245-1-mika.kahola@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" PLL's are not programmed in case of fastset so the state verfication compares bios programmed PLL values against sw PLL values. To overcome this limitation, we can skip the state verification for C10 in fastset case as the driver is not writing PLL values. Signed-off-by: Mika Kahola Reviewed-by: Radhakrishna Sripada --- drivers/gpu/drm/i915/display/intel_cx0_phy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy.c b/drivers/gpu/drm/i915/display/intel_cx0_phy.c index 884a1da36089..3ef54eaca9e4 100644 --- a/drivers/gpu/drm/i915/display/intel_cx0_phy.c +++ b/drivers/gpu/drm/i915/display/intel_cx0_phy.c @@ -3016,6 +3016,9 @@ static void intel_c10pll_state_verify(const struct intel_crtc_state *state, const struct intel_c10pll_state *mpllb_sw_state = &state->cx0pll_state.c10; int i; + if (intel_crtc_needs_fastset(state)) + return; + for (i = 0; i < ARRAY_SIZE(mpllb_sw_state->pll); i++) { u8 expected = mpllb_sw_state->pll[i];