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 EF15AC64EC7 for ; Sat, 25 Feb 2023 13:41:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9586485ADF; Sat, 25 Feb 2023 14:41:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="RS/hHyop"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2758C85B6C; Sat, 25 Feb 2023 14:41:17 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7AC95859A6 for ; Sat, 25 Feb 2023 14:41:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DEA8A609FB; Sat, 25 Feb 2023 13:41:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B971C433EF; Sat, 25 Feb 2023 13:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677332472; bh=zNgGRSd+9b0rfUhf+Ddlo4UWKW78ebK/V2hElP+hI3w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RS/hHyopXNYkQ+D9UVmdSmTms9yXcWJaohGu1fecxLaO3xIbT0xT52V1OtB3TA7eC reKc9h9MEglOcJnfz7EQYz3S4rfmzwM4V2NlmQgOFyJB+Zg+gQY78RDJE22BEH6lRK KsFozDoGVB0iORZwmfxMLspyTrb4HwT1iS6Zw7DYwiKyEYCQymGb0UDV0NhJsDYRNw 0B7gdGa9mm/6YH7yBzBjq7erJduwfE1KkIGVBZmdwaLkSwZmRu/kPx0cZtS+pdkv7a 82OCxuLlL7dQcA3ZJ1vSH/GnVu/DHUypjDLbttaeDHapv7QdBqj4mKkl6hKWOMcmz0 Md4kpgJV7DrvQ== Received: by pali.im (Postfix) id 3E90E709; Sat, 25 Feb 2023 14:41:09 +0100 (CET) Date: Sat, 25 Feb 2023 14:41:09 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Martin Rowe Cc: Josua Mayer , mibodhi@gmail.com, sr@denx.de, u-boot@lists.denx.de Subject: Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting Message-ID: <20230225134109.hfmpkp36cacuj5x2@pali> References: <20230221201925.9644-1-pali@kernel.org> <20230225014220.13166-1-martin.p.rowe@gmail.com> <20230225014220.13166-3-martin.p.rowe@gmail.com> <20230225074134.c33li7ys5cktcah2@pali> <1ca418af-fa98-a982-3ac3-a94bdf894588@solid-run.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 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.6 at phobos.denx.de X-Virus-Status: Clean On Saturday 25 February 2023 11:47:07 Martin Rowe wrote: > > While I haven't tested this patchset - I have tested SPI booting with v2022.01 after applying lots of patches. > > I found that the magic value reported by bootrom when booting from SPI will be 0x34 on clearfog. > > The current sources only handle 0x32, hence having or not having SPL_SPI will always lead to returning to the bootrom. > > > > Please consider pulling in this patch: > > https://github.com/SolidRun/u-boot/commit/f4f8a69740a8415c05359e01e51650f445cda03d > > I can send it separately if you like. > > Tested with the patch on a Clearfog Base: > ================== Without SPL_SPI same return to BootROM > ... > mv_ddr: completed successfully > Trying to boot from BOOTROM > Returning to BootROM (return address 0xffff05c4)... > BootROM: Image checksum verification PASSED > > > U-Boot 2023.04-rc2... > ================== With SPL_SPI loads directly from SPI > ... > mv_ddr: completed successfully > Trying to boot from SPI > > > U-Boot 2023.04-rc2... > ================== > > I'm not sure how to run proper timing tests on the process, but > stopwatch timing just between seeing "Trying to boot" and "U-Boot > 2023.04-rc2" showed the return to BootROM under 1 second, and the > direct from SPI around 4 seconds. I thought the goal of loading from > SPI directly was speed, but returning to BootROM is significantly > faster on this board. You should check SPI speed in DTS file and also in the defconfig. > > which I have tested by adding these config options: > > I tested the new spi_defconfig with and without SPL_SPI; no other changes