Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1371200rwb; Thu, 10 Nov 2022 15:24:05 -0800 (PST) X-Google-Smtp-Source: AMsMyM6sBizFyeAQn4+VO3rULJ7gtg1CuSUl0LNFbJGfxlI5UHXF0g9/XgZqBJZ+JoKLn1ietgeo X-Received: by 2002:a17:907:217a:b0:7ae:415:3fb5 with SMTP id rl26-20020a170907217a00b007ae04153fb5mr3759325ejb.255.1668122645042; Thu, 10 Nov 2022 15:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668122645; cv=none; d=google.com; s=arc-20160816; b=weqcRA4QYYJdCqVCQw3W8BmROC8YscWmevO5BnpCo6RYwMp2HV6Vk/vmrlVoi/4P0Q +CtmSbFbi1k5ai/twV8oSQREsP1hwFKAa8HOwL89hkGULBMOoDpfnJmlY2ZNggzSpHcM +5QTOCRVZoaR51k+dRpDs40JUzhvT7rkSW8a/NXNuryaGqQxXL5JHzn/CRVf4UN5u/f6 sw3CNNaeJqOrpR9aVNA+3PxeYj/tloz4JDCzTqUFxXlzu3XmEOvQ6hh48pKkd0emqjLE gHUlS+iKB2yuNFVKTldTkT+jzuNDjyLYM437Wt2wR7/ezfDMdYoSisedjg91SzBgCCa4 6law== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=Zysk3Uc1gdUuiZnDZuRKizBqdb/LT0u5E/QhQ1BBpLs=; b=W0iH7hVWL7KEuSzmzIJb8urxH25oP8qRPGWGwEGijGRl2SaV3jplR/SlywoC5FQgEH NeTy1EB/5m4mgZqEZ9DKzmaO8A2wgHqHsRVTLwZZ4Met+qakjVmhUaUyb0XAFpmSQz00 sl55UMAViNV7KuryYkN8lv8U5uNysyQpWKUeaPCV6KI7mWNvx8yUvscxJxx/QcPHWvJM ZdhmEFpNvsPV2d4PByOUhCIE5JLIWmllQTwDrkHeDIaxQLXQUladhtBoNSoIJ3+XsgMO mRWRYNFtjYsNWguDgPzk88FhW79iXjVSwkqiGgj4yzTQkB6Fh6lMRlLVVpATCXP4QUrO KQlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CZvIgXJw; 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 ec39-20020a0564020d6700b004534c6c4bd7si722974edb.433.2022.11.10.15.23.42; Thu, 10 Nov 2022 15:24:05 -0800 (PST) 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=CZvIgXJw; 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 S230323AbiKJXKS (ORCPT + 93 others); Thu, 10 Nov 2022 18:10:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiKJXKQ (ORCPT ); Thu, 10 Nov 2022 18:10:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEDAD43AC0 for ; Thu, 10 Nov 2022 15:10:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 79440619EB for ; Thu, 10 Nov 2022 23:10:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C0B52C433B5; Thu, 10 Nov 2022 23:10:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668121814; bh=VyvqkhmfvPygyTuScNJXZ35iPK4Sj22wV1/y+Ggp/tY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=CZvIgXJw+6iu2XihbXFAwtthepV+oKFqSYWpHYaHwqWiiEG/FB7GjbR4D2OI3vzpN +Ss9/h41QNNo6PVu7Y+kgEpy//esBa/jsxJb+ksTFNRSWA9daoPJOHDWWlE4d1Mthx zsouWiinAh9AtpYBE6tghOWBDckik4HHjrvbP3PO3ibZ7QcoN8WRgx6DSxq9t/RDuX tQ34eRnZoIjdiHAjEzWbYYttx8efwn9Wh1Pu15UZB2iW8PbrlnsxP+Rc/6jbfpOE4L h1ygdob3L0Z72ZHi/C0nNWy3z7knbO7LbnT2dQZMIqL8Yp7ZfvUnyDIASt5gXy25On g2LMp+zrsmGAQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id A6FA4C395F8; Thu, 10 Nov 2022 23:10:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v1] riscv: fix reserved memory setup From: patchwork-bot+linux-riscv@kernel.org Message-Id: <166812181467.9076.159650897116586866.git-patchwork-notify@kernel.org> Date: Thu, 10 Nov 2022 23:10:14 +0000 References: <20221107151524.3941467-1-conor.dooley@microchip.com> In-Reply-To: <20221107151524.3941467-1-conor.dooley@microchip.com> To: Conor Dooley Cc: linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, daire.mcnamara@microchip.com, anup@brainfault.org, atishp@rivosinc.com, mick@ics.forth.gr, linux-kernel@vger.kernel.org, valentina.fernandezalanis@microchip.com, e.shatokhin@yadro.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Mon, 7 Nov 2022 15:15:25 +0000 you wrote: > Currently, RISC-V sets up reserved memory using the "early" copy of the > device tree. As a result, when trying to get a reserved memory region > using of_reserved_mem_lookup(), the pointer to reserved memory regions > is using the early, pre-virtual-memory address which causes a kernel > panic when trying to use the buffer's name: > > Unable to handle kernel paging request at virtual address 00000000401c31ac > Oops [#1] > Modules linked in: > CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc1-00001-g0d9d6953d834 #1 > Hardware name: Microchip PolarFire-SoC Icicle Kit (DT) > epc : string+0x4a/0xea > ra : vsnprintf+0x1e4/0x336 > epc : ffffffff80335ea0 ra : ffffffff80338936 sp : ffffffff81203be0 > gp : ffffffff812e0a98 tp : ffffffff8120de40 t0 : 0000000000000000 > t1 : ffffffff81203e28 t2 : 7265736572203a46 s0 : ffffffff81203c20 > s1 : ffffffff81203e28 a0 : ffffffff81203d22 a1 : 0000000000000000 > a2 : ffffffff81203d08 a3 : 0000000081203d21 a4 : ffffffffffffffff > a5 : 00000000401c31ac a6 : ffff0a00ffffff04 a7 : ffffffffffffffff > s2 : ffffffff81203d08 s3 : ffffffff81203d00 s4 : 0000000000000008 > s5 : ffffffff000000ff s6 : 0000000000ffffff s7 : 00000000ffffff00 > s8 : ffffffff80d9821a s9 : ffffffff81203d22 s10: 0000000000000002 > s11: ffffffff80d9821c t3 : ffffffff812f3617 t4 : ffffffff812f3617 > t5 : ffffffff812f3618 t6 : ffffffff81203d08 > status: 0000000200000100 badaddr: 00000000401c31ac cause: 000000000000000d > [] vsnprintf+0x1e4/0x336 > [] vprintk_store+0xf6/0x344 > [] vprintk_emit+0x56/0x192 > [] vprintk_default+0x16/0x1e > [] vprintk+0x72/0x80 > [] _printk+0x36/0x50 > [] print_reserved_mem+0x1c/0x24 > [] paging_init+0x528/0x5bc > [] setup_arch+0xd0/0x592 > [] start_kernel+0x82/0x73c > > [...] Here is the summary with links: - [v1] riscv: fix reserved memory setup https://git.kernel.org/riscv/c/50e63dd8ed92 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html