Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2576717rwd; Fri, 26 May 2023 08:18:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YC4gnZ0nHQfxdeHNgb8xud9ESwLmmEx9r2tc8com2YGRMUbn3J8rj2ynZ/aTDgSInW/tU X-Received: by 2002:a05:6a00:2911:b0:64d:42b9:6895 with SMTP id cg17-20020a056a00291100b0064d42b96895mr6638341pfb.5.1685114297039; Fri, 26 May 2023 08:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685114297; cv=none; d=google.com; s=arc-20160816; b=nQCTNv4y2L19sgjKSsX+oq2u/mv3IoHkGoYwkHXxTkXNveWkVgBaBADGeLZ8iMJiuB t3z2320WqN8GUFX2qQExu84qYeRm8vrevMdrFrfHZ1F1HoFTxIQH//bVWD6jk0Wk+tmA sLvP7ovSS+0CSS0Axw9k/t6GbEh97VNKP25vCrb7jf7PjZBDwvocl3isl8BTJttrzlqq OrAphAm03WO1KTE/UKhu+uk+/LACtz/Yd80bwnW5rK6nq6LuiZnaFL5iSfXOlpYr6seN jCot3YeK1qoy9JG1cJ+BwLDq3zMDYw/39wO5/diWpie04YhuNnOzL+9HzN9SlYX56ge+ nUgQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sitqOm/6zJmBP4jWENyUeSzOhGYn9pOlxdwDFtsAhwY=; b=aF93Erzh6o4tisfj99MCue6b2AHvRzlnQjA/4zbxeckRsP9nMTw7Vh5THAVcBoV1et XaBuxUeW2dL3FEqOcLQ1FXqsgTL0xJnqaGWw1yMlsZMQ6TNyH+6ujFzcOYzR+noT5n/l MpaqIHGE5ec8rMBZgtzpLlbNkM3llnTmA7hqqpmoRL+AWdF4h78NjH9WDXX8Z1pViMJc 7AuYITVWFdN8jnd6gQMifovRBxjTze59Kj9eTlnDg09ylEf+ZSBxhpSpc6uho8TbVG/9 sV52vaM2UMiI1sfHRSLAgqM3rylL4LxEtGUPho101AK0HKlUMQJfzBVoIUi92olZHBET SbSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qWkNqRad; 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 16-20020a621710000000b0064d2c624630si822720pfx.23.2023.05.26.08.18.04; Fri, 26 May 2023 08:18:17 -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=qWkNqRad; 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 S237185AbjEZO7V (ORCPT + 99 others); Fri, 26 May 2023 10:59:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243470AbjEZO7S (ORCPT ); Fri, 26 May 2023 10:59:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8B7D9 for ; Fri, 26 May 2023 07:59:14 -0700 (PDT) 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 64039650AB for ; Fri, 26 May 2023 14:59:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59389C433EF; Fri, 26 May 2023 14:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685113153; bh=sitqOm/6zJmBP4jWENyUeSzOhGYn9pOlxdwDFtsAhwY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qWkNqRad42i5yqHE7tRSrudeWxWuGOe2HcG7AmlwQH3CUEn/SdPmrsr+3s9VuOAYj k/CwqrBP531RCmx6kscDU8EXUQkS9Nwro3dVEphqfiNTPE3NRd2m7lcMTL5czl4Suv qoJvju4aWRuWypFyq6zWlkya2M/GumcxXFOmM1hRav3WZb4ti1sWe4qRXNQ0FMpR9s T9V6+OBWsustn9Vf/ExJOEyYvPx+bFem9o5OgrNoePFUM1MQ1P8mA3Q1ZuIf0qXqwk QSd0qmrrRzp+O8csEq6dBOFLn6s+LU5miSQAPnkmk4bTOfu4it4V9EJmrPGHtjAYAm FLy2XEj6P0Mxg== Date: Fri, 26 May 2023 15:59:07 +0100 From: Conor Dooley To: Alexandre Ghiti Cc: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Atish Patra , Conor Dooley , Anup Patel , Anup Patel , Alexandre Ghiti , robh@kernel.org, jeeheng.sia@starfivetech.com, linux-kernel@vger.kernel.org, palmer@rivosinc.com, leyfoon.tan@starfivetech.com, mason.huo@starfivetech.com, Guo Ren , Paul Walmsley , Song Shuai , linux-riscv@lists.infradead.org, Andrew Jones Subject: Re: Bug report: kernel paniced when system hibernates Message-ID: <20230526-steep-omen-a5a46a1086bf@spud> References: <20230525-shrapnel-precut-26500fca4a48@wendy> <20230525-citric-waged-a2f78d27eb0c@wendy> <20230525-flaring-trading-f2bf0713ae26@spud> <20230525-desecrate-imposing-d97ab34e06ad@spud> <20230525-batting-botch-7e03393a2d97@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ef3JPkhRFJJ4TK9g" Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --ef3JPkhRFJJ4TK9g Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 26, 2023 at 03:14:33PM +0200, Alexandre Ghiti wrote: > Hi everyone, >=20 > On Thu, May 25, 2023 at 11:24=E2=80=AFPM Conor Dooley = wrote: > > > > On Thu, May 25, 2023 at 01:06:04PM -0700, Atish Patra wrote: > > > On Thu, May 25, 2023 at 11:39=E2=80=AFAM Conor Dooley wrote: > > > > > > > > On Thu, May 25, 2023 at 11:37:40AM -0700, Atish Patra wrote: > > > > > > > > > Any testing of hibernation still needs to revert the patch until = we > > > > > have the proper fix. > > > > > > > > "the patch" is what exactly? I assume you don't mean depending on > > > > NONPORTABLE, since that is a Kconfig option. > > > > > > Nope. Sorry I meant the commit > > > > > > 3335068 ("riscv: Use PUD/P4D/PGD pages for the linear mapping") > > > > Ah, if your SBI implementation is one of the affected ones, yeah. > > If not, you can just set NONPORTABLE :) >=20 > @Bj=C3=B6rn T=C3=B6pel emitted the idea of excluding from the hibernation= all > the memory nodes in the "/reserved-memory" node > (https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/devicetre= e/bindings/reserved-memory/reserved-memory.yaml): > I have to admit that I don't see why it is not done by default by the > kernel. My understanding was that it was perfectly fine to use reserved memory nodes to fence off some memory to use in device drivers etc, which then may need to be saved/restored. > Unless there is stuff in this node that needs to be "hibernated", I > think that would be a very good solution since we would not rely on > the name of the "internal" nodes of "/reserved-memory" (i.e. > "mmode_resv"). >=20 > I'm digging into why it is not done by default, just wanted to have > your feedback before the week-end :) --ef3JPkhRFJJ4TK9g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHDJOwAKCRB4tDGHoIJi 0l3QAP47nHaHce2IUnUL/pN8daI31zZR83VfWQj28DyW4rjhsQD/RQnT/DzFIfIE GegmPqf0UP9KetTHlacsi+MttWjg0AY= =zVRf -----END PGP SIGNATURE----- --ef3JPkhRFJJ4TK9g--