From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8C83C433EF for ; Sun, 27 Mar 2022 07:40:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D1BF08D0002; Sun, 27 Mar 2022 03:40:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CD52B8D0001; Sun, 27 Mar 2022 03:40:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BBA898D0002; Sun, 27 Mar 2022 03:40:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0008.hostedemail.com [216.40.44.8]) by kanga.kvack.org (Postfix) with ESMTP id AD71B8D0001 for ; Sun, 27 Mar 2022 03:40:19 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 5D552181C9672 for ; Sun, 27 Mar 2022 07:40:19 +0000 (UTC) X-FDA: 79289368158.28.5DD46E8 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf05.hostedemail.com (Postfix) with ESMTP id C7E1F100032 for ; Sun, 27 Mar 2022 07:40:18 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0721A60F6B; Sun, 27 Mar 2022 07:40:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A652EC340EC; Sun, 27 Mar 2022 07:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648366817; bh=uvNqC6FYSmHZzEP2jIiGJCsBXoTHRrNBW+V3s9qnniM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DlvBMXDB8Txvep4tW3NHi+uthhwM605Q46pX0y/tWlFiwMZf+hqLkwxGndrdq+bac eeyDuIuTxU5LE5/ZSq0IQ15gNRONBiazD1kSNT6V/XZ+JEZvI1Kpz/4TNu1pgtZ2Tn IbiaxTEj+Q1CQPdclkCvoedwiEN9YoT6e6dJbW7RG1P8FpSAiFa4nlHVWm+mabMvoq HEhdnzUEI3cHVBK3M0YoxojABGep9rWKcTLybJyx9l6RbK1ps5MPgozk5sN3qFB2CJ ie3i7QoDafP2Fn3+dlAV/wgff6WvvIEoQnAHQ63QhI229KfDV8k98na5kKl8rU3Hr2 yY0s8UhkhQGgw== Date: Sun, 27 Mar 2022 10:40:08 +0300 From: Mike Rapoport To: Jaewon Kim Cc: "vbabka@suse.cz" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , YongTaek Lee , "jaewon31.kim@gmail.com" Subject: Re: [PATCH 0/8] memblock: introduce memsize showing reserved memory Message-ID: References: <20220324070158.22969-1-jaewon31.kim@samsung.com> <20220325083846epcms1p372559472ceb511cc45d39c110563063a@epcms1p3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220325083846epcms1p372559472ceb511cc45d39c110563063a@epcms1p3> X-Stat-Signature: 9aq63891tppk9jiqcagskn45wbi5z4wj X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C7E1F100032 Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=DlvBMXDB; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf05.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org X-Rspam-User: X-HE-Tag: 1648366818-808791 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, On Fri, Mar 25, 2022 at 05:38:46PM +0900, Jaewon Kim wrote: > >--------- Original Message --------- > >Sender : Mike Rapoport > >Date : 2022-03-25 16:46 (GMT+9) > >Title : Re: [PATCH 0/8] memblock: introduce memsize showing reserved memory > > > >Hi, > > > >On Thu, Mar 24, 2022 at 04:01:50PM +0900, Jaewon Kim wrote: > >> Some of memory regions can be reserved for a specific purpose. They are > >> usually defined through reserved-memory in device tree. If only size > >> without address is specified in device tree, the address of the region > >> will be determined at boot time. > >> > >> We may find the address of the memory regions through booting log, but > >> it does not show all. And it could be hard to catch the very beginning > >> log. The memblock_dump_all shows all memblock status but it does not > >> show region name and its information is difficult to summarize. > >> > >> This patch introduce a debugfs node, memblock/memsize, to see reserved > >> memory easily. > >> > >> Here's an example > >> > >> $ cat debugfs/memblock/memsize > >> 0x0f9000000-0x0fb000000 0x02000000 ( 32768 KB ) map reusable linux,cma > >> 0x0b1900000-0x0b1b00000 0x00200000 ( 2048 KB ) nomap unusable test1 > >> 0x0b0200000-0x0b0400000 0x00200000 ( 2048 KB ) map unusable test2 > >> (snipped) > >> > >> Reserved : 746924 KB > >> .kernel : 137027 KB > >> .text : 28158 KB > >> .rwdata : 3238 KB > >> .rodata : 13468 KB > >> .bss : 12570 KB > >> .etc : 79593 KB > >> .unusable : 609897 KB > >> System : 3447380 KB > >> .common : 3152468 KB > >> .reusable : 294912 KB > >> Total : 4194304 KB ( 4096.00 MB ) > > > >Most of this information information is already available at various > >places, like the existing memblock debugfs, /proc/iomem and DT sysfs. > > > >I don't see why we need yet another debugfs file to expose it. > > Hi. > Thank you for your reply. > > Especially I'd like to create a node showing all reserved memory status, their > total size is same as the physical memory size. This was very useful when I > compare reserved memory and kernel init time memory between different chipsets, > or between different sw release versions. I'm still not following. The reserved region sizes are available in the existing memblock debugfs. Why the names are important? What is the value of having names for *some* of the reserved regions? > Thank you > Jaewon Kim -- Sincerely yours, Mike.