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 6F4BAEB64D9 for ; Tue, 27 Jun 2023 19:11:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ADB0C86602; Tue, 27 Jun 2023 21:10:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none 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="Ir5Bnlqg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A904865F5; Tue, 27 Jun 2023 21:10:44 +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 D16AE865F1 for ; Tue, 27 Jun 2023 21:10:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none 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:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=L9+Mfn188cQVKdii7OJ525vjnziD8ujn1+HBqhiZZCA=; b=Ir5BnlqgzltrdD8H9iCRP244gvRoYzgXkP4vxlxQRLhzpgP27iJbq1/8iQuFdYFkA167 RlzIraalMxlJ1+qXl5FJ7B9J3WH0FtmVIyRbqJToqWgdQH7pM26YajMly7wRV3idWD2Z5k gsK2Z0WUPcZbpm2B8deoIR9okU4CVgIEGrcIWoDKSw57GsgmZPrw6vZyPma2ffRLvQ1Dsd B3ThdUdIJl0q2x97M0xaAgDEnB47y40iYgabRJXhhNyhBPFcXtJU3MISHS01Xn99VMurul odccGXagJUJtp5SZGA2O9YhmLLUJAE0sjnw3t5K6mxgxOMM6YHVAE8QdFvzzurgg== Received: by filterdrecv-65f68489c8-nnkmt with SMTP id filterdrecv-65f68489c8-nnkmt-1-649B342D-29 2023-06-27 19:10:37.406194381 +0000 UTC m=+4131267.178573409 Received: from bionic.localdomain (unknown) by geopod-ismtpd-9 (SG) with ESMTP id o4gc9FWjTrq9nAgnBsvzDg Tue, 27 Jun 2023 19:10:37.012 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 0/5] rockchip: Fix SPI flash SPL and payload overlap Date: Tue, 27 Jun 2023 19:10:37 +0000 (UTC) Message-ID: <20230627191034.2093823-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hwOG9vIEZwx9sko0G?= =?us-ascii?Q?lu9XkpEwrrSXpvTgAdBPu7ORF0RYrpo0CyENuG4?= =?us-ascii?Q?ch9K1I0LRqQUV=2FcqbP0cFcclmNYa6M06=2F33Egcn?= =?us-ascii?Q?BXmKhBwXulXAp7krJo3En6TSzuEhZRZGjv6T1Qd?= =?us-ascii?Q?ZcS91hnZQ9GLxntS6Jn11yB+WKlsAP9Bm4rRTh?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Peter Robinson , u-boot@lists.denx.de, Jonas Karlman 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 This series fixes a build issue introduced in commit 5713135ecc75 ("rockchip: rockpro64: Build u-boot-rockchip-spi.bin"), reported by Peter Robinson. Closer inspection into how SPI flash is used revealed that current payload offset, 0x60000, is not enough to accommodate a worst-case scenario and may overlap SPL if written to SPI flash. This series fixes this by adjusting payload offset to 0xE0000, adjusting SPL max size to 0x40000, enables build of u-boot-rockchip-spi.bin for affected boards and update the SPI flashing documentation. Series depend on [1] for a clean apply. [1] https://patchwork.ozlabs.org/patch/1800173/ Jonas Karlman (5): rockchip: rk3399-rockpro64: Fix SPL max size and SPI flash payload offset rockchip: rk3399-pinebook-pro: Fix SPL max size and SPI flash payload offset rockchip: rk3399-pinephone-pro: Fix SPL max size and SPI flash payload offset rockchip: rk3399-roc-pc: Fix SPL max size and SPI flash payload offset doc: rockchip: Update SPI flashing instruction arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi | 4 --- arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi | 4 --- arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 4 --- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 --- configs/pinebook-pro-rk3399_defconfig | 4 ++- configs/pinephone-pro-rk3399_defconfig | 4 ++- configs/roc-pc-mezzanine-rk3399_defconfig | 4 ++- configs/roc-pc-rk3399_defconfig | 4 ++- configs/rockpro64-rk3399_defconfig | 5 ++-- doc/board/rockchip/rockchip.rst | 26 ++++--------------- 10 files changed, 19 insertions(+), 44 deletions(-) -- 2.41.0