[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1022025: Upstream Reports



Yeah, I tried to apply it, but I had that same problem where I managed to compile the .debs, but got a bunch of errors installing them with a black screen at the end of the test. I use DKMS for nvidia and openrazer, and that's been posing problems, which you'll see below. In addition, there are dependency issues that dpkg and apt both complain about.

Here's what I did (I'm including console output when relevant to spare you the full output of a kernel build job):

$ apt source -t bullseye-security linux

$ sudo apt -t bullseye build-dep linux

$ cd linux-5.10.149

$ debian/bin/test-patches -j14 /home/dan/Downloads/0001-drm-amdgpu-fix-sdma-doorbell-init-ordering-on-APUs.patch

[Kernel builds without a problem as far as I can tell]

$ cd ..

$ ls

linux-5.10.149 linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb
linux_5.10.149-1.debian.tar.xz linux-image-5.10.0-19-amd64-dbg_5.10.149-1a~test_amd64.deb
linux_5.10.149-1.dsc linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb
linux_5.10.149.orig.tar.xz linux-image-amd64-dbg_5.10.149-1a~test_amd64.deb

$ sudo apt install ./linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb ./linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'linux-headers-5.10.0-19-amd64' instead of './linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb'
Note, selecting 'linux-image-5.10.0-19-amd64-unsigned' instead of './linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  linux-headers-5.10.0-19-amd64 : Depends: linux-headers-5.10.0-19-common (= 5.10.149-1a~test) but 5.10.149-1 is to be installed
                                  Depends: linux-kbuild-5.10 (>= 5.10.149-1a~test)
E: Unable to correct problems, you have held broken packages.

$ sudo dpkg -i ./linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb ./linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb

Preparing to unpack .../linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb ...
Unpacking linux-headers-5.10.0-19-amd64 (5.10.149-1a~test) over (5.10.149-1) ...
Selecting previously unselected package linux-image-5.10.0-19-amd64-unsigned.
dpkg: considering removing linux-image-5.10.0-19-amd64 in favour of linux-image-5.10.0-19-amd64-unsigned ...
dpkg: no, cannot proceed with removal of linux-image-5.10.0-19-amd64 (--auto-deconfigure will help):
  linux-image-amd64 depends on linux-image-5.10.0-19-amd64 (= 5.10.149-1)
   linux-image-5.10.0-19-amd64 is to be removed.

dpkg: regarding .../linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb containing linux-image-5.10.0-19-amd64-unsigned:
  linux-image-5.10.0-19-amd64-unsigned conflicts with linux-image-5.10.0-19-amd64
   linux-image-5.10.0-19-amd64 (version 5.10.149-1) is present and installed.

dpkg: error processing archive ./linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb (--install):
  conflicting packages - not installing linux-image-5.10.0-19-amd64-unsigned
dpkg: dependency problems prevent configuration of linux-headers-5.10.0-19-amd64:
  linux-headers-5.10.0-19-amd64 depends on linux-headers-5.10.0-19-common (= 5.10.149-1a~test); however:
   Version of linux-headers-5.10.0-19-common on system is 5.10.149-1.
  linux-headers-5.10.0-19-amd64 depends on linux-kbuild-5.10 (>= 5.10.149-1a~test); however:
   Version of linux-kbuild-5.10 on system is 5.10.149-1.

dpkg: error processing package linux-headers-5.10.0-19-amd64 (--install):
  dependency problems - leaving unconfigured
Errors were encountered while processing:
  ./linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb
  linux-headers-5.10.0-19-amd64

