Skip to content

staging: media: tegra-vdea: Add Tegra124 support

Thierry Reding linux-media linux-tegra 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14staging: media: tegra-vde: Support BSEV clock and resetdrivers/staging/media/tegra-vde/tegra-vde.c+33 -24 replies
2/14staging: media: tegra-vde: Support reference picture markingdrivers/staging/media/tegra-vde/tegra-vde.c drivers/staging/media/tegra-vde/uapi.h+55 -21 reply
3/14staging: media: tegra-vde: Prepare for interlacing supportdrivers/staging/media/tegra-vde/tegra-vde.c+58 -152 replies
4/14staging: media: tegra-vde: Use DRM/KMS framebuffer modifiersdrivers/staging/media/tegra-vde/tegra-vde.c drivers/staging/media/tegra-vde/uapi.h+100 -151 reply
5/14staging: media: tegra-vde: Properly mark invalid entriesdrivers/staging/media/tegra-vde/tegra-vde.c+1 -11 reply
6/14staging: media: tegra-vde: Print out invalid FDdrivers/staging/media/tegra-vde/tegra-vde.c+1 -11 reply
7/14staging: media: tegra-vde: Add some clarifying commentsdrivers/staging/media/tegra-vde/tegra-vde.c+19 -01 reply
8/14staging: media: tegra-vde: Track struct device *drivers/staging/media/tegra-vde/tegra-vde.c+36 -272 replies
9/14staging: media: tegra-vde: Add IOMMU supportdrivers/staging/media/tegra-vde/tegra-vde.c+153 -183 replies
10/14staging: media: tegra-vde: Keep VDE in reset when unuseddrivers/staging/media/tegra-vde/tegra-vde.c+1 -01 reply
11/14ARM: tegra: Enable VDE on Tegra124arch/arm/boot/dts/tegra124.dtsi+40 -01 reply
12/14ARM: tegra: Add BSEV clock and reset for VDE on Tegra20arch/arm/boot/dts/tegra20.dtsi+7 -30 replies
13/14ARM: tegra: Add BSEV clock and reset for VDE on Tegra30arch/arm/boot/dts/tegra30.dtsi+7 -30 replies
14/14ARM: tegra: Enable SMMU for VDE on Tegra124arch/arm/boot/dts/tegra124.dtsi+2 -01 reply

Reviews trailers per patch

4 of 14 patches have a Reviewed-by or Acked-by.

PatchDmitry Osipenko
1/14
2/14
3/14
4/14
5/14R-b T-b
6/14R-b
7/14
8/14R-b
9/14
10/14
11/14
12/14
13/14
14/14R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/14] staging: media: tegra-vdea: Add Tegra124 support

From: Thierry Reding <[email protected]>

Hi,

this set of patches perform a bit of cleanup and extend support to the VDE implementation found on Tegra114 and Tegra124. This requires adding handling for a clock and a reset for the BSEV block that is separate from the main VDE block. The new VDE revision also supports reference picture marking, which requires that the BSEV writes out some related data to a memory location. Since the supported tiling layouts have been changed in Tegra124, which supports only block-linear and no pitch- linear layouts, a new way is added to request a specific layout for the decoded frames. Both of the above changes require breaking the ABI to accomodate for the new data in the custom IOCTL.

Finally this set also adds support for dealing with an IOMMU, which makes it more convenient to deal with imported buffers since they no longer need to be physically contiguous.

Userspace changes for the updated ABI are available here:

https://cgit.freedesktop.org/~tagr/libvdpau-tegra/commit/

Mauro, I'm sending the device tree changes as part of the series for completeness, but I expect to pick those up into the Tegra tree once this has been reviewed and you've applied the driver changes.

Thanks,
Thierry

Thierry Reding (14):
staging: media: tegra-vde: Support BSEV clock and reset
staging: media: tegra-vde: Support reference picture marking
staging: media: tegra-vde: Prepare for interlacing support
staging: media: tegra-vde: Use DRM/KMS framebuffer modifiers
staging: media: tegra-vde: Properly mark invalid entries
staging: media: tegra-vde: Print out invalid FD
staging: media: tegra-vde: Add some clarifying comments
staging: media: tegra-vde: Track struct device *
staging: media: tegra-vde: Add IOMMU support
staging: media: tegra-vde: Keep VDE in reset when unused
ARM: tegra: Enable VDE on Tegra124
ARM: tegra: Add BSEV clock and reset for VDE on Tegra20
ARM: tegra: Add BSEV clock and reset for VDE on Tegra30
ARM: tegra: Enable SMMU for VDE on Tegra124

 arch/arm/boot/dts/tegra124.dtsi             |  42 ++
 arch/arm/boot/dts/tegra20.dtsi              |  10 +-
 arch/arm/boot/dts/tegra30.dtsi              |  10 +-
 drivers/staging/media/tegra-vde/tegra-vde.c | 528 +++++++++++++++++---
 drivers/staging/media/tegra-vde/uapi.h      |   6 +-
 5 files changed, 511 insertions(+), 85 deletions(-)
Signature · 1 line
2.17.0