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 17829C5475B for ; Tue, 20 Feb 2024 16:28:55 +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=tZb4ZIIVn8os5orNFoGg4U1INp6W3+zFfJVIu9s/t5k=; b=DIKC822/TxnO2/ iiW0pvRfc/m4VicodZp7Y30FQIsgefquJAYttMbfBPXxKnwhTLXnDOuL9zKGJkEhJCJUKHE5tVrcm gfKLztKKFB/+X7ryNTZqPnavZXOg3D7qKk/M3PtjTvd7SpMjAE1cS46IK/q3pVl8/89AN1FvmgI5b QwblMN5SP9WW1IPeJ2FagMaKp+pYRk+x79tFE3eH3N3jfOL1LARqt1m4z8mKCAynEASHv6fYJYZhR 6CvsYbywIEQ+M6/x04PtpG/oYUaAStvbS9HoKxeYjsbIOZpIZ4vjJXp9VwWsZom8W43fjFiTH4OnY tYFhBTpJsgXxg4WOFGAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcSz4-0000000FTnj-0A1Z; Tue, 20 Feb 2024 16:28:42 +0000 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcSz1-0000000FTla-37iS for linux-arm-kernel@lists.infradead.org; Tue, 20 Feb 2024 16:28:41 +0000 Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-68009cb4669so28177426d6.1 for ; Tue, 20 Feb 2024 08:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708446518; x=1709051318; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=RjGTnWRy8wicbi/6hD5b+oySTHtfpKaKjEocn8v4DOI=; b=TzpW3akR71DtymjxoBIlSmVOqZyiW29I03/NC9WljUmy9Okt6agKeWo73elW0ULifu jOegoCygqLSGHe+BmFpjlyarngHWuWM0DskLICU6Udf9IIEo8sr5cOnVVvtd2e5k/OME 4FKVCi7kSO0TNMLxUOjnb47/PsbBQx3ShnbmkeL8vHSNwUZrIJ8VOyAFkMA1ECQMHbgf jpLomElJde0NsM/x3QiRAirhzh9LOycgqT0WTQ+icdFllD+YEgblKCf3dg/cbC9E8qy4 26SLZVFFrlcyAvivlH6FHpqrogin8BA7hrFH8Jq5cIjN+WzeEd5xwticKwNt86vnF+RY 0Epw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708446518; x=1709051318; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RjGTnWRy8wicbi/6hD5b+oySTHtfpKaKjEocn8v4DOI=; b=oWEsANAyM+cAGWfBcvAwAoNZ1Z+eFwPAwt4BijuyrBsfqfitRDDInEGxZPbcaoYskr xXRQLhQ2soAxrUR7FLJEDIgsUXcglvsPviVFbYEOw7ObHHic909+VuUXnc6fmiocdYDz IDWU9sr6HpTWtfKnVNgWQPite8JKAmSMBG6CGaBWE8Kfd8zj2uMRS4xPHl1PaGAIOa9P AJR4TjeEE/5vG6jSx8Mm/PY8J4bMMPkir3npTb2CXn0UWAeW4sEenH2MK0c+Q/+JP+3b QUzMIpchXw/0lMvfUpNOwIv+3iXYmrCcvnAhxaxCStoGEAgqMkT9oxwzdncD8nTySHuP A4WQ== X-Forwarded-Encrypted: i=1; AJvYcCWkqGRwfko1hvUGNBQ/cFy6ThGFMbNIIaBZUz7CGXltr4Nm28TmBj52+bF2CCBBDSgcI7tCMOgGXYmjOFsNcvBXeOnLNYTqtLinx+u+sFQ6EWG1Lmw= X-Gm-Message-State: AOJu0YwoZuc9BnOsmo+C/UvQ3lpAUaGid3KtPPrOyuMVPjfXJF26PTYC PPAf3j0Bj5zuCjtNOmczWz3EzpMsX8KrbcJWKdZJiEKvK+YvTCDu X-Google-Smtp-Source: AGHT+IE6O4Z0wvE9uz+3RViiYkDjcP1LoY+8Nhv9n+YsyZzQC3zJkZQoeaXnHlgX6VmjrbV9VP4UeQ== X-Received: by 2002:ad4:5aa7:0:b0:68f:52a9:3b24 with SMTP id u7-20020ad45aa7000000b0068f52a93b24mr9074867qvg.29.1708446517828; Tue, 20 Feb 2024 08:28:37 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id oh8-20020a056214438800b0068f5a422773sm3382230qvb.14.2024.02.20.08.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 08:28:37 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id C7DBA27C005B; Tue, 20 Feb 2024 11:28:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 20 Feb 2024 11:28:36 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeeuohhquhhn ucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrfgrth htvghrnhephedugfduffffteeutddvheeuveelvdfhleelieevtdeguefhgeeuveeiudff iedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsg hoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieeg qddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigi hmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Feb 2024 11:28:36 -0500 (EST) Date: Tue, 20 Feb 2024 08:28:18 -0800 From: Boqun Feng To: Ard Biesheuvel Cc: Greg KH , linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Smith-Denny Subject: Re: [RFC] efi: Add ACPI_MEMORY_NVS into the linear map Message-ID: References: <20240215225116.3435953-1-boqun.feng@gmail.com> <2024021718-dwindling-oval-8183@gregkh> 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-20240220_082839_844573_946E8AC8 X-CRM114-Status: GOOD ( 24.95 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 20, 2024 at 09:27:54AM +0100, Ard Biesheuvel wrote: > On Tue, 20 Feb 2024 at 05:10, Boqun Feng wrote: > > > > On Sat, Feb 17, 2024 at 08:49:32AM +0100, Greg KH wrote: > > > On Thu, Feb 15, 2024 at 02:51:06PM -0800, Boqun Feng wrote: > > > > Currently ACPI_MEMORY_NVS is omitted from the linear map, which causes > > > > a trouble with the following firmware memory region setup: > > > > > > > > [..] efi: 0x0000dfd62000-0x0000dfd83fff [ACPI Reclaim|...] > > > > [..] efi: 0x0000dfd84000-0x0000dfd87fff [ACPI Mem NVS|...] > > > > > > > > , on ARM64 with 64k page size, the whole 0x0000dfd80000-0x0000dfd8ffff > > > > range will be omitted from the the linear map due to 64k round-up. And > > > > a page fault happens when trying to access the ACPI_RECLAIM_MEMORY: > > > > > > > > [...] Unable to handle kernel paging request at virtual address ffff0000dfd80000 > > > > > > > > To fix this, add ACPI_MEMORY_NVS into the linear map. > > > > > > > > Signed-off-by: Boqun Feng > > > > Cc: stable@vger.kernel.org # 5.15+ > > > > > > What commit id does this fix? Can you include that as well? > > > > > > > It should be 7aff79e297ee ("Drivers: hv: Enable Hyper-V code to be built > > on ARM64"), but as Ard mentioned earlier, this could be fixed at the VM > > firmware, and Oliver is working on that. Should the situation change, I > > will send a V2 with more information and include the commit id. > > > > The patch as-is is not acceptable to me, so no need to send a v2 just > to add more information. > > Please consider the fix I proposed for arch_memremap_can_ram_remap() > if fixing this in the firmware is not feasible. Got it. Would do if necessary, thanks! Regards, Boqun _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel