Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752751AbbKQAQN (ORCPT ); Mon, 16 Nov 2015 19:16:13 -0500 Received: from icp-osb-irony-out9.external.iinet.net.au ([203.59.1.226]:23862 "EHLO icp-osb-irony-out9.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbbKQAQL (ORCPT ); Mon, 16 Nov 2015 19:16:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjQCAHhwSlZnMNI1/2dsb2JhbAANUIR9q1sBAQEBAQEGkGCEDYYQAoIWAQEBAQEBhUABAQR4ARALDQsJFg8JAwIBAgFFBgEMBgIBAbIjkS4BAQEBAQEBAQIBAQEBAQEdhg2FRYQohREBBJZJlluFeI0ZgnQdgWhgg0CBSgEBAQ X-IronPort-AV: E=Sophos;i="5.20,305,1444665600"; d="scan'208";a="706588509" Subject: Re: [PATCH 2/4] m68k/mm: m54xx - Add missing initialization of max_pfn To: Geert Uytterhoeven , Sam Creasey , linux-m68k@vger.kernel.org References: <1447585455-19671-1-git-send-email-geert@linux-m68k.org> <1447585455-19671-3-git-send-email-geert@linux-m68k.org> Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org From: Greg Ungerer Message-ID: <564A71C7.1070902@uclinux.org> Date: Tue, 17 Nov 2015 10:16:07 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1447585455-19671-3-git-send-email-geert@linux-m68k.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1497 Lines: 46 Hi Geert, On 15/11/15 21:04, Geert Uytterhoeven wrote: > If max_pfn is not initialized, the various /proc/kpage* files are empty, > and selftests/vm/mlock2-tests will fail. max_pfn is also used by the > block layer to calculate DMA masks. > > Signed-off-by: Geert Uytterhoeven > --- > Compile-tested only. Tested and seems to work fine on MMU ColdFire (I didn't check the actual entries for accuracy - but /proc/kpageflags and /proc/kpagecount look to be reporting correctly now). Tested-by: Greg Ungerer Regards Greg  > --- > arch/m68k/coldfire/m54xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/m68k/coldfire/m54xx.c b/arch/m68k/coldfire/m54xx.c > index f7836c6a6b60eb24..c32f76791f488ae1 100644 > --- a/arch/m68k/coldfire/m54xx.c > +++ b/arch/m68k/coldfire/m54xx.c > @@ -98,7 +98,7 @@ static void __init mcf54xx_bootmem_alloc(void) > memstart = PAGE_ALIGN(_ramstart); > min_low_pfn = PFN_DOWN(_rambase); > start_pfn = PFN_DOWN(memstart); > - max_low_pfn = PFN_DOWN(_ramend); > + max_pfn = max_low_pfn = PFN_DOWN(_ramend); > high_memory = (void *)_ramend; > > m68k_virt_to_node_shift = fls(_ramend - _rambase - 1) - 6; > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/