public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* DMABUF doesn't work when frame size not equal to the size of GPU bo
@ 2013-12-25  2:15 Chuanbo Weng
  2013-12-27  1:55 ` Chuanbo Weng
  0 siblings, 1 reply; 11+ messages in thread
From: Chuanbo Weng @ 2013-12-25  2:15 UTC (permalink / raw)
  To: linux-media, laurent.pinchart, t.stanislaws

Hi all,

       (My environment is intel platform, HD4000 GPU, kernel 3.10.19,
logitech 270 webcam)
       As title said, I discover this issue when I run the program
shown by Laurent Pinchart:
http://www.mail-archive.com/linux-media@vger.kernel.org/msg54806.html

If the frame is (width, height) = (640, 480), DMABUF works well.
If the frame is (width, height) = (160, 120), v4lfd receives no event.


And I dig into drm kernel code, find that: i915_gem_create will create
a GPU buffer object on intel platform. The size of GPU bo will be
bigger than frame size, for the reason that i915_gem_create will
roundup the bo size to multiple of PAGE_SIZE when the frame is (width,
height) = (160, 120).
For (width, height) = (640, 480), the frame size is already multiple
of PAGE_SIZE, so GPU bo is exactly equal to frame size.

I also dump the uvc driver infomation, there is some infomation i
think maybe important:
uvcvideo: Stream 1 error event 07 01 len 4

Looking forward to the discussion!

Thanks,
Chuanbo Weng

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-01-21 16:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25  2:15 DMABUF doesn't work when frame size not equal to the size of GPU bo Chuanbo Weng
2013-12-27  1:55 ` Chuanbo Weng
2013-12-29 15:27   ` Laurent Pinchart
2013-12-31  2:42     ` Chuanbo Weng
2013-12-31  7:43       ` Tomasz Stanislawski
2013-12-31 11:21         ` Chuanbo Weng
2013-12-31 15:19           ` Laurent Pinchart
2014-01-02  2:22             ` Chuanbo Weng
2014-01-07  8:10               ` Seung-Woo Kim
2014-01-07 10:50                 ` Chuanbo Weng
2014-01-21 16:12               ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox