Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1739738rwb; Wed, 26 Jul 2023 18:20:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFeZwXWNOMD0b7t5C9U1AkZtFxnPCbh3255fiVCHNbs4JxjAalFDzU3Y5OPg77eT8bl6wNt X-Received: by 2002:a05:620a:4089:b0:767:954:a743 with SMTP id f9-20020a05620a408900b007670954a743mr5332992qko.51.1690420805490; Wed, 26 Jul 2023 18:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690420805; cv=none; d=google.com; s=arc-20160816; b=NciYZQjzCCYk/uYP4HQHgykP7qdk5KmKumXHSBW++ExkBg+0qxBMJfyx0hDRrmApr8 Q5uk0Hl0t1Wbshbjwge/YTjlyC+aqCSYSErDOHXNeTS7q1VdCMGju8tLxmd3JuE+++ai g1UwYxLggHwJTokkz/sAdJz+a6jXRjPPb4TvE68dwMEwFnWKW+OMKhv4nyu6BMIREF+p L6RegKL8RRydc1cREXml0MzCmUjXrr4d925dQ1Gr9TJmVsqhRU5GvzdDuINsBHVGpVRo ZpdACy6s9mqa1IB/YLeYnBbuxCzf2MVIlUUjDgQIqwoUcn9+lDvkSXZHHOmqy3XGJK9T 8o7w== 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=EGiODkWN+sI4nD/FFSATqvkp1/ldo4EJzoi1AC4wIA4=; fh=iTqYmcOKlEP6ToTt5X7+p43JlyH2Cc1Du2IbpscK9dY=; b=jq9Jq+q2WbEmhnVfcjl4VL8cO67Mv2Vsy1pQWREIzsaUqWtW8fQ5OdcK1VGZFp9Q7b kg5splNvq8bJHz+bt8zOucZ/ua2JC0Tx7EuUsM3xxUgdtncHA/ci8P9LydFQ+9OsiUao +8sxt59fTEF+DEfuZPmivJc5U0zBy7jhngFJ3WOL/fNNrIghSuhuvYplZ8xlOfZis3nC kypLNfmKQiKPM5PsMy8Pf8k7DcQ2Cm3C+vIGHNyayrMr/8LF4nYzmG7wuuehG8qIMkyD BL2NciWR7YprDJF1GZdcddwjO47G0qqium61HRVDlWGjO4C3YuaJgKs3dT8ARSU79Wfm fG4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfromscratch.org header.s=cert4 header.b="Kh/eQ+Ox"; 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 cr14-20020a056a000f0e00b0068630737dd8si374712pfb.105.2023.07.26.18.19.53; Wed, 26 Jul 2023 18:20:05 -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="Kh/eQ+Ox"; 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 S231140AbjG0AzN (ORCPT + 99 others); Wed, 26 Jul 2023 20:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbjG0AzM (ORCPT ); Wed, 26 Jul 2023 20:55:12 -0400 Received: from rivendell.linuxfromscratch.org (rivendell.linuxfromscratch.org [208.118.68.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65751128; Wed, 26 Jul 2023 17:55:10 -0700 (PDT) Received: from localhost.localdomain (xry111.site [89.208.246.23]) by rivendell.linuxfromscratch.org (Postfix) with ESMTPSA id 402161C1E1F; Thu, 27 Jul 2023 00:55:02 +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=1690419305; bh=EGiODkWN+sI4nD/FFSATqvkp1/ldo4EJzoi1AC4wIA4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Kh/eQ+OxKl2JWIeZfu0JsJd/LcrQINOI2JVHgm+QQGNOSnPJ7QTLDlNz5IqwOCPRb lQdXOMt32fYhpHUsKRiKv5mLIOu4zVyJS0bx+ZxmTB1iMBSTnYWocyg79ealOaxOOk FQn3XI2S2WtGvW8WGzvC3wEMnyNU+J7H7tJ4pQZCkSL6/vMjFtlc4SDGupIWJIyXyX 6FziEQESVxgrtRYr+ZCGxu7Bg09tqPf7MTq2vJ8agLtr1HykWFcwVnr2hL5Y5LdVcB h2d+hAx2qSHs6PCHgX4Ycr74d7JAYT4jHcQ4g92fWiJ0fjclgdo9LaU3NGVikHZyvs VXaXme01rZI+w== Message-ID: <4986b92f1a5aa303a529c6004aaedd2184c3ccf7.camel@linuxfromscratch.org> Subject: Re: [PATCH v3 0/8] Add Sipeed Lichee Pi 4A RISC-V board support From: Xi Ruoyao To: Jisheng Zhang Cc: Conor Dooley , 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: Thu, 27 Jul 2023 08:54:59 +0800 In-Reply-To: <866eab3e30a18c50742a75d62aee223fdc7e3cee.camel@linuxfromscratch.org> References: <20230617161529.2092-1-jszhang@kernel.org> <20230725-unheard-dingy-42f0fafe7216@wendy> <3e0994dab495920ac590dc28d6b9d9765abe0c7e.camel@linuxfromscratch.org> <866eab3e30a18c50742a75d62aee223fdc7e3cee.camel@linuxfromscratch.org> 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 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 Thu, 2023-07-27 at 08:14 +0800, Xi Ruoyao wrote: > On Wed, 2023-07-26 at 23:00 +0800, Jisheng Zhang wrote: > > which dts r u using? see below. > >=20 > > >=20 > > > Or maybe my toolchain (GCC 13.1.0, Binutils-2.40, with no patches) ca= n > > > miscompile the kernel? >=20 > /* snip */ >=20 > > > Boot HART ID=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 : 0 > > > Boot HART Domain=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 : root > > > Boot HART Priv Version=C2=A0=C2=A0=C2=A0 : v1.11 > > > Boot HART Base ISA=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : rv64im= afdcvx > >=20 > > what? I don't think the mainline dts provide v and x.=20 >=20 > I copied the compiled arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dtb > into /boot and loaded it with u-boot "load" command onto 0x46000000, and > passed this address to the booti command. >=20 > But maybe I've copied the wrong file or made some other mistake... I'll > recheck. Hmm, and if I read OpenSBI code correctly, this line reflects the content of the misa CSR, not the DT riscv,isa value. The log of successful boot provided by Drew also contains "rv64imafdcvx": https://gist.github.com/pdp7/23259595a7570f1f11086d286e16dfb6