This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

machines.ignavia: patch kernel to fix MT7925 BT init

Upstream 634a4408c061 ("Bluetooth: btmtk: validate WMT event SKB
length before struct access"), backported into 7.0.7, rejects the
shorter WMT FUNC_CTRL events MT7925 firmware actually sends, leaving
hci0 stuck DOWN with "Failed to send wmt func ctrl (-22)".

Apply upstream e3ac0d9f1a20 ("Bluetooth: btmtk: accept too short
WMT FUNC_CTRL events") on top of linux_latest until the fix is
backported into linux-7.0.y stable. Remove this override once nixpkgs
ships a kernel that already contains the fix.

Assisted-by: Claude Code (claude-opus-4-7[1m])

+18 -2
+18 -2
machines/ignavia/physical.nix
··· 39 39 hardware.graphics.enable = true; 40 40 hardware.acpilight.enable = true; 41 41 42 - # Use latest kernel (7.0) for better Strix Point GPU support 43 - boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; 42 + # Use latest kernel (7.0) for better Strix Point GPU support. 43 + # Patch in upstream e3ac0d9f1a20 to fix MT7925 Bluetooth init regression 44 + # introduced by 634a4408c061 ("validate WMT event SKB length") in 7.0.7+. 45 + boot.kernelPackages = lib.mkDefault ( 46 + pkgs.linuxPackagesFor ( 47 + pkgs.linux_latest.override { 48 + kernelPatches = pkgs.linux_latest.kernelPatches ++ [ 49 + { 50 + name = "btmtk-accept-too-short-wmt-funcc"; 51 + patch = pkgs.fetchpatch { 52 + url = "https://github.com/torvalds/linux/commit/e3ac0d9f1a205f33a43fba3b79ef74d2f604c78b.patch"; 53 + hash = "sha256-ByGMwBkEDv0yf9DfJjwILzmPBJBTcb0art8/lscbwUI="; 54 + }; 55 + } 56 + ]; 57 + } 58 + ) 59 + ); 44 60 45 61 # Disable MES (Micro Engine Scheduler) - known to cause GPU ring hangs on RDNA3+ 46 62 # The hang manifests as: screen goes off 1-2s, comes back but frozen