mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Benjamin Gaignard <benjamin.gaignard@collabora.com>,
	 p.zabel@pengutronix.de, mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/7] media: verisilicon: simplify auxiliary buffers allocation
Date: Mon, 23 Nov 2026 22:40:40 -0500	[thread overview]
Message-ID: <542f7fd2973f4b32ec55bb5c3314535a2c4b82a6.camel@collabora.com> (raw)
In-Reply-To: <20261123095905.60622-1-benjamin.gaignard@collabora.com>

[-- Attachment #1: Type: text/plain, Size: 2465 bytes --]

Le lundi 23 novembre 2026 à 10:58 +0100, Benjamin Gaignard a écrit :
> Verisilicon stateless video decoder driver allocates lot of auxiliary
> buffers to decode bitstreams. These allocations duplicate a lot of code.
> This series add helpers functions to allocate and free auxiliary
> buffers. This simplify the driver code and will allow to implement more
> easly incoming feature like disentanglement data buffers from mv and rfc 
> buffers or adding reference frame support for more codecs.
> 
> This series has been tested with fluster on IMX8MP for h264, hevc, vp8 
> and vp9 codecs, and on rk3588 for av1.
> 
> This series depends of this one:
> https://patchwork.linuxtv.org/project/linux-media/list/?series=34366

This is only pending the dependency, which one of the hidden changes had issues,
please fix and update, ping me once ready.

Nicolas

> 
> Regards,
> Benjamin
> 
> changes in v3:
> - As suggested by Philipp do not mask hantro_allocate_aux_buf() returned
>   value.
> - In hantro_allocate_aux_buf() and hantro_free_aux_buf() only set vpu if
>   ctx isn't NULL.
> 
> changes in v2:
> - rebase on top of media: verisilicon: Create AV1 helper library v7
> - tag reviewed-by tag
> - fix patch 1 and 7 commit messages
> 
>  
> Benjamin Gaignard (7):
>   media: verisilicon: Add helpers to allocate and free auxiliary buffers
>   media: verisilicon: AV1: Use alloc/free helpers for auxiliary buffers
>   media: verisilicon: h264: Use alloc/free helpers for auxiliary buffers
>   media: verisilicon: hevc: Use alloc/free helpers for auxiliary buffers
>   media: verisilicon: vp8: Use alloc/free helpers for auxiliary buffers
>   media: verisilicon: vp9: Use alloc/free helpers for auxiliary buffers
>   media: verisilicon: mpeg4: Use alloc/free helpers for auxiliary
>     buffers
> 
>  drivers/media/platform/verisilicon/hantro.h   |   4 +
>  .../media/platform/verisilicon/hantro_av1.c   | 191 +++++-------------
>  .../media/platform/verisilicon/hantro_h264.c  |  13 +-
>  .../media/platform/verisilicon/hantro_hevc.c  | 133 ++++--------
>  .../media/platform/verisilicon/hantro_mpeg2.c |  19 +-
>  .../platform/verisilicon/hantro_postproc.c    |  21 +-
>  .../media/platform/verisilicon/hantro_v4l2.c  |  37 ++++
>  .../media/platform/verisilicon/hantro_vp8.c   |  36 +---
>  .../media/platform/verisilicon/hantro_vp9.c   |  42 ++--
>  9 files changed, 169 insertions(+), 327 deletions(-)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      parent reply	other threads:[~2026-11-24  3:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:58 Benjamin Gaignard
2026-11-23  9:58 ` [PATCH v3 1/7] media: verisilicon: Add helpers to allocate and free auxiliary buffers Benjamin Gaignard
2026-11-23  9:59 ` [PATCH v3 2/7] media: verisilicon: AV1: Use alloc/free helpers for " Benjamin Gaignard
2026-11-23  9:59 ` [PATCH v3 3/7] media: verisilicon: h264: " Benjamin Gaignard
2026-11-23  9:59 ` [PATCH v3 4/7] media: verisilicon: hevc: " Benjamin Gaignard
2026-11-23  9:59 ` [PATCH v3 5/7] media: verisilicon: vp8: " Benjamin Gaignard
2026-11-23  9:59 ` [PATCH v3 6/7] media: verisilicon: vp9: " Benjamin Gaignard
2026-11-23  9:59 ` [PATCH v3 7/7] media: verisilicon: mpeg4: " Benjamin Gaignard
2026-11-23 19:15   ` Nicolas Dufresne
2026-11-24  3:40 ` Nicolas Dufresne [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=542f7fd2973f4b32ec55bb5c3314535a2c4b82a6.camel@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=benjamin.gaignard@collabora.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mchehab@kernel.org \
    --cc=p.zabel@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®