Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp973607yba; Wed, 24 Apr 2019 12:44:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtDoGsKHDaUk7aYKd55BOXm+hUftKY5/Ze41xStep7hXrm/b7NagBoR5FDOTOGlQAVDnso X-Received: by 2002:a62:6c43:: with SMTP id h64mr35667606pfc.123.1556135090538; Wed, 24 Apr 2019 12:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556135090; cv=none; d=google.com; s=arc-20160816; b=KcHb8kY4OcBbgtu4RvqKcVIGOlbM7c0iuC4+cVztk1+d68gRJGhoDOSFZ6meE4Obu7 Kw//In6w18dobBWj8jl0uHUwr7Qe5oZTayyGmYEbBN2QxOKbFksGxNv3wKaT6gGoWPo8 2eQsTq3cFTe96/9GNEF4GdZN9U7iC4GMZCSgmeeiT1o/ChEekbwbEG8JNauX1pEC3Eh4 qTnwGGzdUQOJVyYVO7Gw2knLuH4pZToXCaKERHbv83HKAAeZBWQn/7lxBMiqPZkjaRlA JXTibQ67hV1cQ7hUSieJ9vEYaAU9ewZtsbXaImH/pdQH7nApOOhjaifFBYlYShTiwPJs JuWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OLcf/MSErvvrE3bJG/rihIFJSAmMyrgPapsSpo9KmaE=; b=zAAI56M19WFPcdmHU9taLUHYY60KG6T7fYcMapXAZo3E6ZNeUt90DJ6gpint83GhH2 ez7wuw7W/z8mItfa+Q23useZt9kJ7i2472s1zlK3j3OpdhFnqRfWwWdDSvhsvkH7bVbi C3G+u2585Dyt99x21RVlCsCfydnRmA+Xr2w/550tT3M42MPuYL2Ui9/lqmpI7FB3M4du mm193mjBeHlgRyBL6rIUF8Ayc3/FNzyD/ZmM2xgYLOpcjtNh0YeDtIzaslKbXcu6B4QV WEZxZJHhqdpXG1+ifPUF6dD9rvMQM1Dbg8w8/6EZPGumtI5l3xoB8NGSVee0kj/rXVFp vyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N8f9LisL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r124si18356239pgr.201.2019.04.24.12.44.35; Wed, 24 Apr 2019 12:44:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N8f9LisL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729087AbfDXOUU (ORCPT + 99 others); Wed, 24 Apr 2019 10:20:20 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:42416 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbfDXOUT (ORCPT ); Wed, 24 Apr 2019 10:20:19 -0400 Received: by mail-lf1-f65.google.com with SMTP id w23so14807075lfc.9; Wed, 24 Apr 2019 07:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OLcf/MSErvvrE3bJG/rihIFJSAmMyrgPapsSpo9KmaE=; b=N8f9LisLDmcx/lUbIR+vStrDtygxhUgU3PZz6qn6PVwbXxSpft0WAQeLczwucGOXly Ci3MdEwCb5rmbiyFjzUwVFl8IPirbgmN57fDZYwo7L/w2rSS4b0NYLe1f8ACb7boVIYz hdfs5pJZom5k90kTxfFjPPPTEaJzg/XGrwgiPIN4CrIqK7pCNktaDWxt1qnP69R2lVxh XRk8wODzBkJ0RQa9sfib8jiRB02ysUMquRjDjdEAD6wI9T4wzXpzeptL+ZUT7eDyQUZL Op7AcasloAMALTVlugu0BbNLbXNwB8iLib3M9fzODyfBf/LJjOaZcmppqb2PKz8eAp7J sTGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OLcf/MSErvvrE3bJG/rihIFJSAmMyrgPapsSpo9KmaE=; b=jmBTRJXukk7gIhafO4UrTDnvZdQzwcEFpTA2YkRA5J8Hdd/Gm5ysJxhPAMJRC6o+Mj VD7S6Mt0yfHqw8oxfIbaXq9kUjYpfwQbhJLNjBlWNCCIzMTjkGzO2b6fWKHyOdtZOtAL Z6+2ZXRWRZi6Q2TmWYZEBA7perzcAE01VCSOwqQzYCSJyCuBgqn3iH9QX0/KtNezNVj1 oa3cgmwmupYC7oG2DfiDSkqz9P1Bn9Nj0XyYRbYpQVf9etUeBfHjqOQGMWnD5Kq3i8n+ 44K/OsePMoHnIwp935YxcK/rkvYhJe6mAxNzkTQ5Lg3tGpbuBUQ2Jzc+Ju8BHdO65Urt k+mw== X-Gm-Message-State: APjAAAXxBGK/VZ21iJLEqHU9JpdLCq8iYQ7Kdl+yvci70KqOg1zJ1ZDf A2cLtpT1gnt0SI4fCrb3SGU= X-Received: by 2002:ac2:5455:: with SMTP id d21mr16970071lfn.60.1556115617156; Wed, 24 Apr 2019 07:20:17 -0700 (PDT) Received: from mobilestation ([5.164.240.123]) by smtp.gmail.com with ESMTPSA id a2sm4417352lfi.13.2019.04.24.07.20.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Apr 2019 07:20:16 -0700 (PDT) Date: Wed, 24 Apr 2019 17:20:14 +0300 From: Serge Semin To: Mike Rapoport Cc: Ralf Baechle , Paul Burton , James Hogan , Andrew Morton , Michal Hocko , Greg Kroah-Hartman , Thomas Bogendoerfer , Huacai Chen , Stefan Agner , Stephen Rothwell , Alexandre Belloni , Juergen Gross , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/12] mips: Dump memblock regions for debugging Message-ID: <20190424142012.rvdfikcsz63pjcgw@mobilestation> References: <20190423224748.3765-1-fancer.lancer@gmail.com> <20190423224748.3765-9-fancer.lancer@gmail.com> <20190424134547.GD6278@rapoport-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424134547.GD6278@rapoport-lnx> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 04:45:47PM +0300, Mike Rapoport wrote: > On Wed, Apr 24, 2019 at 01:47:44AM +0300, Serge Semin wrote: > > It is useful to have the whole memblock memory space printed to console > > when basic memlock initializations are done. It can be performed by > > ready-to-use method memblock_dump_all(), which prints the available > > and reserved memory spaces if MEMBLOCK_DEBUG config is enabled. > > Nit: there's no MEMBLOCK_DEBUG config option but rather memblock=debug > command line parameter ;-) > Right. Thanks. I'll reword the message in the next patchset revision. -Sergey > > Lets call it at the very end of arch_mem_init() function, when > > all memblock memory and reserved regions are defined, but before > > any serious allocation is performed. > > > > Signed-off-by: Serge Semin > > --- > > arch/mips/kernel/setup.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c > > index 2a1b2e7a1bc9..ca493fdf69b0 100644 > > --- a/arch/mips/kernel/setup.c > > +++ b/arch/mips/kernel/setup.c > > @@ -824,6 +824,8 @@ static void __init arch_mem_init(char **cmdline_p) > > /* Reserve for hibernation. */ > > memblock_reserve(__pa_symbol(&__nosave_begin), > > __pa_symbol(&__nosave_end) - __pa_symbol(&__nosave_begin)); > > + > > + memblock_dump_all(); > > } > > > > static void __init resource_init(void) > > -- > > 2.21.0 > > > > -- > Sincerely yours, > Mike. >