Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751769 - sys-kernel/linux-firmware-20201022: nvidia symlinks missing
Summary: sys-kernel/linux-firmware-20201022: nvidia symlinks missing
Status: RESOLVED DUPLICATE of bug 751760
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-29 16:53 UTC by Dan Moulding
Modified: 2020-10-29 17:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Moulding 2020-10-29 16:53:11 UTC
After updating to linux-firmware-20201022, nouveau fails to multiple firmware blobs when booting. These are related messages from dmesg:

[    0.286005] nouveau 0000:01:00.0: NVIDIA GP104 (134000a1)
[    0.394298] nouveau 0000:01:00.0: bios: version 86.04.50.80.13
[    0.394376] nouveau 0000:01:00.0: acr: firmware unavailable
[    0.394379] nouveau 0000:01:00.0: pmu: firmware unavailable
[    0.394509] nouveau 0000:01:00.0: gr: firmware unavailable
[    0.394516] nouveau 0000:01:00.0: sec2: firmware unavailable
[    0.394778] nouveau 0000:01:00.0: fb: 8192 MiB GDDR5
[    0.400795] nouveau 0000:01:00.0: fb: VPR locked, but no scrubber binary!
[    0.404023] [TTM] Zone  kernel: Available graphics memory: 16358436 KiB
[    0.404025] [TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[    0.404026] [TTM] Initializing pool allocator
[    0.404029] [TTM] Initializing DMA pool allocator
[    0.404037] nouveau 0000:01:00.0: DRM: VRAM: 8192 MiB
[    0.404038] nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
[    0.404040] nouveau 0000:01:00.0: DRM: BIT table 'A' not found
[    0.404041] nouveau 0000:01:00.0: DRM: BIT table 'L' not found
[    0.404043] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[    0.404044] nouveau 0000:01:00.0: DRM: DCB version 4.1
[    0.404046] nouveau 0000:01:00.0: DRM: DCB outp 00: 01000f42 00020030
[    0.404048] nouveau 0000:01:00.0: DRM: DCB outp 01: 04811f96 04600020
[    0.404049] nouveau 0000:01:00.0: DRM: DCB outp 02: 04011f92 00020020
[    0.404051] nouveau 0000:01:00.0: DRM: DCB outp 03: 04822f86 04600010
[    0.404052] nouveau 0000:01:00.0: DRM: DCB outp 04: 04022f82 00020010
[    0.404053] nouveau 0000:01:00.0: DRM: DCB outp 06: 02033f62 00020010
[    0.404055] nouveau 0000:01:00.0: DRM: DCB outp 07: 02844f76 04600020
[    0.404056] nouveau 0000:01:00.0: DRM: DCB outp 08: 02044f72 00020020
[    0.404058] nouveau 0000:01:00.0: DRM: DCB conn 00: 00001031
[    0.404059] nouveau 0000:01:00.0: DRM: DCB conn 01: 02000146
[    0.404060] nouveau 0000:01:00.0: DRM: DCB conn 02: 01000246
[    0.404062] nouveau 0000:01:00.0: DRM: DCB conn 03: 00010361
[    0.404063] nouveau 0000:01:00.0: DRM: DCB conn 04: 00020446
[    0.404302] nouveau 0000:01:00.0: DRM: failed to create kernel channel, -22
[    0.404439] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies


I've done a little investigating and found that many of the "files" (which were really symlinks) that existed in previous versions of linux-firmware are now missing. More investigating led me to this upstream commit that seems to have triggered this issue:

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=1487a8abdbac007463304bd8ee727749765f88b7

The missing symlinks have been moved to the WHENCE file. When "make install" is run for linux-firmware, it looks to me like the copy-firmware.sh script is supposed to be run, and that script takes care of recreating the symlinks that are described in the WHENCE file.

It also appears to me that the ebuild for linux-firmware isn't running the Makefile at all, because it looks like the src_prepare phase removes the Makefile (along with other scripts and files used by the Makefile). Thus, once the src_install phase is reached, and "default" is run, there is no Makefile (and no WHENCE file) so copy-firmware.sh isn't run, and the links aren't created. So, post-install, the links are naturally missing.


Reproducible: Always

Steps to Reproduce:
1. Install linux-firmware-20201022
2. Look in the WHENCE file that is distributed with the linux-firmware source (extract the tarball from distfiles).
3. Notice that the files under nvidia, which are listed in WHENCE as "Link" are all missing from /lib/firmware.
Actual Results:  
No symlinks getting created under /lib/firmware/nvidia

Expected Results:  
All "Link" entries listed in WHENCE should be exist as symlinks under /lib/firmware (unless using savedconfig to omit them from installation).

Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.31-r6, 5.9.2 x86_64)
=================================================================
System uname: Linux-5.9.2-x86_64-Intel-R-_Core-TM-_i7-9700_CPU_@_3.00GHz-with-gentoo-2.7
KiB Mem:    32720544 total,  28099412 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Thu, 29 Oct 2020 13:37:13 +0000
Head commit of repository gentoo: dbc20cc9edbd9cea86e92360595330535855ebcc

Head commit of repository dmoulding: 2270355230356a791a2d91394d072f4e3ee452e5

Timestamp of repository trolltoo: Tue, 29 Sep 2020 14:07:51 +0000
Head commit of repository trolltoo: fca52b677e0da2ad14ad864b369080f836f29e31

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

dmoulding
    location: /var/db/repos/dmoulding
    sync-type: git
    sync-uri: git@github.com:dmoulding/overlay.git
    sync-user: dmoulding
    masters: gentoo

trolltoo
    location: /var/db/repos/trolltoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/trolltoo.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-fomit-frame-pointer -march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-fomit-frame-pointer -march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
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 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://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emacs emboss encode exif flac fortran gdbm gif git gpm gtk gui iconv icu iproute2 ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lzma mad mng mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell spice split-usr ssl startup-notification svg tcpd tiff truetype tty-helpers udev udisks unicode upower usb usbredir virt-network vnc vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" 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-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Brian Evans (RETIRED) gentoo-dev 2020-10-29 17:00:47 UTC

*** This bug has been marked as a duplicate of bug 751760 ***