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 CE8DCC61DA4 for ; Sat, 11 Feb 2023 23:29:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 20F7A854F1; Sun, 12 Feb 2023 00:29:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mirx.dev Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mirx.dev header.i=@mirx.dev header.b="jbpweu0Z"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="cuUK1SDJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A18D185610; Sun, 12 Feb 2023 00:29:51 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9A2185103 for ; Sun, 12 Feb 2023 00:29:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=mirx.dev Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andrew@mirx.dev Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F38C43200912; Sat, 11 Feb 2023 18:29:44 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute3.internal (MEProxy); Sat, 11 Feb 2023 18:29:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mirx.dev; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1676158184; x=1676244584; bh=IP+YQwKgqy RHbN7AkVY6B/29j1UqKKdF8iVD2jBOBRw=; b=jbpweu0ZLDt49fZ/uDjy95SXd/ FW7xx8iE+JVPkcdd4r+M8OQdI2QQ0y2D54nZoc3ih6qmMCXyH+ATSTMChLr5Xtvy tVLfd2L1jpxm80Q9knRhjHCNrzW/5+1jhoO9YgTT9l8jovAm4cDyums9OWN/LZ6/ 0Uv8QUk4Vve/HmPWRv2vEspp+oG3s+vCzxTJ65Sf4ROJZ/3CzTaa40jSSLRAi5BW TcGAMyTX+SfPYG9ZThNb8Krd1WhYFF+YAtrHWvRKz8W5CJAPqVv/uQZcdwJqb1Lh WS0f1x618rovGLtxDTj3Z9F/L1DjoYewFjgOkqXsIl2eDFoLz0TDiunDxvDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1676158184; x=1676244584; bh=IP+YQwKgqyRHbN7AkVY6B/29j1Uq KKdF8iVD2jBOBRw=; b=cuUK1SDJZ5C/niYZKNMpXytFmh1rT1L87kexeYZ7vv1k CObji8cAZjYh8paErJmUooEzejvkv97NhTTaAEduvLP299jHxzlY1ZxQIGUPi9lt S2bldZxUiNy9wKvlW8sIdCsKj6yhj57KjBnpLIa284dtcdwUv4vxdo64iIPwUuR0 VoC39P63Ao1IfrHb7fZIrdTSQniWiIdWtzcKNxCzvSpG3tozROx7kywGoggqAWYK UX/9DSWnAqs/Upemp2ik5+tpYr+n3CP5z2n5sMxg1p8xuinQortkXh7pc8iNfvVb /UYd/8Jaq8vzK90DtGqeD3dmAClg6mgpvf2sAiwQiQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehkedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvvefutgesth dtredtreertdenucfhrhhomhepfdetnhgurhgvficutegssghothhtfdcuoegrnhgurhgv fiesmhhirhigrdguvghvqeenucggtffrrghtthgvrhhnpeegteeggedvvddvieehffegie evgffhgffgkedvtdeuueejleejhfehveefhfeghfenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesmhhirhigrdguvghv X-ME-Proxy: Feedback-ID: i9671468b:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E779DBC0078; Sat, 11 Feb 2023 18:29:43 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-156-g081acc5ed5-fm-20230206.001-g081acc5e Mime-Version: 1.0 Message-Id: In-Reply-To: <20230107215731.484317-14-sjg@chromium.org> References: <20230107215731.484317-4-sjg@chromium.org> <20230107215731.484317-14-sjg@chromium.org> Date: Sun, 12 Feb 2023 10:29:23 +1100 From: "Andrew Abbott" To: u-boot@lists.denx.de Cc: sjg@chromium.org Subject: Re: [PATCH v2 13/14] rockchip: Enable bootstage on rockpro64 Content-Type: text/plain 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 Sun, Jan 8, 2023, at 08:57, Simon Glass wrote: > This board is useful for benchmarking overall U-Boot performance. Enable > the bootstage feature so we get a report. > > Since this returns to the boot rom before finishing executing > board_init_r() in SPL, add a few bootstage calls so that we can collect > timing from TPL. > > For the stash region, use a portion of SRAM, 64KB below the stack top. > This allows the TPL image to be up to nearly 120KB (it is typically about > 64KB). SPL normally runs from SDRAM at 0, so can use the same stash > region. > > Signed-off-by: Simon Glass > diff --git a/configs/rockpro64-rk3399_defconfig b/configs/rockpro64-rk3399_defconfig > index 5b8d678f6bb..2f1ae156bd4 100644 > --- a/configs/rockpro64-rk3399_defconfig > +++ b/configs/rockpro64-rk3399_defconfig > @@ -9,6 +9,7 @@ CONFIG_ENV_OFFSET=0x3F8000 > CONFIG_DEFAULT_DEVICE_TREE="rk3399-rockpro64" > CONFIG_ROCKCHIP_RK3399=y > CONFIG_TARGET_ROCKPRO64_RK3399=y > +CONFIG_BOOTSTAGE_STASH_ADDR=0xff8e0000 > CONFIG_DEBUG_UART_BASE=0xFF1A0000 > CONFIG_DEBUG_UART_CLOCK=24000000 > CONFIG_SPL_SPI_FLASH_SUPPORT=y > @@ -17,6 +18,12 @@ CONFIG_SYS_LOAD_ADDR=0x800800 > CONFIG_DEBUG_UART=y > CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000 > +CONFIG_BOOTSTAGE=y Building from master commit a1e6b529e57c622e862e93fa6da03d9504565089 and copying u-boot-rockchip.bin to an SD card and booting from that on a RockPRO64 v2.1, I don't get past this: (dirty because building on NixOS applies some patches) >U-Boot TPL 2023.04-rc1-00483-ga1e6b529e5-dirty (Jan 01 1980 - 00:00:00) >Channel 0: LPDDR4, 50MHz >BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB >Channel 1: LPDDR4, 50MHz >BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB >256B stride >lpddr4_set_rate: change freq to 800MHz 1, 0 >Trying to boot from BOOTROM >Returning to boot ROM... > >U-Boot SPL 2023.04-rc1-00483-ga1e6b529e5-dirty (Jan 01 1980 - 00:00:00 +0000) >Trying to boot from MMC2 I bisected down to this patch. If I disable CONFIG_BOOTSTATE, I can boot. Is there something I need to do to successfully boot with bootstate enabled?