diff --git a/externals/patches/increase_max_topo.patch b/externals/patches/increase_max_topo.patch new file mode 100644 index 0000000..f0617bb --- /dev/null +++ b/externals/patches/increase_max_topo.patch @@ -0,0 +1,13 @@ +diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h +index 3dbb42c637c1..8d45c90cee8a 100644 +--- a/include/linux/usb/hcd.h ++++ b/include/linux/usb/hcd.h +@@ -26,7 +26,7 @@ + #include + #include + +-#define MAX_TOPO_LEVEL 6 ++#define MAX_TOPO_LEVEL 1022 + + /* This file contains declarations of usbcore internals that are mostly + * used or exposed by Host Controller Drivers. diff --git a/system/spike/boot-config.nix b/system/spike/boot-config.nix index 08c4c2e..67225fa 100644 --- a/system/spike/boot-config.nix +++ b/system/spike/boot-config.nix @@ -3,6 +3,10 @@ { boot = { kernelPackages = pkgs.linuxPackages_latest; + kernelPatches = [ { + name = "increase_max_topo"; + patch = ../../externals/patches/increase_max_topo.patch; + } ]; kernel.sysctl."vm.swappiness" = 5; cleanTmpDir = true;