Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965234AbbGVOzo (ORCPT ); Wed, 22 Jul 2015 10:55:44 -0400 Received: from g9t5009.houston.hp.com ([15.240.92.67]:55038 "EHLO g9t5009.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965014AbbGVOzn (ORCPT ); Wed, 22 Jul 2015 10:55:43 -0400 Message-ID: <1437576873.3214.248.camel@hp.com> Subject: Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap From: Toshi Kani To: Ashutosh Dixit Cc: "linux-kernel@vger.kernel.org" , "Dutt, Sudeep" , "Rao, Nikhil" , "Williams, Dan J" Date: Wed, 22 Jul 2015 08:54:33 -0600 In-Reply-To: References: <6DC2528F945B4149AB6566DFB5F22ED39BC5540B@ORSMSX115.amr.corp.intel.com> <1437407695.3214.156.camel@hp.com> <1437407942.3214.159.camel@hp.com> <1437420078.3214.185.camel@hp.com> <1437511150.3214.230.camel@hp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.3 (3.16.3-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 32 On Wed, 2015-07-22 at 00:13 -0700, Ashutosh Dixit wrote: > On Tue, Jul 21 2015 at 01:39:10 PM, Toshi Kani wrote: > > > > You can do the following instead. If you have the physical address > > already > > (i.e. the address you passed to ioremap), you can skip > > slow_virt_to_phys(). > > pfn_to_page() is a hack for the time being so that you can use the > > same > > DMA mapping APIs. > > > > phys = slow_virt_to_phys(vaddr); > > page = pfn_to_page(phys >> PAGE_SHIFT); > > > > Dan is working on the change to introduce __pfn_t. With this change, > > you > > can pass a pfn, instead of a fake page pointer, to APIs. You may want > > to > > check if your APIs are covered in this change. > > https://lkml.org/lkml/2015/6/5/802 > > Thanks, we can do this for now till Dan's changes come online. Also, we > already have the physical address. We will submit a patch with this > change. Sounds great. Thanks, -Toshi -- 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/