[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240620142532.406564-1-detlev.casanova@collabora.com>
Date: Thu, 20 Jun 2024 10:19:42 -0400
From: Detlev Casanova <detlev.casanova@...labora.com>
To: linux-kernel@...r.kernel.org
Cc: Ezequiel Garcia <ezequiel@...guardiasur.com.ar>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Heiko Stuebner <heiko@...ech.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sebastian Reichel <sebastian.reichel@...labora.com>,
Dragan Simic <dsimic@...jaro.org>,
Diederik de Haas <didi.debian@...ow.org>,
Andy Yan <andy.yan@...k-chips.com>,
Boris Brezillon <boris.brezillon@...labora.com>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
Daniel Almeida <daniel.almeida@...labora.com>,
Paul Kocialkowski <paul.kocialkowski@...tlin.com>,
Nicolas Dufresne <nicolas.dufresne@...labora.com>,
Benjamin Gaignard <benjamin.gaignard@...labora.com>,
Jonas Karlman <jonas@...boo.se>,
Alex Bee <knaerzche@...il.com>,
linux-media@...r.kernel.org,
linux-rockchip@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-staging@...ts.linux.dev,
Detlev Casanova <detlev.casanova@...labora.com>
Subject: [PATCH v3 0/4] media: rockchip: Add rkvdec2 driver
Add a rkvdec2 driver for newer video decoder found on rk3588 based SoC.
It is also found on other hardware like the RK356x, but not tested yet,
so it will be added later.
Support for yuv 4:2:2 and 10 bits streams will also be added later, when the
https://lore.kernel.org/linux-media/20240618194647.742037-1-jonas@kwiboo.se
patch set is merged.
The support for IOMMU will be added later as preliminary tests show that
the current rockchip iommu driver fails to allocate pages for the video
decoder iommu.
See the second commit message for more details.
Changes since v2:
- doc: Disable resets and sram for other platforms, add maxItems for
clocks
- Fix h264 spec equation number in comment
- Remove superfluous status field in dtsi
- Add TODO item for IOMMU
Changes since v1:
- Add support for RCB in SRAM
- Move bindings to rockchip,vdec.yaml
- Add resets bindings
- Add second core and enable them from dtsi file
- Only expose one video device to userspace (but don't support multicore yet)
- Share CABAC table with rkvdec
- Fix iowrite32 call and add preliminary support for arm
- Remove unused code
- Improve registers naming and code style
- Remove DMA_ATTR_ALLOC_SINGLE_PAGES flag
Detlev Casanova (4):
media: rockchip: Move H264 CABAC table to header file
media: rockchip: Introduce the rkvdec2 driver
media: dt-bindings: rockchip: Document RK3588 Video Decoder bindings
arm64: dts: rockchip: Add rkvdec2 Video Decoder on rk3588(s)
.../bindings/media/rockchip,vdec.yaml | 55 +
arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 48 +
drivers/staging/media/Kconfig | 1 +
drivers/staging/media/Makefile | 1 +
.../staging/media/rkvdec/rkvdec-h264-cabac.h | 509 +++++++
drivers/staging/media/rkvdec/rkvdec-h264.c | 500 +------
drivers/staging/media/rkvdec2/Kconfig | 15 +
drivers/staging/media/rkvdec2/Makefile | 3 +
drivers/staging/media/rkvdec2/TODO | 9 +
drivers/staging/media/rkvdec2/rkvdec2-h264.c | 739 ++++++++++
drivers/staging/media/rkvdec2/rkvdec2-regs.h | 345 +++++
drivers/staging/media/rkvdec2/rkvdec2.c | 1253 +++++++++++++++++
drivers/staging/media/rkvdec2/rkvdec2.h | 130 ++
13 files changed, 3109 insertions(+), 499 deletions(-)
create mode 100644 drivers/staging/media/rkvdec/rkvdec-h264-cabac.h
create mode 100644 drivers/staging/media/rkvdec2/Kconfig
create mode 100644 drivers/staging/media/rkvdec2/Makefile
create mode 100644 drivers/staging/media/rkvdec2/TODO
create mode 100644 drivers/staging/media/rkvdec2/rkvdec2-h264.c
create mode 100644 drivers/staging/media/rkvdec2/rkvdec2-regs.h
create mode 100644 drivers/staging/media/rkvdec2/rkvdec2.c
create mode 100644 drivers/staging/media/rkvdec2/rkvdec2.h
--
2.44.2
Powered by blists - more mailing lists