Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4213395rwo; Tue, 25 Jul 2023 02:26:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlEdjvuv7B25KNi7IhEonNCGCFG8MIWbgOUzbpNBSVYah/SsWlS2Sx5lQ5O2UkW7isublDVR X-Received: by 2002:a17:907:784f:b0:99b:518a:9e4 with SMTP id lb15-20020a170907784f00b0099b518a09e4mr12579326ejc.59.1690277196002; Tue, 25 Jul 2023 02:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690277195; cv=none; d=google.com; s=arc-20160816; b=mxu256jVG36fghjprlSyjXEvxg50Q0+hPbbzz4gCS1oxE5zOm9tLFi8pmCWNQPnF8u 5bcBCAgG6W1ZNvcP6A8Vlqicf9bqkOmyod83dJvlNz+aurkiCKU26tuTyDoJ2vuQgnYf Pk/xIJFJURaKOiFDAP3J8d6nYyJSrYy1QLLnlfAdOS+XNnvMGZSRVXC4owuOILlpgNv3 mOVwAFHYHGnGw9mjJSBNWl9azwkXQL/XJMl01wdxLstg0NliN6girUV+hCwmkEozcJXE hOpsVoxLCM/6s86pUZiJ6uzuNpURETzskbMACsz9xcmDnAvkMYx1+cRqlqgJrdHIrvw6 Ja9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=3wKBJknl28jX8dkxKDD1cetC+NZBYD4bobGI4n3fNXs=; fh=0+2OhaRlnqgB0ZDyl5nyDa9bjQYCIYAffzdJdZqEQ2k=; b=KAkFdRKQwfDlThU286Kn5KGdlX8yvE27PilRFQGsPWeMHlTbJbtkXvjEqKLokm3if9 XP0osNHqQfwcS4xA/0aC1cia7s7x50hlqQFPmWEP+69rXwOkXZTrioKUTiWq0yoTWWC/ Wbgfbwa4TjpCf/ClQgWEv64czFwBTX1NlxlD3AHjWFmQ73u6RVenXsEncz74vnE8lUZW j07zHzX2SslFnpkphdoGmEAnM8yTPZaawvPYWUgqks4uyB2PKP3zk5FEsW0T98cxyYZB AlvL349ROeITkh49VxxitAnrMf/VDhbFzsLUN3iQXcXFoCBy0c9asnf9RcwRJl6GHR7H JQYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfromscratch.org header.s=cert4 header.b=Fg6Xmz4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=linuxfromscratch.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a170906938b00b0098e22b5657asi7147816ejx.929.2023.07.25.02.26.11; Tue, 25 Jul 2023 02:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfromscratch.org header.s=cert4 header.b=Fg6Xmz4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=linuxfromscratch.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232215AbjGYI2X (ORCPT + 99 others); Tue, 25 Jul 2023 04:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232433AbjGYI1h (ORCPT ); Tue, 25 Jul 2023 04:27:37 -0400 Received: from rivendell.linuxfromscratch.org (rivendell.linuxfromscratch.org [208.118.68.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3BC972688; Tue, 25 Jul 2023 01:27:09 -0700 (PDT) Received: from [192.168.124.11] (unknown [61.150.43.67]) by rivendell.linuxfromscratch.org (Postfix) with ESMTPSA id DBBB51C1D53; Tue, 25 Jul 2023 08:27:01 +0000 (GMT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.0.0 at rivendell.linuxfromscratch.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfromscratch.org; s=cert4; t=1690273627; bh=3wKBJknl28jX8dkxKDD1cetC+NZBYD4bobGI4n3fNXs=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Fg6Xmz4+D2Zi8+clxXo/HI51CxqO06TGtb2ZIPbxibycD0flc8IQZS67Yc+nSqgtX 1wNDG0aqtVN9jHLa10Kj2PhFNeGzakE37RqNc/ahsQ0w/t8iGqswSJ5rZW5SHLnmkT aHcOEL0wUfzd/XWSk4w+brCivAnAnq6OQIkMtCMdiaTRzRMsIlpslWehQwkHh9Td+w u1l/TqJhp2WuoMWxP2lZpBR6glzOeGra28S7/v6kGSnTVABx4++7apy8jNkWm8FSiM HpJAGaWPVaLMSrW+fEPe/mVJci1qPCNXbNNR3t920RGqRHOw3AfmkDGIRlu3XgF3dV b6iSvKWNit8ag== Message-ID: <6361277fb2784ef7eef88e19be23ad022f77e483.camel@linuxfromscratch.org> Subject: Re: [PATCH v3 0/8] Add Sipeed Lichee Pi 4A RISC-V board support From: Xi Ruoyao To: Conor Dooley Cc: Jisheng Zhang , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Guo Ren , Fu Wei , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Date: Tue, 25 Jul 2023 16:26:54 +0800 In-Reply-To: <20230725-unheard-dingy-42f0fafe7216@wendy> References: <20230617161529.2092-1-jszhang@kernel.org> <20230725-unheard-dingy-42f0fafe7216@wendy> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2023-07-25 at 08:52 +0100, Conor Dooley wrote: > Are you using the vendor OpenSBI? IIRC, and the lads can probably > correct me here, you need to have an OpenSBI that contains > https://github.com/riscv-software-src/opensbi/commit/78c2b19218bd62653b9f= b31623a42ced45f38ea6 > which the vendor supplied OpenSBI does not have. I'll try OpenSBI from the upstream. > > And this line > >=20 > > Memory: 8145304K/8388608K available (4922K kernel code, 4786K rwdata, 2= 048K rodata, 2148K init, 393K bss, 243304K reserved, 0K cma-reserved) > >=20 > > does not match my hardware (my board is a 16 GB DRAM variant).=C2=A0 So= in > > the future we'll need multiple DTs for all the variants? >=20 > A bootloader stage would ideally patch the DT that the kernel ends up > getting. If you're loading your own dtb, you can do it easily in U-Boot > after you extract it from your FIT image or whatever. I have no idea > what the vendor U-Boot does. The vendor ships three DTs and in uboot there are some fancy logic to detect which should be used.