Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2952691pxu; Mon, 14 Dec 2020 15:43:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6zbKcoDn775gYpVByCh8yuY0kmP7UfR6yZEn9Vg6LWwDEktTBV3CZCvUzm2SgKFmADfmT X-Received: by 2002:aa7:d1c2:: with SMTP id g2mr48671edp.8.1607989403365; Mon, 14 Dec 2020 15:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607989403; cv=none; d=google.com; s=arc-20160816; b=UIGqNXjU4iHL0tbGVzrYGXNi9DctKNCVt6oviOqXjjDz4ExLMkD21sq5z21SgDtHjU cxhrhFPcvjU87Ww7wpTDrFNVcnIzuXl6z+eH8sHAKl+QGRDhzHCAqn5eGVw4ChZcAZe4 27LQ8qeSW7+LHvgoaxRpO34bT2nZ4ot/f2I2qNdMiMkAoGqb0+dAyXFfbG06rV3G4s7N 0KBD4ul7YQs3kfJeY7CxDr4wQ+xp9Jw+PfAOeFdT8lydImNiY0C+tz6JnEFFgSTupX4p +xxaBEPsJ7LsGNKw7voFtSDvGuZxXDgonFSD13HQA9zlujbJOD3n+nX5/bQwkJGTt5jy FPNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Cxj3y+5PEoXG/vIZZak/kScqE/5PjOon8B1k22Eb6RE=; b=VTtTpwmLcTlxUIbgzotICi2Nh9jt66ZG8O+2/bIMYWwK1OdL5c7jPSD6w0h6W/RUwY wk1ioNKB8HPfphAcUt7X/MXWNtJQ9uDBuX5qZyaSjwPvW6CIsfpSH+u4Q1y9Jalqfo9o O73+w+Z9Wx+8gq9MnrKnSpbTzKJjbDqfYT9U9hhzJ6yQMLj0ysxiEKLjbBqle6ADH+Ok EnD/4bUjQskAhEHIWhf5Zc9OdIhDCqJkWUxafqjkC83wianThcJrtTmVp/b1uplGQNii dFVLWPf8Nd5P3Zm2N2t36hqxRzMWT2Y9ok62b7EAGYF+C9Pvy1W9EbLtBgou4xQw+PSm qZPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si7974ejc.686.2020.12.14.15.43.00; Mon, 14 Dec 2020 15:43:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407548AbgLNP2d (ORCPT + 99 others); Mon, 14 Dec 2020 10:28:33 -0500 Received: from elvis.franken.de ([193.175.24.41]:40271 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732397AbgLNP2G (ORCPT ); Mon, 14 Dec 2020 10:28:06 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kopkv-0006Cf-00; Mon, 14 Dec 2020 16:27:21 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id A40ECC0375; Mon, 14 Dec 2020 16:19:25 +0100 (CET) Date: Mon, 14 Dec 2020 16:19:25 +0100 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH v2] MIPS: Select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL to enable sysfs memblock debug Message-ID: <20201214151925.GA9149@alpha.franken.de> References: <1607343702-28318-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1607343702-28318-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 08:21:42PM +0800, Tiezhu Yang wrote: > In the current code, CONFIG_ARCH_KEEP_MEMBLOCK is not set for MIPS arch, > memblock_discard() will discard memory and reserved arrays if they were > allocated, select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL to give a chance to > track "memory" and "reserved" memblocks after early boot, with this patch, > we can see the following two sysfs interfaces under DEBUG_FS. > > /sys/kernel/debug/memblock/memory > /sys/kernel/debug/memblock/reserved > > Signed-off-by: Tiezhu Yang > --- > > v2: > - select ARCH_KEEP_MEMBLOCK only if DEBUG_KERNEL > > arch/mips/Kconfig | 1 + > 1 file changed, 1 insertion(+) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]