Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp97557rdb; Fri, 16 Feb 2024 23:49:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWg7L12Sz/h/h63ruLXyjMGT82T81lVKgwFuqXnOGHJ2R0uCpkUka28y54RE0853SxZewWLp1pwKWglWtGeh9RRtacnCdVK6PFaxrnacQ== X-Google-Smtp-Source: AGHT+IE0Sje//bUnzf2tvxyUwPhmgUt/WMu5SvvcX05CL5t+/j0SeL2KWp3C4BD0XsrqLwHg8Sjz X-Received: by 2002:a05:6402:646:b0:560:1652:e7cb with SMTP id u6-20020a056402064600b005601652e7cbmr5199735edx.16.1708156185477; Fri, 16 Feb 2024 23:49:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708156185; cv=pass; d=google.com; s=arc-20160816; b=M64brBwqGNUUj2MGol/KGMN1BHmS197mE6+HVP+uOD7P8Oqc8g0kNshHFIk6YhESZ3 JvvFZsRWMf77dD6Q8/ZydBRmKVnSKtTtNcatKFx3GMtl0Xbsk7B03uyBYNeWKqZNNy6W uuToQ0LZtDgh+JbOnVQXD+NIDUPbz3OEUpbjHmn19rbyAraoN5XNpVu4vVeWyqYjCLda nz3Chkew/lWbL19DHNCEVygRn3KaApDRFBksJIzODNGVj5JSgGHZoDn8dEFw3rJaBXh4 I5ndX2kbTy44Qti58arSWPRve3VaiV+BKLe0focsaZKQr0+VFygl3Rx1yDbLVm4Tga00 h/Bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P3yk54iex7nGe0KiT9+NAsQojiSiORdiYbqhDRdWeA4=; fh=KBos/DFVcIkSUxhpMO8zAiLH4dWIkeKMM0LQjVjHCog=; b=1LWZBsQ/QEV1NM96VHvKQYAHaHF0sSNirz6p+f4eVulym+znNAhUyTru+eeHopiCMz 4vtS9dNn22lQ0rJWcfvmJFbzp1Y0atYolS01quIhxPrh9maUlKaypYiFWwsz6y6RlWpQ McxeFG81+OudDd9UJxMeNwwqF6Hw5ho+uKcLVTk8bLtiqyk95gbmUKLk/F012ByRcMW2 bg9CtVAI9bPE4QtPfppu2MTLmzjVpYkbQYO0do0pIWNRss1o875VGKT5h1rZYE9WTsMP CzUk/s/vXTrngL8G1+JCM/zIcuj/UnoOfbN04rJ/9etDVErQ7UJ3CdpV/rscKBmOWhkM ezuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R7aAMdwT; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69731-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69731-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e15-20020a056402190f00b00563d0ce07eesi689990edz.199.2024.02.16.23.49.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 23:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69731-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R7aAMdwT; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69731-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69731-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2F6161F222DC for ; Sat, 17 Feb 2024 07:49:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3991C1CD1F; Sat, 17 Feb 2024 07:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="R7aAMdwT" 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 3227B149E08; Sat, 17 Feb 2024 07:49:35 +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=1708156176; cv=none; b=rCvkLKHafH6KPi/gwu7S1UB7brsHLfSN2N9CLKTGpENnSWG7T6k46+N4Y3UofCCv7BQPAG0lgPEFc0A8x3S0t5ZyR9SkS1F97Hd9CI9++jyckmDlZl3HDf+5hnSvP9v8ffEf1g2TGEvyI15r6Sc0R6WoHExzYOAD//eFGVg9y7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708156176; c=relaxed/simple; bh=xA0BMgVgYSGSfjkjE5RXNiB5SaRQ7Z5mUofy+cyyg20=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p6O8H2H+ToaOMkie1HwxSzJKpQy4/UV3aSmkxZ65yZ5YzyQV/QRUbG4nRWG+GBuirvGpcfvKZuk15GgH5oSOomlfxYstdmAO/e3Clr9EbwcvEGhQGOrT7dfLvho0sX4NueDCDvprBxqJdw9jgm3E2kXm0JzLgE/Tq2oU3vfb13w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R7aAMdwT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07E30C433F1; Sat, 17 Feb 2024 07:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708156175; bh=xA0BMgVgYSGSfjkjE5RXNiB5SaRQ7Z5mUofy+cyyg20=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R7aAMdwTrTwek3wpcqcU9S4FFPWfRV3+2dl07WzErYgBUGoLhYewEoBPC5sowjZ1M uv0XSoycpOCGmdpT6ukdeJmrNiPnDNLVHcOjsI9pIYQqe01blTcr9CA49nflxEmRIO oYsjKJkqeUhfU5fQ00NZ2XCTLlV155Q7UXNkoZno= Date: Sat, 17 Feb 2024 08:49:32 +0100 From: Greg KH To: Boqun Feng Cc: linux-arm-kernel@vger.kernel.org, stable@vger.kernel.org, Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] efi: Add ACPI_MEMORY_NVS into the linear map Message-ID: <2024021718-dwindling-oval-8183@gregkh> References: <20240215225116.3435953-1-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215225116.3435953-1-boqun.feng@gmail.com> 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? thanks, greg k-h