Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-22 Thread Toshi Kani
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_t

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-22 Thread Ashutosh Dixit
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 mappi

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-21 Thread Toshi Kani
On Tue, 2015-07-21 at 14:39 -0600, Toshi Kani wrote: > On Tue, 2015-07-21 at 08:17 -0700, Ashutosh Dixit wrote: > > On Mon, Jul 20 2015 at 12:21:18 PM, Toshi Kani : > > Yes, you are correct, the 'struct page' pointer returned by > > vmalloc_to_page does not point to a "real" struct page entry. N

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-21 Thread Toshi Kani
On Tue, 2015-07-21 at 08:17 -0700, Ashutosh Dixit wrote: > On Mon, Jul 20 2015 at 12:21:18 PM, Toshi Kani wrote: > > > > Can you send me outputs of the following files? If the driver > > > > fails to load in v4.2-rc1, you can obtain the info in v4.1. > > > > > > > > /proc/mtrr > > > > /proc/

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-21 Thread Ashutosh Dixit
On Mon, Jul 20 2015 at 12:21:18 PM, Toshi Kani wrote: >> > Can you send me outputs of the following files? If the driver >> > fails to load in v4.2-rc1, you can obtain the info in v4.1. >> > >> > /proc/mtrr >> > /proc/iomem >> > /proc/vmallocinfo >> > /sys/kernel/debug/kernel_page_tables

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-20 Thread Toshi Kani
On Mon, 2015-07-20 at 11:33 -0700, Ashutosh Dixit wrote: > On Mon, Jul 20 2015 at 08:59:02 AM, Toshi Kani wrote: > > > Can you also try the 'nohugeiomap' kernel option to the 4.2-rc1 kernel > > to see if the problem goes away? > > Yes the problem goes away with 'nohugeiomap'. > > > Yes, vmalloc

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-20 Thread Ashutosh Dixit
On Mon, Jul 20 2015 at 08:59:02 AM, Toshi Kani wrote: > Can you also try the 'nohugeiomap' kernel option to the 4.2-rc1 kernel > to see if the problem goes away? Yes the problem goes away with 'nohugeiomap'. > Yes, vmalloc_to_page() assumes 4KB mappings. But ioremap with huge > pages was enabl

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-20 Thread Toshi Kani
On Mon, 2015-07-20 at 09:54 -0600, Toshi Kani wrote: > On Sat, 2015-07-18 at 18:04 +, Dixit, Ashutosh wrote: > > vmalloc_to_page with ioremap'd memory used to work correctly till > > v4.1. In > > v4.2-rc1 when ioremap is done using huge pages vmalloc_to_page on > > ioremap'd > > memory crashe

Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap

2015-07-20 Thread Toshi Kani
On Sat, 2015-07-18 at 18:04 +, Dixit, Ashutosh wrote: > vmalloc_to_page with ioremap'd memory used to work correctly till > v4.1. In > v4.2-rc1 when ioremap is done using huge pages vmalloc_to_page on > ioremap'd > memory crashes. Are there plans to fix this? > > An example of the use of vma