* [PATCH meta-rockchip RFC 0/2] add support for Panthor
@ 2024-05-31 15:30 Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 1/2] mesa: enable Panfrost support for RK3588(S) Quentin Schulz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Quentin Schulz @ 2024-05-31 15:30 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
Panthor is the open-source implementation for the Arm GPU Valhall series
both in the Linux kernel and Mesa userspace. In the latter, the panfrost
"driver" is actually handling this version of the Arm GPU. One therefore
needs to enable kmsro and panfrost in PACKAGECONFIG to be able to use
this open-source implementation.
The open-source implementation still requires a proprietary blob which
is running on the GPU: mali_csffw.bin. Note that the closed-source
implementation (libmali and vendor kernel drivers) also require this
blob.
Right now, we're still missing a linux-yocto v6.10+ to be able to test
this with everything upstream in Yocto/OE, but I was able to
successfully test this with kmscube on a downstream kernel (6.6 +
backported patches for GPU and custom patches for DSI support) on an
RK3588 Tiger.
Additionally, the following patch series is required from OE-Core:
https://lore.kernel.org/openembedded-core/20240531-panthor-v1-0-1a76fd752c1b@cherry.de/T/#t
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Quentin Schulz (2):
mesa: enable Panfrost support for RK3588(S)
mesa: recommend mali csffw firmware package for mesa-megadriver for RK3588s
recipes-graphics/mesa/mesa_%.bbappend | 3 +++
1 file changed, 3 insertions(+)
---
base-commit: 3381d6af6eabfb532da16863b785a95abba6b9e8
change-id: 20240531-mesa-panthor-9c31ca1aa31f
Best regards,
--
Quentin Schulz <quentin.schulz@cherry.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH meta-rockchip RFC 1/2] mesa: enable Panfrost support for RK3588(S)
2024-05-31 15:30 [PATCH meta-rockchip RFC 0/2] add support for Panthor Quentin Schulz
@ 2024-05-31 15:30 ` Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 2/2] mesa: recommend mali csffw firmware package for mesa-megadriver for RK3588s Quentin Schulz
2024-06-11 13:43 ` [yocto-patches] [PATCH meta-rockchip RFC 0/2] add support for Panthor Trevor Woerner
2 siblings, 0 replies; 5+ messages in thread
From: Quentin Schulz @ 2024-05-31 15:30 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
From: Quentin Schulz <quentin.schulz@cherry.de>
Panthor is the open-source implementation for the Arm GPU Valhall series
found in the RK3588(S).
Panthor is supported via Panfrost in Mesa, so let's enable this
PACKAGECONFIG.
Note that a blob is still required. It is mali_csffw.bin and provided by
a package from linux-firmware.
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 58c25e7..87ca1b3 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -1,4 +1,5 @@
PACKAGECONFIG:append:rk3288 = " kmsro panfrost"
PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
+PACKAGECONFIG:append:rk3588s = " kmsro panfrost"
PACKAGECONFIG:append:rock64 = " kmsro lima"
PACKAGECONFIG:append:px30 = " kmsro panfrost"
--
2.45.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH meta-rockchip RFC 2/2] mesa: recommend mali csffw firmware package for mesa-megadriver for RK3588s
2024-05-31 15:30 [PATCH meta-rockchip RFC 0/2] add support for Panthor Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 1/2] mesa: enable Panfrost support for RK3588(S) Quentin Schulz
@ 2024-05-31 15:30 ` Quentin Schulz
2024-06-11 13:43 ` [yocto-patches] [PATCH meta-rockchip RFC 0/2] add support for Panthor Trevor Woerner
2 siblings, 0 replies; 5+ messages in thread
From: Quentin Schulz @ 2024-05-31 15:30 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
From: Quentin Schulz <quentin.schulz@cherry.de>
Panthor still requires a blob coming from a linux-firmware package to be
able to use the Arm GPU in its Valhall version series. Therefore,
recommend that package when building mesa for rk3588s.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
recipes-graphics/mesa/mesa_%.bbappend | 2 ++
1 file changed, 2 insertions(+)
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index 87ca1b3..6c74742 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -3,3 +3,5 @@ PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
PACKAGECONFIG:append:rk3588s = " kmsro panfrost"
PACKAGECONFIG:append:rock64 = " kmsro lima"
PACKAGECONFIG:append:px30 = " kmsro panfrost"
+
+RRECOMMENDS:mesa-megadriver:append:rk3588s = " linux-firmware-mali-csffw-arch108"
--
2.45.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [yocto-patches] [PATCH meta-rockchip RFC 0/2] add support for Panthor
2024-05-31 15:30 [PATCH meta-rockchip RFC 0/2] add support for Panthor Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 1/2] mesa: enable Panfrost support for RK3588(S) Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 2/2] mesa: recommend mali csffw firmware package for mesa-megadriver for RK3588s Quentin Schulz
@ 2024-06-11 13:43 ` Trevor Woerner
2024-06-11 13:56 ` Quentin Schulz
2 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2024-06-11 13:43 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
On Fri 2024-05-31 @ 05:30:24 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> Panthor is the open-source implementation for the Arm GPU Valhall series
> both in the Linux kernel and Mesa userspace. In the latter, the panfrost
> "driver" is actually handling this version of the Arm GPU. One therefore
> needs to enable kmsro and panfrost in PACKAGECONFIG to be able to use
> this open-source implementation.
>
> The open-source implementation still requires a proprietary blob which
> is running on the GPU: mali_csffw.bin. Note that the closed-source
> implementation (libmali and vendor kernel drivers) also require this
> blob.
>
> Right now, we're still missing a linux-yocto v6.10+ to be able to test
> this with everything upstream in Yocto/OE, but I was able to
> successfully test this with kmscube on a downstream kernel (6.6 +
> backported patches for GPU and custom patches for DSI support) on an
> RK3588 Tiger.
>
> Additionally, the following patch series is required from OE-Core:
> https://lore.kernel.org/openembedded-core/20240531-panthor-v1-0-1a76fd752c1b@cherry.de/T/#t
I would prefer to commit a working patch rather than pieces.
I.e. if you want to add the necessary patches indicated above into
meta-rockchip so that a working image can be generated without any additional
dependencies on other layers.
Would that be possible?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto-patches] [PATCH meta-rockchip RFC 0/2] add support for Panthor
2024-06-11 13:43 ` [yocto-patches] [PATCH meta-rockchip RFC 0/2] add support for Panthor Trevor Woerner
@ 2024-06-11 13:56 ` Quentin Schulz
0 siblings, 0 replies; 5+ messages in thread
From: Quentin Schulz @ 2024-06-11 13:56 UTC (permalink / raw)
To: Trevor Woerner, yocto-patches
Hi Trevor,
On 6/11/24 3:43 PM, Trevor Woerner wrote:
> On Fri 2024-05-31 @ 05:30:24 PM, Quentin Schulz via lists.yoctoproject.org wrote:
>> Panthor is the open-source implementation for the Arm GPU Valhall series
>> both in the Linux kernel and Mesa userspace. In the latter, the panfrost
>> "driver" is actually handling this version of the Arm GPU. One therefore
>> needs to enable kmsro and panfrost in PACKAGECONFIG to be able to use
>> this open-source implementation.
>>
>> The open-source implementation still requires a proprietary blob which
>> is running on the GPU: mali_csffw.bin. Note that the closed-source
>> implementation (libmali and vendor kernel drivers) also require this
>> blob.
>>
>> Right now, we're still missing a linux-yocto v6.10+ to be able to test
>> this with everything upstream in Yocto/OE, but I was able to
>> successfully test this with kmscube on a downstream kernel (6.6 +
>> backported patches for GPU and custom patches for DSI support) on an
>> RK3588 Tiger.
>>
>> Additionally, the following patch series is required from OE-Core:
>> https://lore.kernel.org/openembedded-core/20240531-panthor-v1-0-1a76fd752c1b@cherry.de/T/#t
>
> I would prefer to commit a working patch rather than pieces.
>
> I.e. if you want to add the necessary patches indicated above into
> meta-rockchip so that a working image can be generated without any additional
> dependencies on other layers.
>
> Would that be possible?
Yes, but I don't want to :)
Basically, this was just if someone wanted to tinker before it was
merged into OE-Core.
I don't think it makes sense to add the necessary patches/bbappends in
meta-rockchip for the master branch, it's duplicating efforts. However,
I plan on backporting the mesa recipe to scarthgap once it's merged
upstream, that would probably have its place in meta-rockchip (and if
not, I'll have it in my layer anyway :) ).
The issue right now is that the mesa bump is just not something I can
achieve without substantial effort as I know nothing about meson, mesa
and graphical stuff and the issues I encountered were a bit too hairy
for me :/ I hope someone can have a look at it, but for now I'll have to
stop here. I will likely have to do this by the end of the
year/beginning of next year when we migrate our customer base to
upstream kernel, but I hope that we'll have this bumped by someone else
before.
Basically, you can ignore this until I send another version :)
Cheers,
Quentin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-11 13:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 15:30 [PATCH meta-rockchip RFC 0/2] add support for Panthor Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 1/2] mesa: enable Panfrost support for RK3588(S) Quentin Schulz
2024-05-31 15:30 ` [PATCH meta-rockchip RFC 2/2] mesa: recommend mali csffw firmware package for mesa-megadriver for RK3588s Quentin Schulz
2024-06-11 13:43 ` [yocto-patches] [PATCH meta-rockchip RFC 0/2] add support for Panthor Trevor Woerner
2024-06-11 13:56 ` Quentin Schulz
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.