Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1593441rdb; Tue, 20 Feb 2024 00:28:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUXS3G0GbpaCxAB4920fCFts3aA99QG0dqNsOg+okqQNWx4Tp5LOkIvLCZaLpIjWzuGCtmnrkt4ZbSox2x7uF927dDNUJQY94lGOY14Ag== X-Google-Smtp-Source: AGHT+IFOuefdNZiuojuO0M+Uqwf/uUKjKMaOUqZgPanZAmHLvyn9HphW5PFUtPKJb+LX3aVW7H/T X-Received: by 2002:a05:6214:4015:b0:68f:6013:7a9b with SMTP id kd21-20020a056214401500b0068f60137a9bmr9034332qvb.62.1708417705952; Tue, 20 Feb 2024 00:28:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708417705; cv=pass; d=google.com; s=arc-20160816; b=0X1iZs/uIau5HawAuzXOYr+/89BtaPa20sdtd8ibK7okiAUbq1eXd4g4f2yFbGsHGw JuzLx7FjDVeoAE3uAJLJ0YKmCrE9Q0zvho+5A8ixIPfTlXvlhTSAWoYCZLwzp6iXKPAD HQrV+9ByYOTPN1B1J0Bb5HrKG3XocsUWgT9V7b+yiORlvxNtWAABHkyDMOlFaq5+35I1 xiHbJDSioDQVSs+fUgtCE++/UN6EC/u0PxWnFb/f5u4/AWOQi2Pi3gtVktCLnJ3p+l2Q nNULk/WQze/eqv1nzc1thL5s7pAx7efvai8+uunrKNCf17oTtMNsLhYs4Fr4dUQO6LKX VyEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=d5pZ0MdjCiNsh9HJBJeoJpfcNnGsN5GoWsFbYZA/ksU=; fh=3LR1rr18IRcZBgER+gZy7BWJ/9fKlnme+FQKml5b2ts=; b=tH/CI3EHAF39dDvupcFdyioMFYwkF7mjGs0QoIjWwWeCEOagWzIBnDUFtDcD8dGAh5 esOPv6FYgi4xrNlm89/o+K+tn7zZbQDobF9WA7yASC37JcBMh7tcMga9PQowBvD9Y86P QvldEJ/FKp1LrGJmttvoVEDOODykDNQI1LMutU6kH/nawglyTRWClG6DwRS1ul2FIHdD UR7MHn6K9IVF23YPfSlN62ceRTC6WNFu0jRgUFJCAwnAi3Qd4f64gqVLmJEJMuRWlahU VDgJyKVNpx++zUwGShRheYKg3EsuDGDpl5lxQrWs5EoPSUO0VqDHLqiZFwHasXNSJsb8 6olA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VuBTIhfX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72555-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 8-20020a05621420e800b0068f8b9e1ad4si1601944qvk.388.2024.02.20.00.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 00:28:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VuBTIhfX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72555-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AAD291C214E6 for ; Tue, 20 Feb 2024 08:28:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47A035C5F9; Tue, 20 Feb 2024 08:28:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VuBTIhfX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 649515C609; Tue, 20 Feb 2024 08:28:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708417688; cv=none; b=qzW70iXsQ+7khRUJadsNVRS2BIspnXk25e/ELRz+beJPoW6lbyqFgtuoljApiJfATyy4Vqx/NM9TXX1wb/DCQtNxAIgDG/5FmdRUSx6bMU5YytG4A7OmshycY0xJ59o7v5Swa3A5tO1L4tUaNOoXeWosEiqm07jWu/CWhZn2UGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708417688; c=relaxed/simple; bh=8NojBs5OOxOWAE3h/AeLXQbt98Gk2zBllMx9ZfLFugw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=skTUv7+QKkDbzI2XBWYby+RkGOubT7x7nkex3GqGuPWiXf+WWBpR8hqUSOV5pSbU9WDtYoZwltyRuN8yqB8dMVGap0DnmpbmTGqSLhGP/0wk9vtKJnBBLpD5NitrJh0oBDqYRLitk0EBAAE+9noAZQeC8VR5nWOeFriZnQ0wUUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VuBTIhfX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5C7CC43390; Tue, 20 Feb 2024 08:28:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708417687; bh=8NojBs5OOxOWAE3h/AeLXQbt98Gk2zBllMx9ZfLFugw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VuBTIhfXyy1WszQ0KLEYbexwTgrNe7OMEwgEDtOgQcS35Dekd88m8Wr+ccyuzW3EX p2XgwJ31uRUyID+9Wu4P1Re2U8jllGzNO+oaNw7Zvmkslxs35tF2jdqz533H7FICMx vzPkjN1iV/Ikf1c6N4KBgow9b1qBvlF6A4aRmNhEr+h6/rHXoVLwPev1q2DjWHTVvR ufA2gm0WV13GGXFkAO0GZRpzaQacYZHrciuHdLi2womFataACBO22KBnmMcgdcbO9p aya/BsQOYDKcFhA4RktManAULDcuUmroX+p6ApHZOTxvbkxBtus80rCtMVO0WNodiu AEMAp6x+THHFQ== Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5112bd13a4fso6685591e87.0; Tue, 20 Feb 2024 00:28:07 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXj9wrWtDHb4EOriYkHH4Q50xJ7ZSdTH0Qbqhu0orxtuPbScmRyGfa8l5N2EneXkb/3VAC+t1VSS7PWoo7F/LT5lYf4Z0y+G9QxFA39ga+VwvHTkRuc76/jYgkjxSIEpvef+Ihkoqh6MAxw02wndJKXPiuS7qz8Ma3bv+0R835a4YUvMphrrRJB5rsyXvQF56NmeBYTRwr6ICiNPrdngWM/bQ== X-Gm-Message-State: AOJu0YwkZs6udMbAj0nkVluZRz4U3NZG87o5KOdUFPRnY7K/B/5AqR5Z QDBLapURY1cJs00cQPDMn2neYLtsJWzrm1lx5asoVa89Be5UTcH8gqdacb6eoC6ufuKsoOgqz1J Od2vuytkRNbdkJdrvkY9TI9UVNMs= X-Received: by 2002:ac2:5394:0:b0:512:b965:f60f with SMTP id g20-20020ac25394000000b00512b965f60fmr1206182lfh.9.1708417686087; Tue, 20 Feb 2024 00:28:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240215225116.3435953-1-boqun.feng@gmail.com> <2024021718-dwindling-oval-8183@gregkh> In-Reply-To: From: Ard Biesheuvel Date: Tue, 20 Feb 2024 09:27:54 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] efi: Add ACPI_MEMORY_NVS into the linear map To: Boqun Feng Cc: Greg KH , linux-arm-kernel@vger.kernel.org, stable@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Smith-Denny Content-Type: text/plain; charset="UTF-8" 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.