From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH V4 2/3] arm64: support initrd outside kernel linear map Date: Thu, 8 Oct 2015 10:40:55 +0100 Message-ID: <20151008094055.GC32532@n2100.arm.linux.org.uk> References: <1439830867-14935-1-git-send-email-msalter@redhat.com> <1439830867-14935-3-git-send-email-msalter@redhat.com> <20150908113113.GA20562@leverpostej> <20151006171140.GE26433@leverpostej> <1444151812.10788.14.camel@redhat.com> <20151008084953.GA20114@cbox> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: yalin wang Cc: Christoffer Dall , Mark Rutland , "linux-arch@vger.kernel.org" , Arnd Bergmann , Ard Biesheuvel , Catalin Marinas , "x86@kernel.org" , Will Deacon , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Mark Salter , Andrew Morton , "linux-arm-kernel@lists.infradead.org" List-Id: linux-arch.vger.kernel.org On Thu, Oct 08, 2015 at 05:18:14PM +0800, yalin wang wrote: > is it also possible to implement it on ARM platforms? > ARM64 platform don=E2=80=99t have HIGH_MEM zone . > but ARM platform have . > i remember boot loader must put init rd into low memory region, > so if some boot loader put init rd into HIGH men zone > we can also relocate it to low men region ? > then boot loader don=E2=80=99t need care about this , > and since vmalloc=3D boot option will change HIGH mem region size, > if we can relocate init rd , boot loader don=E2=80=99t need care about = init rd load address, > when change vmalloc=3D boot options . I'd be more inclined to say yes if the kernel wasn't buggering around passing virtual addresses (initrd_start) of the initrd image around, but instead used a physical address. initrd_start must be a lowmem address. --=20 FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pandora.arm.linux.org.uk ([78.32.30.218]:47454 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755499AbbJHJlI (ORCPT ); Thu, 8 Oct 2015 05:41:08 -0400 Date: Thu, 8 Oct 2015 10:40:55 +0100 From: Russell King - ARM Linux Subject: Re: [PATCH V4 2/3] arm64: support initrd outside kernel linear map Message-ID: <20151008094055.GC32532@n2100.arm.linux.org.uk> References: <1439830867-14935-1-git-send-email-msalter@redhat.com> <1439830867-14935-3-git-send-email-msalter@redhat.com> <20150908113113.GA20562@leverpostej> <20151006171140.GE26433@leverpostej> <1444151812.10788.14.camel@redhat.com> <20151008084953.GA20114@cbox> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: yalin wang Cc: Christoffer Dall , Mark Rutland , "linux-arch@vger.kernel.org" , Arnd Bergmann , Ard Biesheuvel , Catalin Marinas , "x86@kernel.org" , Will Deacon , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Mark Salter , Andrew Morton , "linux-arm-kernel@lists.infradead.org" Message-ID: <20151008094055.POpJKSwG3h5VzzTp4Fvjf5CskhY0Zrolyrpstq7wAhY@z> On Thu, Oct 08, 2015 at 05:18:14PM +0800, yalin wang wrote: > is it also possible to implement it on ARM platforms? > ARM64 platform don’t have HIGH_MEM zone . > but ARM platform have . > i remember boot loader must put init rd into low memory region, > so if some boot loader put init rd into HIGH men zone > we can also relocate it to low men region ? > then boot loader don’t need care about this , > and since vmalloc= boot option will change HIGH mem region size, > if we can relocate init rd , boot loader don’t need care about init rd load address, > when change vmalloc= boot options . I'd be more inclined to say yes if the kernel wasn't buggering around passing virtual addresses (initrd_start) of the initrd image around, but instead used a physical address. initrd_start must be a lowmem address. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.