ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Maxime Ripard <mripard@kernel.org>,
	Paul Kocialkowski <paulk@sys-base.io>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Chen-Yu Tsai <wens@kernel.org>,
	Samuel Holland <samuel@sholland.org>,
	Hans Verkuil <hverkuil@kernel.org>,
	aiyengar1990@gmail.com
Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>,
	Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>,
	Dmitry Osipenko <dmitry.osipenko@collabora.com>,
	Nicolas Dufresne <nicolas.dufresne@collabora.com>,
	stable@vger.kernel.org, Arun Iyengar <aiyengar1990@gmail.com>
Subject: Re: [PATCH 0/5] media: staging: cedrus: bound and check the bit reader setup
Date: Tue, 01 Dec 2026 17:07:54 +0100	[thread overview]
Message-ID: <KlrStotqSi2pajqlEaiobw@gmail.com> (raw)
In-Reply-To: <20261201-b4-cedrus-bitreader-v1-0-678ded51faf1@gmail.com>

Dne torek, 1. december 2026 ob 16:26:56 Srednjeevropski standardni čas je Arun Iyengar via B4 Relay napisal(a):
> Cedrus sets up each slice with its bit reader in device_run(), with
> req_queue_mutex held when called from the request queue ioctl:
> 
> - patch 1: the H.264 bit skip can wait forever, hanging every close();
> - patches 2-3: userspace bit offsets past the slice can lock up the SoC;
> - patches 4-5: H.265 and VP8 ignore bit reader timeouts. Patch 4 is
>   Dmitry Osipenko's 2022 v1 [1], rebased.
> 
> Tested on an Orange Pi Zero 2 (H616), 7.3 based kernel, with the bit
> reader stalled by holding the VE's IOMMU masters in reset. Before: the
> H.264 skip spun until a VE reset, H.265 offsets past the slice locked
> up the board in 2 of 3 tries, VP8 decoded until the watchdog. After:
> -EINVAL or one -ETIMEDOUT within 30 ms, no lockup in 9 tries, and 42
> conformance decodes run afterwards match the control. On this base:
> build only.
> 
> Developed with Claude (Anthropic) as a coding assistant; I reviewed and
> tested it.

Which part of stop sending patch series you didn't understand?

Nothing of this will land in v7.4.

Jernej

> 
> [1] https://lore.kernel.org/all/20220914150105.209484-1-dmitry.osipenko@collabora.com/
> 
> ---
> Arun Iyengar (5):
>       media: staging: cedrus: h264: bound the wait for the bit skip
>       media: staging: cedrus: h264: reject a slice header larger than the slice
>       media: staging: cedrus: h265: reject a slice data offset past the slice
>       media: staging: cedrus: h265: fail the job when the bit reader times out
>       media: staging: cedrus: vp8: fail the job on a bit reader timeout
> 
>  drivers/staging/media/sunxi/cedrus/cedrus_h264.c |  31 +++--
>  drivers/staging/media/sunxi/cedrus/cedrus_h265.c |  40 ++++--
>  drivers/staging/media/sunxi/cedrus/cedrus_vp8.c  | 159 +++++++++++++----------
>  3 files changed, 143 insertions(+), 87 deletions(-)
> ---
> base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6
> change-id: 20261128-b4-cedrus-bitreader-49a8ddfb794e
> 
> Best regards,
> --  
> Arun Iyengar <aiyengar1990@gmail.com>
> 
> 
> 





      parent reply	other threads:[~2026-12-01 16:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 15:26 [PATCH 0/5] media: staging: cedrus: bound and check the bit reader setup Arun Iyengar via B4 Relay
2026-12-01 15:26 ` [PATCH 1/5] media: staging: cedrus: h264: bound the wait for the bit skip Arun Iyengar via B4 Relay
2026-12-01 15:26 ` [PATCH 2/5] media: staging: cedrus: h264: reject a slice header larger than the slice Arun Iyengar via B4 Relay
2026-12-01 15:26 ` [PATCH 3/5] media: staging: cedrus: h265: reject a slice data offset past " Arun Iyengar via B4 Relay
2026-12-01 15:27 ` [PATCH 4/5] media: staging: cedrus: h265: fail the job when the bit reader times out Arun Iyengar via B4 Relay
2026-12-01 15:33   ` sashiko-bot
2026-12-01 15:27 ` [PATCH 5/5] media: staging: cedrus: vp8: fail the job on a bit reader timeout Arun Iyengar via B4 Relay
2026-12-01 15:40   ` sashiko-bot
2026-12-01 16:07 ` Jernej Škrabec [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=KlrStotqSi2pajqlEaiobw@gmail.com \
    --to=jernej.skrabec@gmail.com \
    --cc=aiyengar1990@gmail.com \
    --cc=dmitry.osipenko@collabora.com \
    --cc=ezequiel@vanguardiasur.com.ar \
    --cc=gregkh@linuxfoundation.org \
    --cc=hverkuil@kernel.org \
    --cc=linkmauve@linkmauve.fr \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=mripard@kernel.org \
    --cc=nicolas.dufresne@collabora.com \
    --cc=paulk@sys-base.io \
    --cc=samuel@sholland.org \
    --cc=stable@vger.kernel.org \
    --cc=wens@kernel.org \
    /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