dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* RPI4B: what is needed for /dev/video10 to work ( v4l_m2m )
@ 2023-12-27 15:19 AL13N
  2024-01-02 10:03 ` Maxime Ripard
  0 siblings, 1 reply; 4+ messages in thread
From: AL13N @ 2023-12-27 15:19 UTC (permalink / raw)
  To: Emma Anholt, Maxime Ripard, dri-devel

Hi,


I have a RPI4B with upstream kernel 6.1 64bit and there is no 
/dev/video10 present. I thought if I waited a bit more, it would appear 
in the kernel, but that was folly on my part.

Currently, watching a movie is painful since the software decoding is 
way too slow and it has very low fps on 1080p (or even 720p or even 
480p)

IIRC, someone told me something else has to be fixed before the codecs 
can be done, but I don't remember what it was, or i didn't find it in my 
email/the archives.

Can someone tell me what exactly needs to be done (in kernel) so that I 
can take a crack at it, (hopefully with some help)?

I don't remember if this was relevant, but there was some talk of 
needing to use opengl output with a specific texture format for it to 
work? or is that seperate?


Thanks in advance,

AL13N

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RPI4B: what is needed for /dev/video10 to work ( v4l_m2m )
  2023-12-27 15:19 RPI4B: what is needed for /dev/video10 to work ( v4l_m2m ) AL13N
@ 2024-01-02 10:03 ` Maxime Ripard
  2024-01-02 11:16   ` Dave Stevenson
  2024-01-02 15:33   ` AL13N
  0 siblings, 2 replies; 4+ messages in thread
From: Maxime Ripard @ 2024-01-02 10:03 UTC (permalink / raw)
  To: AL13N; +Cc: dri-devel, Emma Anholt

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

Hi,

On Wed, Dec 27, 2023 at 04:19:19PM +0100, AL13N wrote:
> I have a RPI4B with upstream kernel 6.1 64bit and there is no /dev/video10
> present. I thought if I waited a bit more, it would appear in the kernel,
> but that was folly on my part.
> 
> Currently, watching a movie is painful since the software decoding is way
> too slow and it has very low fps on 1080p (or even 720p or even 480p)
> 
> IIRC, someone told me something else has to be fixed before the codecs can
> be done, but I don't remember what it was, or i didn't find it in my
> email/the archives.
> 
> Can someone tell me what exactly needs to be done (in kernel) so that I can
> take a crack at it, (hopefully with some help)?
> 
> I don't remember if this was relevant, but there was some talk of needing to
> use opengl output with a specific texture format for it to work? or is that
> seperate?

That's something for linux-media. The hardware codec isn't part of vc4
or v3d, it's a separate controller that requires a separate driver (in
v4l2).

That driver isn't upstream, and that would need the first thing to
tackle.

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RPI4B: what is needed for /dev/video10 to work ( v4l_m2m )
  2024-01-02 10:03 ` Maxime Ripard
@ 2024-01-02 11:16   ` Dave Stevenson
  2024-01-02 15:33   ` AL13N
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Stevenson @ 2024-01-02 11:16 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: AL13N, dri-devel, Emma Anholt

On Tue, 2 Jan 2024 at 10:03, Maxime Ripard <mripard@kernel.org> wrote:
>
> Hi,
>
> On Wed, Dec 27, 2023 at 04:19:19PM +0100, AL13N wrote:
> > I have a RPI4B with upstream kernel 6.1 64bit and there is no /dev/video10
> > present. I thought if I waited a bit more, it would appear in the kernel,
> > but that was folly on my part.
> >
> > Currently, watching a movie is painful since the software decoding is way
> > too slow and it has very low fps on 1080p (or even 720p or even 480p)
> >
> > IIRC, someone told me something else has to be fixed before the codecs can
> > be done, but I don't remember what it was, or i didn't find it in my
> > email/the archives.
> >
> > Can someone tell me what exactly needs to be done (in kernel) so that I can
> > take a crack at it, (hopefully with some help)?
> >
> > I don't remember if this was relevant, but there was some talk of needing to
> > use opengl output with a specific texture format for it to work? or is that
> > seperate?
>
> That's something for linux-media. The hardware codec isn't part of vc4
> or v3d, it's a separate controller that requires a separate driver (in
> v4l2).
>
> That driver isn't upstream, and that would need the first thing to
> tackle.

IdeasOnBoard are working on our behalf to clean up the VCHIQ driver in
staging (hopefully unstaging it), and adding the mmal-vchiq, vcsm, and
ISP drivers. https://patchwork.linuxtv.org/project/linux-media/list/?series=11633
is probably the latest revision of the series, but there are a number
of supporting series around too.

The codec driver relies on the same mmal-vchiq and vcsm drivers as the
ISP, so adding that afterwards should be relatively simple.

Even though he's stepped back from being a maintainer, Stefan Wahren
is still keeping track of a number of the upstreaming tasks for the Pi
platform - see https://github.com/lategoodbye/rpi-zero/issues/43

  Dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RPI4B: what is needed for /dev/video10 to work ( v4l_m2m )
  2024-01-02 10:03 ` Maxime Ripard
  2024-01-02 11:16   ` Dave Stevenson
@ 2024-01-02 15:33   ` AL13N
  1 sibling, 0 replies; 4+ messages in thread
From: AL13N @ 2024-01-02 15:33 UTC (permalink / raw)
  To: dri-devel; +Cc: Maxime Ripard, Emma Anholt

Maxime Ripard schreef op 2024-01-02 11:03:
> Hi,
> 
> On Wed, Dec 27, 2023 at 04:19:19PM +0100, AL13N wrote:
>> I have a RPI4B with upstream kernel 6.1 64bit and there is no 
>> /dev/video10
>> present. I thought if I waited a bit more, it would appear in the 
>> kernel,
>> but that was folly on my part.
>> 
>> Currently, watching a movie is painful since the software decoding is 
>> way
>> too slow and it has very low fps on 1080p (or even 720p or even 480p)
>> 
>> IIRC, someone told me something else has to be fixed before the codecs 
>> can
>> be done, but I don't remember what it was, or i didn't find it in my
>> email/the archives.
>> 
>> Can someone tell me what exactly needs to be done (in kernel) so that 
>> I can
>> take a crack at it, (hopefully with some help)?
>> 
>> I don't remember if this was relevant, but there was some talk of 
>> needing to
>> use opengl output with a specific texture format for it to work? or is 
>> that
>> seperate?
> 
> That's something for linux-media. The hardware codec isn't part of vc4
> or v3d, it's a separate controller that requires a separate driver (in
> v4l2).
> 
> That driver isn't upstream, and that would need the first thing to
> tackle.
> 
> Maxime

Can I assume you're talking about the vchiq driver, which would have 
multiple things including codecs, or am I misunderstanding it?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-02 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-27 15:19 RPI4B: what is needed for /dev/video10 to work ( v4l_m2m ) AL13N
2024-01-02 10:03 ` Maxime Ripard
2024-01-02 11:16   ` Dave Stevenson
2024-01-02 15:33   ` AL13N

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).