`radeonsi_dri.so` driver missing on riscv64

Bug #1980386 reported by Michał Sawicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-15 (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
In Progress
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned
mesa (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned

Bug Description

The package is missing the `radeonsi` driver, with the reasoning that LLVM is not implemented on the architecture:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995618

That said, it works just fine on focal, where it is still enabled. Without this driver there's no way to use AMD graphics cards on RISC-V.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libgl1-mesa-dri 22.0.1-1ubuntu2
ProcVersionSignature: User Name 5.15.0-1007.7-generic 5.15.30
Uname: Linux 5.15.0-1007-generic riscv64
ApportVersion: 2.20.11-0ubuntu82
Architecture: riscv64
CasperMD5CheckResult: unknown
Date: Thu Jun 30 15:48:11 2022
ProcCpuinfoMinimal:
 processor : 3
 hart : 4
 isa : rv64imafdc
 mmu : sv39
 uarch : sifive,u74-mc
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: mesa
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

libgl1-mesa-dri_22.0.5-0ubuntu0.1_ppc64el.deb is available in Jammy.
libgl1-mesa-dri_22.1.3-1ubuntu1_riscv64.deb us available in Kinetic.

Therefore marking as fix released.

Changed in mesa (Ubuntu Jammy):
status: New → Fix Released
Changed in mesa (Ubuntu Kinetic):
status: New → Fix Released
Revision history for this message
Michał Sawicz (saviq) wrote :
Changed in mesa (Ubuntu Jammy):
status: Fix Released → Triaged
status: Triaged → Opinion
status: Opinion → Confirmed
Changed in mesa (Ubuntu Kinetic):
status: Fix Released → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

not going to get fixed before llvm supports JIT on riscv64

Revision history for this message
Michał Sawicz (saviq) wrote :

@tjaalton, but it works just fine on focal in our tests… can we not enable radeon/-si without enabling gallium at the same time? Maybe I'm simplifying things, but we're running Mir GL tests on focal with riscv64/AMD GPU just fine.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Which version of mesa on focal is that? The current backport version is from jammy and doesn't enable gallium for riscv64.

Radeonsi requires llvm.

Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

oh right, 22.0.5 hasn't been backported yet

anyway, if llvm is enabled, it'll essentially break swrast for riscv64.. if that's a tradeoff you can live with, then okay

Revision history for this message
Michał Sawicz (saviq) wrote :

I suppose we may need to work with a PPA then.

@xypron what do you think?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

llvm-toolchain-15 has JIT

affects: llvm-toolchain-14 (Ubuntu Kinetic) → llvm-toolchain-15 (Ubuntu Kinetic)
Changed in llvm-toolchain-15 (Ubuntu Kinetic):
status: New → Fix Released
Graham Inggs (ginggs)
Changed in llvm-toolchain-15 (Ubuntu Jammy):
status: New → Invalid
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

not so fast, llvm-15 will get backported to jammy for mesa hwe backport ;)

Changed in llvm-toolchain-15 (Ubuntu Jammy):
status: Invalid → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 22.2.1-1ubuntu1

---------------
mesa (22.2.1-1ubuntu1) kinetic; urgency=medium

  * Merge from Debian. (LP: #1992656)

 -- Timo Aaltonen <email address hidden> Wed, 12 Oct 2022 17:10:22 +0300

Changed in mesa (Ubuntu Kinetic):
status: Confirmed → Fix Released
Revision history for this message
Michał Sawicz (saviq) wrote :

Can confirm this works fine on kinetic:

> <information> GLRenderer: GL vendor: AMD
> <information> GLRenderer: GL renderer: AMD Radeon RX 480 Graphics (polaris10, LLVM 15.0.2, DRM 3.47, 5.19.0-1002-generic)
> <information> GLRenderer: GL version: OpenGL ES 3.2 Mesa 22.2.1
> <information> GLRenderer: GLSL version: OpenGL ES GLSL ES 3.20

Vs. jammy:

> MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/riscv64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
> failed to load driver: radeonsi
> <information> GLRenderer: GL vendor: Mesa/X.org
> <information> GLRenderer: GL renderer: softpipe
> <information> GLRenderer: GL version: OpenGL ES 3.1 Mesa 22.0.5
> <information> GLRenderer: GLSL version: OpenGL ES GLSL ES 3.10

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 22.2.5-0ubuntu0.1~22.04.1

---------------
mesa (22.2.5-0ubuntu0.1~22.04.1) jammy; urgency=medium

  * Backport to jammy. (LP: #1991761)

 -- Timo Aaltonen <email address hidden> Thu, 15 Dec 2022 16:35:13 +0200

Changed in mesa (Ubuntu Jammy):
status: Confirmed → Fix Released
Revision history for this message
Michał Sawicz (saviq) wrote :

And can confirm this works on jammy now, too \o/.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.