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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33F0FC77B72 for ; Mon, 17 Apr 2023 19:08:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1A6286046; Mon, 17 Apr 2023 21:07:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="Gl3lIEu2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E783785746; Mon, 17 Apr 2023 21:07:19 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4BFF885746 for ; Mon, 17 Apr 2023 21:07:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=JpgozXKUh4Qu1z2yeSlYLEBt2/vNElZhSnUDaSiHX7U=; b=Gl3lIEu22CkUOU5cT19GIJv/uM9EUZyEpYhrzR/4bGzty7z+VkV6tnrCpksdA4JzQe8p 72MPrm3jFHaIi0tIDyqZG2KgFh0RzZWeYyXr1GVTcBpskZ4SrHnY679xIdRbEOy03Rlhor I+PPUuf+VT01kigvEdaob7QWVF15/0O9DeDQIDp7+opmtfyHd8cVEpMS2mXQvT5GihJ5Wa jKQQsyb2O8+htfWT1/DXq8zT3CRJ5MQNa1gFV0qWjdNsve5a+3UtTXQENCzQAnjeS8B/fT 4O/ajdFcC7WZnNoUKBxg+rX0/uVkeDgPFoHJ1OWXbORsUjmZ6Rp5N9NX5F24YYZw== Received: by filterdrecv-59cb65cf6d-mj92r with SMTP id filterdrecv-59cb65cf6d-mj92r-1-643D98E3-31 2023-04-17 19:07:15.677596536 +0000 UTC m=+4736144.263019875 Received: from bionic.localdomain (unknown) by geopod-ismtpd-4 (SG) with ESMTP id bvzZ-D-iTBqzj3EV07ZT2g Mon, 17 Apr 2023 19:07:15.457 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v3 03/10] rockchip: rk35xx: Fix boot with a large fdt blob Date: Mon, 17 Apr 2023 19:07:15 +0000 (UTC) Message-Id: <20230417190708.1982556-4-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230417190708.1982556-1-jonas@kwiboo.se> References: <20230417190708.1982556-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h0mqF4lKtgAY9dDUr?= =?us-ascii?Q?9TY20EM9oBlgPUqdg2yiycYCg+NRrtH92qpgcCO?= =?us-ascii?Q?5uEBXsDpIjBMOgy=2FZw2aaa4oKO1uKqOcCbXIEnJ?= =?us-ascii?Q?AXQdGap6wSRKgxnp6yEMcJdUajxUjLNF=2FD7e99y?= =?us-ascii?Q?JZWb4kECwD3AdiqIv9ZvYPfE7NgfVGrLSgrcev?= To: Kever Yang , Simon Glass , Philipp Tomsich , Jonas Karlman Cc: u-boot@lists.denx.de X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The TF-A blobs used to boot RK3568 and RK3588 boards is based on atf v2.3. Mainline atf v2.3 contains an issue that could lead to a crash when it fails to parse the fdt blob being passed as the platform param. An issue that was fixed in atf v2.4. The vendor TF-A seem to suffer from a similar issue, and this prevents booting when fdt blob is large enough to trigger this condition. Fix this by implying SPL_ATF_NO_PLATFORM_PARAM to let u-boot pass a NULL pointer instead of the fdt blob as the platform param. This fixes booting Radxa ROCK 3A after recent sync of device tree. Fixes: 073d911ae64a ("rockchip: rk3568-rock-3a: Sync device tree from linux") Signed-off-by: Jonas Karlman --- v3: - No change v2: - New patch arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index e5ac58ae60b5..d7e3784ba113 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -288,6 +288,7 @@ config ROCKCHIP_RK3568 select BOARD_LATE_INIT select DM_REGULATOR_FIXED select DM_RESET + imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF imply ROCKCHIP_COMMON_BOARD imply ROCKCHIP_OTP imply MISC_INIT_R @@ -309,6 +310,7 @@ config ROCKCHIP_RK3588 select REGMAP select SYSCON select BOARD_LATE_INIT + imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF imply ROCKCHIP_COMMON_BOARD imply ROCKCHIP_OTP imply MISC_INIT_R -- 2.40.0