Add cursed patch for spike
This commit is contained in:
parent
6147c2bcf2
commit
71fc56e415
13
externals/patches/increase_max_topo.patch
vendored
Normal file
13
externals/patches/increase_max_topo.patch
vendored
Normal file
|
@ -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 <linux/interrupt.h>
|
||||||
|
#include <linux/idr.h>
|
||||||
|
|
||||||
|
-#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.
|
|
@ -3,6 +3,10 @@
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
kernelPatches = [ {
|
||||||
|
name = "increase_max_topo";
|
||||||
|
patch = ../../externals/patches/increase_max_topo.patch;
|
||||||
|
} ];
|
||||||
kernel.sysctl."vm.swappiness" = 5;
|
kernel.sysctl."vm.swappiness" = 5;
|
||||||
cleanTmpDir = true;
|
cleanTmpDir = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue