[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <73e1f356-2b6c-a7fd-2f04-e5b58ae79884@gmail.com>
Date: Mon, 20 Aug 2018 14:27:22 +0800
From: Jia He <hejianet@...il.com>
To: Catalin Marinas <catalin.marinas@....com>
Cc: Russell King <linux@...linux.org.uk>,
Will Deacon <will.deacon@....com>,
Mark Rutland <mark.rutland@....com>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Michal Hocko <mhocko@...e.com>,
Gioh Kim <gi-oh.kim@...fitbricks.com>,
Wei Yang <richard.weiyang@...il.com>, linux-mm@...ck.org,
Eugeniu Rosca <erosca@...adit-jv.com>,
Petr Tesarik <ptesarik@...e.com>,
Nikolay Borisov <nborisov@...e.com>,
Pavel Tatashin <pasha.tatashin@...cle.com>,
Daniel Jordan <daniel.m.jordan@...cle.com>,
AKASHI Takahiro <takahiro.akashi@...aro.org>,
Vlastimil Babka <vbabka@...e.cz>,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
Laura Abbott <labbott@...hat.com>,
Daniel Vacek <neelx@...hat.com>, Mel Gorman <mgorman@...e.de>,
Vladimir Murzin <vladimir.murzin@....com>,
Kees Cook <keescook@...omium.org>,
Philip Derrin <philip@....systems>,
YASUAKI ISHIMATSU <yasu.isimatu@...il.com>,
Jia He <jia.he@...-semitech.com>,
Kemi Wang <kemi.wang@...el.com>,
linux-arm-kernel@...ts.infradead.org,
Steve Capper <steve.capper@....com>,
linux-kernel@...r.kernel.org, James Morse <james.morse@....com>,
Johannes Weiner <hannes@...xchg.org>
Subject: Re: [RESEND PATCH v10 1/6] arm: arm64: introduce
CONFIG_HAVE_MEMBLOCK_PFN_VALID
On 8/17/2018 10:50 PM, Catalin Marinas Wrote:
> On Fri, Jul 06, 2018 at 05:01:10PM +0800, Jia He wrote:
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
>> index 42c090c..26d75f4 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -778,6 +778,10 @@ config ARCH_SELECT_MEMORY_MODEL
>> config HAVE_ARCH_PFN_VALID
>> def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
>>
>> +config HAVE_MEMBLOCK_PFN_VALID
>> + def_bool y
>> + depends on HAVE_ARCH_PFN_VALID
>> +
>> config HW_PERF_EVENTS
>> def_bool y
>> depends on ARM_PMU
>> diff --git a/mm/Kconfig b/mm/Kconfig
>> index 94af022..28fcf54 100644
>> --- a/mm/Kconfig
>> +++ b/mm/Kconfig
>> @@ -137,6 +137,9 @@ config HAVE_MEMBLOCK_NODE_MAP
>> config HAVE_MEMBLOCK_PHYS_MAP
>> bool
>>
>> +config HAVE_MEMBLOCK_PFN_VALID
>> + bool
>
> Since you defined HAVE_MEMBLOCK_PFN_VALID here, do we need to define it
> in the arch code as well? If kept it in the mm/Kconfig only, you could
> just select it in the arch HAVE_ARCH_PFN_VALID entry:
>
Ok, thanks for the comments
It makes it more clean.
--
Cheers,
Jia
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index d0a53cc6293a..cd230c77e122 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -787,6 +787,7 @@ config ARCH_FLATMEM_ENABLE
>
> config HAVE_ARCH_PFN_VALID
> def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
> + select HAVE_MEMBLOCK_PFN_VALID
>
> config HW_PERF_EVENTS
> def_bool y
>
> (similarly for arch/arm)
>
Powered by blists - more mailing lists