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

2018-02-06 Thread Masami Hiramatsu
ses __pfn_to_phys() to get the physical address of given PFN. Signed-off-by: Masami Hiramatsu <mhira...@kernel.org> Reported-by: Takao Orito <orito.ta...@socionext.com> Reported-by: Fumihiro ATSUMI <ats...@infinitegra.co.jp> --- Chanegs in v2: - Fix to pass size + offse

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 <m.szyprow...@samsung.com> 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

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 <mhira...@kernel.org> 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 resul

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

2018-02-04 Thread Masami Hiramatsu
lso, this uses __pfn_to_phys() to get the physical address of given PFN. Signed-off-by: Masami Hiramatsu <mhira...@kernel.org> Reported-by: Takao Orito <orito.ta...@socionext.com> --- drivers/media/v4l2-core/videobuf2-vmalloc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion