From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70FF5198A11; Mon, 27 Oct 2025 18:54:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761591260; cv=none; b=PQMnoH9CjWeeHwSCPuVYkuMkrr7CRr5errCFeDu6PFD9OhPxDRBYLbErsyP37DxQnJ/h7+/euniRmasSMTLIEoAJm7xz+rL265224GD1RwVCfyNvTbHVmKLOQl6ZAa8jkGFDMM3CBxa4Wk++NIIe3BxAtAPgmeqQ4hogShnjdv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761591260; c=relaxed/simple; bh=98Aumik56HVvLoKATIf8VKWLRPYFhTarNV9b48BYtiM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p/0ujC5mRUuITWGzZ6EJUhKEtkfpmZg7W4f1HUKG7qxQmnX7JkusBCv0eqSw00XHNaIvBtfnyf5wNY/+zgn56VwXyXlCc070R1p6vBM49ppZjnhXGEq16S2ceFZy6coltpy1SbdnKPbfB7o0945RsfvnEp+mUYkQx6+aun+kvj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=13f5ChOl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="13f5ChOl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03068C4CEF1; Mon, 27 Oct 2025 18:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761591260; bh=98Aumik56HVvLoKATIf8VKWLRPYFhTarNV9b48BYtiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=13f5ChOlMQ7hi8zuf0oJib7Rs4DlBXNMTfyByxrle73eGWlh+gehLytG6JiwaeBGp 86cdcuGkt3n/Lh2VYAS2Bt+w8sGm8yquWuBW6IahkWjOl563x/dN45S0GVxCUlQTDz fmMuXn93KbySnPWLUafEUX4foT9oTRsuiz6ZpBFc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Stephan Gerhold , Dmitry Baryshkov , Konrad Dybcio , Bjorn Andersson Subject: [PATCH 5.10 129/332] arm64: dts: qcom: msm8916: Add missing MDSS reset Date: Mon, 27 Oct 2025 19:33:02 +0100 Message-ID: <20251027183528.034650800@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027183524.611456697@linuxfoundation.org> References: <20251027183524.611456697@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stephan Gerhold commit 99b78773c2ae55dcc01025f94eae8ce9700ae985 upstream. On most MSM8916 devices (aside from the DragonBoard 410c), the bootloader already initializes the display to show the boot splash screen. In this situation, MDSS is already configured and left running when starting Linux. To avoid side effects from the bootloader configuration, the MDSS reset can be specified in the device tree to start again with a clean hardware state. The reset for MDSS is currently missing in msm8916.dtsi, which causes errors when the MDSS driver tries to re-initialize the registers: dsi_err_worker: status=6 dsi_err_worker: status=6 dsi_err_worker: status=6 ... It turns out that we have always indirectly worked around this by building the MDSS driver as a module. Before v6.17, the power domain was temporarily turned off until the module was loaded, long enough to clear the register contents. In v6.17, power domains are not turned off during boot until sync_state() happens, so this is no longer working. Even before v6.17 this resulted in broken behavior, but notably only when the MDSS driver was built-in instead of a module. Cc: stable@vger.kernel.org Fixes: 305410ffd1b2 ("arm64: dts: msm8916: Add display support") Signed-off-by: Stephan Gerhold Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Link: https://lore.kernel.org/r/20250915-msm8916-resets-v1-1-a5c705df0c45@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -899,6 +899,8 @@ interrupts = ; + resets = <&gcc GCC_MDSS_BCR>; + interrupt-controller; #interrupt-cells = <1>;