$ sudo apt remove linux-image-amd64 linux-headers-amd64 linux-headers-5.10.0-19-amd64 linux-headers-5.10.0-19-common linux-image-5.10.0-19-amd64

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
   linux-headers-5.10.0-19-amd64 linux-headers-5.10.0-19-common linux-headers-amd64 linux-image-5.10.0-19-amd64
   linux-image-amd64
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 376 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 546461 files and directories currently installed.)
Removing linux-headers-amd64 (5.10.149-1) ...
Removing linux-headers-5.10.0-19-amd64 (5.10.149-1a~test) ...
Removing linux-headers-5.10.0-19-common (5.10.149-1) ...
Removing linux-image-amd64 (5.10.149-1) ...
Removing linux-image-5.10.0-19-amd64 (5.10.149-1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: nvidia-current 470.141.03 (5.10.0-19-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 470.141.03
Kernel:  5.10.0-19-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-modeset.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-drm.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-uvm.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


nvidia-current-peermem.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
dkms: removing: openrazer-driver 2.9.0 (5.10.0-19-amd64) (x86_64)

-------- Uninstall Beginning --------
Module:  openrazer-driver
Version: 2.9.0
Kernel:  5.10.0-19-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

razerkbd.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


razermouse.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


razerkraken.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.


razeraccessory.ko:
  - Uninstallation
    - Deleting from: /lib/modules/5.10.0-19-amd64/updates/dkms/
  - Original module
    - No original module was found for this module on this kernel.
    - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.0-13-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-5.10.0-13-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-18-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-18-amd64
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.10.0-19-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-18-amd64
Found initrd image: /boot/initrd.img-5.10.0-18-amd64
Found linux image: /boot/vmlinuz-5.10.0-13-amd64
Found initrd image: /boot/initrd.img-5.10.0-13-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done

$ sudo dpkg -i ./linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb ./linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb

Selecting previously unselected package linux-headers-5.10.0-19-amd64.
(Reading database ... 523170 files and directories currently installed.)
Preparing to unpack .../linux-headers-5.10.0-19-amd64_5.10.149-1a~test_amd64.deb ...
Unpacking linux-headers-5.10.0-19-amd64 (5.10.149-1a~test) ...
Preparing to unpack .../linux-image-5.10.0-19-amd64-unsigned_5.10.149-1a~test_amd64.deb ...
Unpacking linux-image-5.10.0-19-amd64-unsigned (5.10.149-1a~test) ...
dpkg: dependency problems prevent configuration of linux-headers-5.10.0-19-amd64:
  linux-headers-5.10.0-19-amd64 depends on linux-headers-5.10.0-19-common (= 5.10.149-1a~test); however:
   Package linux-headers-5.10.0-19-common is not installed.
  linux-headers-5.10.0-19-amd64 depends on linux-kbuild-5.10 (>= 5.10.149-1a~test); however:
   Version of linux-kbuild-5.10 on system is 5.10.149-1.

dpkg: error processing package linux-headers-5.10.0-19-amd64 (--install):
  dependency problems - leaving unconfigured
Setting up linux-image-5.10.0-19-amd64-unsigned (5.10.149-1a~test) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.0-18-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-5.10.0-18-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-19-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-19-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-19-amd64:
Kernel preparation unnecessary for this kernel.  Skipping...
applying patch linux-2.6.34-dev_pm_info-runtime_auto.patch...patching file conftest.sh

applying patch 0009-backport-pci-dma-changes-from-470.129.06.patch...patching file nvidia/nv.c

applying patch bashisms.patch...patching file conftest.sh

applying patch use-kbuild-compiler.patch...patching file Makefile

applying patch use-kbuild-flags.patch...patching file Kbuild
patching file nvidia/nvidia.Kbuild
patching file Makefile
patching file nvidia-modeset/nvidia-modeset.Kbuild

applying patch conftest-verbose.patch...patching file Kbuild

applying patch cc_version_check-gcc5.patch...patching file conftest.sh

applying patch nvidia-use-ARCH.o_binary.patch...patching file nvidia/nvidia.Kbuild

applying patch nvidia-modeset-use-ARCH.o_binary.patch...patching file nvidia-modeset/nvidia-modeset.Kbuild

applying patch conftest-prefer-arch-headers.patch...patching file conftest.sh


Building module:
cleaning build area...(bad exit status: 2)
unset ARCH; env NV_VERBOSE=1 make -j16 modules KERNEL_UNAME=5.10.0-19-amd64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.0-19-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/470.141.03/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
KERNELDIR=/lib/modules/5.10.0-19-amd64/build make driver...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.0-19-amd64 (x86_64)
Consult /var/lib/dkms/openrazer-driver/2.9.0/build/make.log for more information.
.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-19-amd64
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_vcn.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_vcn.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_smc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_smc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_dmcub.bin for module amdgpu
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/luks-8eaff861-1452-4ad7-8bb8-28fc09c6eda7)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-19-amd64
Found initrd image: /boot/initrd.img-5.10.0-19-amd64
Found linux image: /boot/vmlinuz-5.10.0-18-amd64
Found initrd image: /boot/initrd.img-5.10.0-18-amd64
Found linux image: /boot/vmlinuz-5.10.0-13-amd64
Found initrd image: /boot/initrd.img-5.10.0-13-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Errors were encountered while processing:
  linux-headers-5.10.0-19-amd64

[Here, I rebooted]

$ systemctl reboot

[Same exact problem.. Black screen for a while, and then it spits out the following error and similar variants every ten seconds]

[drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:52:plane-3] flip_done timed out

$ sudo timeshift --restore

[Back to square 1]

On 10/20/22 09:34 AM, Diederik de Haas wrote:
> Control: forwarded -1https://gitlab.freedesktop.org/drm/amd/-/issues/2216
> Control: tag -1 +patch
>
> On Thursday, 20 October 2022 14:44:34 CEST Dan Coleman wrote:
>> Looks like there's some attention upstream.
>>
>> https://gitlab.freedesktop.org/drm/amd/-/issues/2216
> That looks like a proper analyses, thanks!
> It also includes a patch which I included here for convenience.
>
> It would be really useful if you/someone could build a kernel with that patch
> to see whether it fixes the issue.


Reply to: