Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp438303imu; Wed, 19 Dec 2018 22:36:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/WfrYZSPP1c3lkCkQvRZphdVj15jqwV7LtXhlLF6JQ+bIEiGdtZs10hWER3dXBp7dT5Y7Bu X-Received: by 2002:a65:584e:: with SMTP id s14mr5555903pgr.142.1545287811409; Wed, 19 Dec 2018 22:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545287811; cv=none; d=google.com; s=arc-20160816; b=a0v9l5OGlyif+hKVArB0hH67ZH/JYMF6JuATXDyO2Va+w60X7XSUfOROfFYCYWpMPe 4KyxxzUFvBpfdkCwvOb7EmQNcLuk/3WCFSCoukGfGXZHsFBkpnaCKRVc4O3kKHvikGeK sTgboVZDX/Je4IXYSX+coxKxJ8X5cfJuFsEKbDm5GP6H4fgsW2OXjboczDFPI7W01AEB JvTMsa3XSV2bYgiNuwBFpsM8NztEr/7sREGPE19tFMI7ELcmGsLSWKbSWa3/mCpw9cAs DUG8lmheGLtJy+gJKnHCYyxihV/oam3eTSVnf1m8OGgUMqMM01PvmBJSjcRZHTOk0ln5 boWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Ip5UJoFlbn7nlRS+2fWlqvr9UGUfsTT8E/DEvRQkzro=; b=vPoeltOZkU4vkWPuDdzbRnee/GCbgAr4aJnYbnCPbRAnG3wshgw4bEvKMp9fF8d+M0 iuAbt6UpqBlXz23JQaYmMJLbzFw4xo3MnWW2VPjaVTf1cgZxBYz4+vu7hOWQOFWT5qys U/ygedhXNSVAb8JtTwFfjkgBIZTRnK8DaL1aNaAw8Lr7wfo+G3/XK+ipRwwkerWnstdw 8axM+kVXp2XqR5bKsa7TJiay3sWsTwKDIugOT2A0LtGFkDjBrRd0EYX2r7A6IHPcP/N4 SeZPCEqpK09+FvDvakgTkUfypCq9LP63in6sbXgMjQO81ZftD8UOWlioHyu9b/2mt8LY ERXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=azuMsxLr; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si18320825pfg.121.2018.12.19.22.36.35; Wed, 19 Dec 2018 22:36:51 -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=@synopsys.com header.s=mail header.b=azuMsxLr; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729036AbeLTDt2 (ORCPT + 99 others); Wed, 19 Dec 2018 22:49:28 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:33954 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728061AbeLTDt1 (ORCPT ); Wed, 19 Dec 2018 22:49:27 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 37C4724E0EE2; Wed, 19 Dec 2018 19:49:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1545277767; bh=B7gUdpmaSbLGKs2pnMeBKwiBlkfkHHFdBK1BHJWFeQQ=; h=From:To:CC:Subject:Date:References:From; b=azuMsxLrGFIHkBP+//dmHWx0rkrel7Vt264oQxpSmo0mfgBaY08sIG4Hd3agOZyks oJU8h8w6VPDtdwil68uqP0wNhn1nDhLn4F8J9jEOvaAhBbPFg+Kc8PGVL+O/Ve6MdY HNbzyHLjBTqewCFTzn+p1oHj0MFHzJtVD9bOzLIxv+Iie23C3Hdtf5Yz+1qa7uizML RUR3CSN9WyPYHLlrlH+e8SCQ4PaY5LHe0x/BDumJ86iR0WLGyF0TKJhFx7RIOcAXOH jBjZbcAEUsiYZM2AX39i2TDRHEa9lp24c/EmD5dH++iBW8DkNSzu4FwOFlZM7rIaAJ bIWxQfP3e9F3g== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 14F6C3BC5; Wed, 19 Dec 2018 19:49:27 -0800 (PST) Received: from US01WEMBX2.internal.synopsys.com ([fe80::e4b6:5520:9c0d:250b]) by US01WEHTC3.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Wed, 19 Dec 2018 19:49:27 -0800 From: Vineet Gupta To: Eugeniy Paltsev , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "Alexey Brodkin" , "stable@vger.kernel.org" Subject: Re: [PATCH] ARC: adjust memblock_reserve of kernel memory Thread-Topic: [PATCH] ARC: adjust memblock_reserve of kernel memory Thread-Index: AQHUl7Y3xyclRc6qjkizV/X3iTxkVw== Date: Thu, 20 Dec 2018 03:49:26 +0000 Message-ID: References: <20181219161616.10422-1-Eugeniy.Paltsev@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/19/18 8:16 AM, Eugeniy Paltsev wrote:=0A= > In setup_arch_memory we reserve the memory area wherein the kernel=0A= > is located. Current implementation may reserve more memory than=0A= > it actually required in case of CONFIG_LINUX_LINK_BASE is not=0A= > equal to CONFIG_LINUX_RAM_BASE. This happens because we calculate=0A= > start of the reserved region relatively to the CONFIG_LINUX_RAM_BASE=0A= > and end of the region relatively to the CONFIG_LINUX_RAM_BASE.=0A= >=0A= > For example in case of HSDK board we wasted 256MiB of physical memory:=0A= > ------------------->8------------------------------=0A= > Memory: 770416K/1048576K available (5496K kernel code,=0A= > 240K rwdata, 1064K rodata, 2200K init, 275K bss,=0A= > 278160K reserved, 0K cma-reserved)=0A= > ------------------->8------------------------------=0A= >=0A= > Fix that.=0A= >=0A= > Cc: stable@vger.kernel.org=0A= > Signed-off-by: Eugeniy Paltsev =0A= =0A= LGTM. I presume you have booted HSDK with it and done some smoke testing.= =0A= =0A= -Vineet=0A=