From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753775Ab2IENpE (ORCPT ); Wed, 5 Sep 2012 09:45:04 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:56950 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543Ab2IENpB (ORCPT ); Wed, 5 Sep 2012 09:45:01 -0400 Date: Wed, 5 Sep 2012 14:44:55 +0100 From: Matthew Garrett To: Alan Cox Cc: Don Dutile , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-efi@vger.kernel.org, mfleming@intel.com, dwmw2@infradead.org, bhelgaas@google.com Subject: Re: [PATCH V3 3/4] PCI: Add support for non-BAR ROMs Message-ID: <20120905134454.GD16399@srcf.ucam.org> References: <1345739803-21017-1-git-send-email-mjg@redhat.com> <1345739803-21017-4-git-send-email-mjg@redhat.com> <5046B688.1070902@redhat.com> <20120905022932.GA4087@srcf.ucam.org> <20120905134621.73afe48a@pyramind.ukuu.org.uk> <20120905132007.GB16399@srcf.ucam.org> <20120905143010.557aa3fb@pyramind.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120905143010.557aa3fb@pyramind.ukuu.org.uk> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2012 at 02:30:10PM +0100, Alan Cox wrote: > On Wed, 5 Sep 2012 14:20:07 +0100 > Matthew Garrett wrote: > > We've no good way of knowing what the firmware's giving us - we copy it > > to RAM in the EFI init process, so by the time we're here it certainly > > shouldn't be on the PCI bus. > > In which case how do you know that physical address you have been given > actually has a mapping in kernel virtual space. It seems like it ought to > be getting an ioremap in that case ? > > phys_to_virt is not valid for arbitary addresses. The pages are allocated as EFI_LOADER_DATA, and that gets mapped as E820_RAM. -- Matthew Garrett | mjg59@srcf.ucam.org