Mesa emerge error with bingch gentoo overlay

Hi!

As I’ve sorted out most of the problems with the gentoo installation on the vf2 I’ve tried to emerge mesa from @bing overlay. But the build process ends in this error:

[839/1108] riscv64-unknown-linux-gnu-gcc -Isrc/gallium/auxiliary/libgallium.a.p -Isrc/gallium/auxiliary -I../mesa-22.1.7/src/gallium/auxiliary -Isrc/loader -I../mesa-22.1.7/src/loader -I../mesa-22.1.7/src/gallium/include -Isrc -I../mesa-22.1.7/src -Iinclude -I../mesa-22.1.7/include -I../mesa-22.1.7/src/gallium/auxiliary/util -Isrc/compiler/nir -I../mesa-22.1.7/src/compiler/nir -Isrc/util -I../mesa-22.1.7/src/util -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 '-DPACKAGE_VERSION="22.1.7"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_SWRAST -DEGL_WITH_OPENGL -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DUSE_GCC_ATOMIC_BUILTINS -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_QSORT_R -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_LIBUDEV -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="18.1.7"' -DLLVM_IS_SHARED=1 -DDRAW_LLVM_AVAILABLE -DUSE_LIBGLVND=1 -DMESA_EXECMEM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -DVK_USE_PLATFORM_DISPLAY_KHR -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -ffunction-sections -fdata-sections -march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe -fPIC -pthread -isystem/usr/lib/llvm/18/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Werror=pointer-arith -MD -MQ src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o -MF src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o.d -o src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o -c ../mesa-22.1.7/src/gallium/auxiliary/nir/nir_to_tgsi.c
ninja: build stopped: subcommand failed.
 * ERROR: media-libs/mesa-22.1.7-r4::bingch failed (compile phase):
 *   ninja -v -j4 -l4 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4267:  Called meson-multilib_src_compile
 *   environment, line 2761:  Called multilib-minimal_src_compile
 *   environment, line 2955:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 3222:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2915:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2913:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  642:  Called multilib-minimal_abi_src_compile
 *   environment, line 2949:  Called multilib_src_compile
 *   environment, line 3442:  Called meson_src_compile
 *   environment, line 2828:  Called eninja
 *   environment, line 1704:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-22.1.7-r4::bingch'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-22.1.7-r4::bingch'`.
 * The complete build log is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/build.log'.
 * The ebuild environment file is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/environment'.
 * Working directory: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7-.lp64d'
 * S: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7'

>>> Failed to emerge media-libs/mesa-22.1.7-r4, Log file:

>>>  '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/build.log'

 * Messages for package media-libs/mesa-22.1.7-r4:

 * Ignoring USE=vulkan     since VIDEO_CARDS does not contain freedreno, imagination, intel, radeonsi, or v3d

 * Messages for package media-libs/mesa-22.1.7-r4:

 * ERROR: media-libs/mesa-22.1.7-r4::bingch failed (compile phase):
 *   ninja -v -j4 -l4 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4267:  Called meson-multilib_src_compile
 *   environment, line 2761:  Called multilib-minimal_src_compile
 *   environment, line 2955:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 3222:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2915:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2913:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  642:  Called multilib-minimal_abi_src_compile
 *   environment, line 2949:  Called multilib_src_compile
 *   environment, line 3442:  Called meson_src_compile
 *   environment, line 2828:  Called eninja
 *   environment, line 1704:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=media-libs/mesa-22.1.7-r4::bingch'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-22.1.7-r4::bingch'`.
 * The complete build log is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/build.log'.
 * The ebuild environment file is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/environment'.
 * Working directory: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7-.lp64d'
 * S: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7'

emerge --info ‘=media-libs/mesa-22.1.7-r4::bingch’ shows:

