From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565Ab1KGVVB (ORCPT ); Mon, 7 Nov 2011 16:21:01 -0500 Received: from terminus.zytor.com ([198.137.202.10]:45873 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750767Ab1KGVVA (ORCPT ); Mon, 7 Nov 2011 16:21:00 -0500 Message-ID: <4EB84BAD.6030707@zytor.com> Date: Mon, 07 Nov 2011 13:20:45 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 MIME-Version: 1.0 To: Matthew Garrett CC: Matt Fleming , Thomas Gleixner , Ingo Molnar , Zhang Rui , Huang Ying , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] x86, efi: Calling __pa() with an ioremap'd address is invalid References: <1320680088-2584-1-git-send-email-matt@console-pimps.org> <20111107202324.GA27515@srcf.ucam.org> <4EB8413D.6030500@zytor.com> <20111107203752.GA27875@srcf.ucam.org> <4EB8436B.20603@zytor.com> <20111107204839.GA28261@srcf.ucam.org> <4EB84644.8060102@zytor.com> <20111107205859.GA28681@srcf.ucam.org> <4EB84734.3070006@zytor.com> <20111107210702.GA28781@srcf.ucam.org> In-Reply-To: <20111107210702.GA28781@srcf.ucam.org> X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/2011 01:07 PM, Matthew Garrett wrote: >> >> I know we need to be able to pass the initramfs in memory; anything else >> we need other than the normal EFI executable entry conditions? > > If we're called before ExitBootServices(), no. If we're called after, > we'll need the map from GetMemoryMap(). There's some other things that > we may want to pass, such as option ROMs that we can get from firmware > but which may not otherwise be mapped - I guess those could arguably be > passed in the initramfs. > No, we should be called before ExitBootServices(), obviously. That was a significant part of the point. Getting a list of the stuff we need would be useful, so we can come up with a workable ABI for passing it. -hpa