Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp836331yba; Fri, 3 May 2019 11:14:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKDlOczYAzUHxOvU8TSrjYL4tz9uqowVAB1+y3RXAUtJ4QtmtnYpzyGtvExEA1Jil7AEeC X-Received: by 2002:a62:1a8b:: with SMTP id a133mr12511365pfa.87.1556907280803; Fri, 03 May 2019 11:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556907280; cv=none; d=google.com; s=arc-20160816; b=gleXo0bhb3YS+0sMIOhiRg+o8ziojfC+wEEwhdK1ZBTIwl51uYR0+8S74dVa+Rr/aG Ezxx80OsbJkn78+bd7HOGLvpwGVrfGrz3fI4+rGxDCFAmnUretjgnPfZhb3piZCYeFWX 5eHKV9LRRuBOC2unH+ECmO4unUCaJ7BZXm+0qPODZu5O0nX18pDSVhft2elVeU6SviMz RmYCEOcA9uxvNGYjUHMbUdBZVitRAbofBJVdEnPW/zBs0YBZCsiAOKZY3WX6AphhOvgY 7RlOJuLSWWhOLVTM1kniBN2sot8JtttjJ3lx/8B28hh4IAht2EVO2PaOqPOlNG4Gy4Ad 9Qgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PF+qWDN5jd+CubA/a3KTQRNF/nvw8rMXCf7kpE9998c=; b=WGrgLXvc4lnre5uTvxmMaMVDQyBIr01h5aBi0seKldtMBi9d/Q2+doRr3QwMOq4EsT RhZ4PkE30oqKK0liVx/9mfmN1TkJ+h5YYxS9xiAAVHBuvzTQtojiJCIwDmC42xe5DHVL JHHJSyLwYuxaw8YWZt31T3mldlXsjiDrN8EE8pi8JQ/GPK9Dm/KVoitAFB65oTkbUDZO r0iFWPytzd7C6AZR9L9/S/eD7RiA3zsSvehSp2ovf0bGYvXGWKdXjLkdrlgsjMERtz22 lLqVvy3Z0UwY62w1F8RwyG/6IKStDjxqL+y+sMCPSaPyg6PcfY1wKqg1c+nEIY18WZTY 2xiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I2+awwAw; 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 c25si3310678pfr.94.2019.05.03.11.14.25; Fri, 03 May 2019 11:14:40 -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=I2+awwAw; 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 S1728813AbfECRvj (ORCPT + 99 others); Fri, 3 May 2019 13:51:39 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36738 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbfECRvi (ORCPT ); Fri, 3 May 2019 13:51:38 -0400 Received: by mail-lj1-f196.google.com with SMTP id y8so5723147ljd.3; Fri, 03 May 2019 10:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PF+qWDN5jd+CubA/a3KTQRNF/nvw8rMXCf7kpE9998c=; b=I2+awwAwiEibJdRnk/03VwEeSUBUmh2e3C6pOFlL0I+i4tp1q+kOm5E24xPjgewa9F OBkyaKL+7m1GNG9n/smQ+z5u6r8AEl/Y2zsCY20DME8PYCvCLSUoS0o80qcphBYoGoYx gs0yVEy30WYJDPi7j1jneBGQgk09XAV7Dw2ifetUeV8N3kP7IdlgESqiBnb+Wm8/Zw6A WYPxemxxzf0QGXFSwxgNABX+/9aueX3Cl7hSu3aevLgWCzfEVZXXTGgoHTMSPO1Ybpy6 lxmm6DAwsPRnJByx+KErHRtcPaqbVEvMABNekMD7hLsqL6Bd7zqHABT2Yk8jF6aIQkpY RI0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PF+qWDN5jd+CubA/a3KTQRNF/nvw8rMXCf7kpE9998c=; b=GLzpJ4wI08CwgFs7jLeg6UoujVvyRa2d44ZpRJVHz3jHl+Nzu8bsRFzc/Z+08H49L+ ESWyieLSpaJvWHQnt53RD6PUL8nuGiTlj8WmoER2Oly3Vyx73fhWBTkfS+OZfDPnJWoq 4/60nkgzCIFogEacDFRY4DGslHx7m8fJW/3X9QH/mTY62E0V8BID0WXqjYaNdtIUUn0o GDceJBeqwtG1Q5vYOQA4p+Ghd3meY8++LQ70lllPQ/flXBlQT25OzIIImatCqJzeWwAo 6pursdWyc4Qf6+R8b3BLUwTRTMsQcsK2U1EWnLsY23msy+QJno8d6gcceckYRNE/SqNy CdYA== X-Gm-Message-State: APjAAAVi114augS8krEjhedPu0KATn1p+5mEky+IbYfRv29N27TYDXXH rU8zt/fMAH6ze8a3p4pfYAs= X-Received: by 2002:a2e:9188:: with SMTP id f8mr3091066ljg.100.1556905896658; Fri, 03 May 2019 10:51:36 -0700 (PDT) Received: from localhost.localdomain ([5.164.217.122]) by smtp.gmail.com with ESMTPSA id z30sm533435lfb.87.2019.05.03.10.51.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 10:51:35 -0700 (PDT) From: Serge Semin To: Ralf Baechle , Paul Burton , James Hogan , Mike Rapoport , Andrew Morton , Michal Hocko , Greg Kroah-Hartman , Thomas Bogendoerfer , Huacai Chen , Stefan Agner , Stephen Rothwell , Alexandre Belloni , Juergen Gross Cc: Serge Semin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] mips: Dump memblock regions for debugging Date: Fri, 3 May 2019 20:50:37 +0300 Message-Id: <20190503175041.7949-2-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190503175041.7949-1-fancer.lancer@gmail.com> References: <20190503175041.7949-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 kernel parameter is specified. 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 --- Changelog v2 - Reword commit message since memblock debug printout is activated by memblock=debug kernel parameter --- 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