Portage 3.0.65 (python 3.12.4-final-0, default/linux/riscv/23.0/rv64/lp64d/desktop/plasma/systemd, gcc-14, glibc-2.39-r9, 6.6.20 riscv64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.20-riscv64-with-glibc2.39
KiB Mem:     8098028 total,   6404628 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 16 Jun 2024 17:00:00 +0000
Head commit of repository gentoo: e4505aa95e201287531af5ec4501cfda3f83dd33
Head commit of repository bingch: c177dbd57938a05ea86e1c8bb526063a23b32d28

sh bash 5.2_p26-r4
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r4::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.4_p1::gentoo, 3.13.0_beta2_p5::gentoo
dev-lang/rust-bin:         1.78.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.7::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             14.1.1_p20240615::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.7::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

bingch
    location: /var/db/repos/bingch
    sync-type: git
    sync-uri: https://gitlab.com/bingch/gentoo-overlay.git
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="@FREE"
CBUILD="riscv64-unknown-linux-gnu"
CFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
CHOST="riscv64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync merge-wait multilib-strict news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/data/portage_tmpdir/"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa bluetooth branding bzip2 cairo cdda cdr crypt cups dbus declarative dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline riscv screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

emerge -pqv ‘=media-libs/mesa-22.1.7-r4::bingch’ shows:

[ebuild UD] media-libs/mesa-22.1.7-r4 [24.1.1] USE="X gles2%* llvm vulkan wayland zstd (-d3d9) -debug -gles1% -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi (-valgrind) (-vdpau) -vulkan-overlay -xa -xvmc% (-zink) (-opengl%*) (-proprietary-codecs%*)" LLVM_SLOT="(-15%) (-16%) (-17%*) (-18%)" VIDEO_CARDS="(-freedreno) -imagination% (-intel) (-lima) -nouveau (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) (-vmware) (-d3d12%) (-lavapipe%) (-nvk%) (-zink%)"

The media-libs/mesa-22.1.7-r4/temp/build.log shows two errors:

../mesa-22.1.7/src/gallium/auxiliary/gallivm/lp_bld_arit.c:3714:10: error: implicit declaration of function ‘LLVMBuildLoad’; did you mean ‘LLVMBuildLoad2’? [-Wimplicit-function-declaration]
../mesa-22.1.7/src/gallium/auxiliary/gallivm/lp_bld_arit.c:3714:10: error: initialization of ‘LLVMValueRef’ {aka ‘struct LLVMOpaqueValue *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]

Maybe someone has an idea why the compilation breaks?

Thanks!

Martin

1 Like

@bing

Try this one in his repo
mesa-22.3.5-r4.ebuild
Also try USE=“-llvm” on the existing one to see if that compiles.

USE=“-llvm” did the trick. Thanks Andrew!

Now I will try to emerge plasma-desktop … thumbs pressed …

@bing @martin.wozenilek
If you find that version of Mesa a bit slow with the -llvm switch the try the ebuild I created around mesa 23 with patches to fix the softpipe on riscv. See the attached file
mesaebuild.tgz (2.7 MB) You can enable llvm and opencl with this build.

1 Like

yeah you might have a newer llvm/clang version than 15 on your system:

$ grep LLVM_MAX_SLOT /var/db/repos/bingch/media-libs/mesa/mesa-22.1.7-r4.ebuild
# 3. Specify LLVM_MAX_SLOT, e.g. 9.
LLVM_MAX_SLOT="15"

I’ve LLVM 16 and 18 installed. Why does the mesa-22.3.5 build doesn’t use the LLVM_MAX_SLOT version (“16”) and always LLVM 18?

I’ve tried with

USE="=sys-devel/llvm-16.0.6" emerge --ask =media-libs/mesa-22.3.5-r4::bingch

But again the build is choosing LLVM 18.

I’ve removed LLVM 18 and was able to build mesa-22.3.5.

Changed my profile from plasma to gnome and was able to build the gnome stuff. Unfortunately gnome shell crashes with an LLVM error message (“LLVM ERROR: Relocation type not implemented yet!”) . Will continue this in the Gentoo forum, maybe it’s this issue? llvm-16.0.2 some riscv packages reporting "LLVM ERROR: Relocation type not implemented yet!" · Issue #62940 · llvm/llvm-project · GitHub

It’s a journey :slight_smile:

I’ve tried

ebuild mesa-23.0.0.ebuild clean test install

but Manifest is missing. How to use this build?

First create the manifest with the following command
ebuild mesa-23.0.0.ebuild manifest
Then you can run
ebuild mesa-23.0.0.ebuild clean test install

You will find that this version will not give you the Relocation errors.

I am watching this for the Mesa 24 version to get the patches for Risc-v which will address the Relocation Errors.

To emerge this version you may need to unmerge the version you currently have installed.

1 Like

Hi Andrew! Thanks for your mesa 23 ebuild! With this I was able to build gnome after I changed my profile from plasma to gnome. This is again a great step forward for me!

But the gdm is verry slow and quite unusable. I’ve managed to get the pvr_dri.so driver from the official image and put it to the gentoo install. This helped a bit (why is the pvr_dri.so not part of the overlay???). But keyboard under gdm is still very slow and quite unusable. Apps are slow too.

Do you have any hint for me for what to look for regarding this? mesa still complaints a missing starfive dri so. But I don’t know if this is relevant.

I do not have a starfive_dri.so or pvr_dri.so on my system and I do not get any complaints about it.

Do you have opencl, vulkan and llvm enabled on your system as that should make mesa a bit faster.

Are you using X or wayland or both?

I tend to use xrdp to connect to my system remotely with rdp.

You may want to install xrdp and see if the performance is any better using that instead of directly on the console.

What is the output from /var/log/Xorg.0.log

In the output from dmesg do you see the following?

[   67.279331] PVR_K:  437: Read BVNC 36.50.54.182 from HW device registers
[   67.286059] PVR_K:  437: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[   67.298875] PVR_K:  437: RGX Firmware image 'rgx.fw.36.50.54.182' loaded
[   67.321977] PVR_K:  437: Shader binary image 'rgx.sh.36.50.54.182' loaded
[   67.332615] [drm] Initialized pvr 1.19.6345021 20170530 for 18000000.gpu on minor 
1 Like

Hi Andrew! Thanks for looking into this!

Yesterday and today I had some time to try some things.

loginctl tells me that the session type is X11. xrdp is emerged and is working. llvm looks also okay.

Link to vulkaninfo: Proton Drive

dmesg looks okay:

[    3.368808] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    3.376111] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    3.390463] PVR_K:  1: RGX Firmware image 'rgx.fw.36.50.54.182' loaded
[    3.401927] PVR_K:  1: Shader binary image 'rgx.sh.36.50.54.182' loaded
[    3.412165] [drm] Initialized pvr 1.19.6345021 20170530 for 18000000.gpu on minor 0

