From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD614245012 for ; Wed, 19 Nov 2025 21:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763586642; cv=none; b=jEbHQ2a02BzFpXT9Y2T3tYUVQNlQr2GHCxvMpGfYrPhxJulgW7SJb29pOvMx8tj19i9nGxdpFrglGjD/Ygq4r5AXr13DRy96gPj0cbDbjrJTbIltdrF2dg5pOcbt2K+Q8dlXcvVnPH/dd2jFwyG6D/jDxQwMSxWu/CY0W7Hbe94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763586642; c=relaxed/simple; bh=vB9uMuE/6VUBkTG1kF2xdQg+1yULfXb4MebX/i4ZDKQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XqE2CXDj3nSzU7C/f30PWNvscZCiYZzo4wOAKnjMVBm2bpnknzZ8CsK5rpNjhWjly1TfghywUZTSqOv8kpmbaCbCCHs816/NpwScWLnUIjVOayIaF0qMA6tiCKapB8YkFivQ0hMq+lTsomRlpD+WAPuU3LT+/tELkPZLNJqxMvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 46BEAFEC; Wed, 19 Nov 2025 13:10:32 -0800 (PST) Received: from arm.com (arrakis.cambridge.arm.com [10.1.197.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B66573F63F; Wed, 19 Nov 2025 13:10:38 -0800 (PST) Date: Wed, 19 Nov 2025 21:10:36 +0000 From: Catalin Marinas To: Yang Shi Cc: ryan.roberts@arm.com, cl@gentwo.org, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [v2 PATCH] arm64: mm: show direct mapping use in /proc/meminfo Message-ID: References: <20251023215210.501168-1-yang@os.amperecomputing.com> <176357957114.2095636.13353317001365823131.b4-ty@arm.com> <76803fd4-7a7c-4018-b2cc-8e36cba60729@os.amperecomputing.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: <76803fd4-7a7c-4018-b2cc-8e36cba60729@os.amperecomputing.com> On Wed, Nov 19, 2025 at 11:37:13AM -0800, Yang Shi wrote: > On 11/19/25 11:12 AM, Catalin Marinas wrote: > > From: Catalin Marinas > > > > On Thu, 23 Oct 2025 14:52:10 -0700, Yang Shi wrote: > > > Since commit a166563e7ec3 ("arm64: mm: support large block mapping when > > > rodata=full"), the direct mapping may be split on some machines instead > > > keeping static since boot. It makes more sense to show the direct mapping > > > use in /proc/meminfo than before. > > > This patch will make /proc/meminfo show the direct mapping use like the > > > below (4K base page size): > > > DirectMap4K: 94792 kB > > > DirectMap64K: 134208 kB > > > DirectMap2M: 1173504 kB > > > DirectMap32M: 5636096 kB > > > DirectMap1G: 529530880 kB > > > > > > [...] > > It matches Documentation/filesystems/proc.rst, so I'm fine to align > > arm64 with it. > > Yes, it does. > > > > > Applied to arm64 (for-next/misc), thanks! > > > > [1/1] arm64: mm: show direct mapping use in /proc/meminfo > > https://git.kernel.org/arm64/c/1102778cb023 > > Thanks for taking the patch. However, Ryan noticed some over-accounting > problems and had some suggestions to code cleanup as well. I'm going to > submit v3 to the mailing list soon. Ah, yes, I forgot about that. If the change is small, can you submit a fix instead? I tend not to rebase the for-next/* branches. Otherwise I can revert and apply a new one. Thanks. -- Catalin