Received: by 10.223.176.5 with SMTP id f5csp264655wra; Thu, 1 Feb 2018 19:59:36 -0800 (PST) X-Google-Smtp-Source: AH8x2257pFwQMVN2w3VQFYcp5HZI6d+v6OzxfYOwOPGtja0MA4qzHa2+S7Domvug0dWWiiqxxFAa X-Received: by 2002:a17:902:aa85:: with SMTP id d5-v6mr35371929plr.239.1517543976171; Thu, 01 Feb 2018 19:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517543976; cv=none; d=google.com; s=arc-20160816; b=fmoP8riQ/pqpo2EeQugnnyRNptqYez8h3pVZ4EJH5y9TUGEicCQ3eMIlhZ/pv45uhO tVCOtGs0Jv4KG4ghASkbLJ+9FUMyUmOrC1yVIZPJIBmkfSOlVgO5xFik5X6ciEWB6rr5 TnN0kdCe2HgnMqTNQQ7PvAqi04tBjX1mAQKmUvjYK8OpkKNl5zG1o597pVch8Vilqaxl +Q8crXCt5CYPceYj+pMvJAW12c/wqM1cTQwvDWfMSL2A5OmBoeaqZy860MYKt82Wb7g/ pZJA1HngYspMOeDvcEJgrwXc4ztRKfb3+LZT8/OUPBYkih3kZ0yQa9XF1VilxQtNSVFv efhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=OT3OKTxb6E0AUmlfLAacgJX+yna8Pz527Gm9MkRjrnE=; b=DTz5ACfOurSWlF/ZPmAiuYCeu/H3xHxFQUjHxkkQ/FYeVBJXEAR5cahwTFfWxoQWwH bwGMtG+3pQGjQnH7vTUI8wNR+2a2X4IHLHpyBjaA1mfOsCUEYF8VKf6oS3y7wLtdTY8Y JyeKw+DSQhgqJ+CSHhyApvOs7cKuwSzvXZ6lbdm88VsGe0YsibBn5UBnnhkS5gWyGA4M vdQQIsj6Xt8Wvr/oUEMPn7Me44HUaxHlEhoy2AZTvaoQgS5/ylQmBSjElWZJcY98qdgK m1agr1Rv6ybT+lyjFSSbdBVAIH22FF20QkWdh7GkSLkWFzWd6Tfiq5gwxNGbjScHaPtl OQGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GCU7X3Lc; 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=NONE 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 g7si991958pfj.60.2018.02.01.19.59.21; Thu, 01 Feb 2018 19:59:36 -0800 (PST) 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=GCU7X3Lc; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbeBBD5N (ORCPT + 99 others); Thu, 1 Feb 2018 22:57:13 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:36723 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbeBBDzT (ORCPT ); Thu, 1 Feb 2018 22:55:19 -0500 Received: by mail-lf0-f65.google.com with SMTP id t79so29462897lfe.3 for ; Thu, 01 Feb 2018 19:55:19 -0800 (PST) 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; bh=OT3OKTxb6E0AUmlfLAacgJX+yna8Pz527Gm9MkRjrnE=; b=GCU7X3LcUhjO3tgHdVkL6YYRaYWf2FjXXRIDJMlDqItYa7AE8WobImkDB6lCRbtEL7 MovpkTTkvM+zm07zEkwHY9UtzY8/Q9jPmoTN5Qx+Recj9kT3q87S86KqrKlm4iWdGJWj zSdFKfMOF91kiaIlO1kmDT33rskOFbDF9/vWTOcCWCgu1jNmk/RW4ApMZrSP7cs3486h hr8raH6OvcDeeeRwDV5MPi06AfL/pCFEgdvAStCeU21DKr3zNWzYSo3aVl4oDsdVGpFb +pTNpQdNgDNENJqdur77m2qKd+3civUvgN2gp9CEvqENr+7KAEkfFqGI5wMtB9xrooKm LcQQ== 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; bh=OT3OKTxb6E0AUmlfLAacgJX+yna8Pz527Gm9MkRjrnE=; b=NVVYsQHZcGmDxoBuH2xajrZ4AKJN+VbDLLE5wihCzKT/uhvoxOSISKrSPXJqh521qL 8kPtU6ZCYl7GJVWxz8Y58vKI1lqWUbfL3z/Ut8oPXetN5gwt4PSQAomTrkNUQ9BwInlX Ebp2v2KFPlw9piKi0I3M1GgnjcrrFhFIxvqIY5mqteo2hxf3rLpYvhohN3/zRIJzGA3h bKy50Royd4GyALdZh9nwwhDjbwTgtLoLfI0rHyDbQblkQT3YF+EL0jrELOAIk0/0UNWF 0EYMxgVbZAtnmdqq9woyb7xOf9qgguswc9IKS8h475YxAXSN0Hy5E6VhpjoeygLhjxQv +RCw== X-Gm-Message-State: AKwxytfiYc5P/rhjlXm0IIqnUjj6XyGJxQ1YPBBbKz1rWzH0q1o3AP1h ZOFrDW/8LLVz2QrWXhnOrh8= X-Received: by 10.46.54.20 with SMTP id d20mr2484772lja.51.1517543717944; Thu, 01 Feb 2018 19:55:17 -0800 (PST) Received: from linux.local ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id f14sm190934lje.84.2018.02.01.19.55.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Feb 2018 19:55:17 -0800 (PST) From: Serge Semin To: ralf@linux-mips.org, miodrag.dinic@mips.com, jhogan@kernel.org, goran.ferenc@mips.com, david.daney@cavium.com, paul.gortmaker@windriver.com, paul.burton@mips.com, alex.belits@cavium.com, Steven.Hill@cavium.com Cc: alexander.sverdlin@nokia.com, matt.redfearn@mips.com, kumba@gentoo.org, marcin.nowakowski@mips.com, James.hogan@mips.com, Peter.Wotton@mips.com, Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Serge Semin Subject: [PATCH v2 11/15] MIPS: memblock: Perform early low memory test Date: Fri, 2 Feb 2018 06:54:54 +0300 Message-Id: <20180202035458.30456-12-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180202035458.30456-1-fancer.lancer@gmail.com> References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-1-fancer.lancer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Low memory can be tested at this point, since all the reservations have just been finished without much of additional allocations. 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 531a1471a2a4..a0eac8160750 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -850,6 +850,8 @@ static void __init arch_mem_init(char **cmdline_p) memblock_allow_resize(); memblock_dump_all(); + + early_memtest(PFN_PHYS(min_low_pfn), PFN_PHYS(max_low_pfn)); } static void __init resource_init(void) -- 2.12.0