Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1190039
| From | Toshi Kani <toshi.kani@hp.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap |
| Date | 2015-07-22 17:00 +0200 |
| Message-ID | <pP3F0-1wt-21@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <pOo8N-Vo-7@gated-at.bofh.it> <pOoVc-25g-37@gated-at.bofh.it> <pOHuO-3DX-13@gated-at.bofh.it> <pOME9-2rQ-7@gated-at.bofh.it> <pOWtQ-8ib-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 2015-07-22 at 00:13 -0700, Ashutosh Dixit wrote: > On Tue, Jul 21 2015 at 01:39:10 PM, Toshi Kani <toshi.kani@hp.com> 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/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap Ashutosh Dixit <ashutosh.dixit@intel.com> - 2015-07-20 20:40 +0200
Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap Ashutosh Dixit <ashutosh.dixit@intel.com> - 2015-07-22 09:20 +0200
Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap Toshi Kani <toshi.kani@hp.com> - 2015-07-22 17:00 +0200
csiph-web