1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00

microsoft-surface: upgrade kernel 6.1.6 to 6.1.18

This commit is contained in:
Ioannis Koutras 2023-03-26 20:20:39 +02:00
parent f38f9a4c9b
commit 39fb4bb20e
No known key found for this signature in database
GPG key ID: 73A9FF4371A05832
5 changed files with 43 additions and 22 deletions

View file

@ -7,7 +7,7 @@ in {
imports = [ imports = [
./linux-5.19.17 ./linux-5.19.17
./linux-6.0.17 ./linux-6.0.17
./linux-6.1.6 ./linux-6.1.18
]; ];
options.microsoft-surface.kernelVersion = mkOption { options.microsoft-surface.kernelVersion = mkOption {

View file

@ -8,7 +8,7 @@ let
cfg = config.microsoft-surface; cfg = config.microsoft-surface;
version = "6.1.6"; version = "6.1.18";
extraMeta.branch = "6.1"; extraMeta.branch = "6.1";
patchDir = repos.linux-surface + "/patches/${extraMeta.branch}"; patchDir = repos.linux-surface + "/patches/${extraMeta.branch}";
kernelPatches = pkgs.callPackage ./patches.nix { kernelPatches = pkgs.callPackage ./patches.nix {
@ -20,17 +20,17 @@ let
inherit version extraMeta kernelPatches; inherit version extraMeta kernelPatches;
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
sha256 = "sha256-Pk2OVh2lcDogWujXsr7WxcZPxCme68v9IEgeY7V9XuM="; sha256 = "sha256-hCrBXv8Ob7DBUP34P09qr2tMEjnc+MFOIidiDsCuFB4=";
}; };
}; };
in { in {
options.microsoft-surface.kernelVersion = mkOption { options.microsoft-surface.kernelVersion = mkOption {
type = types.enum [ "6.1.6" ]; type = types.enum [ "6.1.18" ];
}; };
config = mkIf (cfg.kernelVersion == "6.1.6") { config = mkIf (cfg.kernelVersion == "6.1.18") {
boot = { boot = {
inherit kernelPackages; inherit kernelPackages;
}; };

View file

@ -36,6 +36,11 @@
# #
SURFACE_HOTPLUG = module; SURFACE_HOTPLUG = module;
#
# Intel Touch Host Controller
#
HID_ITHC = module;
# #
# IPTS touchscreen # IPTS touchscreen
# #
@ -94,31 +99,47 @@
patch = patchDir + "/0004-ipts.patch"; patch = patchDir + "/0004-ipts.patch";
} }
{ {
name = "ms-surface/0005-surface-sam"; name = "ms-surface/0005-ithc";
patch = patchDir + "/0005-surface-sam.patch"; patch = patchDir + "/0005-ithc.patch";
} }
{ {
name = "ms-surface/0006-surface-sam-over-hid"; name = "ms-surface/0006-surface-sam";
patch = patchDir + "/0006-surface-sam-over-hid.patch"; patch = patchDir + "/0006-surface-sam.patch";
} }
{ {
name = "ms-surface/0007-surface-button"; name = "ms-surface/0007-surface-sam-over-hid";
patch = patchDir + "/0007-surface-button.patch"; patch = patchDir + "/0007-surface-sam-over-hid.patch";
} }
{ {
name = "ms-surface/0008-surface-typecover"; name = "ms-surface/0008-surface-button";
patch = patchDir + "/0008-surface-typecover.patch"; patch = patchDir + "/0008-surface-button.patch";
} }
{ {
name = "ms-surface/0009-cameras"; name = "ms-surface/0009-surface-typecover";
patch = patchDir + "/0009-cameras.patch"; patch = patchDir + "/0009-surface-typecover.patch";
} }
{ {
name = "ms-surface/0010-amd-gpio"; name = "ms-surface/0010-surface-shutdown";
patch = patchDir + "/0010-amd-gpio.patch"; patch = patchDir + "/0010-surface-shutdown.patch";
} }
{ {
name = "ms-surface/0011-rtc"; name = "ms-surface/0011-surface-gpe";
patch = patchDir + "/0011-rtc.patch"; patch = patchDir + "/0011-surface-gpe.patch";
}
{
name = "ms-surface/0012-cameras";
patch = patchDir + "/0012-cameras.patch";
}
{
name = "ms-surface/0013-amd-gpio";
patch = patchDir + "/0013-amd-gpio.patch";
}
{
name = "ms-surface/0014-rtc";
patch = patchDir + "/0014-rtc.patch";
}
{
name = "ms-surface/0015-intel-thread-director";
patch = patchDir + "/0015-intel-thread-director.patch";
} }
] ]

View file

@ -4,8 +4,8 @@
linux-surface = fetchFromGitHub { linux-surface = fetchFromGitHub {
owner = "linux-surface"; owner = "linux-surface";
repo = "linux-surface"; repo = "linux-surface";
rev = "91240ac43dfdfb3e68bbc604def84685a218fab9"; rev = "efe7ddadd4aad3d1a6531334fe086931ec8640a1";
sha256 = "sha256-Jf7tthFWj67Esjx+/ZwG7BYlN7zWS26e1TbsznNxE9Q="; sha256 = "sha256-WgJHLY4vU4lsZ6M0hOng8TMVRALxQeSwQM4QX6DzrbI=";
}; };
# This is the owner and repo for the pre-patched kernel from the "linux-surface" project: # This is the owner and repo for the pre-patched kernel from the "linux-surface" project:

View file

@ -17,7 +17,7 @@ in {
../../../common/cpu/intel/kaby-lake ../../../common/cpu/intel/kaby-lake
]; ];
microsoft-surface.kernelVersion = "6.1.6"; microsoft-surface.kernelVersion = "6.1.18";
boot.kernelParams = [ boot.kernelParams = [
"i915.enable_rc6=1" "i915.enable_rc6=1"