odin: Add temporary patch for Coral driver (gasket)

This commit is contained in:
Erwin Boskma 2024-03-20 19:59:50 +01:00
parent 24bcb810c5
commit b45a5bb689
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 18 additions and 1 deletions

View 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]);

View file

@ -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;