Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24.04: Linux 6.12 #343

Merged
merged 0 commits into from
Feb 18, 2025
Merged

24.04: Linux 6.12 #343

merged 0 commits into from
Feb 18, 2025

Conversation

mmstick
Copy link
Member

@mmstick mmstick commented Jan 20, 2025

Packaging for 6.12.10

@mmstick mmstick marked this pull request as ready for review January 21, 2025 13:21
@mmstick
Copy link
Member Author

mmstick commented Jan 21, 2025

  • Verified that fullscreen video playback works on amdgpu in COSMIC
  • 4K 144 Hz also works on amdgpu in COSMIC
  • Fixed cosmic-greeter issue where multiple displays caused the greeter to hang on startup
  • The zfs-dkms 2.3.0 update is compatible with this kernel

@leviport
Copy link
Member

I ran into a bunch of DKMS errors when I tried installing this:

Setting up linux-headers-6.12.10-76061203-generic (6.12.10-76061203.202412060638~1737460284~24.04~8417cb5) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.12.10-76061203-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.12.10-76061203-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.12.10-76061203-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules...........(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/nvidia/565.77/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.12.10-76061203-generic -C /lib/modules/6.12.10-76061203-generic/build M=/var/lib/dkms/system76/1.0.17~1735251933~24.04~f01bffd/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/system76/1.0.17~1735251933~24.04~f01bffd/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.12.10-76061203-generic -C /lib/modules/6.12.10-76061203-generic/build M=/var/lib/dkms/system76_acpi/1.0.2~1719257749~24.04~7bae1af/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/system76_acpi/1.0.2~1719257749~24.04~7bae1af/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.12.10-76061203-generic -C /lib/modules/6.12.10-76061203-generic/build M=/var/lib/dkms/system76-io/1.0.4~1732138800~24.04~fc71f15/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/system76-io/1.0.4~1732138800~24.04~fc71f15/build/make.log for more information.
dkms autoinstall on 6.12.10-76061203-generic/x86_64 failed for nvidia(10) system76(10) system76_acpi(10) system76-io(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.12.10-76061203-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.12.10-76061203-generic (--configure):
 installed linux-headers-6.12.10-76061203-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.12.10-76061203-generic (= 6.12.10-76061203.202412060638~1737460284~24.04~8417cb5); however:
  Package linux-headers-6.12.10-76061203-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 6.12.10-76061203.202412060638~1737460284~24.04~8417cb5); however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-system76:
 linux-system76 depends on linux-generic (= 6.12.10-76061203.202412060638~1737460284~24.04~8417cb5); however:
  Package linux-generic is not configured yet.
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                No apport report written because MaxReports has already been reached
                                                                                    No apport report written because MaxReports has already been reached
                                                                                                                                                        No apport report written because MaxReports has already been reached

                    dpkg: error processing package linux-system76 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of system76-driver:
 system76-driver depends on linux-system76; however:
  Package linux-system76 is not configured yet.

dpkg: error processing package system76-driver (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of system76-driver-nvidia:
 system76-driver-nvidia depends on system76-driver (>= 20.04.108~1737665109~24.04~175bf70); however:
  Package system76-driver is not configured yet.

dpkg: error processing package system76-driver-nvidia (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-6.12.10-76061203-generic (6.12.10-76061203.202412060638~1737460284~24.04~8417cb5) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.12.10-76061203-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.12.10-76061203-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.12.10-76061203-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules...........(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/nvidia/565.77/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.12.10-76061203-generic -C /lib/modules/6.12.10-76061203-generic/build M=/var/lib/dkms/system76/1.0.17~1735251933~24.04~f01bffd/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/system76/1.0.17~1735251933~24.04~f01bffd/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.12.10-76061203-generic -C /lib/modules/6.12.10-76061203-generic/build M=/var/lib/dkms/system76_acpi/1.0.2~1719257749~24.04~7bae1af/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/system76_acpi/1.0.2~1719257749~24.04~7bae1af/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.12.10-76061203-generic -C /lib/modules/6.12.10-76061203-generic/build M=/var/lib/dkms/system76-io/1.0.4~1732138800~24.04~fc71f15/build...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/system76-io/1.0.4~1732138800~24.04~fc71f15/build/make.log for more information.
dkms autoinstall on 6.12.10-76061203-generic/x86_64 failed for nvidia(10) system76(10) system76_acpi(10) system76-io(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.12.10-76061203-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.12.10-76061203-generic (--configure):
 installed linux-image-6.12.10-76061203-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 linux-headers-6.12.10-76061203-generic
 linux-headers-generic
 linux-generic
 linux-system76
 system76-driver
 system76-driver-nvidia
 linux-image-6.12.10-76061203-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

@mmstick
Copy link
Member Author

mmstick commented Jan 24, 2025

Binary update-secureboot-policy not found, modules won't be signed

You can find this in the shim-signed package, though this package isn't necessary unless secureboot is enabled. I don't have secureboot enabled, so all of these dkms packages built without the package installed.

If that's not the issue then maybe it's in the mentioned dkms logs

@leviport
Copy link
Member

Secure boot definitely isn't enabled on this system:
IMG_20250124_102214_453

I'll try another machine. Maybe something is weird with my install.

@leviport
Copy link
Member

I got the same result on darp10-b. I'm not sure that secure boot is the issue.

@mmstick
Copy link
Member Author

mmstick commented Jan 24, 2025

What's the contents of the dkms build logs for those failed drivers?

@leviport
Copy link
Member

Looks like it's mad about the GCC version

warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0
  You are using:           
  CC [M]  /var/lib/dkms/system76_acpi/1.0.2~1719257749~24.04~7bae1af/build/system76_acpi.o
/bin/sh: 1: gcc-14: not found

system76-acpi-make.log
system76-io-make.log
system76-make.log

@mmstick
Copy link
Member Author

mmstick commented Jan 24, 2025

Adding it to our desktop package then. We are doing similar for gcc-12 in 22.04

@leviport
Copy link
Member

Looks like that fixed installation! We will continue our testing.

@leviport
Copy link
Member

A new DKMS bug has emerged. It looks like having fwts installed makes the kernel install fail. The output from this DKMS log:

DKMS make.log for fwts-efi-runtime-dkms-24.01.00 for kernel 6.12.10-76061203-generic (x86_64)
Mon Jan 27 02:31:25 PM MST 2025
make -C /lib/modules/6.12.10-76061203-generic/build M=`pwd` modules
make[1]: Entering directory '/usr/src/linux-headers-6.12.10-76061203-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0
  You are using:           gcc-14 (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0
  CC [M]  /var/lib/dkms/fwts-efi-runtime-dkms/24.01.00/build/efi_runtime.o
/var/lib/dkms/fwts-efi-runtime-dkms/24.01.00/build/efi_runtime.c:766:27: error: ‘no_llseek’ undeclared here (not in a function); did you mean ‘noop_llseek’?
  766 |         .llseek         = no_llseek,
      |                           ^~~~~~~~~
      |                           noop_llseek
make[3]: *** [scripts/Makefile.build:229: /var/lib/dkms/fwts-efi-runtime-dkms/24.01.00/build/efi_runtime.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.12.10-76061203-generic/Makefile:1943: /var/lib/dkms/fwts-efi-runtime-dkms/24.01.00/build] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.12.10-76061203-generic'
make: *** [Makefile:23: all] Error 2

The GCC version warning is pretty weird since the versions match, but the second error seems like the thing that's breaking this DKMS install.

@mmstick
Copy link
Member Author

mmstick commented Jan 28, 2025

no_llseek was hard dropped in Linux 6.12, and redundant on 6.0+, so dkms packages relying on it will need to be updated to remove it on Linux 6.0+ kernels. There's a recommendation to add this, so I'll look at backporting the fix to fwts

#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
 	.llseek = no_llseek,
#endif

@mmstick
Copy link
Member Author

mmstick commented Jan 28, 2025

fwts is building with the fwts branch at https://github.com/pop-os/fwts

@jacobktm
Copy link

I installed this kernel in Pop 24.04 on a pang14 and it installed fine, but I've been seeing a spontaneous freeze that started out sporadic but after several reboots it started happening within a few seconds of the system booting on every boot. When it freezes the light in the caps lock key starts flashing and the system becomes completely unresponsive. It wouldn't even reboot when I tried to use SysRQ commands. Additionally I don't see anything in journalctl related to the freeze. When I reverted the kernel back to 6.9.3 this freeze stopped happening.

@jacobgkau
Copy link
Member

ZFS is working with this branch and pop-os/zfs-linux#28.

@garrettjwilke
Copy link

i'm not sure if this is an issue with the 6.12 kernel, or the new nvidia 570 driver but i'm cross posting here for reference.
pop-os/nvidia-graphics-drivers#227

if you install the nvidia 570 driver and then upgrade to this 6.12 kernel, the nvidia drivers do not load.
if you reverse the process and upgrade to the 6.12 kernel first and then upgrade to the nvidia 570 driver afterwards, then everything works as expected.

@garrettjwilke
Copy link

Running VM's on Virtualbox with 6.12 Host

System: any Intel CPU system

attempting to run a VM in virtualbox using 6.12 gives the following error:

VirtualBox can't operate in VMX root mode.

removing the kvm_intel module allows the VM to run:

sudo modprobe -r kvm_intel

unsure if this is something we need to adjust or not

@jacobktm
Copy link

I get these errors when I try to install this kernel on Ubuntu 24.04:

system76@system76-Thelio-Mega:~$ sudo apt install linux-headers-6.12.10-76061203-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-6.12.10-76061203-generic is already the newest version (6.12.10-76061203.202412060638~1738772288~24.04~74e02d0).
linux-headers-6.12.10-76061203-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-6.12.10-76061203-generic (6.12.10-76061203.202412060638~1738772288~24.04~74e02d0) ...
Setting up linux-headers-6.12.10-76061203-generic (6.12.10-76061203.202412060638~1738772288~24.04~74e02d0) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.12.10-76061203-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
KVER=6.12.10-76061203-generic make...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/fwts-efi-runtime-dkms/24.01.00/build/make.log for more information.
dkms autoinstall on 6.12.10-76061203-generic/x86_64 succeeded for nvidia system76 system76_acpi system76-io
dkms autoinstall on 6.12.10-76061203-generic/x86_64 failed for fwts-efi-runtime-dkms(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.12.10-76061203-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.12.10-76061203-generic (--configure):
 installed linux-headers-6.12.10-76061203-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.12.10-76061203-generic (= 6.12.10-76061203.202412060638~1738772288~24.04~74e02d0); however:
  Package linux-headers-6.12.10-76061203-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 6.12.10-76061203.202412060638~1738772288~24.04~74e02d0); however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-system76:
 linux-system76 depends on linux-generic (= 6.12.10-76061203.202412060638~1738772288~24.04~74e02d0); however:
  Package linux-generic is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                                                                                                    No apport report written because Max
Reports is reached already

                          dpkg: error processing package linux-system76 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-6.12.10-76061203-generic (6.12.10-76061203.202412060638~1738772288~24.04~74e02d0) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.12.10-76061203-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
KVER=6.12.10-76061203-generic make...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.10-76061203-generic is not supported
Error! Bad return status for module build on kernel: 6.12.10-76061203-generic (x86_64)
Consult /var/lib/dkms/fwts-efi-runtime-dkms/24.01.00/build/make.log for more information.
dkms autoinstall on 6.12.10-76061203-generic/x86_64 succeeded for nvidia system76 system76_acpi system76-io
dkms autoinstall on 6.12.10-76061203-generic/x86_64 failed for fwts-efi-runtime-dkms(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.12.10-76061203-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.12.10-76061203-generic (--configure):
 installed linux-image-6.12.10-76061203-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-headers-6.12.10-76061203-generic
 linux-headers-generic
 linux-generic
 linux-system76
 linux-image-6.12.10-76061203-generic
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

@jacobktm
Copy link

jacobktm commented Feb 14, 2025

I just realized I have fwts installed from Ubuntu packaging, I think that may be my issue

Edit: This is what it was, once I installed fwts from staging everything installed correctly.

@garrettjwilke
Copy link

virtualbox working out of box on clean install of pop 24.04 and 6.12

@leviport
Copy link
Member

Two more packages that have DKMS issues:

  1. nvidia-driver-470
    Since legacy NVIDIA cards can't really be used with COSMIC DE anyway, I don't think this is a huge concern.
    Pushing it to Ubuntu 24.04 might be a concern, but there are other legacy NVIDIA options in the Ubuntu repos that might be used as workarounds.

  2. bcmwl-kernel-source

If we're alright with these being broken (potentially getting fixed later), then this kernel otherwise passes QA testing and I can approve it.

@leviport leviport requested review from a team February 17, 2025 21:32
@mmstick
Copy link
Member Author

mmstick commented Feb 18, 2025

Backported the latest version of broadcom-sta-dkms with 6.12 fix from debian: https://github.com/pop-os/bcmwl/tree/bcmwl_noble.

Copy link
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bcmwl install is working now.

NVIDIA 470 might be updated by NVIDIA at some point. When that happens, we can update it.

@mmstick mmstick merged commit 5f7a3ab into master Feb 18, 2025
6 checks passed
@jackpot51 jackpot51 deleted the linux-6.12_noble branch February 21, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants