Re: [PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-05 Thread Masami Hiramatsu
On Mon, 05 Feb 2018 09:47:46 +0100 Marek Szyprowski wrote: > Hi Masami, > > On 2018-02-05 03:30, Masami Hiramatsu wrote: > > Fixes vb2_vmalloc_get_userptr() to ioremap correct area. > > Since the current code does ioremap the page address, if the offset > 0, > > it

Re: [PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-05 Thread Masami Hiramatsu
On Mon, 05 Feb 2018 09:47:46 +0100 Marek Szyprowski wrote: > Hi Masami, > > On 2018-02-05 03:30, Masami Hiramatsu wrote: > > Fixes vb2_vmalloc_get_userptr() to ioremap correct area. > > Since the current code does ioremap the page address, if the offset > 0, > > it does not do ioremap the last

Re: [PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-05 Thread Marek Szyprowski
Hi Masami, On 2018-02-05 03:30, Masami Hiramatsu wrote: Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the page address +

Re: [PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-05 Thread Marek Szyprowski
Hi Masami, On 2018-02-05 03:30, Masami Hiramatsu wrote: Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the page address +

Re: [PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-04 Thread Masami Hiramatsu
On Mon, 5 Feb 2018 11:30:41 +0900 Masami Hiramatsu wrote: > Fixes vb2_vmalloc_get_userptr() to ioremap correct area. > Since the current code does ioremap the page address, if the offset > 0, > it does not do ioremap the last page and results in kernel panic. > > This

Re: [PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-04 Thread Masami Hiramatsu
On Mon, 5 Feb 2018 11:30:41 +0900 Masami Hiramatsu wrote: > Fixes vb2_vmalloc_get_userptr() to ioremap correct area. > Since the current code does ioremap the page address, if the offset > 0, > it does not do ioremap the last page and results in kernel panic. > > This fixes to pass the page

[PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-04 Thread Masami Hiramatsu
Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the page address + offset to ioremap so that ioremap can map correct area. Also,

[PATCH] [BUGFIX] media: vb2: Fix videobuf2 to map correct area

2018-02-04 Thread Masami Hiramatsu
Fixes vb2_vmalloc_get_userptr() to ioremap correct area. Since the current code does ioremap the page address, if the offset > 0, it does not do ioremap the last page and results in kernel panic. This fixes to pass the page address + offset to ioremap so that ioremap can map correct area. Also,