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 7DD3EC0015E for ; Fri, 28 Jul 2023 11:38:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D841A868C4; Fri, 28 Jul 2023 13:38: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=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="rcpFbORo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F89A868BB; Fri, 28 Jul 2023 13:38:37 +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 7E12D867B2 for ; Fri, 28 Jul 2023 13:38:34 +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=3T904JAhKZ8t/wvUho6W5k3JUShXIGZzUeP5ARQBri8=; b=rcpFbORoLkOeXSjnWKPdkcXoj3DhORbmeettpRXO1QdqVFeenhW+SAe8vafIwoSha8Ll lZg1bcB3m/nu2GWakPZCe1gUMBISZpnOHC6yRI5rfKZFDMo8OE975aydRf9ZNfAb+iLEiU bz3bfJU9umd4dJxIw4DItg8RUJatM+sDimoOu7gQ/YBUOdnQLp0rhvNcovezdZw6ZpZSlH geY6hI7oMOCGYISiCHKLprdjgTNpjrhSHVxDbGIzzp/a98Lhk4/v7fKJgf5GZniUfbhwDp 29+NxMJl/sQxp2L/LPPquJcpTBZ8P4+GW5xXnE1g4ExzL4tUbi3ZKmk1F3A1z5uw== Received: by filterdrecv-66949dbc98-p7b6v with SMTP id filterdrecv-66949dbc98-p7b6v-1-64C3A8B8-3C 2023-07-28 11:38:32.803884214 +0000 UTC m=+6782326.855516266 Received: from bionic.localdomain (unknown) by geopod-ismtpd-10 (SG) with ESMTP id J_7ikXYXS-2hnB6E1Z7gYQ Fri, 28 Jul 2023 11:38:32.495 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 0/5] rockchip: Fix SPI flash SPL and payload overlap Date: Fri, 28 Jul 2023 11:38:33 +0000 (UTC) Message-ID: <20230728113830.1731793-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+RrMu3cja6a0h2Rt3vB=2F4ugfWUyCW?= =?us-ascii?Q?PMuZBl7+yc83mAz4tJxVaFhkHoppJBoPC9WFQXK?= =?us-ascii?Q?8+F0yMwmWaJPp9A4S7OzM0iomRzJ9cgxnNbjDiC?= =?us-ascii?Q?Zyb=2FjlNCyd48x52UfER2hMgW3bs=2F4AYHGOccYKV?= =?us-ascii?Q?yJGjkrIsnIKVAshu1h6VrgPQMfAW74Q6gVEazK?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Peter Robinson , Quentin Schulz , 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. Changes in v2: - Rebase on u-boot-rockchip/master - Collect r-b tags 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