From nobody Wed Apr 1 21:59:42 2026 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6DA4406297 for ; Wed, 1 Apr 2026 12:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775046252; cv=none; b=jewEz8zrQoEq7o7ilEOyT+Fnb6tF5QKxiywpih8oG9CX+zaJdWe6uQEEWY1McvqFIWBdh4z6ZMIIALQYphclj4txex/1u0haGiyfSIahBTlj7v+Ht77Hazl7q9KqSzSnlVaS7ReTaTDyl9LZuknqis6/hLW71Edt4S3HkGlu4BU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775046252; c=relaxed/simple; bh=YK+U8DngO2p2xHvfZLICzQ7p9q/5l2Pooo/tpmsxwDg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Bf1/e2+f4Kql8FNQL8nbttAKVB5qkajz2yz1oDjRjolLkYx/FDaHzDWs/G2c3vc84VR9Lsh/FOyL6U/6pAoHjlAAg2yImIFfqQd4ag23bGKXKQmpOwvYLdoFqMiuP/1x+BuHNLHxaU6Y4qJsFtJ6aGYP5LvUOvDw0zGemfJtchk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=m1ZTlN3K; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="m1ZTlN3K" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-486fcc05b20so44795805e9.3 for ; Wed, 01 Apr 2026 05:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775046249; x=1775651049; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/aM4S1PduY4h/8bCx53tKfnLs3GrlzWIDVWJDUhE/+8=; b=m1ZTlN3Kh4W08rBQ8/ZFD5PJNkQQGoGzzgrUUp/VXN1g/oSfRkek6tRiGMXsGrd4rQ 80HvFMkN3uUZn+RHIYhtC5oxuJYzsXFJI3WeaLnBq8tv8UgZYQ/AOgkhkXJ87yy/IszZ U4lTgUwE/18YiIL+kBeoJJJwfbzBUhqfFrUPLN9C1//0aPMRIpMGI8BlJXToqSbhFsL3 PBRlT6RI3XkJRxkQIbzH+ErntD2a9F+/OPzeta5cK6wTe/IrWOhXbfLHI2JidZCztuP0 c1mFM+sJw0tY6IzQ8L01gscMfn7jioixzNjQpe/dXfP7K/539Tzb+iMzbYZQToJjo40P AdUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775046249; x=1775651049; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/aM4S1PduY4h/8bCx53tKfnLs3GrlzWIDVWJDUhE/+8=; b=n2ynI6QOPfxJHFKPAgQ33H51CogM5rx8jU+o++wI4jWb6HTApYFWAtSbQV5oLkO1sI eeLe/NHXkqiLpeeMiZBNZDFQtksiZ/IUHsbytxPhZWBVFg3STqqBHVjYTcveZ4AZHiLS /PA534CG31z+kLP7bkoSY2UVXHnqBVtYrB+ocliXIr3J3u3qTN3v+0iO8gr8f3UxsSQW mRbbbU7ts7LhxCdZlntt1RfRgH0DRkQh8/WkvenKwM/S1TIPRT/2ddWmnvPB+PjGi9up G+fTF4UMbwsd0v/5iSkGBnVJKXQKP8o3ZBsftEEtnnQqCZBtpCwBTTnqr+vA3uMhsl4n ScDQ== X-Gm-Message-State: AOJu0YwYrFviNV8q7OhvCDT+AHdGpO1PSdwicIz6lyNO9z8XE/if4ac+ G6FWDj9KNHkkQJtvsIlu8BcDo1KcU9LyHndIMWuWvWr/pTCR3dvY9XKOpfXcp5W9t9SAPkmG/g= = X-Received: from wmf3.prod.google.com ([2002:a05:600c:2283:b0:485:6976:d608]) (user=ardb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:3e1a:b0:488:7784:d06 with SMTP id 5b1f17b1804b1-488835abf84mr53317615e9.31.1775046249386; Wed, 01 Apr 2026 05:24:09 -0700 (PDT) Date: Wed, 1 Apr 2026 14:23:56 +0200 In-Reply-To: <20260401122351.2058145-7-ardb+git@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260401122351.2058145-7-ardb+git@google.com> X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-Developer-Signature: v=1; a=openpgp-sha256; l=884; i=ardb@kernel.org; h=from:subject; bh=QYLi+A1pkK5JDmD/bJgyNt3bd0+6uqfnrlyZz6kzmFw=; b=owGbwMvMwCVmkMcZplerG8N4Wi2JIfMsX9xpppBd5ubu19azZa9jUo2UTGIVN2uoWPDmSSJLw T1Lq/8dpSwMYlwMsmKKLAKz/77beXqiVK3zLFmYOaxMIEMYuDgFYCK7nzH89+adVHhJIdqLe6Hh qcxT91VLWq8pFWd3iagoWCTJuj6rYGRYMKH5xqs3R/+4/jyWF15weP72eo49gRXP9d88ZFO+ssa bAwA= X-Mailer: git-send-email 2.53.0.1118.gaef5881109-goog Message-ID: <20260401122351.2058145-11-ardb+git@google.com> Subject: [PATCH v2 4/5] efi: Use efi_mem_reserve() to reserve the memory attribute table From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Ard Biesheuvel , Dave Young , Gregory Price , Usama Arif , Jiri Slaby , Breno Leitao Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Ard Biesheuvel Use efi_mem_reserve() rather than memblock_reserve() to reserve the EFI memory attributes table. This is needed on x86, where memblock_reserve() is not sufficient for assets that may be placed in EFI boot services data memory. Signed-off-by: Ard Biesheuvel Reviewed-by: Breno Leitao --- drivers/firmware/efi/memattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/memattr.c b/drivers/firmware/efi/memattr.c index b83f1c5a9164..785b7fc687fe 100644 --- a/drivers/firmware/efi/memattr.c +++ b/drivers/firmware/efi/memattr.c @@ -75,7 +75,7 @@ void __init efi_memattr_init(void) } =20 tbl_size =3D sizeof(*tbl) + tbl->num_entries * tbl->desc_size; - memblock_reserve(efi_mem_attr_table, tbl_size); + efi_mem_reserve(efi_mem_attr_table, tbl_size); set_bit(EFI_MEM_ATTR, &efi.flags); =20 unmap: --=20 2.53.0.1118.gaef5881109-goog