glxinfo give me this

martin@StarFive ~ $ glxinfo -B
name of display: :10.0
display: :10  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 16.0.6, 128 bits) (0xffffffff)
    Version: 23.0.0
    Accelerated: no
    Video memory: 7908MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 16.0.6, 128 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.0.0-devel
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.0.0-devel
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

But from my understanding journalctl shows me that the driver will not be used for X11:

Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: X.Org X Server 1.21.1.13
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: X Protocol Version 11, Revision 0
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: Current Operating System: Linux StarFive 6.6.20 #1 SMP Wed Jun 12 23:53:46 BST 2024 riscv64
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: Kernel command line: root=/dev/mmcblk1p4 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:  
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: Current version of pixman: 0.43.4
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         Before reporting problems, check http://wiki.x.org
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         to make sure that you have the latest version.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: Markers: (--) probed, (**) from config file, (==) default setting,
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         (++) from command line, (!!) notice, (II) informational,
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Log file: "/var/lib/gdm/.local/share/xorg/Xorg.0.log", Time: Sun Jun 30 14:28:46 2024
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Using config file: "/etc/X11/xorg.conf"
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) No Layout section.  Using the first Screen section.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (**) |-->Screen "Screen" (0)
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (**) |   |-->Monitor "Monitor"
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (**) |   |-->Device "Video Card"
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (**) Allowing byte-swapped clients
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Automatically adding devices
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Automatically enabling devices
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Automatically adding GPU devices
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Automatically binding GPU devices
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) Max clients allowed: 256, resource mask: 0x1fffff
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (WW) The directory "/usr/share/fonts/TTF" does not exist.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         Entry deleted from font path.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (WW) The directory "/usr/share/fonts/OTF" does not exist.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         Entry deleted from font path.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (WW) The directory "/usr/share/fonts/Type1" does not exist.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         Entry deleted from font path.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (WW) fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         Entry deleted from font path.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) FontPath set to:
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         /usr/share/fonts/misc,
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         /usr/share/fonts/75dpi
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (==) ModulePath set to "/usr/lib64/xorg/modules"
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (II) The server relies on udev to provide the list of input devices.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         If no devices become available, reconfigure udev or disable AutoAddDevices.
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module ABI versions:
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         X.Org ANSI C Emulation: 0.4
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         X.Org Video Driver: 25.2
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         X.Org XInput driver : 24.4
Jun 30 14:28:46 StarFive /usr/libexec/gdm-x-session[2506]:         X.Org Server Extension : 10.0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (++) using VT number 1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) systemd-logind: took control of session /org/freedesktop/login1/session/c8
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) xfree86: Adding drm device (/dev/dri/card1)
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Platform probe for /sys/devices/platform/display-subsystem/drm/card1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 11 paused 0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) xfree86: Adding drm device (/dev/dri/card0)
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Platform probe for /sys/devices/platform/soc/18000000.gpu/drm/card0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) OutputClass "Starfive Display" setting /dev/dri/card1 as PrimaryGPU
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "glx"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module glx: vendor="X.Org Foundation"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         compiled for 1.21.1.13, module version = 1.0.0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         ABI class: X.Org Server Extension, version 10.0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Applying OutputClass "Starfive Display" to /dev/dri/card1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         loading driver: modesetting
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Applying OutputClass "Starfive Display" to /dev/dri/card1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         loading driver: modesetting
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) Matched modesetting as autoconfigured driver 0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) Matched fbdev as autoconfigured driver 1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) Assigned the driver to the xf86ConfigLayout
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "modesetting"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module modesetting: vendor="X.Org Foundation"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         compiled for 1.21.1.13, module version = 1.21.1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         Module class: X.Org Video Driver
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         ABI class: X.Org Video Driver, version 25.2
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "fbdev"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module fbdev: vendor="X.Org Foundation"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         compiled for 1.21.1.13, module version = 0.5.0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         Module class: X.Org Video Driver
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         ABI class: X.Org Video Driver, version 25.2
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modesetting: Driver for Modesetting Kernel Drivers: kms
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) FBDEV: driver for framebuffer: fbdev
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): using drv /dev/dri/card1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (WW) Falling back to old probe method for fbdev
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading sub module "fbdevhw"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "fbdevhw"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module fbdevhw: vendor="X.Org Foundation"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         compiled for 1.21.1.13, module version = 0.0.2
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         ABI class: X.Org Video Driver, version 25.2
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (EE) open /dev/fb0: No such file or directory
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(G0): using drv /dev/dri/card0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Depth 16, (--) framebuffer bpp 16
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Applying OutputClass "Starfive Display" options to /dev/dri/card1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Applying OutputClass "Starfive Display" options to /dev/dri/card1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "SWcursor" "false"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "ShadowFB" "true"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "PageFlip" "true"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "DoubleShadow" "true"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "Atomic" "true"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "VariableRefresh" "true"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Option "AsyncFlipSecondaries" "true"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): RGB weight 565
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): Default visual is TrueColor
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading sub module "glamoregl"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "glamoregl"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module glamoregl: vendor="X.Org Foundation"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         compiled for 1.21.1.13, module version = 1.0.1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         ABI class: X.Org ANSI C Emulation, version 0.4
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: MESA-LOADER: failed to open starfive: /usr/lib64/dri/starfive_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: failed to load driver: starfive
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: MESA-LOADER: failed to open zink: /usr/lib64/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: failed to load driver: zink
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): Refusing to try glamor on llvmpipe
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): glamor initialization failed
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): ShadowFB: preferred NO, enabled YES
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(0): Double-buffered shadow updates: on
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): Output HDMI-1 using monitor section Monitor
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): EDID for output HDMI-1
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): Output HDMI-1 disconnected
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (WW) modeset(0): No outputs definitely connected, trying again...
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): Output HDMI-1 disconnected
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (WW) modeset(0): Unable to find connected outputs - setting 1024x768 initial framebuffer
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): DPI set to (96, 96)
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading sub module "fb"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "fb"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module "fb" already built-in
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading sub module "shadow"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) LoadModule: "shadow"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Loading /usr/lib64/xorg/modules/libshadow.so
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Module shadow: vendor="X.Org Foundation"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         compiled for 1.21.1.13, module version = 1.1.0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]:         ABI class: X.Org ANSI C Emulation, version 0.4
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(G0): Using 24bpp hw front buffer with 32bpp shadow
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(G0): Depth 16, (--) framebuffer bpp 16
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(G0): RGB weight 565
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(G0): Default visual is TrueColor
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (**) modeset(G0): Cannot use glamor with 24bpp packed fb
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(G0): ShadowFB: preferred YES, enabled FORCE
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(G0): Double-buffered shadow updates: off
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (EE) modeset(G0): KMS doesn't support dumb interface
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (EE) modeset(G0): KMS setup failed
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) UnloadModule: "modesetting"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) UnloadModule: "fbdev"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Unloading fbdev
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) UnloadSubModule: "fbdevhw"
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Unloading fbdevhw
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): Backing store enabled
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): Silken mouse enabled
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): Initializing kms color map for depth 16, 6 bpc.
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (==) modeset(0): DPMS enabled
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (WW) modeset(0): Option "PrimaryGPU" is not used
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (WW) modeset(0): Option "NoCursor" is not used
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension Generic Event Extension
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension SHAPE
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension MIT-SHM
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XInputExtension
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XTEST
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension BIG-REQUESTS
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension SYNC
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XKEYBOARD
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XC-MISC
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XFIXES
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension RENDER
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension RANDR
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension COMPOSITE
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension DAMAGE
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension MIT-SCREEN-SAVER
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension DOUBLE-BUFFER
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension RECORD
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension DPMS
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension Present
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension DRI3
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension X-Resource
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XVideo
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XVideo-MotionCompensation
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension GLX
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) AIGLX: Screen 0 is not DRI2 capable
Jun 30 14:28:47 StarFive kernel: broken atomic modeset userspace detected, disabling atomic
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) IGLX: Loaded and initialized swrast
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) GLX: Initialized DRISWRAST GL provider for screen 0
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XFree86-VidModeExtension
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XFree86-DGA
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension XFree86-DRI
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) Initializing extension DRI2
Jun 30 14:28:47 StarFive /usr/libexec/gdm-x-session[2506]: (II) modeset(0): Damage tracking initialized
Jun 30 14:28:48 StarFive /usr/libexec/gdm-x-session[2521]: dbus-daemon[2521]: [session uid=32 pid=2521 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=32 pid=2527 comm="/usr/libexec/gnome-session-check-accelerated")
Jun 30 14:28:48 StarFive /usr/libexec/gdm-x-session[2521]: dbus-daemon[2521]: [session uid=32 pid=2521 pidfd=5] Successfully activated service 'org.a11y.Bus'
Jun 30 14:28:48 StarFive gnome-session[2527]: gnome-session-check-accelerated: GL Helper exited with code 512
Jun 30 14:28:48 StarFive gnome-session[2546]: libEGL warning: DRI2: failed to authenticate
Jun 30 14:28:48 StarFive kernel: gnome-session-c[2546]: unhandled signal 11 code 0x1 at 0x0000000000000020 in swrast_dri.so[3fb7176000+a2d000]

