Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751987AbaAPAcG (ORCPT ); Wed, 15 Jan 2014 19:32:06 -0500 Received: from smtp.codeaurora.org ([198.145.11.231]:45024 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751203AbaAPAcE (ORCPT ); Wed, 15 Jan 2014 19:32:04 -0500 Message-ID: <52D72883.3020500@codeaurora.org> Date: Wed, 15 Jan 2014 16:32:03 -0800 From: Laura Abbott User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Mark Salter , linux-kernel@vger.kernel.org CC: Russell King , Arnd Bergmann , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 4/6] arm: add early_ioremap support References: <1389325833-16535-1-git-send-email-msalter@redhat.com> <1389325833-16535-5-git-send-email-msalter@redhat.com> In-Reply-To: <1389325833-16535-5-git-send-email-msalter@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/9/2014 7:50 PM, Mark Salter wrote: .... > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > index 987a7f5..038fb75 100644 > --- a/arch/arm/kernel/setup.c > +++ b/arch/arm/kernel/setup.c > @@ -36,6 +36,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -887,6 +888,8 @@ void __init setup_arch(char **cmdline_p) > > parse_early_param(); > > + early_ioremap_init(); > + > sort(&meminfo.bank, meminfo.nr_banks, sizeof(meminfo.bank[0]), meminfo_cmp, NULL); > > early_paging_init(mdesc, lookup_processor_type(read_cpuid_id())); Any chance we could do this even earlier, say right after setup_processor? It would be nice to be able to do this while FDT scanning (I have a use case in mind, potential patches are in the works) > diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c > index 580ef2d..bef59b9 100644 > --- a/arch/arm/mm/mmu.c > +++ b/arch/arm/mm/mmu.c > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > > #include "mm.h" > #include "tcm.h" > @@ -1405,6 +1406,7 @@ void __init paging_init(const struct machine_desc *mdesc) > { > void *zero_page; > > + early_ioremap_reset(); > build_mem_type_table(); > prepare_page_table(); > map_lowmem(); > Neither x86 nor arm64 get rid of existing mapping in paging_init. Is there a reason this needs to be here for arm? Are there concerns about alias mappings? Thanks, Laura -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- 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/