Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4125968yba; Tue, 23 Apr 2019 15:52:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4o8XRp748THOIgOaJ1Qp6vtMB4oqTagVGltubOg3LVIXiuGHrtFIXpYi2Gc5j4nEPfST9 X-Received: by 2002:a17:902:4a:: with SMTP id 68mr29185883pla.212.1556059936079; Tue, 23 Apr 2019 15:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556059936; cv=none; d=google.com; s=arc-20160816; b=eVA5h8/NaZVFEBMcC8COs7ErjyoApH7+UbyQ+My6eR5ncihmOdAbsP98OkgnBLkVr0 phOtvU2AndgkImzzNjK3CruGf6xqLyG/4cB+jfnHIjZHgY1r7qiVxJC4AiTMn0x1J/zn OWN5m/3y6+vhqUUddN0G6xA/4obSrIaY1p/8iAWqEfv++hhLeAZcmapLEVFp6xxnmdmT P5+glMqXoyNjYraqT8GJXBy3gX776jNZVKSRI1QsGlhdFsRsjbJ1ez0N+CKSvp26b0tl OxYyYqdAF+wFkL8WX10/ZW4r8aJVt1zVgv+N0v/IT5aiJZYBhPRnyr4+r3m4Trvnw+t5 M5TA== 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=Ki42UVersVgO0drl3EkT6trUyKrYAuiSL6uO+XLp8qo=; b=TYnjLWjgi38cRR/r+yRXHEeO+s9vJlWGxntCvdqHxDoXMFEstdruY5aptYFZkC/q+7 EWw78IuvI0isIZe5pDTsaxCtWL3oDrfziLvQWcPLTjyO30AGZaNMyf/Dn//AV7hwgqLH SXPoLYOUARBwDVZD/vum4oPqXoqn5VLPHVlormgKASDOgjDP1m+LwV49ysutKsekP3Kj lZz5r6xAlMRHxUVc4TozJhExvCosyuL0oCwy1N3gZxQ1LSexM1pDVVg8xyFdm9GyFFFP +VTuCJ3Q4rKSLgFdMI9nFBqQidrZpvd5bJjIZ5jFdanL2jSByQmtG2oHjmvDHr0nMxOf zVsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LFDhkYGw; 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 n1si15615131pgj.578.2019.04.23.15.52.01; Tue, 23 Apr 2019 15:52:16 -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=LFDhkYGw; 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 S1728889AbfDWWuF (ORCPT + 99 others); Tue, 23 Apr 2019 18:50:05 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39491 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728684AbfDWWtg (ORCPT ); Tue, 23 Apr 2019 18:49:36 -0400 Received: by mail-lj1-f193.google.com with SMTP id l7so15003296ljg.6; Tue, 23 Apr 2019 15:49:35 -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=Ki42UVersVgO0drl3EkT6trUyKrYAuiSL6uO+XLp8qo=; b=LFDhkYGwUUcKL70nD/YT5mltsCFyWgMDGN3Dn/2DwKPy0rQeT4DQXnHKUyxY8HsTBK yi1BLa1BXycY5hqy/YfoP8PWDEMR0JBFm/R41nYasE3vRzPGEhOD4oFH/RyoPiNU3Ep6 LV+XmZ76hfjGidRj8XI5hMBbLqT22GkpkTR62BD9cJ1lJ2D37k6xCG7b5p2RCj5Qhcxp mf27AX0S0mBWIe5Gg+f6iGOAAqRwXwIVFqe+dPDl3sCOdDtRlQJHhEMy8eV91Ym7WjRs rEXk2bWeymhIQjFimpFfWuaxOhNwjid9g4l/TAt4tlMD3rHHR0T3r84qX60wXGqrfa2X r/oA== 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=Ki42UVersVgO0drl3EkT6trUyKrYAuiSL6uO+XLp8qo=; b=pI4xo3W8JLXLhJQ+L0oWxb1nNgO7avU0d4Z/ZYiq3ofmK8eIzi6R10Jdv0Vv9aamk1 YzOaF6DKR3hCgi1TaqLWdCIvIALsWInuhn9ym1Ijcx67uxSEij469p24tZPjdXCvJCcs XTFn3znvQMb/JnW3cjlFZBKZClJqjs/4pMgf0CtQnWTa13j31cidptRptq+LzV2ym2jT UsHOIYITAzP4nXeJSVn5sBTkOvAFQcWOkqA2+DyG6BhiTRjoWcSmWxLmfIJWMOX2ePSQ qKTm/9n2QKQGSC2d0G0cfbFA836hAKVe7yrJMg1wnB0osEYrTkR3nLH85+TcOLsXcy19 I9ew== X-Gm-Message-State: APjAAAX/XJSKqm2+CFQMk8VFuGM0RPRpBEDHKA+i00pyJZko4U1VMujT MI8IxeUGJg8X30MXiWFDZXM= X-Received: by 2002:a2e:7e0f:: with SMTP id z15mr15308271ljc.122.1556059774454; Tue, 23 Apr 2019 15:49:34 -0700 (PDT) Received: from localhost.localdomain ([5.164.240.123]) by smtp.gmail.com with ESMTPSA id w2sm4904722lfa.63.2019.04.23.15.49.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 15:49:33 -0700 (PDT) From: Serge Semin To: Ralf Baechle , Paul Burton , James Hogan , Matt Redfearn , Mike Rapoport , Andrew Morton , Michal Hocko , Greg Kroah-Hartman , Thomas Bogendoerfer , Huacai Chen , Stefan Agner , Stephen Rothwell , Alexandre Belloni , Juergen Gross Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Serge Semin Subject: [PATCH 08/12] mips: Dump memblock regions for debugging Date: Wed, 24 Apr 2019 01:47:44 +0300 Message-Id: <20190423224748.3765-9-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190423224748.3765-1-fancer.lancer@gmail.com> References: <20190423224748.3765-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 config is enabled. 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