Received: by 10.223.185.116 with SMTP id b49csp3508726wrg; Tue, 13 Feb 2018 03:31:53 -0800 (PST) X-Google-Smtp-Source: AH8x225KsWJcz+N2WM+CI4Mr1U/iaCVPgKj+BtwndBvcMQO00tL5XN+IpT+7c6h7LXQbGCO7Pzt7 X-Received: by 10.98.147.85 with SMTP id b82mr936102pfe.203.1518521513488; Tue, 13 Feb 2018 03:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518521513; cv=none; d=google.com; s=arc-20160816; b=grtGjQsuXXFh1ELP37in82D2TAr/pDw1mYg1F+c3Dr2aWdJBFpr2VLmEUkb+3cbtoW 3y69Tr7cRqZR48RtaHsegkw3HvUzMokCbpOfdwKFsB07LQCbfsrnr1UVnpj+bif3ga17 BmggymoYIPZ9PR7CdhCZy/m7aQY92yc1ZLwojwE3A2iMryK8RHiIF0GZ9HZQw4B+amVX I8h4YDJG3Rab1VlDMfTd5o/xU+EtdhF7QywAHTJb6cdAzYA23wvkOc49uLVRSq334Irb egUAX58RCXxehgp2FbMbHwGftbPbbOu66GJxBqmABRjk4GAP+GImnGkf0vNXu2suznzi 01Aw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=xeHrNFkQ0DvqAijH/eYa+av1unW5ylrbqhdDyXOX20w=; b=xeI70eCRkD9sfWtW1XBcj/p3QNyOeMoElRlx2lcypXrMvaREIowJQhGdEV++MkLt0y aykB0Jc2x+zPaj0iJkhEzdF/0B94jybu5mGBr50zLV6H7r0sCByx5tXc4GWbyVMFe+cH wrmudGF1hfe2Mu0vGCkIRlXyVzm6/EpF09UhFAEka4PCh1Hh81OoO4BMlnTLvHezy8B2 XHm8oXTLhN8m64CL6VpA8gvggi8mICZmXZMlPdFqQkXStWOEVcaD82tE1FQVevKt8AAI h8lre4GB+bYKXDkgDqCF7dG8EE1ZqrxHZEQVbqdjXIogV0D7ycpdrkddLk1gz1ZxGEtm SwNg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si7921005pfh.204.2018.02.13.03.31.38; Tue, 13 Feb 2018 03:31:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934456AbeBMLaW (ORCPT + 99 others); Tue, 13 Feb 2018 06:30:22 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:42242 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934523AbeBMLaV (ORCPT ); Tue, 13 Feb 2018 06:30:21 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1411.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Tue, 13 Feb 2018 11:28:44 +0000 Received: from [10.150.130.83] (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 13 Feb 2018 03:22:18 -0800 Subject: Re: [PATCH v2 02/15] MIPS: memblock: Surely map BSS kernel memory section To: Serge Semin , , , , , , , , , CC: , , , , , , , References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180202035458.30456-1-fancer.lancer@gmail.com> <20180202035458.30456-3-fancer.lancer@gmail.com> From: Matt Redfearn Message-ID: Date: Tue, 13 Feb 2018 11:22:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180202035458.30456-3-fancer.lancer@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.150.130.83] X-BESS-ID: 1518521323-452059-10562-45689-3 X-BESS-VER: 2018.1.1-r1801291958 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.189977 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/18 03:54, Serge Semin wrote: > The current MIPS code makes sure the kernel code/data/init > sections are in the maps, but BSS should also be there. > > Signed-off-by: Serge Semin Looks good to me :-) Reviewed-by: Matt Redfearn Thanks, Matt > --- > arch/mips/kernel/setup.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c > index 1a4d64410303..f502cd702fa7 100644 > --- a/arch/mips/kernel/setup.c > +++ b/arch/mips/kernel/setup.c > @@ -845,6 +845,9 @@ static void __init arch_mem_init(char **cmdline_p) > arch_mem_addpart(PFN_UP(__pa_symbol(&__init_begin)) << PAGE_SHIFT, > PFN_DOWN(__pa_symbol(&__init_end)) << PAGE_SHIFT, > BOOT_MEM_INIT_RAM); > + arch_mem_addpart(PFN_DOWN(__pa_symbol(&__bss_start)) << PAGE_SHIFT, > + PFN_UP(__pa_symbol(&__bss_stop)) << PAGE_SHIFT, > + BOOT_MEM_RAM); > > pr_info("Determined physical RAM map:\n"); > print_memory_map(); >