Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831098 - x11-drivers/nvidia-drivers: fail to run opengl apps on arm64
Summary: x11-drivers/nvidia-drivers: fail to run opengl apps on arm64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-13 06:59 UTC by Yixun Lan
Modified: 2022-01-19 15:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg log for nvidia-drivers-510.39.01 (Xorg.0-510.39.01.log,25.01 KB, text/x-log)
2022-01-13 08:23 UTC, Yixun Lan
Details
dmesg.txt (dmesg.txt,232.06 KB, text/plain)
2022-01-13 08:30 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2022-01-13 06:59:57 UTC
nvidia-drivers generally works on arm64, can show desktop (using lxde)

but fail to run few opengl application as following:

games-action/extreme-tuxracer, glmark2, x11-apps/mesa-progs

tested with these tree versions, all have same issue:
Tue Jan 11 18:11:32 2022 >>> x11-drivers/nvidia-drivers-495.44-r2
Wed Jan 12 11:38:10 2022 >>> x11-drivers/nvidia-drivers-495.46-r20
Thu Jan 13 09:54:27 2022 >>> x11-drivers/nvidia-drivers-510.39.01


 ~ $ etr
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  59
  Current serial number in output stream:  60
 ~ $ glmark2
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  42
  Current serial number in output stream:  43
 ~ $ glxgears
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  36
  Current serial number in output stream:  37



  ==== emerge info ===


Portage 3.0.30 (python 3.9.9-final-0, default/linux/arm64/17.0/systemd, gcc-11.2.1, glibc-2.34-r4, 5.4.157-arm64 aarch64)
=================================================================
System uname: Linux-5.4.157-arm64-aarch64-with-glibc2.34
KiB Mem:    32733252 total,  30709512 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 02 Sep 2021 00:15:01 +0000
Head commit of repository gentoo: b60476530d99e0a89926cb4d71cf0b080c14dd82
sh bash 5.1_p12
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p12::gentoo
dev-lang/perl:            5.34.0-r6::gentoo
dev-lang/python:          3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.1-r1::gentoo
dev-lang/rust:            1.57.0::gentoo
dev-util/cmake:           3.22.1::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo, 2.37_p1-r1::gentoo
sys-devel/gcc:            10.3.0::gentoo, 11.2.1_p20211127::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r4::gentoo
Repositories:

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

arm64
    location: /var/db/repos/arm64
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe "
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe "
DISTDIR="/home/gentoo/locals"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe "
GENTOO_MIRRORS=" 	http://mirrors.aliyun.com/gentoo 	http://gentoo.mirrors.hoobly.com/ 	http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ 	http://ftp.iij.ad.jp/pub/linux/gentoo/ "
LANG="C.UTF8"
LDFLAGS="-O2 -pipe "
MAKEOPTS="-j12"
PKGDIR="/home/gentoo/package"
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="/var/tmp"
USE="X acl arm64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd tcpd udev unicode xattr zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse libinput dummy" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Yixun Lan archtester gentoo-dev 2022-01-13 07:01:23 UTC
have to mention, etr/glmark2/glxgears all have no problem if I switch to nouveau driver
Comment 2 Ionen Wolkens gentoo-dev 2022-01-13 07:17:39 UTC
Would be good to check if GLX got initialized properly in the first place, Xorg.0.log could help. `glxinfo | grep vendor` is nice to ensure what's being used.

Also unsure if nvidia-drm out-of-the-box auto-detection is functioning on aarch64 and perhaps need a xorg.conf

I'd imagine packaging-wise it should be fine but there could be upstream issues, not that I can do much without hardware.
Comment 3 Yixun Lan archtester gentoo-dev 2022-01-13 08:23:25 UTC
Created attachment 762036 [details]
Xorg log for nvidia-drivers-510.39.01

I haven't seen any obvious GLX error (other than: Indirect GLX disabled. ), see full attached log 

unable to run glxinfo, show same error

~ $ glxinfo
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  110
  Current serial number in output stream:  111


> Also unsure if nvidia-drm out-of-the-box auto-detection is functioning on
> aarch64 and perhaps need a xorg.conf

I'm not sure how to check this.. could you elaborate further on this?
Comment 4 Yixun Lan archtester gentoo-dev 2022-01-13 08:30:07 UTC
Created attachment 762065 [details]
dmesg.txt

kernel dmesg doens't any drm related error
Comment 5 Ionen Wolkens gentoo-dev 2022-01-13 08:58:34 UTC
(In reply to Yixun Lan from comment #3)
> Created attachment 762036 [details]
> Xorg log for nvidia-drivers-510.39.01
> 
> I haven't seen any obvious GLX error (other than: Indirect GLX disabled. ),
> see full attached log 
Indeed, log looks normal -- indirect glx disabled is normal too.

Unfortunately doesn't help to say what might be wrong. The BadValue thing is a kinda generic error, so I was hoping to see something else.

It's a basic thing so I didn't think to ask, but your user is in the video group, right? That error pretty much just says "it doesn't work", but it's also what you get if not in video group.

> unable to run glxinfo, show same error
Ah figures, but it's fine I don't get the impression it's using the wrong thing with these logs.

> > Also unsure if nvidia-drm out-of-the-box auto-detection is functioning on
> > aarch64 and perhaps need a xorg.conf
> 
> I'm not sure how to check this.. could you elaborate further on this?
Don't worry about it, seems to be working as intended from the logs.
Comment 6 Yixun Lan archtester gentoo-dev 2022-01-19 12:44:51 UTC
(In reply to Ionen Wolkens from comment #5) 
> It's a basic thing so I didn't think to ask, but your user is in the video
> group, right? That error pretty much just says "it doesn't work", but it's
> also what you get if not in video group.
> 
oh, just add to video group solve the issue, many thanks for helping this..
Comment 7 Ionen Wolkens gentoo-dev 2022-01-19 14:17:08 UTC
(In reply to Yixun Lan from comment #6)
> (In reply to Ionen Wolkens from comment #5) 
> > It's a basic thing so I didn't think to ask, but your user is in the video
> > group, right? That error pretty much just says "it doesn't work", but it's
> > also what you get if not in video group.
> > 
> oh, just add to video group solve the issue, many thanks for helping this..
Nice, glad to hear it works fine on arm64 then.
Comment 8 Ionen Wolkens gentoo-dev 2022-01-19 14:33:49 UTC
Guess it was technically not a bug, so changing resolution.