Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp189361pxu; Wed, 2 Dec 2020 19:22:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxk0Q7VkEEBvXPsqdsltxpxd/IN8g3DU1uXYnLaUMCXJbXSJBEnas2nzXlxlvMhEXUjsXtL X-Received: by 2002:a17:906:3ac2:: with SMTP id z2mr788373ejd.26.1606965727205; Wed, 02 Dec 2020 19:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606965727; cv=none; d=google.com; s=arc-20160816; b=Rsy8rNznEpSpg3rVddqngDnZsuCx1d/51exHXRPvCylVwqUhbW9nAf3tm6b9zwBShk AXiy7n/OjlxC0zry4u6OREg41tV+ixa/et5UPy4kcBMj3y4+SWWqxNEVw6OokbGo+5MD 5lAHDCfy6bHnZTIDY8HF+7MESGfAe7Hn4Lgue7FhMFaCsRKfdAADudW4YIquEQN/ZLYg XjkKj4rwtHwbBBdLLh1/uv7Wx/2r3VZ2S7Br3H8N/I/rMiBfVJawPyjR3MHlLvQgyRii 5i+/m92L2o6veQv7CwETBuP0sOT5tyRk37xNLEpy9xqTx9NXIraDcIMXG9Y77qvqE7ep meLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Gj4hBxJHZwNrh6bnKg/eV+p9SptI3BUEijci290bjB8=; b=jOXV256rdo5jmc2JXATP7L6tjs1OuwLPT7L5jt8o1SN2U5SMBrLKbhISb7KgZcC4n+ Gxk4128HKYfePX80GE438Wn1zbim5mF0m48jgPm9M0kWsimJRUSBTOSVpRxEFDeHg3ZR SivK1dbN9SfPjQYJMiM3I3gymYK+5WHYKBTPxVQvjZK3IAiSKPoC9sixPbJWTJ76F5Xb SeEj8OerV92DzBQWsLny33ZPhU9gv6KbP5itgIchSwM2CJAQcIGivxyTryNjLhAY4NoQ CdKHDA007IRnPxatacQopAhFgfVYg+GtLnpfI5wSiYmTGuMgluwdlgq6+e40CtIcW6kn NHBg== 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 w27si327848ejc.555.2020.12.02.19.21.44; Wed, 02 Dec 2020 19:22:07 -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 S1729704AbgLCDTv (ORCPT + 99 others); Wed, 2 Dec 2020 22:19:51 -0500 Received: from mail.loongson.cn ([114.242.206.163]:43132 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729366AbgLCDTt (ORCPT ); Wed, 2 Dec 2020 22:19:49 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxv9MoWchfqUYZAA--.49875S3; Thu, 03 Dec 2020 11:19:05 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH 1/2] MIPS: Move memblock_dump_all() to the end of setup_arch() Date: Thu, 3 Dec 2020 11:19:03 +0800 Message-Id: <1606965544-22611-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1606965544-22611-1-git-send-email-yangtiezhu@loongson.cn> References: <1606965544-22611-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf9Dxv9MoWchfqUYZAA--.49875S3 X-Coremail-Antispam: 1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VUjD3ktUUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to get more memblock configuration with memblock=debug in the boot cmdline, move memblock_dump_all() to the end of setup_arch(), this can help us to get dmi_setup() and resource_init() memblock info, at least for now. Signed-off-by: Tiezhu Yang --- arch/mips/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index ca579de..8155e96 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -688,8 +688,6 @@ static void __init arch_mem_init(char **cmdline_p) fdt_init_reserved_mem(); - memblock_dump_all(); - early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); } @@ -787,6 +785,8 @@ void __init setup_arch(char **cmdline_p) cpu_cache_init(); paging_init(); + + memblock_dump_all(); } unsigned long kernelsp[NR_CPUS]; -- 2.1.0