from queue_setup.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c |9 +
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
really be added as part of
the dma_buf_attachment, and not separately.
This is basic concept of my RFC patch.
http://www.kernelhub.org/?p=2msg=268056
Best Regards,
- Seung-Woo Kim
The meta-data here can be any kind of data related to the dmabuf, , it's
specific
for each dmabuf.
For example
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
index 2475a3c..ee05f2d
There was assignment of memory bank with dma address converted
from physical address. But allocation has been changed with dma
function, so the assignment is not necessary.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
change from v1
- fixes subject and adds proper description
Hello Sachin,
On 2014년 03월 05일 20:42, Sachin Kamat wrote:
On 5 March 2014 16:38, Seung-Woo Kim sw0312@samsung.com wrote:
(...)
- dev-bank1 = dev-bank1;
Are you sure this isn't some kind of typo? If not then your commit
description is too verbose
to actually say that the code
Hello Sachin,
On 2014년 03월 06일 12:28, Sachin Kamat wrote:
Hi Seung-Woo,
On 6 March 2014 07:43, Seung-Woo Kim sw0312@samsung.com wrote:
Hello Sachin,
On 2014년 03월 05일 20:42, Sachin Kamat wrote:
On 5 March 2014 16:38, Seung-Woo Kim sw0312@samsung.com wrote:
(...)
- dev
queue_setup in the
__qbuf_dmabuf() like __vb2_buf_mem_alloc() or vb2_mmap().
Regards,
- Seung-Woo Kim
The fd in v4l2_buffer structure is fd of gem object created by
DRM_IOCTL_MODE_CREATE_DUMB.
I've upload the program that can reproduce this issue on intel platform. You
just need to clone
__qbuf_dmabuf checks whether size of provided dmabuf is large
enough, and it returns error without any log. So this patch adds
error log in the case.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/v4l2-core/videobuf2-core.c |2 ++
1 files changed, 2 insertions(+), 0
Hi Sylwester,
Thanks for you comment.
On 2013년 10월 12일 18:39, Sylwester Nawrocki wrote:
Hi Seung-Woo,
On 10/10/2013 09:06 AM, Seung-Woo Kim wrote:
For hdr parse error, it can return false without any assignments
which cause build warning.
Signed-off-by: Seung-Woo Kimsw0312
drivers/media/platform/s5p-jpeg/jpeg-core.c:433: warning: 'height' may be used
uninitialized in this function
drivers/media/platform/s5p-jpeg/jpeg-core.c:433: warning: 'width' may be used
uninitialized in this function
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
change from v1
- add
For hdr parse error, it can return false without any assignments
which cause build warning.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/platform/s5p-jpeg/jpeg-core.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/s5p
It is hard to distinguish between decoder and encoder video device
because their names are same. So this patch fixes the names.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/platform/s5p-jpeg/jpeg-core.c |8
1 files changed, 4 insertions(+), 4 deletions
__qbuf_userptr checks whether provided buffer is large enough, and
it returns error without any log.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
Signed-off-by: Heejin Woo heejin@samsung.com
---
drivers/media/v4l2-core/videobuf2-core.c |4
1 files changed, 4 insertions(+), 0
importer private data in dma-buf attachment can be used by importer to
reimport same dma-buf.
Seung-Woo Kim (2):
dma-buf: add importer private data to attachment
drm/prime: find gem object from the reimported dma-buf
drivers/base/dma-buf.c | 31
be used at reimport time if it is assigned
with drm gem object at first import.
This can also remove remapping dma address for the hardware having
its own iommu.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/gpu/drm/drm_prime.c| 19 ++-
drivers/gpu
-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/base/dma-buf.c | 31 +++
include/linux/dma-buf.h |4
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c
index 08fe897..a1eaaf2 100644
() or queue is cancelled.
So I add check routine for done_list before calling poll_wait().
But I'm not sure that locking for done_lock of queue is also needed in this
case or not because done_list of queue is checked without locking in some
other parts of vb2.
Seung-Woo Kim (2):
media: vb2: return
The vb2_poll() does not need to wait next vb_buffer_done() if there is already
a buffer in done_list of queue, but current vb2_poll() always waits.
So done_list is checked before calling poll_wait().
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
Acked-by: Marek Szyprowski m.szyprow
The v4l2_m2m_poll() does not need to wait if there is already a buffer in
done_list of source and destination queues, but current v4l2_m2m_poll() always
waits. So done_list of each queue is checked before calling poll_wait().
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
Acked-by: Marek
The length of mmap() can be bigger than length of vb2 buffer, so
it should be checked.
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/v4l2-core/videobuf2-core.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/media/v4l2-core/videobuf2
() or queue is cancelled.
So I add check routine for done_list before calling poll_wait().
But I'm not sure that locking for done_lock of queue is also needed in this
case or not because done_list of queue is checked without locking in some
other parts of vb2.
Seung-Woo Kim (2):
media: vb2: return
The vb2_poll() does not need to wait next vb_buffer_done() if there is already
a buffer in done_list of queue, but current vb2_poll() always waits.
So done_list is checked before calling poll_wait().
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media/v4l2-core/videobuf2-core.c
The v4l2_m2m_poll() does not need to wait if there is already a buffer in
done_list of source and destination queues, but current v4l2_m2m_poll() always
waits. So done_list of each queue is checked before calling poll_wait().
Signed-off-by: Seung-Woo Kim sw0312@samsung.com
---
drivers/media
23 matches
Mail list logo