Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1017682rwd; Wed, 31 May 2023 08:23:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IPmbBF0p/y5LFAmndgNchLa3+YPlMucAzSgfMVFWCuWgLgmBrYyWjnswqgoxRJzX0R3mR X-Received: by 2002:a17:903:2651:b0:1b0:25ab:a9ec with SMTP id je17-20020a170903265100b001b025aba9ecmr4177511plb.42.1685546635693; Wed, 31 May 2023 08:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685546635; cv=none; d=google.com; s=arc-20160816; b=dBSgcMvyPF2lX/6z1RDYQTsKdjk0Mi/en+/1KGHKKGbflBroljy8ZqurpAeKu1jRqo TKxRg+siMzpCcb3utptXDNay+iKKzdtveOJ51qGaAWEOj7AvRoBJbpRrLt6TT8GWiKSm RYpLVIzW3eKovo7ZGX8mjTvgFrVIPHRPahG6u21iQoa2N9r+C/zglEq0dpos0Sv0jOna TbB0vMadUupgQ6QDySPAkdHM0r+iwq0rIc+8nQf70PDbFiIplH91KsWNpHDHnILuLM2/ IEaYRL4fcwwW4hKgID8AIdYWzcTtWNhVRH+kzOXHoFVXymt3iOyCE1PVnNZWXq6iV5L5 hyCQ== 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=S/ZAxxatA1HzXKZ3huYgd+4cVw/wMsztV/X24FVAf3w=; b=M6mZErUrxX8ZqFevXI6Sfk+NXQNwqmJImKPKaj9hsFJwGAR7Ddiew93jCWWQU9ssMs s0RtyDTKA2km3yx6vxnp3nnmnEA3ujPM6qMrHjn0/nOfHwu9omQPh2zt5+JBBf7UVBlC Ld5zosqnJqy7TE30CaE7+3AXS8NLd8zsGYNjBz2ZD//JMF+TokSh5KMLIfK4xUh8gfd3 yIedjKyx0L4/DRekq2XW5FtiPYPQX9pNOVZgUahj2Ojnh6MlQXkDjS1m2T6ZBnzDYiha sRBYH3ZXgRY6OkhbDRNIVmtKGTcp3t8soO7GmP7P5jKRj5iVnr3zzl07tuYtQPMR2SDU OBQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IaeeWc9h; 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 2-20020a170902c10200b001affb6b00f1si989929pli.455.2023.05.31.08.23.39; Wed, 31 May 2023 08:23:55 -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=IaeeWc9h; 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 S233946AbjEaPK2 (ORCPT + 99 others); Wed, 31 May 2023 11:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbjEaPKY (ORCPT ); Wed, 31 May 2023 11:10:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10F37C0 for ; Wed, 31 May 2023 08:10:23 -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 9154763D19 for ; Wed, 31 May 2023 15:10:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E8D5EC433D2; Wed, 31 May 2023 15:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685545822; bh=pL4sre/8I+lAJhI65dVhLrNVbXbcple+qv/qIynQKwk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=IaeeWc9hF4u/krb4rVlynNldh5n74wLIBCm7e57SCXt9rvaIZPoGOIqX+07gBi5gW +Loemm5FJflzXLSe03XSsKn439lbLMH82yykl6EcLfY79+oST7hD+HiQtlGpQPeeGQ aVOHgPVxbjv4w+PTXwSV7Z/n8jms0yZ37a0pWVsOxr3DgWMajZpPNvBmirOTWcvnkb RrXG22AR7/1RBH8f6rdPaFkWZ8qAKWPh020qY2QmoDVEH4OKR+FpkC9Q2KsmwKpXJb 5T9f9dXfNb1/9vVE46eZgNaWhTem4oNGgDIDRdNhY+avb7pfSUqHuZ7XhW0GT85nKX UhDsy6b9THQbg== 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 CA578E21EC7; Wed, 31 May 2023 15:10:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v1] RISC-V: mark hibernation as nonportable From: patchwork-bot+linux-riscv@kernel.org Message-Id: <168554582182.8247.5723560098196678790.git-patchwork-notify@kernel.org> Date: Wed, 31 May 2023 15:10:21 +0000 References: <20230526-astride-detonator-9ae120051159@wendy> In-Reply-To: <20230526-astride-detonator-9ae120051159@wendy> To: Conor Dooley Cc: linux-riscv@lists.infradead.org, palmer@dabbelt.com, conor@kernel.org, atishp@atishpatra.org, anup@brainfault.org, alex@ghiti.fr, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, suagrfillet@gmail.com, jeeheng.sia@starfivetech.com X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Fri, 26 May 2023 11:59:08 +0100 you wrote: > Hibernation support depends on firmware marking its reserved/PMP > protected regions as not accessible from Linux. > The latest versions of the de-facto SBI implementation (OpenSBI) do > not do this, having dropped the no-map property to enable 1 GiB huge > page mappings by the kernel. > This was exposed by commit 3335068f8721 ("riscv: Use PUD/P4D/PGD pages > for the linear mapping"), which made the first 2 MiB of DRAM (where SBI > typically resides) accessible by the kernel. > Attempting to hibernate with either OpenSBI, or other implementations > following its lead, will lead to a kernel panic ([1], [2]) as the > hibernation process will attempt to save/restore any mapped regions, > including the PMP protected regions in use by the SBI implementation. > > [...] Here is the summary with links: - [v1] RISC-V: mark hibernation as nonportable https://git.kernel.org/riscv/c/ed309ce52218 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html