From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Chuanbo Weng <strgnm@gmail.com>
Cc: linux-media@vger.kernel.org, t.stanislaws@samsung.com
Subject: Re: DMABUF doesn't work when frame size not equal to the size of GPU bo
Date: Sun, 29 Dec 2013 16:27:21 +0100 [thread overview]
Message-ID: <1402873.pE5TYkBor8@avalon> (raw)
In-Reply-To: <CAFu4+mWAaw9jqpqiw_SiuaQs-y=VEZxPYmdv+W-mkdEckXTQ5Q@mail.gmail.com>
Hi Chuanbo,
On Friday 27 December 2013 09:55:40 Chuanbo Weng wrote:
> > 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.
That should in theory not be an issue). This might be a stupid question, but
have you tried to capture 160x120 images directly (with yavta for instance)
without using DMABUF ?
> > 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!
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2013-12-29 15:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402873.pE5TYkBor8@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=strgnm@gmail.com \
--cc=t.stanislaws@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.