During gnome usage these messages appear:

Jun 29 22:32:28 StarFive gnome-shell[2720]: NOTE: Not using GLX TFP!
Jun 29 22:32:29 StarFive gnome-shell[2720]: NOTE: Not using GLX TFP!
Jun 29 22:32:41 StarFive gnome-shell[2720]: NOTE: Not using GLX TFP!

and

libEGL warning: DRI2: failed to authenticate

I’ve added

VIDEO_CARDS="imagination"

to make.conf and recompiled mesa 23. But this has changed nothing.

At the moment I’m a bit out of ideas.

This is the desktop I run and it seems usable.
Xfce - Gentoo wiki and LightDM - Gentoo wiki
All the apps work fine for me and are usable except video playback.

Have you had a look at the desktop that is used in the standard Debian install from Starfive? That may be the best one to try.

However I am considering looking at wayfire as that is what the new Raspberry Pi 4 and 5 use on their latest OS.
Looking at Youtube it seems nice but would take some configuring to get it to what I am used to.

1 Like

Since today lightdm, xfce and xrdp works now very smooth within Gentoo on the VisionFive2 :partying_face: Will backup my SD card now :smiley:

For the pvr driver alone I don’t need the overlay from bingch. In the end I’ve removed this overlay as it has produced more dependency conflicts as it was of any use. I’ve used andrews mesa v23 and extracted the pvr driver files from the official StarFive images.

