Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp875490rwb; Fri, 28 Jul 2023 00:47:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFER1Cnlj75Uj+XT2vnZwJ+aTvYvObacbwznVZXAfVzbkYajqEy0p87UzfwXwbMXBziXnyW X-Received: by 2002:a05:6512:34c9:b0:4fb:7b50:3fc9 with SMTP id w9-20020a05651234c900b004fb7b503fc9mr958653lfr.58.1690530454175; Fri, 28 Jul 2023 00:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690530454; cv=none; d=google.com; s=arc-20160816; b=y33uT9rPNmLywCPQC0RWzaQ0rubsHMZDkCNAU11yo+ye/xxfs6METoo9u7/yCvSqzv R0QExmVBfOwKg3+CluPpQQo7k0g3GBXh7USU9dITELJ0al3tVhyx1x5tg+WyxCyuQm+q QhMWmFvRhYaTvJD67PGq13jfbClpu2txWZYUHypTBjmpk4tXGJp9OIebRU1gwWnFIUKv 2lct2aS7wL3r/0dgUG/T6gaQPoSnCbpqlyaHnUZ4c7HKC0MhpiWEyEDpkZxfqUUVmAXi dCPotWlDclJlicXn/RQXh3wxxGvOu1hfsQaZMKXYBgFRF4VvruYQOmu8jqDJE9Lg3CHm aV9w== 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=Wrwpb7rVTyYgrDu2LzfWhd5QBSrpJqCmxUGFCtGyRxE=; fh=AbFAFoAwlSybyNeoXazjgJISW9Vm/hyvoBVtiC6Ppds=; b=vYWsZCBNf307RxmRxjgdM0XEegKmt/xYKU1YYBEjJiQUxMEKqyUifFW2xa/hdxSblD Yv4/VKx9qi2uY7xGQ5mTawa1Rd0BnkVi9mWXpnkyCYk782l60m44ZT7+Tqt25pKWZCg7 tYZ+1JjueLjPeW77bjAr485TDd93FHkRyERu24r+pwON9HX1jj+DpHL4Jk2nOUQdGYhz hRiwLjZgTaBVOMIr6vdqVeEuI2LLjclVW8egMBzb5gmteJ59qm217kxpmAQ/1XnSK+c7 aEFawaHTDdFaWREZ1oy8uijlfIW7faSMb294OnjfQq8YwEl2VexPxRT4lrFXyiFIuNZC ysbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=HnNBF9FN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020aa7d691000000b0052286405b7dsi2094741edr.387.2023.07.28.00.47.09; Fri, 28 Jul 2023 00:47:34 -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=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=HnNBF9FN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233748AbjG1HE4 (ORCPT + 99 others); Fri, 28 Jul 2023 03:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjG1HEx (ORCPT ); Fri, 28 Jul 2023 03:04:53 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3BC6268B for ; Fri, 28 Jul 2023 00:04:49 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-53fa455cd94so1062153a12.2 for ; Fri, 28 Jul 2023 00:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690527889; x=1691132689; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Wrwpb7rVTyYgrDu2LzfWhd5QBSrpJqCmxUGFCtGyRxE=; b=HnNBF9FNxGUGcdq72feS4vzTAgz0S2xFrpjfptHFXDmIUUMf0+rsfFDBqC2ScjUbKz umiiQMv2yfwN/+2EI2WvRogXyZJdWr6bLFFsUu3iSptlbMQawDUr7bHclNJPap/lp0kD kGz6QmaoOBFvXiNpicfwfM93W5ym8He5JnV+XRbLknn+OJltHWHesQIhVqS7KUQ44fxC up4WV6A7BcSSto/oqS+D1YE1nZ6jPVDvDx4cocNpgn0bAztE0SaLeo/DCjamR0zH4GvK 2zNMASq10UNnA4vVGokkrN8MvD2HG17cKKJphE9dD7L+MFm09drbK7kMQfIMVZiJPeop X3mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690527889; x=1691132689; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wrwpb7rVTyYgrDu2LzfWhd5QBSrpJqCmxUGFCtGyRxE=; b=hIqLDRSORMM9I6ewzvnaDC4M+p0IF+VWeLNEPdKGYE/Z4SBGnUz9XhhkFAlJF3Hckg xpnbkPxdXa8GWYj7sVjArFTlr4C12zrOUYvZN7m4maJt9g6WEUvr09FYlylNJQUk+y9U kc0uaDos9LJkghrJDZg9sN6SWHvbWYI5XT/uPfNz5GLE8MPYk95en3XGrgB1FtNoffJR IMLKYr1efCv+pWBq4EjYuNpbBa5E8ckXiGd35IXeV4GTnKsTGfY/ST8SMq7tu8wPB9CO pab+hHu0eEDjQxEhjzj6TuaDMAy7FJeRihzhj3OL1pe74LRKHOqih8d5B6gPiY6XJOL4 JjRw== X-Gm-Message-State: ABy/qLZNItoD3rlz2xfEnSzOV71mv6HUGd5tXTkC11rJGEYJ0awjHvpX AkxAx0c00XKMz3QLzQizyNzaCA== X-Received: by 2002:a05:6a20:968d:b0:12f:a373:ba95 with SMTP id hp13-20020a056a20968d00b0012fa373ba95mr611563pzc.19.1690527888967; Fri, 28 Jul 2023 00:04:48 -0700 (PDT) Received: from x1 ([2601:1c2:1800:f680:dacb:3a1a:fcaf:c0fc]) by smtp.gmail.com with ESMTPSA id o14-20020a170902d4ce00b001bb750189desm2778063plg.255.2023.07.28.00.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 00:04:48 -0700 (PDT) Date: Fri, 28 Jul 2023 00:04:46 -0700 From: Drew Fustini To: Xi Ruoyao Cc: Jisheng Zhang , 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> <290101d386866f639a7c482527d7a78c5108d49b.camel@linuxfromscratch.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <290101d386866f639a7c482527d7a78c5108d49b.camel@linuxfromscratch.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 Fri, Jul 28, 2023 at 12:29:44AM +0800, Xi Ruoyao wrote: > On Fri, 2023-07-28 at 00:11 +0800, Jisheng Zhang wrote: > > 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. > > My kernel config attached. Maybe you can find some stupid mistake in > it, I'm not familiar with RISC-V, nor DT-based systems :(. It seems like your kernel config is the problem. I used it and I saw the same result of a panic in riscv_intc_irq: https://gist.github.com/pdp7/1a26ebe20017a3b90c4e9c005f8178e1 This is the config I have been using successfully: https://gist.github.com/pdp7/ecb34ba1e93fc6cfc4dce66d71e14f82 Could you try that config? Linux 6.5-rc3 boots okay when built with it: https://gist.github.com/pdp7/580b072f9a5bf9be87cf88b5f81e50e3 Thanks, Drew