From 6e486f2812e9abae4d05cf58d698e21cb7deb2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 28 Sep 2024 17:55:50 +0200 Subject: [PATCH] common/gpu/intel/lunar-lake: enable xe driver Starting with lunarlake this driver no longer needs to force probe: https://github.com/torvalds/linux/blob/ad46e8f95e931e113cb98253daf6d443ac244cde/drivers/gpu/drm/xe/xe_pci.c#L339 Co-authored-by: Gavin John --- common/cpu/intel/lunar-lake/cpu-only.nix | 5 +++++ common/cpu/intel/lunar-lake/default.nix | 6 ++++++ common/gpu/intel/lunar-lake/default.nix | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 common/cpu/intel/lunar-lake/cpu-only.nix create mode 100644 common/cpu/intel/lunar-lake/default.nix create mode 100644 common/gpu/intel/lunar-lake/default.nix diff --git a/common/cpu/intel/lunar-lake/cpu-only.nix b/common/cpu/intel/lunar-lake/cpu-only.nix new file mode 100644 index 0000000..8289261 --- /dev/null +++ b/common/cpu/intel/lunar-lake/cpu-only.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ../cpu-only.nix + ]; +} diff --git a/common/cpu/intel/lunar-lake/default.nix b/common/cpu/intel/lunar-lake/default.nix new file mode 100644 index 0000000..0f92ca5 --- /dev/null +++ b/common/cpu/intel/lunar-lake/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./cpu-only.nix + ../../../gpu/intel/lunar-lake + ]; +} diff --git a/common/gpu/intel/lunar-lake/default.nix b/common/gpu/intel/lunar-lake/default.nix new file mode 100644 index 0000000..b232719 --- /dev/null +++ b/common/gpu/intel/lunar-lake/default.nix @@ -0,0 +1,8 @@ +{ config, lib, ... }: +{ + imports = [ ../. ]; + hardware.intelgpu = { + driver = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") "xe"; + vaapiDriver = "intel-media-driver"; + }; +}