Skip to content

Commit

Permalink
Replace patch with upstream version
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfullmer committed Jan 25, 2024
1 parent fd40526 commit db40afc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
26 changes: 0 additions & 26 deletions kernel/0010-tegra-gpc-dma-mem-leak.patch

This file was deleted.

12 changes: 9 additions & 3 deletions kernel/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ pkgs
, lib
, fetchFromGitHub
, fetchpatch
, l4t-xusb-firmware
, realtime ? false
, kernelPatches ? [ ]
Expand Down Expand Up @@ -91,11 +92,16 @@ pkgsAarch64.buildLinux (args // {

# Fix gcc13 compilation failure
{ patch = ./0009-bonding-gcc13-synchronize-bond_-a-t-lb_xmit-types.patch; }

# Fixes a memory leak by kernel tegra serial driver
# This manifested via slab unreclaimable growing unbounded via repeated kmalloc-256 calls
# Patch is applied on tegra-gpc-dma.c
{ patch = ./0010-tegra-gpc-dma-mem-leak.patch; }
# This patch is present in 35.4.1 and should be removed when we update
{
patch = fetchpatch {
url = "https://github.com/OE4T/linux-tegra-5.10/commit/d5b90d6b9365250adb73b2fe5b52a5228df3b1d9.patch";
sha256 = "sha256-a5LL4avaxQ3WYr9fRPMCfHrl4iAp1yhH95R+iI/PwYc=";
};
}
] ++ kernelPatches;

structuredExtraConfig = with lib.kernel; {
Expand Down

0 comments on commit db40afc

Please sign in to comment.