From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
To: Mike Rapoport <rppt@linux.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Rich Felker <dalias@libc.org>,
"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Michal Hocko <mhocko@kernel.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
Max Filippov <jcmvbkbc@gmail.com>, Guo Ren <guoren@kernel.org>,
"linux-csky@vger.kernel.org" <linux-csky@vger.kernel.org>,
"sparclinux@vger.kernel.org" <sparclinux@vger.kernel.org>,
"linux-riscv@lists.infradead.org"
<linux-riscv@lists.infradead.org>,
Greg Ungerer <gerg@linux-m68k.org>,
"linux-arch@vger.kernel.org" <linux-arch@vger.kernel.org>,
"linux-s390@vger.kernel.org" <linux-s390@vger.kernel.org>,
"linux-c6x-dev@linux-c6x.org" <linux-c6x-dev@linux-c6x.org>,
Baoquan He <bhe@redhat.com>, Jonathan Corbet <corbet@lwn.net>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>,
"linux-hexagon@vger.kernel.org" <linux-hexagon@vger.kernel.org>,
Helge Deller <deller@gmx.de>, "x86@kernel.org" <x86@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Ley Foon Tan <ley.foon.tan@intel.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Guenter Roeck <linux@roeck-us.net>,
Mike Rapoport <rppt@kernel.org>
Subject: Re: [PATCH v2 17/20] mm: free_area_init: allow defining max_zone_pfn in descending order
Date: Thu, 7 May 2020 21:21:03 +0000 [thread overview]
Message-ID: <80b0c001-ea48-f5a2-e0de-19b2cc6ec2ce@synopsys.com> (raw)
In-Reply-To: <20200507205900.GH683243@linux.ibm.com>
On 5/7/20 1:59 PM, Mike Rapoport wrote:
> On Tue, May 05, 2020 at 11:15:22PM +0300, Mike Rapoport wrote:
>> On Tue, May 05, 2020 at 06:07:46PM +0000, Vineet Gupta wrote:
>>> On 5/5/20 2:19 AM, Mike Rapoport wrote:
>>> - Is it not better to have the core retain the flexibility just in case
>> If the requirement to have support for 3-banks is a theoretical
>> possibility, I would prefer to adjust ARC's version of
>> arch_has_descending_max_zone_pfns() to cope with either of 2-banks
>> configuration (PAE40 and non-PAE40) and deal with the third bank when/if
>> it actually materializes.
Fair enough.
> The fix below should take care of any 2-bank configurations.
> This is vs. current mmotm.
>
> From eb8124fb3584607d1036b7ae00c8092ae43e480d Mon Sep 17 00:00:00 2001
> From: Mike Rapoport <rppt@linux.ibm.com>
> Date: Thu, 7 May 2020 23:44:15 +0300
> Subject: [PATCH] arc: free_area_init(): take into account PAE40 mode
>
> The arch_has_descending_max_zone_pfns() does not take into account physical
> memory layout for PAE40 configuration.
> With PAE40 enabled, the HIGHMEM is actually higher than NORMAL and
> arch_has_descending_max_zone_pfns() should return false in this case.
>
> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
LGTM.
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Thx,
> ---
> arch/arc/mm/init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
> index 386959bac3d2..e7bdc2ac1c87 100644
> --- a/arch/arc/mm/init.c
> +++ b/arch/arc/mm/init.c
> @@ -79,7 +79,7 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
>
> bool arch_has_descending_max_zone_pfns(void)
> {
> - return true;
> + return !IS_ENABLED(CONFIG_ARC_HAS_PAE40);
> }
>
> /*
prev parent reply other threads:[~2020-05-07 21:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200429121126.17989-1-rppt@kernel.org>
[not found] ` <20200429121126.17989-18-rppt@kernel.org>
[not found] ` <20200503174138.GA114085@roeck-us.net>
[not found] ` <20200503184300.GA154219@roeck-us.net>
[not found] ` <20200504153901.GM14260@kernel.org>
2020-05-05 6:23 ` [PATCH v2 17/20] mm: free_area_init: allow defining max_zone_pfn in descending order Vineet Gupta
2020-05-05 9:19 ` Mike Rapoport
2020-05-05 18:07 ` Vineet Gupta
2020-05-05 20:15 ` Mike Rapoport
2020-05-07 20:59 ` Mike Rapoport
2020-05-07 21:21 ` Vineet Gupta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80b0c001-ea48-f5a2-e0de-19b2cc6ec2ce@synopsys.com \
--to=vineet.gupta1@synopsys.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=akpm@linux-foundation.org \
--cc=bhe@redhat.com \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=dalias@libc.org \
--cc=deller@gmx.de \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=guoren@kernel.org \
--cc=heiko.carstens@de.ibm.com \
--cc=jcmvbkbc@gmail.com \
--cc=ley.foon.tan@intel.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-c6x-dev@linux-c6x.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hexagon@vger.kernel.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=linux@roeck-us.net \
--cc=mhocko@kernel.org \
--cc=rppt@kernel.org \
--cc=rppt@linux.ibm.com \
--cc=sparclinux@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox