mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
To: Thierry Reding <thierry.reding@gmail.com>
Cc: Mikko Perttunen <mperttunen@nvidia.com>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 0/3] NVIDIA Tegra210 NVJPG support
Date: Mon, 16 Jun 2025 11:26:34 +0100	[thread overview]
Message-ID: <1ee42017-63e1-4b01-ba1f-8f548cba8733@tecnico.ulisboa.pt> (raw)
In-Reply-To: <c3un5kjfepprcjddchqmecik27huepuxejs6vckuqb3dshrcba@s2jcf23au62n>



On 6/11/25 4:10 PM, Thierry Reding wrote:
> On Wed, Jun 11, 2025 at 01:04:14PM +0100, Diogo Ivo wrote:
>>
>>
>> On 6/10/25 10:05 AM, Thierry Reding wrote:
>>> On Fri, Jun 06, 2025 at 11:45:33AM +0100, Diogo Ivo wrote:
>>>> Hello,
>>>>
>>>> This series adds support for the NVJPG hardware accelerator found in the
>>>> Tegra210 SoC.
>>>>
>>>> The kernel driver is essentially a copy of the NVDEC driver as both
>>>> engines are Falcon-based.
>>>>
>>>> For the userspace part I have written a Mesa Gallium backend [1] that,
>>>> while still very much experimental, works in decoding images with VA-API.
>>>>
>>>> I have been using ffmpeg to call VA-API with the following command:
>>>>
>>>> ffmpeg -v verbose -hwaccel vaapi -hwaccel_device /dev/dri/renderD129 -i <input.jpg> -pix_fmt bgra -f fbdev /dev/fb0
>>>>
>>>> which decodes <input.jpg> and shows the result in the framebuffer.
>>>>
>>>> The firmware for the engine can be obtained from a Linux for Tegra
>>>> distribution.
>>>
>>> By the way, have you tried running this on anything newer than Tegra210?
>>> Given your progress on this, we can probably start thinking about
>>> submitting the binaries to linux-firmware.
>>
>> Since I don't have access to other Tegra platforms I haven't been able
>> to test this driver there. For this I need help from someone with access
>> to more hardware, I can send a version that just adds the extra compatibles
>> and we could see if it works.
>>
>> As for the firmwares that would be great!
> 
> I think both of these are things that Mikko and I can help with.

That would be great (as I imagine you have access to the hardware :) ).
Let me know if you have any questions!

>>>> Due to the way the Gallium implementation works for Tegra
>>>> the GPU also needs to be enabled.
>>>
>>> I wonder if maybe we can get rid of this requirement. While it's
>>> certainly nice to have the GPU enabled, there may be cases where using
>>> only the other engines may be advantageous. Originally when I had worked
>>> on VIC, I was looking at how it could be used for compositing without
>>> getting the GPU involved. That's something that Android devices tend(ed)
>>> to do because of the power savings that come with it.
>>
>> Yes I think this is possible to do, it mainly has involves properly
>> handling the Gallium driver initialization. I'll take a look at it
>> before submitting the MR for the Gallium driver.
> 
> Okay, great. But I think it's definitely something that we can defer if
> it's non-trivial.

Perfect then, in that case I'll skip it for now and open a Mesa MR after
taking care of some final details.

Thanks,
Diogo

      reply	other threads:[~2025-06-16 10:26 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-06 10:45 Diogo Ivo
2025-06-06 10:45 ` [PATCH 1/3] drm/tegra: Add NVJPG driver Diogo Ivo
2025-06-10  3:26   ` Mikko Perttunen
2025-06-10  8:44     ` Thierry Reding
2025-06-11 11:50       ` Diogo Ivo
2025-06-11 11:47     ` Diogo Ivo
2025-06-06 10:45 ` [PATCH 2/3] arm64: tegra: Add NVJPG power-domain node Diogo Ivo
2025-06-10  4:57   ` Mikko Perttunen
2025-06-11 11:51     ` Diogo Ivo
2025-06-06 10:45 ` [PATCH 3/3] arm64: tegra: Add NVJPG node Diogo Ivo
2025-06-10  5:01   ` Mikko Perttunen
2025-06-11 11:51     ` Diogo Ivo
2025-06-10  8:58 ` [PATCH 0/3] NVIDIA Tegra210 NVJPG support Thierry Reding
2025-06-11 11:56   ` Diogo Ivo
2025-06-10  9:05 ` Thierry Reding
2025-06-10  9:52   ` Mikko Perttunen
2025-06-11 12:05     ` Diogo Ivo
2025-06-11 15:06       ` Thierry Reding
2025-06-12  1:55         ` Mikko Perttunen
2025-06-16 10:23           ` Diogo Ivo
2025-06-17  4:34             ` Mikko Perttunen
2025-06-16 10:21         ` Diogo Ivo
2025-06-17  4:40           ` Mikko Perttunen
2025-06-17  9:26             ` Diogo Ivo
2025-06-30  6:14               ` Mikko Perttunen
2025-06-30  8:52                 ` Diogo Ivo
2025-06-11 12:04   ` Diogo Ivo
2025-06-11 15:10     ` Thierry Reding
2025-06-16 10:26       ` Diogo Ivo [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=1ee42017-63e1-4b01-ba1f-8f548cba8733@tecnico.ulisboa.pt \
    --to=diogo.ivo@tecnico.ulisboa.pt \
    --cc=airlied@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jonathanh@nvidia.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mperttunen@nvidia.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=thierry.reding@gmail.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 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®