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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7C46C001DE for ; Fri, 28 Jul 2023 10:06:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjG1KGF (ORCPT ); Fri, 28 Jul 2023 06:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbjG1KFr (ORCPT ); Fri, 28 Jul 2023 06:05:47 -0400 Received: from rivendell.linuxfromscratch.org (rivendell.linuxfromscratch.org [208.118.68.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD67E3A95; Fri, 28 Jul 2023 03:05:37 -0700 (PDT) Received: from localhost.localdomain (xry111.site [89.208.246.23]) by rivendell.linuxfromscratch.org (Postfix) with ESMTPSA id 817E21C1DA0; Fri, 28 Jul 2023 10:05:29 +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=1690538733; bh=qRtVWvhOJ/YXekRzxi/JP4QHeemzpizvRATJRuTsluI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ZO5QGD/O+lR0Kz8nJ3weEySlKMx4Zs9Z9LYiuJfO5X/zsnwnGcoMHW84OZh5r2PdD C2XRCKPUru789pFD/kMmpTtC4VJO8jlYJstBokrpC+pY1kYrbvXsoP0V+jND1tFK9w IVaxhrn4KaKnUkcVEeWwp2XqPJAEkcnGKNAe175qcNrA5yBKolYGf3DkwdKxW/FiMR B+zsWhYFFhaIzIBcJvYKVCkF5qVGm/2iRbDNHpHlbWbG42Vh6tZthH3vQoepDDNcyH Hz4Q4JGufcoVOcXdxMutwVgtiVcw0B80cciGfrnQ+wVXlMn1hZGDiwkpJYDa/2bTGg GkyLJXkXVJX7g== Message-ID: <0f528aa0d4e6f2491835c9a78bb38dd162b75810.camel@linuxfromscratch.org> Subject: Re: [PATCH v3 0/8] Add Sipeed Lichee Pi 4A RISC-V board support From: Xi Ruoyao To: Drew Fustini 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 Date: Fri, 28 Jul 2023 18:05:27 +0800 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 > >=20 > > This is the config I have been using successfully: > > https://gist.github.com/pdp7/ecb34ba1e93fc6cfc4dce66d71e14f82 > >=20 > > Could you try that config? > >=20 > > Linux 6.5-rc3 boots okay when built with it: > > https://gist.github.com/pdp7/580b072f9a5bf9be87cf88b5f81e50e3 >=20 > Yes, your configuration works. >=20 > 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?