odin: Add temporary patch for Coral driver (gasket)
This commit is contained in:
parent
24bcb810c5
commit
b45a5bb689
2 changed files with 18 additions and 1 deletions
13
machines/odin/0001-fix-gasket.patch
Normal file
13
machines/odin/0001-fix-gasket.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/gasket_interrupt.c b/gasket_interrupt.c
|
||||||
|
index 531d94e..8dba182 100644
|
||||||
|
--- a/gasket_interrupt.c
|
||||||
|
+++ b/gasket_interrupt.c
|
||||||
|
@@ -158,7 +158,7 @@ gasket_handle_interrupt(struct gasket_interrupt_data *interrupt_data,
|
||||||
|
read_lock(&interrupt_data->eventfd_ctx_lock);
|
||||||
|
ctx = interrupt_data->eventfd_ctxs[interrupt_index];
|
||||||
|
if (ctx)
|
||||||
|
- eventfd_signal(ctx, 1);
|
||||||
|
+ eventfd_signal(ctx);
|
||||||
|
read_unlock(&interrupt_data->eventfd_ctx_lock);
|
||||||
|
|
||||||
|
++(interrupt_data->interrupt_counts[interrupt_index]);
|
|
@ -79,7 +79,11 @@
|
||||||
# From PVE: ro quiet intel_iommu=on i915.enable_gvt=1 cpufreq.default_governor=ondemand
|
# From PVE: ro quiet intel_iommu=on i915.enable_gvt=1 cpufreq.default_governor=ondemand
|
||||||
# kernelParams = [ "intel_iommu=on" "i915.enable_gvt=1" "cpufreq.default_governor=ondemand" ];
|
# kernelParams = [ "intel_iommu=on" "i915.enable_gvt=1" "cpufreq.default_governor=ondemand" ];
|
||||||
|
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ gasket ];
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
|
(gasket.overrideAttrs (prevAttrs: {
|
||||||
|
patches = (prevAttrs.patches or [ ]) ++ [ ./0001-fix-gasket.patch ];
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
"net.core.rmem_max" = 2500000;
|
"net.core.rmem_max" = 2500000;
|
||||||
|
|
Loading…
Reference in a new issue