From nobody Tue Feb 10 08:27:06 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (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 9566C1DF244; Thu, 31 Jul 2025 15:53:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753977189; cv=none; b=kZGFI+RI2+QKuxr2cp3MWZBd2gSLHI8kVWjATiA5cULwAjzo2AyzfGOhqWW973pGAHE0ZqCEbTxDwRzg8dHmnP3yYREYjlPSDD1f9NCAMF6LBRS7KK6XWUYWAzd9aNY8xHg5zN4DuYi37+hEfhLe3JUXLHT1ckYljxyLkgA8NEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753977189; c=relaxed/simple; bh=Ssv+F/VpR5OCJMVx4G+i145J6Os34SXD/KxA/E4mGJI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JOS8+L6hcpDxFG9C+nsFfE0AfBSUyJprCVH5/4YfEPBVB1NeDMbemvJBmndDw+fYr18EyQqjkQ3dwXCQ2FFTE8+5vaWsm6KejRf0XcpwQEnyoO0YsTU7l8oATKyvkfahEQwjsN3OJgfIozn/k+rm8fOzr67UFC5mdwrQO3AM+Wc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Received: from srv01.abscue.de (localhost [127.0.0.1]) by spamfilter.srv.local (Postfix) with ESMTP id 64FE21C274F; Thu, 31 Jul 2025 17:53:01 +0200 (CEST) X-Spam-Level: Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cdc9:0:1347:874c:9851:58c6]) by srv01.abscue.de (Postfix) with ESMTPSA id 7E4EC1C2728; Thu, 31 Jul 2025 17:52:59 +0200 (CEST) From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Thu, 31 Jul 2025 17:51:26 +0200 Subject: [PATCH v3 13/16] drm: sprd: always initialize DPU registers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250731-ums9230-drm-v3-13-06d4f57c4b08@abscue.de> References: <20250731-ums9230-drm-v3-0-06d4f57c4b08@abscue.de> In-Reply-To: <20250731-ums9230-drm-v3-0-06d4f57c4b08@abscue.de> To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Kevin Tang , Liviu Dudau , Russell King , Eric Anholt , Kevin Tang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.2 When the Unisoc DRM driver is initialized for the first time to display an image on the screen, reinitialize the display controller properly instead of relying on the bootloader to have set up a configuration that also works with this driver. Signed-off-by: Otto Pfl=C3=BCger --- drivers/gpu/drm/sprd/sprd_dpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dp= u.c index 978d4947e1bc5cd5b13b1f25719268fa08b77297..b946d015133db44d2d3d0b18803= ed887b2b7ae2e 100644 --- a/drivers/gpu/drm/sprd/sprd_dpu.c +++ b/drivers/gpu/drm/sprd/sprd_dpu.c @@ -456,6 +456,14 @@ static void sprd_dpu_init(struct sprd_dpu *dpu) } =20 writel(int_mask, ctx->base + REG_DPU_INT_EN); + + /* + * The DPU is usually enabled by the bootloader to show + * a splash screen. Stop it here when the kernel initializes + * the display. + */ + if (!ctx->stopped) + sprd_dpu_stop(dpu); } =20 static void sprd_dpu_fini(struct sprd_dpu *dpu) --=20 2.50.0