summary refs log tree commit diff
path: root/modules/misc/crashdump.nix
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-07-18 21:50:18 +0200
committerLluís Batlle i Rossell <viric@viric.name>2012-07-18 21:50:18 +0200
commitf43033a3f764261781b065283150700ac2943fc3 (patch)
tree19381bd92b280d2157f62047e2de04825e71dd25 /modules/misc/crashdump.nix
parent4553a27a926c0eef241e0f081ccbb97e2310beeb (diff)
downloadnixpkgs-f43033a3f764261781b065283150700ac2943fc3.tar
nixpkgs-f43033a3f764261781b065283150700ac2943fc3.tar.gz
nixpkgs-f43033a3f764261781b065283150700ac2943fc3.tar.bz2
nixpkgs-f43033a3f764261781b065283150700ac2943fc3.tar.lz
nixpkgs-f43033a3f764261781b065283150700ac2943fc3.tar.xz
nixpkgs-f43033a3f764261781b065283150700ac2943fc3.tar.zst
nixpkgs-f43033a3f764261781b065283150700ac2943fc3.zip
crashdump: it required some kernel options for the nmi_watchdog to work.
Now it says at boot, for every core:
NMI watchdog: enabled, takes one hw-pmu counter.
Diffstat (limited to 'modules/misc/crashdump.nix')
-rw-r--r--modules/misc/crashdump.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/misc/crashdump.nix b/modules/misc/crashdump.nix
index 973abfd9327..98b2140a23d 100644
--- a/modules/misc/crashdump.nix
+++ b/modules/misc/crashdump.nix
@@ -54,7 +54,7 @@ in
       '';
       kernelParams = [
        "crashkernel=64M"
-       "nmi_watchdog=1"
+       "nmi_watchdog=panic"
       ];
       kernelPackages = mkOverride 50 (crashdump.kernelPackages // {
         kernel = crashdump.kernelPackages.kernel.override 
@@ -64,6 +64,8 @@ in
                 CRASH_DUMP y
                 DEBUG_INFO y
                 PROC_VMCORE y
+                LOCKUP_DETECTOR y
+                HARDLOCKUP_DETECTOR y
               '';
           });
       });