Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932623AbbGVHNV (ORCPT ); Wed, 22 Jul 2015 03:13:21 -0400 Received: from mga03.intel.com ([134.134.136.65]:15526 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932090AbbGVHNU (ORCPT ); Wed, 22 Jul 2015 03:13:20 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,521,1432623600"; d="scan'208";a="610561396" From: Ashutosh Dixit To: Toshi Kani Cc: "linux-kernel\@vger.kernel.org" , "Dutt\, Sudeep" , "Rao\, Nikhil" , "Williams\, Dan J" Subject: Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap 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> Date: Wed, 22 Jul 2015 00:13:15 -0700 In-Reply-To: <1437511150.3214.230.camel@hp.com> (Toshi Kani's message of "Tue, 21 Jul 2015 14:39:10 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 25 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. Ashutosh -- 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/