From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E43DBC001DF for ; Fri, 28 Jul 2023 17:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U+XlNywnSk5F4S3FkfAJble/cbwBhT37qQfVcK5JrfA=; b=FJrxP11CcRm6vu liCLL4BrTFTbnFH692rsABCG4wA54dWsMQu7h6elTklZ+QI2tsvoDy0Mun4YJQ4l+lZFUe4Y88CEp RybD4li4GBjmGEAzQJAOurHMO5DaFU6hX4w2h/0UHbXI8DNCmnB/bAz15xANN09yo8RDq2fWp3kkw 27IENijrkcM5xvTw6H/wc9a1ObmD45B6jY45uaTaccOp5hKl4/XDWE07/drWv6Nfp57QN+tINr9yU M/vfdPFdGrNIcmE8fENkNA4/DgvbOOceOiLmmGYA6CE8rlOLZG6GIvOaX46z9+QK0P13nX+nGzE6j ocZ6Yw6zPP8eniN/1Zfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPRf1-004Km9-0S; Fri, 28 Jul 2023 17:53:55 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPRew-004KkL-1y for linux-riscv@lists.infradead.org; Fri, 28 Jul 2023 17:53:53 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-26834a73b8dso1378401a91.2 for ; Fri, 28 Jul 2023 10:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690566828; x=1691171628; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=37pdsq8+2ptJGKAZent8EqZv3/6dgtP4FMZ1uorvDto=; b=IFKPBPXurfdURYStWi+6ZseGJ7z61qyczq/oGR2tEhG4C12DE/c4reMiDyYH1CvNJC YFUzga3ik4jSa5zcoHUlTEND1kYGP0goWCSfBt2UEmjpTH/hzB4L79SNwnSI9OOu04rI Eop2soCCw9v1nzHdc7z/+jVeA9cZU2oOP1cuNyQB31ois2HGrVkpttIBA/E76ufvOF4s KGrw3hBc3y9VfQ4UMfHsAwKk3VyZJ0XWTULmr8QHaTvGnzmFxmeV3/w5RD4ZitX7BgfG HBwAh9Zo8VnKiJVi8kDac8p7KXu/4GHnk/ne71045hND+VoIgKswZScuBXpDq7dXCjGy 6L1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690566828; x=1691171628; h=in-reply-to: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=37pdsq8+2ptJGKAZent8EqZv3/6dgtP4FMZ1uorvDto=; b=LOFqdfMxiVUZZZHg3ACSC0k/kO7ZX5g7LsDbMkmN5548HXxJPLJf5v3/POHNJ2sLC5 nOqyxiaLKUaHASlR9XBw9LLhWhgQvGTrz8fiyBNiqV5WUG8tiMAEPkoNzOQRaDA88ODa FI0pCHRft23bQnnSLFZQlVOBrlKWZfWWMbvRqpr/C329rAP84Th9rWev0C1TP2qh7zBc E5/6S3/NG0BelnaXM/TxWnR+nHmqswq2/SYY9IBCKrsqjKGCdaghSEGgZabB7zp8us3h URqoKZUc+vFa8qpej3p4Jm609yO4y/pqhbrn4y80XTIxpm17oQJ8lBJPoLPlgxt45/sp ITGw== X-Gm-Message-State: ABy/qLZAhvyZgqKXfbYgcR+DgHAPoLALBmMo2keWpNhIDXmvjwj7+PCy MIqxuRKQ9Q+3aOlB8qibNzp3Fk1LCYgurK6JjofghA== X-Google-Smtp-Source: APBJJlELkdP8qtdOWzJYIDmj9vMpr1SLtuGv9RgrFXcZf2pWkzJMLuE3l1bLloZ4gQrTBb3ezjrZLw== X-Received: by 2002:a17:90a:94c2:b0:263:40e1:d4d9 with SMTP id j2-20020a17090a94c200b0026340e1d4d9mr2018809pjw.47.1690566827709; Fri, 28 Jul 2023 10:53:47 -0700 (PDT) Received: from x1 ([2601:1c2:1800:f680:dacb:3a1a:fcaf:c0fc]) by smtp.gmail.com with ESMTPSA id 3-20020a17090a1a4300b00267b7c5d232sm4733566pjl.48.2023.07.28.10.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 10:53:47 -0700 (PDT) Date: Fri, 28 Jul 2023 10:53:45 -0700 From: Drew Fustini To: Emil Renner Berthing Cc: Xi Ruoyao , 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: <3e0994dab495920ac590dc28d6b9d9765abe0c7e.camel@linuxfromscratch.org> <866eab3e30a18c50742a75d62aee223fdc7e3cee.camel@linuxfromscratch.org> <4986b92f1a5aa303a529c6004aaedd2184c3ccf7.camel@linuxfromscratch.org> <290101d386866f639a7c482527d7a78c5108d49b.camel@linuxfromscratch.org> <0f528aa0d4e6f2491835c9a78bb38dd162b75810.camel@linuxfromscratch.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230728_105350_871177_94104020 X-CRM114-Status: GOOD ( 25.77 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Fri, Jul 28, 2023 at 12:23:12PM +0200, Emil Renner Berthing wrote: > On Fri, 28 Jul 2023 at 12:07, Xi Ruoyao wrote: > > > > On Fri, 2023-07-28 at 15:40 +0800, Xi Ruoyao wrote: > > > On Fri, 2023-07-28 at 00:04 -0700, Drew Fustini wrote: > > > > 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 > > > > > > Yes, your configuration works. > > > > > > I'll try to figure out which specific configuration item is problematic > > > in my origin one... > > > > Ah, I found it... If I deselect CONFIG_FRAME_POINTER it will crash. > > > > And I see RISC-V selects ARCH_WANT_FRAME_POINTERS, so it seems frame > > pointer is mandated. But then why I'm able to deselect > > CONFIG_FRAME_POINTER? > > You've probably run into this issue: > https://lore.kernel.org/linux-riscv/20230716001506.3506041-1-guoren@kernel.org/ > > Try applying those two patches. > > /Emil Thanks, I think that fixes the issue with CONFIG_FRAME_POINTER=n. I had the same kernel crash [1] when trying the config from Xi [2]. I just did 'b4 shazam 20230716001506.3506041-1-guoren@kernel.org' and the riscv_intc_irq panic no longer occurs [3]. I don't have the mmc patches applied on this branch so the boot just hangs at mounting rootfs but I think it is otherwise okay. Drew [1] https://gist.github.com/pdp7/1a26ebe20017a3b90c4e9c005f8178e1 [2] https://gist.github.com/pdp7/c6e358be892d506826be304dcc346a7a [3] https://gist.github.com/pdp7/871ada434febeca4ff93f2381352c038 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv