Received: by 2002:a17:90a:8504:0:0:0:0 with SMTP id l4csp409340pjn; Wed, 23 Oct 2019 01:29:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXH40jnI57ARU13ZJ8RJcbmUVXqMKFtb03YLrqSM8qjNc6auI67KFhUhRCdHsyy3jHXZdS X-Received: by 2002:a50:b2c4:: with SMTP id p62mr35343595edd.128.1571819393772; Wed, 23 Oct 2019 01:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571819393; cv=none; d=google.com; s=arc-20160816; b=GZrM6do7p6doXZl3+gVgfdOMi/LU3D/TZrv1HYGkvUbsh9tWh0uiKn+w3sV3zzK6hD UwntpM1ERVWT5W3NHrRbibVwVTKEppIyiZGkfrp8RPTddTtRniMZhyeGkYJT2vvqP0G6 5S2Gd5jI0oVQ2yMflYslxLMATGcSBjGooGlaNQ0NQQQxXsWKPvqN3s/JStrsCYsxoqm6 2YKFnrf8Wg8IhMm8fwBHY9ccDB3BnM607pgK/hG5Yl21I06KIg4aZq0yvJK9R0AXru0y oXo7yyyEy4HVAS/NdX0M1+f5Y4w7+VW9+6UWi3Ac0jHU6PKRS/xbC3i9KvHfz9NvhFV/ CWPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Cg3DCuI76OIZnHCYYC82TEiJ4kpqTIuPT71ZXvRbmus=; b=W3wbKNTHdb4Fc/Q5WTmtJqD/VBzrspMLttBJn/xHbOiGw1XDonRU7OwVqN/onVG+9+ NEvkhccwi3cuTHn5+R5KDgZIUw3wXPtxmPXEIT5MjCWwdu3m3r0D2tCe9DQnvM3pB4vD Zy+bhTkdBQ7I1UUpClUDDat6ziHto/iDjXQ2kWEw9strCDTbExgTjanJrGvUBX9geXc4 DnXG2oo8+BaeM2o6zN6d4FWtyaV+3vUDRj0i7XfM1qXAsbk9OzpmE6VTOUjMwkPZaPfO 1iw6RUH0SurppeTJmWOFO/msXHh9o7kM0HY2CdeWbU2XqKlbFAThLB4EdCErmOhZKttq KBxQ== 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 q4si4255426edc.403.2019.10.23.01.29.30; Wed, 23 Oct 2019 01:29:53 -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; 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 S2390289AbfJWI0j (ORCPT + 99 others); Wed, 23 Oct 2019 04:26:39 -0400 Received: from salem.gmr.ssr.upm.es ([138.4.36.7]:56260 "EHLO salem.gmr.ssr.upm.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbfJWI0j (ORCPT ); Wed, 23 Oct 2019 04:26:39 -0400 X-Greylist: delayed 545 seconds by postgrey-1.27 at vger.kernel.org; Wed, 23 Oct 2019 04:26:38 EDT Received: by salem.gmr.ssr.upm.es (Postfix, from userid 1000) id C3267AC0075; Wed, 23 Oct 2019 10:17:29 +0200 (CEST) Date: Wed, 23 Oct 2019 10:17:29 +0200 From: Alvaro Gamez Machado To: Michal Simek Cc: Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arch: microblaze: support for reserved-memory entries in DT Message-ID: <20191023081728.GA17517@salem.gmr.ssr.upm.es> References: <20191022081929.10602-1-alvaro.gamez@hazent.com> <64db9f22-2e24-23f8-bf64-c4a972fa50c1@monstr.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64db9f22-2e24-23f8-bf64-c4a972fa50c1@monstr.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal On Wed, Oct 23, 2019 at 09:59:40AM +0200, Michal Simek wrote: > Hi, > > > On 22. 10. 19 10:19, Alvaro Gamez Machado wrote: > > Signed-off-by: Alvaro Gamez Machado > > please put there reasonable description to commit message. Ok, will use those below as template. > > --- > > arch/microblaze/mm/init.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c > > index a015a951c8b7..928c5c2816e4 100644 > > --- a/arch/microblaze/mm/init.c > > +++ b/arch/microblaze/mm/init.c > > @@ -17,6 +17,8 @@ > > #include > > #include > > #include > > +#include > > +#include > > of_fdt.h should be enough. Ok > > > > #include > > #include > > @@ -188,6 +190,9 @@ void __init setup_memory(void) > > > > void __init mem_init(void) > > { > > + early_init_fdt_reserve_self(); > > + early_init_fdt_scan_reserved_mem(); > > + > > high_memory = (void *)__va(memory_start + lowmem_size - 1); > > > > /* this will put all memory onto the freelists */ > > > > > Also I have looked at others arch and take a look at > > 1b10cb21d888c021bedbe678f7c26aee1bf04ffa > ARC: add support for reserved memory defined by device tree > > where they also enable OF_RESERVED_MEM to call fdt_init_reserve_mem() > > The same here > 4e7c84ec045921dacc78d36295e2e61390249665 > xtensa: support reserved-memory DT node > > and here > 9bf14b7c540ae9ca7747af3a0c0d8470ef77b6ce > arm64: add support for reserved memory defined by device tree > They did that at the time, but it seems it's not needed anymore: 34e04eedd1cf1be714abb0e5976338cc72ccc05f of: select OF_RESERVED_MEM automatically This commit removed those select OF_RESERVED_MEM lines. Is it needed specifically for microblaze? I didn't need to do that in order for reserved-memory entries to work on my platform. Thanks! > Please note this in commit message. > > Thanks, > Michal > > > -- > Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 > w: www.monstr.eu p: +42-0-721842854 > Maintainer of Linux kernel - Xilinx Microblaze > Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs > U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs > -- Alvaro G. M.