All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568
@ 2024-05-31 12:48 Quentin Schulz
  2024-05-31 12:48 ` [PATCH meta-rockchip 1/2] mesa: enable lima on all rk3328 boards Quentin Schulz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Quentin Schulz @ 2024-05-31 12:48 UTC (permalink / raw)
  To: yocto-patches; +Cc: Quentin Schulz

Note: I do not have access to any RK3328 or RK3568 device so I could
not test those patches.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Quentin Schulz (2):
      mesa: enable lima on all rk3328 boards
      mesa: build panfrost for RK3568 boards

 recipes-graphics/mesa/mesa_%.bbappend | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
base-commit: 3381d6af6eabfb532da16863b785a95abba6b9e8
change-id: 20240531-mesa-panfrost-f975f1251b6c

Best regards,
-- 
Quentin Schulz <quentin.schulz@cherry.de>



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

* [PATCH meta-rockchip 1/2] mesa: enable lima on all rk3328 boards
  2024-05-31 12:48 [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Quentin Schulz
@ 2024-05-31 12:48 ` Quentin Schulz
  2024-05-31 12:48 ` [PATCH meta-rockchip 2/2] mesa: build panfrost for RK3568 boards Quentin Schulz
  2024-06-11 13:29 ` [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Trevor Woerner
  2 siblings, 0 replies; 6+ messages in thread
From: Quentin Schulz @ 2024-05-31 12:48 UTC (permalink / raw)
  To: yocto-patches; +Cc: Quentin Schulz

From: Quentin Schulz <quentin.schulz@cherry.de>

lima is the open-source implementation for the GPU found on RK3328, it
is therefore not specific to the Rock64 but all boards based on the
RK3328.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
 recipes-graphics/mesa/mesa_%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index 58c25e7..a31d99b 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -1,4 +1,4 @@
 PACKAGECONFIG:append:rk3288 = " kmsro panfrost"
+PACKAGECONFIG:append:rk3328 = " kmsro lima"
 PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
-PACKAGECONFIG:append:rock64 = " kmsro lima"
 PACKAGECONFIG:append:px30 = " kmsro panfrost"

-- 
2.45.1



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

* [PATCH meta-rockchip 2/2] mesa: build panfrost for RK3568 boards
  2024-05-31 12:48 [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Quentin Schulz
  2024-05-31 12:48 ` [PATCH meta-rockchip 1/2] mesa: enable lima on all rk3328 boards Quentin Schulz
@ 2024-05-31 12:48 ` Quentin Schulz
  2024-06-11 13:29 ` [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Trevor Woerner
  2 siblings, 0 replies; 6+ messages in thread
From: Quentin Schulz @ 2024-05-31 12:48 UTC (permalink / raw)
  To: yocto-patches; +Cc: Quentin Schulz

From: Quentin Schulz <quentin.schulz@cherry.de>

The RK356x SoC family (of which we currently only support RK3568) has a
Bifrost GPU that is supported by open-source Panfrost Linux kernel and
Mesa drivers, therefore let's build mesa with Panfrost support for
RK3568.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
 recipes-graphics/mesa/mesa_%.bbappend | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index a31d99b..2d9ec2e 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -1,4 +1,5 @@
 PACKAGECONFIG:append:rk3288 = " kmsro panfrost"
 PACKAGECONFIG:append:rk3328 = " kmsro lima"
 PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
+PACKAGECONFIG:append:rk3568 = " kmsro panfrost"
 PACKAGECONFIG:append:px30 = " kmsro panfrost"

-- 
2.45.1



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

* Re: [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568
  2024-05-31 12:48 [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Quentin Schulz
  2024-05-31 12:48 ` [PATCH meta-rockchip 1/2] mesa: enable lima on all rk3328 boards Quentin Schulz
  2024-05-31 12:48 ` [PATCH meta-rockchip 2/2] mesa: build panfrost for RK3568 boards Quentin Schulz
@ 2024-06-11 13:29 ` Trevor Woerner
  2024-06-11 13:46   ` Quentin Schulz
  2 siblings, 1 reply; 6+ messages in thread
From: Trevor Woerner @ 2024-06-11 13:29 UTC (permalink / raw)
  To: yocto-patches; +Cc: Quentin Schulz

On Fri 2024-05-31 @ 02:48:13 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> Note: I do not have access to any RK3328 or RK3568 device so I could
> not test those patches.
> 
> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
> ---
> Quentin Schulz (2):
>       mesa: enable lima on all rk3328 boards
>       mesa: build panfrost for RK3568 boards
> 
>  recipes-graphics/mesa/mesa_%.bbappend | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> ---
> base-commit: 3381d6af6eabfb532da16863b785a95abba6b9e8
> change-id: 20240531-mesa-panfrost-f975f1251b6c

I have a couple rk3328-based boards, but the rock64 is the only one of these
that has a video output device (hdmi). So I guess if someone really wants to
build a graphics-based image for an rk3328-based board that doesn't have a
video dongle, then I guess they would want panfrost too (?)

It's been a long time since I've done any graphics stuff, I have a rock-3a
that is rk3568-based but couldn't get x11 nor weston/wayland working. I
probably need to do more fiddling.

Neither of these patches interfere with the build so I'm okay adding them.
Would you also want them on scarthgap as well?


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

* Re: [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568
  2024-06-11 13:29 ` [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Trevor Woerner
@ 2024-06-11 13:46   ` Quentin Schulz
  2024-06-11 18:22     ` Trevor Woerner
  0 siblings, 1 reply; 6+ messages in thread
From: Quentin Schulz @ 2024-06-11 13:46 UTC (permalink / raw)
  To: Trevor Woerner, yocto-patches

Hi Trevor,

On 6/11/24 3:29 PM, Trevor Woerner wrote:
> On Fri 2024-05-31 @ 02:48:13 PM, Quentin Schulz via lists.yoctoproject.org wrote:
>> Note: I do not have access to any RK3328 or RK3568 device so I could
>> not test those patches.
>>
>> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
>> ---
>> Quentin Schulz (2):
>>        mesa: enable lima on all rk3328 boards
>>        mesa: build panfrost for RK3568 boards
>>
>>   recipes-graphics/mesa/mesa_%.bbappend | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>> ---
>> base-commit: 3381d6af6eabfb532da16863b785a95abba6b9e8
>> change-id: 20240531-mesa-panfrost-f975f1251b6c
> 
> I have a couple rk3328-based boards, but the rock64 is the only one of these
> that has a video output device (hdmi). So I guess if someone really wants to
> build a graphics-based image for an rk3328-based board that doesn't have a
> video dongle, then I guess they would want panfrost too (?)
> 

The NanoPi R2S and RockPiE seem to be the only ones with no video output 
at all (the display subsystem is even disabled in the DTS for the NanoPi).

In any case, it should technically be possible to use the GPU without 
any video output, though I haven't managed to make my RK3588 boards work 
without DSI or HDMI support with Panthor so no clue how this should work :/

Not everything done by the GPU is for displaying stuff (could be used 
for maths stuff, openCL and the likes, on headless systems).

> It's been a long time since I've done any graphics stuff, I have a rock-3a
> that is rk3568-based but couldn't get x11 nor weston/wayland working. I
> probably need to do more fiddling.
> 

I only use kmscube for my tests. You basically only need to make sure 
that the renderer isn't LLVMPipe or swrast and you're good to go.

> Neither of these patches interfere with the build so I'm okay adding them.
> Would you also want them on scarthgap as well?

I have no personal or professional interest in those patches so up to 
you, it's just that I'll need some patches for RK3588 Panthor once we 
publish a downstream kernel with support for it (there's already one but 
I don't want people to start using it, so not creating a recipe just now 
:) ), and this patch series will then probably conflict with it in the 
git context, but nothing too difficult to deal with :)

So, up to you!

Cheers,
Quentin


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

* Re: [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568
  2024-06-11 13:46   ` Quentin Schulz
@ 2024-06-11 18:22     ` Trevor Woerner
  0 siblings, 0 replies; 6+ messages in thread
From: Trevor Woerner @ 2024-06-11 18:22 UTC (permalink / raw)
  To: Quentin Schulz; +Cc: yocto-patches

On Tue 2024-06-11 @ 03:46:52 PM, Quentin Schulz wrote:
> Hi Trevor,
> 
> On 6/11/24 3:29 PM, Trevor Woerner wrote:
> > On Fri 2024-05-31 @ 02:48:13 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> > > Note: I do not have access to any RK3328 or RK3568 device so I could
> > > not test those patches.
> > > 
> > > Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
> > > ---
> > > Quentin Schulz (2):
> > >        mesa: enable lima on all rk3328 boards
> > >        mesa: build panfrost for RK3568 boards
> > > 
> > >   recipes-graphics/mesa/mesa_%.bbappend | 3 ++-
> > >   1 file changed, 2 insertions(+), 1 deletion(-)

Applied to meta-rockchip, master branch. Thanks!


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

end of thread, other threads:[~2024-06-11 18:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 12:48 [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Quentin Schulz
2024-05-31 12:48 ` [PATCH meta-rockchip 1/2] mesa: enable lima on all rk3328 boards Quentin Schulz
2024-05-31 12:48 ` [PATCH meta-rockchip 2/2] mesa: build panfrost for RK3568 boards Quentin Schulz
2024-06-11 13:29 ` [yocto-patches] [PATCH meta-rockchip 0/2] enable Panfrost on RK3328 and RK3568 Trevor Woerner
2024-06-11 13:46   ` Quentin Schulz
2024-06-11 18:22     ` Trevor Woerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.