Re: [RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN

2018-03-30 Thread Yisheng Xie
Hi Toshi, On 2018/3/31 1:41, Kani, Toshi wrote: > On Fri, 2018-03-30 at 12:49 +0800, Yisheng Xie wrote: >> Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: > : >> The cause is the size of PCI IO resource is 32KB, which is 4K aligned but >> not 64KB aligned, so when do

Re: [RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN

2018-03-30 Thread Yisheng Xie
Hi Toshi, On 2018/3/31 1:41, Kani, Toshi wrote: > On Fri, 2018-03-30 at 12:49 +0800, Yisheng Xie wrote: >> Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: > : >> The cause is the size of PCI IO resource is 32KB, which is 4K aligned but >> not 64KB aligned, so when do

Re: [RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN

2018-03-30 Thread Kani, Toshi
On Fri, 2018-03-30 at 12:49 +0800, Yisheng Xie wrote: > Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: : > The cause is the size of PCI IO resource is 32KB, which is 4K aligned but > not 64KB aligned, so when do ioremap_pte_range(), its incoming end is not > PAGE_ALIGN

Re: [RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN

2018-03-30 Thread Kani, Toshi
On Fri, 2018-03-30 at 12:49 +0800, Yisheng Xie wrote: > Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: : > The cause is the size of PCI IO resource is 32KB, which is 4K aligned but > not 64KB aligned, so when do ioremap_pte_range(), its incoming end is not > PAGE_ALIGN

[RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN

2018-03-29 Thread Yisheng Xie
Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: [2.470908] kernel BUG at lib/ioremap.c:72! [2.475079] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [2.480551] Modules linked in: [2.483594] CPU: 1 PID: 1 Comm: swapper/0 Not tainted

[RFC PATCH] lib/ioremap: Avoid triggering BUG_ON when end is not PAGE_ALIGN

2018-03-29 Thread Yisheng Xie
Zhou reported a bug on Hisilicon arm64 D06 platform with 64KB page size: [2.470908] kernel BUG at lib/ioremap.c:72! [2.475079] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [2.480551] Modules linked in: [2.483594] CPU: 1 PID: 1 Comm: swapper/0 Not tainted