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 C7F77C25B79 for ; Thu, 23 May 2024 14:36:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0CB216B0085; Thu, 23 May 2024 10:36:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 07AA16B0088; Thu, 23 May 2024 10:36:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EAB396B0089; Thu, 23 May 2024 10:36:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CCF056B0085 for ; Thu, 23 May 2024 10:36:46 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id E0F3B1A05F9 for ; Thu, 23 May 2024 14:36:45 +0000 (UTC) X-FDA: 82149911970.15.5477E38 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf01.hostedemail.com (Postfix) with ESMTP id 231874001E for ; Thu, 23 May 2024 14:36:42 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=V2Yf1EJs; spf=pass (imf01.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716475003; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=5GXElsoV//jVTdC75W3aoKmeV0cSzhTA5Oe2+akjh9A=; b=gdIEWuU4YaIJDyKo0TBlP4t1ThnljFFkuC44yCNriDA0OJsISoJ5Y10AcC15XzSjgmnGai xJXneagos1O99gP3AJysFvmOJnQ3YO0eR0BKaWUzS4EfYVeAu/jL487rDiRugOWY8uG3YA T5a5x7APvvYafgFCXmTrAUShyymOGTU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=V2Yf1EJs; spf=pass (imf01.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716475003; a=rsa-sha256; cv=none; b=Acw7j3uUGHwKzp1Y45zPRyJEXu2GNCteSUU+ujdLpvTGwyeXRPQVXIZgzPrgwkUeEG9Cbw DjKLYCVt8Cp0FTw6vaVr8BZjCvVvbLxoVUm7eycLaatvdE5Ptu/G8PBTqFgp1fWhdKXtCS lKyZgDGTUEn69R8tPNSEich6Uf08Zps= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0341A6283A; Thu, 23 May 2024 14:36:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84952C4AF0A; Thu, 23 May 2024 14:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716475001; bh=D7ccP66lbly9TPuHTgEPpEZGApPtncrxRWXRsKA8lMQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V2Yf1EJsH2yyQVH3Q9SWtWkogyrRYBQ5rjxoO5OMmKaWQgNYdjxOgON6K/qm/jnxX PsuVkcSv546+oFSMlSCeAfxdMC/vDp66cXvGagmBxUmwjL64wADEnkHWNwJIMbwv/m +wv7wNcztLxSeOKTEH5R2KV/JD8Pwy8hp65TGd99tMW2AWdLdtigxDWdL+SW2+Tp2S FG5LVL3+2fb2DOhJaChxyAAjnbZicPn7VrAZQT2toxg1D5LZRSmVaD5FFZgt3WFoMJ XbgX4CpqBgzjEDZhwlIbsSfGSq7I7TeciS4bZ3eaA7ZAahW1bPXCSHb5oB6IGEK0J2 YszQBYY3Ydb/w== Date: Thu, 23 May 2024 17:34:50 +0300 From: Mike Rapoport To: Jaewon Kim Cc: "vbabka@suse.cz" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "jaewon31.kim@gmail.com" , "tkjos@google.com" Subject: Re: (2) [RESEND PATCH 00/10] memblock: introduce memsize showing reserved memory Message-ID: References: <20240521023957.2587005-1-jaewon31.kim@samsung.com> <20240521025329epcms1p6ce11064c0f0608a0156d82fda7ef285c@epcms1p6> <20240521101753epcms1p50443f6b88adea211dd9bbb417dd57cb1@epcms1p5> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240521101753epcms1p50443f6b88adea211dd9bbb417dd57cb1@epcms1p5> X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 231874001E X-Stat-Signature: paufu59ohfu5ojausjb3exzqytuxkfkh X-HE-Tag: 1716475002-7245 X-HE-Meta: U2FsdGVkX189QuOJUfk6ItMHMF2hy5jPTsq6vDHvl4YxRAxeIOCleOH3OeSk1rnOOcB9OoOVFhVao85WNxvnK1G4zVLckNjZ2sAK0eSBYJFcuWN3f0aSptqQy6LQYlHjnvDrIgLxZTUHwIs+CUA5PEufj9ySIsP1VB7/IMfyXBKZPygyyxpUw3iZYVp1e29rGp9PGTd4brgAIMhaAbGvnQqK6m/HD7sr4vfl7c503gH0+XUWgulThF83zCT/sgFNTrMInbkmLZQxvoY1DVca465dNMor8RQcp2laQ3gmZiMziDhC7RiyoFU8q1Yk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WVGLYlsg/ujSyNUQzTqwROa 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: List-Subscribe: List-Unsubscribe: On Tue, May 21, 2024 at 07:17:53PM +0900, Jaewon Kim wrote: > >On Tue, May 21, 2024 at 11:53:29AM +0900, Jaewon Kim wrote: > >> >--------- Original Message --------- > >> >Sender : 김재원 System Performance Lab.(MX)/삼성전자 > >> >Date : 2024-05-21 11:40 (GMT+9) > >> >Title : [RESEND PATCH 00/10] memblock: introduce memsize showing reserved memory > >> >? > >> >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. > >> > >> This is actually RESEND as it was introduced 2 years ago. > >> Please refer to https://lore.kernel.org/linux-mm/YkQB6Ah603yPR3qf@kernel.org/#t > >> > >> > But you never provided details about *why* you want this information exposed. > >> > >> For your question, I'd like to say ; > >> We can see the same format and exact information between different version of kernel status. > >> > >> 1) Internally we can check if the reserved memory changes. > >> 2) Externally we can communicate between chipset vendors and OEM, with a same format. > > > >Why the existing debugfs interface is not sufficient? > > debugfs/memblock/memory & debugfs/memblock/reserved have changed its > format but still does not show name, reusable, kernel size. If memory is > reserved from memblock, and did not freed back to memblock. Memblock does > not know even after the memory is freed to system. I think a simple > debug interface is needed to easily communicate with others or compare > different SW releases. I still don't understand what problem are you trying to solve with these patches. -- Sincerely yours, Mike.