All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@collabora.com>
To: Ezequiel Garcia <ezequiel@collabora.com>
Cc: linux-media@vger.kernel.org,
	Hans Verkuil <hans.verkuil@cisco.com>,
	kernel@collabora.com, Kyungmin Park <kyungmin.park@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Pawel Osciak <pawel@osciak.com>
Subject: Re: [PATCH 0/5] media: Access videobuf2 buffers via an accessor
Date: Thu, 6 Jun 2019 21:08:31 +0200	[thread overview]
Message-ID: <20190606210831.0ba7b354@collabora.com> (raw)
In-Reply-To: <0647e37ad859aa3ada953c6a202584622b8dcada.camel@collabora.com>

On Thu, 06 Jun 2019 15:13:00 -0300
Ezequiel Garcia <ezequiel@collabora.com> wrote:

> On Thu, 2019-06-06 at 19:43 +0200, Boris Brezillon wrote:
> > On Thu,  6 Jun 2019 12:44:21 -0300
> > Ezequiel Garcia <ezequiel@collabora.com> wrote:
> >   
> > > Hi,
> > > 
> > > This patchset introduces a new vb2_get_buffer accessor and then
> > > uses it on all the drivers that are accessing videobuf2
> > > private buffer array directly.  
> > 
> > Just curious, how did you find all occurrences of direct q->bufs[]
> > accesses? If you used a cocci script it might be worth submitting it so
> > we don't end up with new offenders of the "don't access q->bufs[]
> > directly" rule.
> >   
> 
> No, I just inspected the code and tried a few grep variants.

Okay.

> 
> Hopefully, I haven't missed any!
> 
> > > I'm skipping Intel IPU3 driver here, since the code goes beyond
> > > just accessing the buffer. It also modifies the buffer queue
> > > directly. I believe this driver would need some more cleanup
> > > and love from its maintainers.
> > > 
> > > Note that OMAP2/OMAP3 display driver is videobuf1 and so not
> > > affected by this change.
> > > 
> > > Lastly, note that I'm doing the minimum changes to drivers I can't test,
> > > only using the new accessor and avoiding any further changes.  
> > 
> > Can you also add a patch to remove the private buf pointers array in the
> > cedrus driver?
> >   
> 
> You mean removing the dst_bufs field?

Yes.

> 
> I can but it's not part of this series, is it?

Fair enough.

> 
> And I'd rather someone else test it, as my cedrus boards
> are not wired at the moment.

I guess we can ask Jernej, Jonas, Paul or Maxime if they can test.

      reply	other threads:[~2019-06-06 19:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 15:44 [PATCH 0/5] media: Access videobuf2 buffers via an accessor Ezequiel Garcia
2019-06-06 15:44 ` [PATCH 1/5] media: vb2: Introduce a vb2_get_buffer accessor Ezequiel Garcia
2019-06-06 17:39   ` Boris Brezillon
2019-06-06 15:44 ` [PATCH 2/5] media: mtk-jpeg: Use vb2_get_buffer Ezequiel Garcia
2019-06-06 15:44 ` [PATCH 3/5] media: mtk-vcodec: " Ezequiel Garcia
2019-06-06 15:44 ` [PATCH 4/5] media: sti: " Ezequiel Garcia
2019-06-06 15:44 ` [PATCH 5/5] media: rockchip: " Ezequiel Garcia
2019-06-06 17:43 ` [PATCH 0/5] media: Access videobuf2 buffers via an accessor Boris Brezillon
2019-06-06 18:13   ` Ezequiel Garcia
2019-06-06 19:08     ` Boris Brezillon [this message]

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=20190606210831.0ba7b354@collabora.com \
    --to=boris.brezillon@collabora.com \
    --cc=ezequiel@collabora.com \
    --cc=hans.verkuil@cisco.com \
    --cc=kernel@collabora.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=pawel@osciak.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.