Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp10162rdh; Tue, 6 Feb 2024 17:04:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeANIC35Sq1/DX77uMmlKuXC6DwIflQAkPG9XXevl2utpXMqelv9DF13OErDhwAHQPJmqT X-Received: by 2002:aa7:c458:0:b0:560:11f8:5468 with SMTP id n24-20020aa7c458000000b0056011f85468mr2898865edr.32.1707267884169; Tue, 06 Feb 2024 17:04:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707267884; cv=pass; d=google.com; s=arc-20160816; b=GqUeWO33sLBK8kgo6LbcuoxGwYEK4p8/dBI4pXM/aRJaY0HK3wwxWJoETRsQ0fmeB4 HFhrJ2H1SxR/CtRgxMqvZzKrxiNdYqOvDjZe9o+cG4XPHmSpopOUApAlIJDr4bc0bVnC O3mjWeR2cvVYP8LhXp1aqLlWLE/MSY7WoImDbmC6DN8fkdokvPJz9+Y5R4mronFHgaR/ iQZKSKlOoZ8obKSoPrdg3aspCB61gL7bsGWhvHPqKETH7F+rEsuK8fXGC6d3YS+PXDtj ZcozCRbeLM76hObziW2uAZAOWj39btUxr5EbRNtH20SHvn6XgpGRqj4jl3xCy9mAYf0J TZ+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=KSJRZP7YuqNoUD4atd7Qd4EMeXnFCJPyzasdn7MfZzU=; fh=a12l0uXZGO+9XJ55ZruEDLZgACpQfnp/n8JxRESKmv4=; b=oSN2q98EKMdVTaV6VVQekQnOlwm4xq+Yc1ybEPpkTCuDdUHvjIe5eq75AMMs11jQl+ jJSGfeZpBDyiZjR5rhytyqJ3Mv0iT5fnhf1X4oR+HQiDHc3cHE1Iq95th9BDNTRTIHSc nnqFjrCwyjJEJQGLZmFQQZRwrBAmxBMRths1GA9Of1skky8/oFLhp77K/zXPXUed/7J3 44G7PxfBzAx4xc1siogtLHU/shHd32MiMDhC3XtVOpgd5qo3Ip352VQOCbFZGTLDDp2r YEMyJJpLkETD5O0e68QFiClZdf5+LzDwSgo285HlyZGnQRqfh7WkDXEWOI/7OgY2+edI Xx8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b="rXsEbN6/"; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-55777-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55777-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUeaBa3Y9RL038lODgY5cJdblhrlFj1ciMQfDF3rqdhdVRoOQj83wa39TeIsUSE1dd6LRWzRZaePDsbBS7WZ2xmZ4+WHV8lWho/8y9Ong== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t17-20020aa7d711000000b00560c6da8f95si145966edq.181.2024.02.06.17.04.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 17:04:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55777-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=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b="rXsEbN6/"; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-55777-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55777-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E59F21F23C29 for ; Wed, 7 Feb 2024 01:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11D45D528; Wed, 7 Feb 2024 01:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="rXsEbN6/" Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 C4ABDD271 for ; Wed, 7 Feb 2024 01:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707267876; cv=none; b=kVawNg7GkCUrCw0+45UK+MvacvRYbtrwtQWEnWSnE5fWNy8lSLlCDig2aInGdf/a3mJP1VgyGCnRfqAUZlgziQ9B3uNNbF5HAZuLdqfD6fD3NhXkMQo+/v/1K9yCZNU9MMhqlvcH38u5n3uZASoY9+jNGwndoijvTVkKUV2HFmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707267876; c=relaxed/simple; bh=tnqp0+o4UjQ9pQtqj33Rbv0wz4gTOgCsar16HtLe8Zo=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=ZcpqEv9DXjMYWma2REDZU+Y+MtlOToyNWdanTUYyIgGQg+bXxNGmSogldAtlq0oMqcjPPNntr4EYAj0bTkDxkk1YDSz2pu7ulk/sB3GKge/Cc+lGyLM83D9VVK+3x4JM58RNp6/w1Cdy/MTq/C8lGTPXaGPKyW3AmI8PLzEZrzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=rXsEbN6/; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-296b2e44a3cso65441a91.2 for ; Tue, 06 Feb 2024 17:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1707267873; x=1707872673; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=KSJRZP7YuqNoUD4atd7Qd4EMeXnFCJPyzasdn7MfZzU=; b=rXsEbN6/nhRnPT+AcObKOIIa8gZV4n+vMVoKAE+3yFeVcVUvVp4Orqcjh1S7u2b6tG jzQIjHDwS9VbxmlOxwRi2d5LigBsXSBzOjlYaTzdSgmNuPAshoxv/AcqH7k30ROOX4bb 5ZznYSwb5vMZk2pGbgjhMLQLrtPc7JGxmuM2PcUIeUPDaNCz3BCrst57V9eOoEJtHX0y xlZrzIT1E7hxUXfNJcs8VOH3pD8WS1qNRsJyT1G/UJ9PCOhHDAxHL9XEzELCWNrg7bmQ Z2XYB4yf1Evr3IqxjEFl3dzamdPa/ekl3MUQfUq8uZBNo46tSgE/m/z2duYn+jhwNd1M 5PNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707267873; x=1707872673; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KSJRZP7YuqNoUD4atd7Qd4EMeXnFCJPyzasdn7MfZzU=; b=nskmmXRH6LRraihDSPAiHdU4KZBhYwOQ49UVCvAC7o7+z9CVnVWnFcDA8g3YR2Y0rr WVfGzwY5tRNUtNTpyNIlMVmAmczO1IPTraBGRIpR+Ec3FA7rFQEVNiwbH33chSJqVzJ/ /NqYmzXXU+3PsuyxTsmmrj2C6l71jpduwx9BvAQmOoqDMUgnC9nRvR0bWgw2bnqhWnnZ 3yz+/HoLtRi1VcgABPNizTKWW7Ld1+YaZqsQoqyY2vYGOZQihHHCmdN5NvklVxDs5utY X0vb0KIRVO21lRpuvGKBE2DX2nXzYl+ZWmw/PNPfJptiUS5G5xq8VbxwV7VVPDyhN2eh 0vGA== X-Gm-Message-State: AOJu0Yy4z10jaoT4hDGRQ/Ac4vEwxsEt3VqxuEY/A/LfrSme3PmljZuh d//2euWNVZyi+4HbIz7+96Cov9DzwOUW6417fA9jAQm5TU6JeAGeX5Kcs9pCmmo= X-Received: by 2002:a17:90a:b898:b0:295:2a35:13b8 with SMTP id o24-20020a17090ab89800b002952a3513b8mr1261301pjr.0.1707267873057; Tue, 06 Feb 2024 17:04:33 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUStYCrR4F6SLcGDQdilqCjiTl+isSJhk9msycAA9AIFOWfBGH7nLE+EP2Q+9bM0HYvysrMJbEuMAt1o4RmLLsAKKqmNiqiO4W9flKqxUsq2W6CiOG3uayyvxdtGWkAgDXi7L/5EHgxs6fDwJ0T17FYXXxM5b0L3Vl2EiVoGHQx2eu8FHmGlmgb8nFLuybkfRJWbAexLNK7WB3ADW1DwAQRp5/23J+d7C163DWM1XGwnTHQTi7dqv5JHw== Received: from localhost ([12.44.203.122]) by smtp.gmail.com with ESMTPSA id bb1-20020a17090b008100b002963e682f6fsm2404918pjb.57.2024.02.06.17.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 17:04:32 -0800 (PST) Date: Tue, 06 Feb 2024 17:04:32 -0800 (PST) X-Google-Original-Date: Tue, 06 Feb 2024 17:04:31 PST (-0800) Subject: Re: [PATCH v2 0/2] efi: Fixes for EFI_MEMORY_SP memory on RISC-V and ARM64 In-Reply-To: CC: abrestic@rivosinc.com, Paul Walmsley , aou@eecs.berkeley.edu, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: Ard Biesheuvel Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Fri, 02 Feb 2024 10:28:54 PST (-0800), Ard Biesheuvel wrote: > On Fri, 2 Feb 2024 at 19:07, Andrew Bresticker wrote: >> >> Two small fixes to enable the use soft-reserved/special-purpose memory >> (EFI_MEMORY_SP) with dax_kmem on RISC-V (and ARM64, I think, though I >> don't have a platform to test it on). >> >> Patch 1 fixes a trivial integer narrowing bug. Patch 2 prevents adding >> memblocks for soft-reserved memory so that it can later be hotplugged by >> dax_kmem. >> >> Tested on a RISC-V platform that presents a range of EFI_MEMORY_SP with >> Bjorn's MEMORY_HOTPLUG series[0] applied. >> >> [0]: https://lore.kernel.org/lkml/20230512145737.985671-1-bjorn@kernel.org/ >> >> v1->v2: address comments from Ard >> >> Andrew Bresticker (2): >> efi: runtime: Fix potential overflow of soft-reserved region size >> efi: Don't add memblocks for soft-reserved memory >> > > Thanks, I'll take these both as fixes. Acked-by: Palmer Dabbelt Thanks!