From mboxrd@z Thu Jan 1 00:00:00 1970 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.subspace.kernel.org (Postfix) with ESMTPS id 97E3733F580; Fri, 19 Jun 2026 18:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781894147; cv=none; b=iw3a9TiWpMPoyga0pGxvSjF3Nb9F+u6azsTAJLBg5fylkKYzo5BGYEmlcOID0QNbtE7prQC6z3Rd+7AOwN4xERvn5rKXrrIpidexBFJRMRlvyB0PjGsPogkVsEn4F98PLm2apxiwT1NJleaOgM/UD4CaumOAKaUf/iYFKVYhwhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781894147; c=relaxed/simple; bh=F0y1aKuOCzVwW7baVOYmxhK5X3tQzLTAM5ZcwqF9hbI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ON0hu5IFJjC18KecvQ9npvzLkAZz5lKi9A5fgB2ByW1oRUSh4+T1+SmOxerdFIsAlYJPW6raHGvsKuCuMUA6nnaFfehDZUT0k/guxkmABCBmM9lhw1OGT1deYfuW8LKhErKeH/HTM2LL340uN883lnu2bljDKphtJ0h/ZZTOQdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=vxqlTXYb; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vxqlTXYb" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=JQMxCGsJgO5z4xKjYc47x9IC9JtLm1aAXZzKHP5+ngY=; b=vxqlTXYb+ohjD3QbIDox/VbpTZ hd7Uy+grwldfWVL2kS3Bu5GhxUZywxzL93GgqLNnYWvaH2q2e2RGX/7B2hyM1YHZ+xzhignyfZaUz 8dTQ/PJOuX3u0zlWiP+cYGe+TzOx7dq3h9c13Q7vFHhb0C3G4isI5awLfBC4k7dlV/q+DnGU/L3uB U9T0jcPxT6mZ3RX74b9IIVrPBYgXti2EPXjdUvmgAt0C6iK7uPtykmF+g+/VK9H0duCp7550a/8Wc ZLxZr/MvhvXaX35nyYn96fpCGmXeasV4GyzVYOPH8MO87lMjIoVA6WAM+1pigXsIA5mvZyhMH6BUf O2Sz6BpA==; Received: from [50.53.43.113] (helo=[192.168.254.34]) by bombadil.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1wae42-00000002snX-3wNA; Fri, 19 Jun 2026 18:35:38 +0000 Message-ID: <3e206be0-3ef4-468f-b7e7-7bc03848b0d0@infradead.org> Date: Fri, 19 Jun 2026 11:35:37 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v2 PATCH] reserve_mem: add support for static memory To: Shyam Saini , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: rppt@kernel.org, akpm@linux-foundation.org, tgopinath@linux.microsoft.com, bboscaccy@linux.microsoft.com, kees@kernel.org, tony.luck@intel.com, gpiccoli@igalia.com, bp@alien8.de, peterz@infradead.org, feng.tang@linux.alibaba.com, dapeng1.mi@linux.intel.com, elver@google.com, enelsonmoore@gmail.com, kuba@kernel.org, lirongqing@baidu.com, ebiggers@kernel.org References: <20260619062331.348789-1-shyamsaini@linux.microsoft.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20260619062331.348789-1-shyamsaini@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 6/18/26 11:23 PM, Shyam Saini wrote: > reserve_mem relies on dynamic memory allocation, this limits the > usecase where memory is required to be preserved across the boots. > Eg: ramoops memory reservation on ACPI platforms > > So add support to pass a pre-determined static address and reserve > memory at a specified location. This enables use case like ramoops > on ACPI platforms to reliably access ramoops region with previous > boot logs. > > Also skip the parsing of when static address is passed. > > Example syntax for static address > reserve_mem=4M@0x1E0000000:oops > > Signed-off-by: Shyam Saini > --- > v1: https://lore.kernel.org/lkml/0eaf3be2-5121-48b7-aeed-196405c0a480@infradead.org/ > v2: Fix code logic and incorporate Randy's suggestion OK, you fixed a few typos. There are some bigger things that you seem to have ignored. > --- > .../admin-guide/kernel-parameters.txt | 15 ++++++ > mm/memblock.c | 47 +++++++++++++------ > 2 files changed, 47 insertions(+), 15 deletions(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index b5493a7f8f228..7e0baca564b97 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -6563,6 +6563,21 @@ Kernel parameters > > reserve_mem=12M:4096:oops ramoops.mem_name=oops > > + reserve_mem= [RAM] [RAM] means "RAM disk support is enabled." Is that the case here? Is "reserve_mem=" only for use in case RAM disk support is enabled? ISTM that you need a new designator instead of RAM... or overload the use of RAM by adding more info near the top of Documentation/admin-guide/kernel-parameters.txt. > + Format: nn[KMG]:<@offset>: