From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755017Ab1JKPqY (ORCPT ); Tue, 11 Oct 2011 11:46:24 -0400 Received: from terminus.zytor.com ([198.137.202.10]:54235 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754884Ab1JKPqW (ORCPT ); Tue, 11 Oct 2011 11:46:22 -0400 References: <1318337645-7112-1-git-send-email-matt@console-pimps.org> <20111011130333.GA4117@srcf.ucam.org> <1318338617.4060.109.camel@mfleming-mobl1.ger.corp.intel.com> User-Agent: K-9 Mail for Android In-Reply-To: <1318338617.4060.109.camel@mfleming-mobl1.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] x86, efi: Calling __pa() with an ioremap'd address is invalid From: "hpanvin@gmail.com" Date: Tue, 11 Oct 2011 08:45:38 -0700 To: Matt Fleming , Matthew Garrett CC: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Zhang Rui , Huang Ying Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I think ioremap_cache() should work for either. Matt Fleming wrote: >On Tue, 2011-10-11 at 14:03 +0100, Matthew Garrett wrote: >> Is there any chance of unifying the 32 and 64-bit code here as well? > >I was under the impression that this wasn't possible for the cached >case >because the 32-bit code path uses ioremap_cache() whereas 64-bit uses >init_memory_mapping() and __va(). > >Unless I'm missing something? -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.