I’ve learned that neither plasma nor gnome does work at the moment within Gentoo on the VF2.

To test your GPU performance install the following package and its dependencies
emerge --ask --verbose dev-python/pyopencl

Then using the attached file test it
test.py (2.9 KB)

Here is the output on my system

 python test.py 
Execution time of test without OpenCL:  15.922138214111328 s
===============================================================
Platform name: PowerVR
Platform profile: EMBEDDED_PROFILE
Platform vendor: Imagination Technologies
Platform version: OpenCL 3.0 
---------------------------------------------------------------
Device name: PowerVR B-Series BXE-4-32
Device type: ALL | GPU
Device memory:  7904 MB
Device max clock speed: 594 MHz
Device compute units: 1
/usr/lib/python3.12/site-packages/pyopencl/invoker.py:376: UserWarning: pytools.persistent_dict 'pyopencl-invoker-cache-v41': enabling safe_sync as default. This provides strong protection against data loss, but can be unnecessarily expensive for use cases such as caches.Pass 'safe_sync=False' if occasional data loss is tolerable. Pass 'safe_sync=True' to suppress this warning.
  invoker_cache = WriteOncePersistentDict(
Execution time of test: 0.014505 s
Results OK

emerge of dev-python/pyopencl does fail cause of some numpy problems. I’ve already manually created a symlink to /usr/include/numpy but something is broken with these ebuilds. Will try again when I have the time for this …

Here is the fix to address the numpy issue.
cd /
extract the attached tar file
numpy-fix.tgz (3.1 KB)
emerge pyopencl as usual

Note one the folks at gentoo fix the problem you may need to remove the patch.

1 Like

Fantastic! :smiley:

This is my result, while compiling Firefox at the same time:

martin@StarFive /data/development $ python -Wignore test.py 
Execution time of test without OpenCL:  15.995640277862549 s
===============================================================
Platform name: PowerVR
Platform profile: EMBEDDED_PROFILE
Platform vendor: Imagination Technologies
Platform version: OpenCL 3.0 
---------------------------------------------------------------
Device name: PowerVR B-Series BXE-4-32
Device type: ALL | GPU
Device memory:  7908 MB
Device max clock speed: 594 MHz
Device compute units: 1
Execution time of test: 0.018375 s
Results OK

Very similar to your result.

Yes the GPU makes a difference

(15.995640277862549 s CPU) vs (0.018375 s GPU)