Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4124868yba; Tue, 23 Apr 2019 15:50:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfOyU2+GAwM2jI3XFxZOqzxsjOWHsFRIL+bmbBOgKkQWQ3GW6ot8QbkCxYJfy4SQaiUO6O X-Received: by 2002:a17:902:61:: with SMTP id 88mr28409949pla.166.1556059842474; Tue, 23 Apr 2019 15:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556059842; cv=none; d=google.com; s=arc-20160816; b=rcQC3dmZZLp/ctLBXZuNu1QmBMeVmRlgPhyziNEpIAiTvgHKqR3c+baRajxxgVR6yX upPTP/c45vkNahLKnQ4K6fzO79JMItSG+Iw9VQ5NOq5N0rnQ2NqWUilaWQS7YZv+GPCo zbhJ38X23CgH/jVOWflc7K9Cavjo/ZaEW/D3Qq93vRyIrprF050tp5s86wmrPxSjrBdZ MAUkxFSryGNFLosCcLmsIgupnWs612UCNxDmOfw1lkRo9nUucDwjtGs44KyXKXfl9ZQ1 wVOCUJDtlMFacKX5Bikul/miXqJMPoi69pSYyyYi1U+4YEMFSgTQ/JxOQyB4tpRNOAQL 30EA== 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=7741/2a1/SrR4PpN1R0HoKZL/IBWcdVAEL0l49IfvUY=; b=sjht+C+OLH0E1D9DDHrC8PWKkj0K8GEPxen/bv/0Eon+y14YJ1XHI0EvjUtlVc3uTb bUR+AJq5xHw+VhPy2qTvSRv9uRu0662IdRysrDKUEw6dNU5ZBzzMy3KKd9HoRZMmwUdt lmoyEy4VgexASolCieWX62HlRfjz3rnsYZDy9g6Frer6vvpWQ9H8BItdPcRFEG7L3E5N 0HaAnQdd0ikUV/pDTbbC476HXFaV2CGzJEkS5L4oih+s0hlAjs+0CKAAYtFf29tN5NoH tLxhm9JaEDJm6Mo9Jqbz/TxlwdOFK2xNpCeaqg1TX7KqlW8zZT9Za+/dA44Ztg1ZOgDk 9pqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fpbLIdu5; 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 d9si16958008pls.12.2019.04.23.15.50.25; Tue, 23 Apr 2019 15:50:42 -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=fpbLIdu5; 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 S1728493AbfDWWt0 (ORCPT + 99 others); Tue, 23 Apr 2019 18:49:26 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46644 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbfDWWt0 (ORCPT ); Tue, 23 Apr 2019 18:49:26 -0400 Received: by mail-lj1-f195.google.com with SMTP id h21so14970055ljk.13; Tue, 23 Apr 2019 15:49:24 -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=7741/2a1/SrR4PpN1R0HoKZL/IBWcdVAEL0l49IfvUY=; b=fpbLIdu5Sft9yYIVNXT84yBNZa2bkD54EFhIaCN07y+9Jytm6XEDD+ehA3w3R6JDhf Um8W7TcrFRFtFPuplbtNRQIZv8KofmqqF1D7HDltZW6dBLIAsECFGawUxGtS06N6fWEH U9Fijh1cbNs+31hS5do4yZ4RnPyecdTOeKqLWoPuv9PCKNyLPpONK93lN4X7RYyEvOQR QNqSmjqOkR6Yv3AicISGmIfk4WJfbRiAPt7dO8loLgtT0ZGCi7X09vuYrtbuw1yYSqvB QMOj1H4KyR1Klj5k/ZhaOMETYMHk4YxaduJHZsRnNTzvtPcCFxKuFll6DYWOnlYUGQrO zaOw== 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=7741/2a1/SrR4PpN1R0HoKZL/IBWcdVAEL0l49IfvUY=; b=kNYd1wRlChtpSbbcqPYjMY0qnZ5+Bg1rTSUNPNWgddtEQ7jIPBfe/RTgVClPJIUo5X fs9rnXy+XCFXQcCp62kYXxv059UPTk/qjvpFTMv6t7edjSLcoJUUtmV3wL1Ujhozx11P l5+KZYZ1r9TBShUJEIb8r8jvTYWyNFzo2NIiOOa7TvzYoEix7owNSKziCUofHlAyrr5F gstv/PB/wslk0NQRGIzl/9Nyu9Dtowaoj206p3H6GskTc+N91QU3K2sOWGtYM0icKbOJ sNVT55fuq1iPn+q3exDSH63fPjEZ57Lv5+xU2w16OfNNhey11E1GOMDdaip7t8yK6/Tf 73aA== X-Gm-Message-State: APjAAAWHYijZ9LloYTgl8+nK+lRU9bLSNhDmjHQ7Eyz9k4fd9O7Rwc0D Uu/k2R3yOsP2zL1ib4bIIj0= X-Received: by 2002:a2e:9b13:: with SMTP id u19mr15286090lji.134.1556059764254; Tue, 23 Apr 2019 15:49:24 -0700 (PDT) Received: from localhost.localdomain ([5.164.240.123]) by smtp.gmail.com with ESMTPSA id w2sm4904722lfa.63.2019.04.23.15.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 15:49:23 -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 01/12] mips: Make sure kernel .bss exists in boot mem pool Date: Wed, 24 Apr 2019 01:47:37 +0300 Message-Id: <20190423224748.3765-2-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 Current MIPS platform code makes sure the kernel text, data and init sections are added to the boot memory map pool right after the arch-specific memory setup method has been executed. But for some reason the MIPS platform code skipped the kernel .bss section, which definitely should be in the boot mem pool as well in any case. Lets fix this just be adding the space between __bss_start and __bss_stop. Reviewed-by: Matt Redfearn Signed-off-by: Serge Semin --- 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 8d1dc6c71173..0ee033c44116 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -809,6 +809,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(); -- 2.21.0