Received: by 2002:ac8:45c5:0:b0:405:464a:c27a with SMTP id e5csp1273378qto; Thu, 27 Jul 2023 09:31:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7MvJMhMks5I8g3GVAgn0iCDzoy18TcTwtZhXFcOsfbUvCaaO40E5Auue58cvbLEa9gSBT X-Received: by 2002:a17:90a:5185:b0:268:36a2:bd0 with SMTP id u5-20020a17090a518500b0026836a20bd0mr4681830pjh.8.1690475478450; Thu, 27 Jul 2023 09:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690475478; cv=none; d=google.com; s=arc-20160816; b=GGfI88cqgtSR8MOBbeABbqTP9u9HtotKR2H5QXr3f1L71YNItzu/+4ilnlyQGgm4xl Yg5UCSrIDgz3ME51N76E7JCfaFtneznv84nISqCqrdRXagW+v4KPHI6sf3Hsks7vtlRY yV8wD+iN+B1UGQEowNL6K/KlMHdZQH3bIcva5wY3zofje2HKrkcTkynEnJVSm+xTuY/g fqZ0XiktGzJXFhHt+YSrISIyh/o8LEf1JKcPsLWIol3KJ5MfcUeyJxY7ksnv/6IXjNZ5 Hqj7536sQyDTun2P0vxtlEvQVP+AbEP9uERNwjyFux3T1tKkMoTBdzsCY8WfncTvoaXr k0uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hnDPyt2wviB0Qle3BKW4R9Bqznh0VDu3kBPJzrtgp7M=; fh=GNwadYZASpEnm57vs7ct3PHbbKqYoSqb2tf1PvihuwU=; b=gUUkrO7wtpJHc3c6bUFvYAMoBHMdFmkNxLB6v9tlKM95FKbE/9lFBqfjtl5o+gsD+N opG0uH5bAL6tqqoYQFeD438t8XZpULW8vpEUQk+9xO7T8HsS89B8hWZ4lE+qO4Ah4LzA ZS8rPx6+hFzHs3fBynVvuFY+htb63bQJsUcb5nQ/0MkBulTdKXLPUG1wbRH5kes/1QJO 2kiCsFG029v3TD3428o4ixsYR+7UEM5UZHzJ7qQi7lSWtOV+FZzVGHhHL1wDg/r4cKDO L4AjTEwpioXu4w0MN1kuXv4dK6zSA9j5vJjeJCoH1wKq7juvGmzkZXwGNT/hvSQlt/kI Ph9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NRAPajPH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a17090a740d00b0026833fecc31si3056991pjg.172.2023.07.27.09.31.00; Thu, 27 Jul 2023 09:31:18 -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=@kernel.org header.s=k20201202 header.b=NRAPajPH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234081AbjG0QXa (ORCPT + 99 others); Thu, 27 Jul 2023 12:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233820AbjG0QX0 (ORCPT ); Thu, 27 Jul 2023 12:23:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21540272C; Thu, 27 Jul 2023 09:23:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AB73061ED9; Thu, 27 Jul 2023 16:23:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2339BC433C7; Thu, 27 Jul 2023 16:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690475004; bh=TD7vS16IIuUgR5cYQWuElvIIyOIASC8KrZH5mzivc8c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NRAPajPHZHEkFEPS1peqox5tcJ7gM95Aa0aCNJgFLnZh76ZjtnFkuBVcnz2VozH3h qZDfeOyYsA4/tOhwZThD1Yql5NWDQyNp3Pj1ax0nmxIR4WnyLuATCbodU9ujfYW53u MCszD3oMGFT7emm3YOylZbPm+wk5j2slsAyhcAOJ65sBLz7/OOsnRbCh4xJ/DUq0Ky 1tUlP9y7qi5KYE8aTkRm3LfNM0NvGsiHz4fenNnLWpEz+bnaYoolNpKOn9yy/Jt44z KwzX063DR7Y6SVY/+O7/Thx5Q5WG3hSSTpNkAXQLqX3mQEFEWksyReUFvFNGZxE/06 Kp2Bh1KU3ydlA== Date: Fri, 28 Jul 2023 00:11:46 +0800 From: Jisheng Zhang To: Xi Ruoyao 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 Subject: Re: [PATCH v3 0/8] Add Sipeed Lichee Pi 4A RISC-V board support Message-ID: References: <20230617161529.2092-1-jszhang@kernel.org> <20230725-unheard-dingy-42f0fafe7216@wendy> <3e0994dab495920ac590dc28d6b9d9765abe0c7e.camel@linuxfromscratch.org> <866eab3e30a18c50742a75d62aee223fdc7e3cee.camel@linuxfromscratch.org> <4986b92f1a5aa303a529c6004aaedd2184c3ccf7.camel@linuxfromscratch.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4986b92f1a5aa303a529c6004aaedd2184c3ccf7.camel@linuxfromscratch.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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, Jul 27, 2023 at 08:54:59AM +0800, Xi Ruoyao wrote: > 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. > > > > > > > > > > > Or maybe my toolchain (GCC 13.1.0, Binutils-2.40, with no patches) can > > > > miscompile the kernel? > > > > /* snip */ > > > > > > Boot HART ID              : 0 > > > > Boot HART Domain          : root > > > > Boot HART Priv Version    : v1.11 > > > > Boot HART Base ISA        : rv64imafdcvx > > > > > > what? I don't think the mainline dts provide v and x. > > > > 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. > > > > 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. > Aha indeed the "vx" isa extensions are not from the DT riscv,isa property. I will try your opensbi/linux/uboot combinations on my lpi4a board tomorrow. > The log of successful boot provided by Drew also contains > "rv64imafdcvx": > > https://gist.github.com/pdp7/23259595a7570f1f11086d286e16dfb6 >