aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SOURCES/0001-amd-hdr.patch4
-rw-r--r--SOURCES/asus-linux.patch4
-rw-r--r--SOURCES/kernel-aarch64-16k-debug-fedora.config3
-rw-r--r--SOURCES/kernel-aarch64-16k-fedora.config3
-rw-r--r--SOURCES/kernel-aarch64-debug-fedora.config3
-rw-r--r--SOURCES/kernel-aarch64-fedora.config3
-rw-r--r--SOURCES/kernel-ppc64le-debug-fedora.config3
-rw-r--r--SOURCES/kernel-ppc64le-fedora.config3
-rw-r--r--SOURCES/kernel-s390x-debug-fedora.config3
-rw-r--r--SOURCES/kernel-s390x-fedora.config3
-rw-r--r--SOURCES/kernel-x86_64-debug-fedora.config5
-rw-r--r--SOURCES/kernel-x86_64-fedora.config5
-rw-r--r--SOURCES/lenovo-legion-laptop.patch308
-rw-r--r--SOURCES/patch-6.6-redhat.patch14
-rw-r--r--SPECS/kernel.spec17
15 files changed, 242 insertions, 139 deletions
diff --git a/SOURCES/0001-amd-hdr.patch b/SOURCES/0001-amd-hdr.patch
index b5e6391..14ab067 100644
--- a/SOURCES/0001-amd-hdr.patch
+++ b/SOURCES/0001-amd-hdr.patch
@@ -2137,7 +2137,7 @@ diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c b/drivers/g
index 86a2d449cf07..99bdf9758323 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
-@@ -191,6 +191,9 @@
+@@ -104,6 +104,9 @@ amdgpu_dm_create_color_properties(struct amdgpu_device *adev)
{
struct drm_property *prop;
@@ -2147,6 +2147,6 @@ index 86a2d449cf07..99bdf9758323 100644
prop = drm_property_create(adev_to_drm(adev),
DRM_MODE_PROP_BLOB,
"VALVE1_PLANE_DEGAMMA_LUT", 0);
-
--
2.43.0
+
diff --git a/SOURCES/asus-linux.patch b/SOURCES/asus-linux.patch
index a2bcfcc..d57ace0 100644
--- a/SOURCES/asus-linux.patch
+++ b/SOURCES/asus-linux.patch
@@ -320,8 +320,8 @@ index f54178d6f780..0b13be703856 100644
fail_rfkill:
asus_wmi_led_exit(asus);
fail_leds:
-@@ -4480,6 +4612,7 @@ static int asus_wmi_remove(struct platform_device *device)
- asus = platform_get_drvdata(device);
+@@ -4481,6 +4481,7 @@
+ i8042_remove_filter(asus->driver->quirks->i8042_filter);
wmi_remove_notify_handler(asus->driver->event_guid);
asus_wmi_backlight_exit(asus);
+ asus_screenpad_exit(asus);
diff --git a/SOURCES/kernel-aarch64-16k-debug-fedora.config b/SOURCES/kernel-aarch64-16k-debug-fedora.config
index eef9133..3c947cf 100644
--- a/SOURCES/kernel-aarch64-16k-debug-fedora.config
+++ b/SOURCES/kernel-aarch64-16k-debug-fedora.config
@@ -1853,7 +1853,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
CONFIG_DRBD_FAULT_INJECTION=y
-# CONFIG_DRM_ACCEL is not set
+CONFIG_DRM_ACCEL_QAIC=m
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-aarch64-16k-fedora.config b/SOURCES/kernel-aarch64-16k-fedora.config
index 0bab739..1177adf 100644
--- a/SOURCES/kernel-aarch64-16k-fedora.config
+++ b/SOURCES/kernel-aarch64-16k-fedora.config
@@ -1844,7 +1844,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
# CONFIG_DRBD_FAULT_INJECTION is not set
-# CONFIG_DRM_ACCEL is not set
+CONFIG_DRM_ACCEL_QAIC=m
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-aarch64-debug-fedora.config b/SOURCES/kernel-aarch64-debug-fedora.config
index 8b9a6d7..fa1b08e 100644
--- a/SOURCES/kernel-aarch64-debug-fedora.config
+++ b/SOURCES/kernel-aarch64-debug-fedora.config
@@ -1853,7 +1853,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
CONFIG_DRBD_FAULT_INJECTION=y
-# CONFIG_DRM_ACCEL is not set
+CONFIG_DRM_ACCEL_QAIC=m
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-aarch64-fedora.config b/SOURCES/kernel-aarch64-fedora.config
index 74ceb57..7b9dad2 100644
--- a/SOURCES/kernel-aarch64-fedora.config
+++ b/SOURCES/kernel-aarch64-fedora.config
@@ -1844,7 +1844,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
# CONFIG_DRBD_FAULT_INJECTION is not set
-# CONFIG_DRM_ACCEL is not set
+CONFIG_DRM_ACCEL_QAIC=m
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-ppc64le-debug-fedora.config b/SOURCES/kernel-ppc64le-debug-fedora.config
index f1b278a..919cfbe 100644
--- a/SOURCES/kernel-ppc64le-debug-fedora.config
+++ b/SOURCES/kernel-ppc64le-debug-fedora.config
@@ -1422,7 +1422,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
CONFIG_DRBD_FAULT_INJECTION=y
-# CONFIG_DRM_ACCEL is not set
+# CONFIG_DRM_ACCEL_QAIC is not set
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-ppc64le-fedora.config b/SOURCES/kernel-ppc64le-fedora.config
index 7c6e002..c01d035 100644
--- a/SOURCES/kernel-ppc64le-fedora.config
+++ b/SOURCES/kernel-ppc64le-fedora.config
@@ -1411,7 +1411,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
# CONFIG_DRBD_FAULT_INJECTION is not set
-# CONFIG_DRM_ACCEL is not set
+# CONFIG_DRM_ACCEL_QAIC is not set
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-s390x-debug-fedora.config b/SOURCES/kernel-s390x-debug-fedora.config
index cb9518a..ca3d894 100644
--- a/SOURCES/kernel-s390x-debug-fedora.config
+++ b/SOURCES/kernel-s390x-debug-fedora.config
@@ -1427,7 +1427,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
CONFIG_DRBD_FAULT_INJECTION=y
-# CONFIG_DRM_ACCEL is not set
+# CONFIG_DRM_ACCEL_QAIC is not set
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-s390x-fedora.config b/SOURCES/kernel-s390x-fedora.config
index 8de7345..c73f851 100644
--- a/SOURCES/kernel-s390x-fedora.config
+++ b/SOURCES/kernel-s390x-fedora.config
@@ -1416,7 +1416,8 @@ CONFIG_DPOT_DAC=m
# CONFIG_DPS310 is not set
CONFIG_DRAGONRISE_FF=y
# CONFIG_DRBD_FAULT_INJECTION is not set
-# CONFIG_DRM_ACCEL is not set
+# CONFIG_DRM_ACCEL_QAIC is not set
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-x86_64-debug-fedora.config b/SOURCES/kernel-x86_64-debug-fedora.config
index 958ea00..515d0ae 100644
--- a/SOURCES/kernel-x86_64-debug-fedora.config
+++ b/SOURCES/kernel-x86_64-debug-fedora.config
@@ -1554,7 +1554,10 @@ CONFIG_DPTF_PCH_FIVR=m
CONFIG_DPTF_POWER=m
CONFIG_DRAGONRISE_FF=y
CONFIG_DRBD_FAULT_INJECTION=y
-# CONFIG_DRM_ACCEL is not set
+CONFIG_DRM_ACCEL_HABANALABS=m
+CONFIG_DRM_ACCEL_IVPU=m
+CONFIG_DRM_ACCEL_QAIC=m
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/kernel-x86_64-fedora.config b/SOURCES/kernel-x86_64-fedora.config
index d6d2dd0..f892ec5 100644
--- a/SOURCES/kernel-x86_64-fedora.config
+++ b/SOURCES/kernel-x86_64-fedora.config
@@ -1543,7 +1543,10 @@ CONFIG_DPTF_PCH_FIVR=m
CONFIG_DPTF_POWER=m
CONFIG_DRAGONRISE_FF=y
# CONFIG_DRBD_FAULT_INJECTION is not set
-# CONFIG_DRM_ACCEL is not set
+CONFIG_DRM_ACCEL_HABANALABS=m
+CONFIG_DRM_ACCEL_IVPU=m
+CONFIG_DRM_ACCEL_QAIC=m
+CONFIG_DRM_ACCEL=y
CONFIG_DRM_AMD_ACP=y
CONFIG_DRM_AMD_DC_HDCP=y
CONFIG_DRM_AMD_DC_SI=y
diff --git a/SOURCES/lenovo-legion-laptop.patch b/SOURCES/lenovo-legion-laptop.patch
index bfc51fb..8c10484 100644
--- a/SOURCES/lenovo-legion-laptop.patch
+++ b/SOURCES/lenovo-legion-laptop.patch
@@ -1,14 +1,14 @@
-From cc20a3c74424b7fd78a650803bc06b822e8b1e56 Mon Sep 17 00:00:00 2001
+From 26357c5255f687bc2c1b24f36daabf0e2c93c1ee Mon Sep 17 00:00:00 2001
From: John Martens <john.martens4@proton.me>
-Date: Wed, 30 Aug 2023 15:42:09 +0000
-Subject: [PATCH] Add legion-laptop v0.0.7
+Date: Mon, 4 Dec 2023 19:30:07 +0000
+Subject: [PATCH] Add legion-laptop v0.0.9
Add extra support for Lenovo Legion laptops.
---
drivers/platform/x86/Kconfig | 10 +
drivers/platform/x86/Makefile | 1 +
- drivers/platform/x86/legion-laptop.c | 5858 ++++++++++++++++++++++++++
- 3 files changed, 5869 insertions(+)
+ drivers/platform/x86/legion-laptop.c | 5942 ++++++++++++++++++++++++++
+ 3 files changed, 5953 insertions(+)
create mode 100644 drivers/platform/x86/legion-laptop.c
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
@@ -46,10 +46,10 @@ index 52dfdf574..5f32dd9df 100644
# Intel
diff --git a/drivers/platform/x86/legion-laptop.c b/drivers/platform/x86/legion-laptop.c
new file mode 100644
-index 000000000..727510507
+index 000000000..086045dec
--- /dev/null
+++ b/drivers/platform/x86/legion-laptop.c
-@@ -0,0 +1,5858 @@
+@@ -0,0 +1,5942 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * legion-laptop.c - Extra Lenovo Legion laptop support, in
@@ -64,14 +64,14 @@ index 000000000..727510507
+ * data doesn't match the model AND FIRMWARE.
+ *
+ * Support for other hardware of this model is already partially
-+ * provided by the module ideapd-laptop.
++ * provided by the module ideapad-laptop.
+ *
+ * The development page for this driver is located at
+ * https://github.com/johnfanv2/LenovoLegionLinux
+ *
+ * This driver exports the files:
+ * - /sys/kernel/debug/legion/fancurve (ro)
-+ * The fan curve in the form stored in the firmware in an
++ * The fan curve stored in the firmware in the form of a
+ * human readable table.
+ *
+ * - /sys/module/legion_laptop/drivers/platform\:legion/PNP0C09\:00/powermode (rw)
@@ -176,13 +176,13 @@ index 000000000..727510507
+ * to part of it (first 0xFF bytes?)
+ *
+ * In later models the firmware directly exposes ACPI methods to
-+ * set the fan curve direclty, without writing to EC RAM. This
++ * set the fan curve directly, without writing to EC RAM. This
+ * is done inside the ACPI method.
+ */
+
+/**
-+ * Offsets for interseting values inside the EC RAM (0 = start of
-+ * EC RAM. These might change depending on the software inside of
++ * Offsets for interesting values inside the EC RAM (0 = start of
++ * EC RAM) These might change depending on the software inside of
+ * the EC, which can be updated by a BIOS update from Lenovo.
+ */
+// TODO: same order as in initialization
@@ -192,7 +192,7 @@ index 000000000..727510507
+ // General Control (GCTRL)
+ // (see EC Interface Registers and 6.2 Plug and Play Configuration (PNPCFG)) in datasheet
+ // note: these are in two places saved
-+ // in EC Interface Registers and in super io configuraion registers
++ // in EC Interface Registers and in super io configuration registers
+ // Chip ID
+ u16 ECHIPID1;
+ u16 ECHIPID2;
@@ -225,9 +225,9 @@ index 000000000..727510507
+ u16 EXT_POWERMODE;
+ u16 EXT_MINIFANCURVE_ON_COOL;
+ // values
-+ // 0x04: enable mini fan curve if very long on cool level
++ // 0x04: enable mini fan curve if left for too long on cool level
+ // - this might be due to potential temp failure
-+ // - or just because really so cool
++ // - or just because of really cool temps
+ // 0xA0: disable it
+ u16 EXT_LOCKFANCONTROLLER;
+ u16 EXT_MAXIMUMFANSPEED;
@@ -565,13 +565,70 @@ index 000000000..727510507
+ .ramio_size = 0x600
+};
+
++static const struct model_config model_m0cn = {
++ .registers = &ec_register_offsets_v0,
++ .check_embedded_controller_id = true,
++ .embedded_controller_id = 0x5507,
++ .memoryio_physical_ec_start = 0xC400,
++ .memoryio_size = 0x300,
++ .has_minifancurve = true,
++ .has_custom_powermode = true,
++ .access_method_powermode = ACCESS_METHOD_WMI,
++ .access_method_keyboard = ACCESS_METHOD_WMI,
++ .access_method_fanspeed = ACCESS_METHOD_WMI3,
++ .access_method_temperature = ACCESS_METHOD_WMI3,
++ .access_method_fancurve = ACCESS_METHOD_WMI3,
++ .access_method_fanfullspeed = ACCESS_METHOD_WMI,
++ .acpi_check_dev = false,
++ .ramio_physical_start = 0xFE0B0400,
++ .ramio_size = 0x600
++};
++
++static const struct model_config model_m1cn = {
++ .registers = &ec_register_offsets_v0,
++ .check_embedded_controller_id = true,
++ .embedded_controller_id = 0x5507,
++ .memoryio_physical_ec_start = 0xC400,
++ .memoryio_size = 0x300,
++ .has_minifancurve = true,
++ .has_custom_powermode = true,
++ .access_method_powermode = ACCESS_METHOD_WMI,
++ .access_method_keyboard = ACCESS_METHOD_WMI,
++ .access_method_fanspeed = ACCESS_METHOD_WMI3,
++ .access_method_temperature = ACCESS_METHOD_WMI3,
++ .access_method_fancurve = ACCESS_METHOD_WMI3,
++ .access_method_fanfullspeed = ACCESS_METHOD_WMI,
++ .acpi_check_dev = false,
++ .ramio_physical_start = 0xFE0B0400,
++ .ramio_size = 0x600
++};
++
+static const struct model_config model_m2cn = {
+ .registers = &ec_register_offsets_v0,
+ .check_embedded_controller_id = true,
+ .embedded_controller_id = 0x8227,
+ .memoryio_physical_ec_start = 0xC400,
+ .memoryio_size = 0x300,
-+ .has_minifancurve = false,
++ .has_minifancurve = true,
++ .has_custom_powermode = true,
++ .access_method_powermode = ACCESS_METHOD_WMI,
++ .access_method_keyboard = ACCESS_METHOD_WMI,
++ .access_method_fanspeed = ACCESS_METHOD_WMI3,
++ .access_method_temperature = ACCESS_METHOD_WMI3,
++ .access_method_fancurve = ACCESS_METHOD_WMI3,
++ .access_method_fanfullspeed = ACCESS_METHOD_WMI,
++ .acpi_check_dev = false,
++ .ramio_physical_start = 0xFE0B0400,
++ .ramio_size = 0x600
++};
++
++static const struct model_config model_m6cn = {
++ .registers = &ec_register_offsets_v0,
++ .check_embedded_controller_id = true,
++ .embedded_controller_id = 0x8227,
++ .memoryio_physical_ec_start = 0xC400,
++ .memoryio_size = 0x300,
++ .has_minifancurve = true,
+ .has_custom_powermode = true,
+ .access_method_powermode = ACCESS_METHOD_WMI,
+ .access_method_keyboard = ACCESS_METHOD_WMI,
@@ -868,9 +925,9 @@ index 000000000..727510507
+
+static const struct dmi_system_id optimistic_allowlist[] = {
+ {
-+ // modelyear: 2021
-+ // generation: 6
-+ // name: Legion 5, Legion 5 pro, Legion 7
++ // Release year: 2021
++ // Generation: 6
++ // Name: Legion 5, Legion 5 pro, Legion 7
+ // Family: Legion 5 15ACH6H, ...
+ .ident = "GKCN",
+ .matches = {
@@ -880,7 +937,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2020
++ // Release year: 2020
+ .ident = "EUCN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -889,7 +946,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_eucn
+ },
+ {
-+ // modelyear: 2020
++ // Release year: 2020
+ .ident = "EFCN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -898,7 +955,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2020
++ // Release year: 2020
+ .ident = "FSCN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -907,7 +964,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2021
++ // Release year: 2021
+ .ident = "HHCN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -916,7 +973,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2022
++ // Release year: 2022
+ .ident = "H1CN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -925,7 +982,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2022
++ // Release year: 2022
+ .ident = "J2CN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -934,7 +991,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2022
++ // Release year: 2022
+ .ident = "JUCN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -943,7 +1000,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2022
++ // Release year: 2022
+ .ident = "KFCN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -952,7 +1009,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_kfcn
+ },
+ {
-+ // modelyear: 2021
++ // Release year: 2021
+ .ident = "HACN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -961,7 +1018,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_hacn
+ },
+ {
-+ // modelyear: 2021
++ // Release year: 2021
+ .ident = "G9CN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -970,7 +1027,7 @@ index 000000000..727510507
+ .driver_data = (void *)&model_v0
+ },
+ {
-+ // modelyear: 2022
++ // Release year: 2022
+ .ident = "K9CN",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -1123,6 +1180,24 @@ index 000000000..727510507
+ .driver_data = (void *)&model_j1cn
+ },
+ {
++ // e.g. Legion Slim 7 16IRH8 (2023) with RTX 4070
++ .ident = "M0CN",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_BIOS_VERSION, "M0CN"),
++ },
++ .driver_data = (void *)&model_m0cn
++ },
++ {
++ // e.g. Legion Slim 7 16IRH8 (2023) AMD Ryzen 7 7840HS with RTX 4060
++ .ident = "M1CN",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_BIOS_VERSION, "M1CN"),
++ },
++ .driver_data = (void *)&model_m1cn
++ },
++ {
+ // e.g. Legion Slim 5 16IRH8 (2023) with RTX 4070
+ .ident = "M2CN",
+ .matches = {
@@ -1132,6 +1207,15 @@ index 000000000..727510507
+ .driver_data = (void *)&model_m2cn
+ },
+ {
++ // e.g. Lenovo Yoga Slim 7 gen 8 (2023)
++ .ident = "M6CN",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_BIOS_VERSION, "M6CN"),
++ },
++ .driver_data = (void *)&model_m6cn
++ },
++ {
+ // e.g. Yoga Slim 7-14ARE05
+ .ident = "DMCN",
+ .matches = {
@@ -1278,7 +1362,7 @@ index 000000000..727510507
+{
+ acpi_status status;
+ struct acpi_buffer out_buffer = { ACPI_ALLOCATE_BUFFER, NULL };
-+ // seto to NULL call kfree on NULL if next function call fails
++ // set to NULL and call kfree on NULL if next function call fails
+ union acpi_object *out = NULL;
+ int error = 0;
+
@@ -1355,9 +1439,9 @@ index 000000000..727510507
+// GPU over clock
+#define WMI_METHOD_ID_ISSUPPORTGPUOC 4
+
-+//Fan speed
-+// only completely implemented only for some models here
-+// often implemted also in other class and other method
++// Fan speed
++// only fully implemented for some models here
++// often implemented in other classes and methods too
+// below
+#define WMI_METHOD_ID_GETFAN1SPEED 8
+#define WMI_METHOD_ID_GETFAN2SPEED 9
@@ -1367,8 +1451,8 @@ index 000000000..727510507
+// Does it support CPU overclock?
+#define WMI_METHOD_ID_ISSUPPORTCPUOC 14
+// Temperatures
-+// only completely implemented only for some models here
-+// often implemted also in other class and other method
++// only fully implemented for some models here
++// often implemented in other classes and methods too
+// below
+#define WMI_METHOD_ID_GETCPUTEMP 18
+#define WMI_METHOD_ID_GETGPUTEMP 19
@@ -1376,17 +1460,17 @@ index 000000000..727510507
+// two state keyboard light
+#define WMI_METHOD_ID_GETKEYBOARDLIGHT 37
+#define WMI_METHOD_ID_SETKEYBOARDLIGHT 36
-+// disable win key
++// toggle win key
+// 0 = win key enabled; 1 = win key disabled
+#define WMI_METHOD_ID_ISSUPPORTDISABLEWINKEY 21
+#define WMI_METHOD_ID_GETWINKEYSTATUS 23
+#define WMI_METHOD_ID_SETWINKEYSTATUS 22
-+// disable touchpad
++// toggle touchpad
+//0 = touchpad enabled; 1 = touchpad disabled
+#define WMI_METHOD_ID_ISSUPPORTDISABLETP 24
+#define WMI_METHOD_ID_GETTPSTATUS 26
+#define WMI_METHOD_ID_SETTPSTATUS 25
-+// gSync
++// GSync
+#define WMI_METHOD_ID_ISSUPPORTGSYNC 40
+#define WMI_METHOD_ID_GETGSYNCSTATUS 41
+#define WMI_METHOD_ID_SETGSYNCSTATUS 42
@@ -1572,7 +1656,7 @@ index 000000000..727510507
+ ec_memoryio->physical_start = physical_start;
+ ec_memoryio->physical_ec_start = physical_ec_start;
+ ec_memoryio->size = size;
-+ pr_info("Succeffuly mapped embedded controller: 0x%llx (in RAM)/0x%llx (in EC) to virtual 0x%p\n",
++ pr_info("Successfully mapped embedded controller: 0x%llx (in RAM)/0x%llx (in EC) to virtual 0x%p\n",
+ ec_memoryio->physical_start,
+ ec_memoryio->physical_ec_start,
+ ec_memoryio->virtual_start);
@@ -1660,10 +1744,10 @@ index 000000000..727510507
+// Number of used ports
+#define ECRAM_PORTIO_PORTS_SIZE 2
+// Port used to specify address in EC RAM to read/write
-+// 0x4E/0x4F is the usual port for IO super controler
-+// 0x2E/0x2F also common (ITE can also be configure to use these)
++// 0x4E/0x4F is the usual port for IO super controller
++// 0x2E/0x2F also common (ITE can also be configured to use these)
+#define ECRAM_PORTIO_ADDR_PORT 0x4E
-+// Port to send/receive the value to write/read
++// Port to send/receive the value to write/read
+#define ECRAM_PORTIO_DATA_PORT 0x4F
+// Name used to request ports
+#define ECRAM_PORTIO_NAME "legion"
@@ -1802,7 +1886,7 @@ index 000000000..727510507
+
+ err = ecram_portio_read(&ecram->portio, ecram_offset, &value);
+ if (err)
-+ pr_info("Error reading EC RAM at 0x%x\n", ecram_offset);
++ pr_info("Error reading EC RAM at 0x%x.\n", ecram_offset);
+ return value;
+}
+
@@ -1811,13 +1895,13 @@ index 000000000..727510507
+ int err;
+
+ if (ec_readonly) {
-+ pr_info("Skipping writing EC RAM at 0x%x because readonly.\n",
++ pr_info("Skipping writing EC RAM to 0x%x: Read-Only.\n",
+ ecram_offset);
+ return;
+ }
+ err = ecram_portio_write(&ecram->portio, ecram_offset, value);
+ if (err)
-+ pr_info("Error writing EC RAM at 0x%x\n", ecram_offset);
++ pr_info("Error writing EC RAM to 0x%x: Read-Only.\n", ecram_offset);
+}
+
+/* =============================== */
@@ -1874,24 +1958,24 @@ index 000000000..727510507
+ u8 rpm1_raw;
+ // rpm2 devided by 100
+ u8 rpm2_raw;
-+ // >=2 , <=5 (lower is faster); must be increasing by level
++ // >=2 , <=5 (lower is faster); must increase by level
+ u8 accel;
-+ // >=2 , <=5 (lower is faster); must be increasing by level
++ // >=2 , <=5 (lower is faster); must increase by level
+ u8 decel;
+
-+ // min must be lower or equal than max
++ // min must be lower than or equal to max
+ // last level max must be 127
-+ // <=127 cpu max temp for this level; must be increasing by level
++ // <=127 cpu max temp for this level; must increase by level
+ u8 cpu_max_temp_celsius;
-+ // <=127 cpu min temp for this level; must be increasing by level
++ // <=127 cpu min temp for this level; must increase by level
+ u8 cpu_min_temp_celsius;
-+ // <=127 gpu min temp for this level; must be increasing by level
++ // <=127 gpu min temp for this level; must increase by level
+ u8 gpu_max_temp_celsius;
-+ // <=127 gpu max temp for this level; must be increasing by level
++ // <=127 gpu max temp for this level; must increase by level
+ u8 gpu_min_temp_celsius;
-+ // <=127 ic max temp for this level; must be increasing by level
++ // <=127 ic max temp for this level; must increase by level
+ u8 ic_max_temp_celsius;
-+ // <=127 ic max temp for this level; must be increasing by level
++ // <=127 ic max temp for this level; must increase by level
+ u8 ic_min_temp_celsius;
+};
+
@@ -1918,7 +2002,7 @@ index 000000000..727510507
+ struct fancurve_point points[MAXFANCURVESIZE];
+ // number of points used; must be <= MAXFANCURVESIZE
+ size_t size;
-+ // the point that at which fans are run currently
++ // the point at which fans are run currently
+ size_t current_point_i;
+};
+
@@ -2047,7 +2131,7 @@ index 000000000..727510507
+ if (!valid)
+ return false;
+ if (init_values && size < fancurve->size) {
-+ // fancurve size is decreased, but last etnry alwasy needs 127 temperatures
++ // fancurve size is decreased, but last entry always needs 127 temperatures
+ // Note: size >=1
+ fancurve->points[size - 1].cpu_max_temp_celsius = 127;
+ fancurve->points[size - 1].ic_max_temp_celsius = 127;
@@ -2100,8 +2184,8 @@ index 000000000..727510507
+/* Global and shared data between */
+/* all calls to this module */
+/* ============================= */
-+// Implemented like ideapad-laptop.c but currenlty still
-+// wihtout dynamic memory allocation (instead global _priv)
++// Implemented like ideapad-laptop.c but currently still
++// without dynamic memory allocation (instead global _priv)
+struct legion_private {
+ struct platform_device *platform_device;
+ // TODO: remove or keep? init?
@@ -2109,10 +2193,10 @@ index 000000000..727510507
+
+ // Method to access ECRAM
+ struct ecram ecram;
-+ // Configuration with registers an ECRAM access method
++ // Configuration with registers and ECRAM access method
+ const struct model_config *conf;
+
-+ // TODO: maybe refactor an keep only local to each function
++ // TODO: maybe refactor and keep only local to each function
+ // last known fan curve
+ struct fancurve fancurve;
+ // configured fan curve from user space
@@ -2137,7 +2221,7 @@ index 000000000..727510507
+ struct ecram_memoryio ec_memoryio;
+};
+
-+// shared between different drivers: WMI, platform and proteced by mutex
++// shared between different drivers: WMI, platform and protected by mutex
+static struct legion_private *legion_shared;
+static struct legion_private _priv;
+static DEFINE_MUTEX(legion_shared_mutex);
@@ -2238,7 +2322,7 @@ index 000000000..727510507
+}
+
+/* ============================= */
-+/* Sensor values reading/writing */
++/* Sensor value reading/writing */
+/* ============================= */
+
+static int ec_read_sensor_values(struct ecram *ecram,
@@ -2673,7 +2757,7 @@ index 000000000..727510507
+/* Read the fan curve from the EC.
+ *
+ * In newer models (>=2022) there is an ACPI/WMI to read fan curve as
-+ * a whole. So read/write fan table as a whole to use
++ * a whole. So read/write fan table as a whole to use the
+ * same interface for both cases.
+ *
+ * It reads all points from EC memory, even if stored fancurve is smaller, so
@@ -2711,7 +2795,7 @@ index 000000000..727510507
+ ecram, model->registers->EXT_VRM_TEMP_HYST + i);
+ }
+
-+ // Do not trust that hardware; It might suddendly report
++ // Do not trust that hardware; It might suddenly report
+ // a larger size, so clamp it.
+ fancurve->size =
+ ecram_read(ecram, model->registers->EXT_FAN_POINTS_SIZE);
@@ -2816,7 +2900,7 @@ index 000000000..727510507
+ point->ic_min_temp_celsius = 0;
+ }
+
-+ // Do not trust that hardware; It might suddendly report
++ // Do not trust that hardware; It might suddenly report
+ // a larger size, so clamp it.
+ fancurve->size = FANCURVESIZE_IDEAPDAD;
+ fancurve->current_point_i =
@@ -2835,7 +2919,7 @@ index 000000000..727510507
+ int valr2;
+
+ // add this later: maybe other addresses needed
-+ // therefore, fan curve might not be effective immediatley but
++ // therefore, fan curve might not be effective immediately but
+ // only after temp change
+ // Reset fan update counters (try to avoid any race conditions)
+ ecram_write(ecram, 0xC5FE, 0);
@@ -2877,7 +2961,7 @@ index 000000000..727510507
+ }
+
+ // add this later: maybe other addresses needed
-+ // therefore, fan curve might not be effective immediatley but
++ // therefore, fan curve might not be effective immediately but
+ // only after temp change
+ // // Reset current fan level to 0, so algorithm in EC
+ // // selects fan curve point again and resetting hysterisis
@@ -2905,7 +2989,7 @@ index 000000000..727510507
+ case ACCESS_METHOD_WMI3:
+ return wmi_read_fancurve_custom(priv->conf, fancurve);
+ default:
-+ pr_info("No access method for fancurve:%d\n",
++ pr_info("No access method for fancurve: %d\n",
+ priv->conf->access_method_fancurve);
+ return -EINVAL;
+ }
@@ -2925,7 +3009,7 @@ index 000000000..727510507
+ case ACCESS_METHOD_WMI3:
+ return wmi_write_fancurve_custom(priv->conf, fancurve);
+ default:
-+ pr_info("No access method for fancurve:%d\n",
++ pr_info("No access method for fancurve: %d\n",
+ priv->conf->access_method_fancurve);
+ return -EINVAL;
+ }
@@ -2948,7 +3032,7 @@ index 000000000..727510507
+ *state = false;
+ break;
+ default:
-+ pr_info("Unexpected value in MINIFANCURVE register:%d\n",
++ pr_info("Unexpected value in MINIFANCURVE register: %d\n",
+ value);
+ return -1;
+ }
@@ -2992,7 +3076,7 @@ index 000000000..727510507
+ *state = false;
+ break;
+ default:
-+ pr_info("Unexpected value in lockfanspeed register:%d\n",
++ pr_info("Unexpected value in lockfanspeed register: %d\n",
+ value);
+ return -1;
+ }
@@ -3015,7 +3099,7 @@ index 000000000..727510507
+ *state = false;
+ break;
+ default:
-+ pr_info("Unexpected value in maximumfanspeed register:%d\n",
++ pr_info("Unexpected value in maximumfanspeed register: %d\n",
+ value);
+ return -1;
+ }
@@ -3072,7 +3156,7 @@ index 000000000..727510507
+ case ACCESS_METHOD_WMI:
+ return wmi_write_fanfullspeed(priv, state);
+ default:
-+ pr_info("No access method for fan full speed:%d\n",
++ pr_info("No access method for fan full speed: %d\n",
+ priv->conf->access_method_fanfullspeed);
+ return -EINVAL;
+ }
@@ -3150,7 +3234,7 @@ index 000000000..727510507
+ unsigned long acpi_powermode;
+ int err;
+
-+ // spmo method not alwasy available
++ // spmo method not always available
+ // \_SB.PCI0.LPC0.EC0.SPMO
+ err = eval_spmo(priv->adev->handle, &acpi_powermode);
+ *powermode = (int)acpi_powermode;
@@ -3197,7 +3281,7 @@ index 000000000..727510507
+ case ACCESS_METHOD_WMI:
+ return wmi_read_powermode(powermode);
+ default:
-+ pr_info("No access method for powermode:%d\n",
++ pr_info("No access method for powermode: %d\n",
+ priv->conf->access_method_powermode);
+ return -EINVAL;
+ }
@@ -3218,7 +3302,7 @@ index 000000000..727510507
+ case ACCESS_METHOD_WMI:
+ return wmi_write_powermode(value);
+ default:
-+ pr_info("No access method for powermode:%d\n",
++ pr_info("No access method for powermode: %d\n",
+ priv->conf->access_method_powermode);
+ return -EINVAL;
+ }
@@ -3255,7 +3339,7 @@ index 000000000..727510507
+ unsigned long result;
+ int err;
+
-+ //also works? what is better?
++ //also works? which one is better?
+ /*
+ * err = eval_qcho(adev->handle, &result);
+ * if (err)
@@ -3543,7 +3627,7 @@ index 000000000..727510507
+ seq_printf(s, "WMI light IO port: %d\n",
+ legion_wmi_light_get(priv, LIGHT_ID_IOPORT, 0, 4));
+
-+ seq_printf(s, "WMI light y logo/lid: %d\n",
++ seq_printf(s, "WMI light Y logo/lid: %d\n",
+ legion_wmi_light_get(priv, LIGHT_ID_YLOGO, 0, 4));
+
+ seq_printf(s, "EC minifancurve feature enabled: %d\n",
@@ -3591,7 +3675,7 @@ index 000000000..727510507
+ struct dentry *dir;
+
+ // TODO: remove this note
-+ // Note: as other kernel modules, do not catch errors here
++ // Note: like other kernel modules, do not catch errors here
+ // because if kernel is build without debugfs this
+ // will return an error but module still has to
+ // work, just without debugfs
@@ -3655,7 +3739,7 @@ index 000000000..727510507
+ struct legion_private *priv = dev_get_drvdata(dev);
+
+ if (ressize > ARRAY_SIZE(res)) {
-+ pr_info("Buffer to small for WMI result\n");
++ pr_info("Buffer too small for WMI result\n");
+ return -EINVAL;
+ }
+ if (i >= ressize) {
@@ -4402,8 +4486,8 @@ index 000000000..727510507
+unlock:
+ mutex_unlock(&legion_shared_mutex);
+ // todo; fix that!
-+ // problem: we get a event just before the powermode change (from the key?),
-+ // so if we notify to early, it will read the old power mode/platform profile
++ // problem: we get an event just before the powermode change (from the key?),
++ // so if we notify too early, it will read the old power mode/platform profile
+ msleep(500);
+ legion_platform_profile_notify();
+}
@@ -4752,11 +4836,11 @@ index 000000000..727510507
+ mutex_unlock(&priv->fancurve_mutex);
+
+ if (err) {
-+ pr_info("Reading fancurve failed\n");
++ pr_info("Failed to read fancurve\n");
+ return -EOPNOTSUPP;
+ }
+ if (!(point_id >= 0 && point_id < MAXFANCURVESIZE)) {
-+ pr_info("Reading fancurve failed due to wrong point id: %d\n",
++ pr_info("Failed to read fancurve due to wrong point id: %d\n",
+ point_id);
+ return -EOPNOTSUPP;
+ }
@@ -4796,7 +4880,7 @@ index 000000000..727510507
+ value = fancurve.size;
+ break;
+ default:
-+ pr_info("Reading fancurve failed due to wrong attribute id: %d\n",
++ pr_info("Failed to read fancurve due to wrong attribute id: %d\n",
+ fancurve_attr_id);
+ return -EOPNOTSUPP;
+ }
@@ -4818,7 +4902,7 @@ index 000000000..727510507
+ bool write_fancurve_size = false;
+
+ if (!(point_id >= 0 && point_id < MAXFANCURVESIZE)) {
-+ pr_info("Reading fancurve failed due to wrong point id: %d\n",
++ pr_info("Failed to read fancurve due to wrong point id: %d\n",
+ point_id);
+ err = -EOPNOTSUPP;
+ goto error;
@@ -4826,7 +4910,7 @@ index 000000000..727510507
+
+ err = kstrtoint(buf, 0, &value);
+ if (err) {
-+ pr_info("Parse for hwmon store is not succesful: error:%d; point_id: %d; fancurve_attr_id: %d\\n",
++ pr_info("Parsing hwmon store failed: error: %d; point_id: %d; fancurve_attr_id: %d\\n",
+ err, point_id, fancurve_attr_id);
+ goto error;
+ }
@@ -4835,7 +4919,7 @@ index 000000000..727510507
+ err = read_fancurve(priv, &fancurve);
+
+ if (err) {
-+ pr_info("Reading fancurve failed\n");
++ pr_info("Failed to read fancurve\n");
+ err = -EOPNOTSUPP;
+ goto error_mutex;
+ }
@@ -4876,7 +4960,7 @@ index 000000000..727510507
+ write_fancurve_size = true;
+ break;
+ default:
-+ pr_info("Writing fancurve failed due to wrong attribute id: %d\n",
++ pr_info("Failed to write fancurve due to wrong attribute id: %d\n",
+ fancurve_attr_id);
+ err = -EOPNOTSUPP;
+ goto error_mutex;
@@ -4891,7 +4975,7 @@ index 000000000..727510507
+
+ err = write_fancurve(priv, &fancurve, write_fancurve_size);
+ if (err) {
-+ pr_info("Writing fancurve failed for accessing hwmon at point_id: %d\n",
++ pr_info("Failed to write fancurve for accessing hwmon at point_id: %d\n",
+ point_id);
+ err = -EOPNOTSUPP;
+ goto error_mutex;
@@ -5130,7 +5214,7 @@ index 000000000..727510507
+ err = ec_read_minifancurve(&priv->ecram, priv->conf, &value);
+ if (err) {
+ err = -1;
-+ pr_info("Reading minifancurve not succesful\n");
++ pr_info("Failed to read minifancurve\n");
+ goto error_unlock;
+ }
+ mutex_unlock(&priv->fancurve_mutex);
@@ -5152,7 +5236,7 @@ index 000000000..727510507
+ err = kstrtoint(buf, 0, &value);
+ if (err) {
+ err = -1;
-+ pr_info("Parse for hwmon store is not succesful: error:%d\n",
++ pr_info("Parsing hwmon store failed: error:%d\n",
+ err);
+ goto error;
+ }
@@ -5161,7 +5245,7 @@ index 000000000..727510507
+ err = ec_write_minifancurve(&priv->ecram, priv->conf, value);
+ if (err) {
+ err = -1;
-+ pr_info("Writing minifancurve not succesful\n");
++ pr_info("Failed to write minifancurve\n");
+ goto error_unlock;
+ }
+ mutex_unlock(&priv->fancurve_mutex);
@@ -5186,7 +5270,7 @@ index 000000000..727510507
+ err = ec_read_fanfullspeed(&priv->ecram, priv->conf, &value);
+ if (err) {
+ err = -1;
-+ pr_info("Reading pwm1_mode/maximumfanspeed not succesful\n");
++ pr_info("Failed to pwm1_mode/maximumfanspeed\n");
+ goto error_unlock;
+ }
+ mutex_unlock(&priv->fancurve_mutex);
@@ -5210,7 +5294,7 @@ index 000000000..727510507
+ err = kstrtoint(buf, 0, &value);
+ if (err) {
+ err = -1;
-+ pr_info("Parse for hwmon store is not succesful: error:%d\n",
++ pr_info("Parsing hwmon store failed: error:%d\n",
+ err);
+ goto error;
+ }
@@ -5221,7 +5305,7 @@ index 000000000..727510507
+ is_maximumfanspeed);
+ if (err) {
+ err = -1;
-+ pr_info("Writing pwm1_mode/maximumfanspeed not succesful\n");
++ pr_info("Failed to write pwm1_mode/maximumfanspeed\n");
+ goto error_unlock;
+ }
+ mutex_unlock(&priv->fancurve_mutex);
@@ -5480,7 +5564,7 @@ index 000000000..727510507
+
+ brightness = legion_kbd_bl_brightness_get(priv);
+ if (brightness < 0) {
-+ pr_info("Error reading keyboard brighntess\n");
++ pr_info("Error reading keyboard brightness\n");
+ return brightness;
+ }
+
@@ -5568,7 +5652,7 @@ index 000000000..727510507
+ light_ins->lower_limit,
+ light_ins->upper_limit);
+ if (brightness < 0) {
-+ pr_info("Error reading brighntess for light: %u\n",
++ pr_info("Error reading brightness for light: %u\n",
+ light_ins->light_id);
+ return brightness;
+ }
@@ -5663,7 +5747,7 @@ index 000000000..727510507
+ if (!(do_load)) {
+ dev_info(
+ &pdev->dev,
-+ "Module not useable for this laptop because it is not in allowlist. Notify maintainer if you want to add your device or force load with param force.\n");
++ "Module not usable for this laptop because it is not in allowlist. Notify the maintainer if you want to add your device or force load with param force.\n");
+ err = -ENOMEM;
+ goto err_model_mismtach;
+ }
@@ -5674,7 +5758,7 @@ index 000000000..727510507
+ if (!do_load_by_list && do_load) {
+ dev_info(
+ &pdev->dev,
-+ "legion_laptop is forced to load and would otherwise be not loaded\n");
++ "legion_laptop is forced to load and would otherwise not be loaded\n");
+ }
+
+ // if forced and no module found, use config for first model
@@ -5729,13 +5813,13 @@ index 000000000..727510507
+ "Skipped checking embedded controller id\n");
+ }
+
-+ dev_info(&pdev->dev, "Creating debugfs inteface\n");
++ dev_info(&pdev->dev, "Creating debugfs interface\n");
+ legion_debugfs_init(priv);
+
-+ pr_info("Creating sysfs inteface\n");
++ pr_info("Creating sysfs interface\n");
+ err = legion_sysfs_init(priv);
+ if (err) {
-+ dev_info(&pdev->dev, "Creating sysfs interface failed: %d\n",
++ dev_info(&pdev->dev, "Failed to create sysfs interface: %d\n",
+ err);
+ goto err_sysfs_init;
+ }
@@ -5743,7 +5827,7 @@ index 000000000..727510507
+ pr_info("Creating hwmon interface");
+ err = legion_hwmon_init(priv);
+ if (err) {
-+ dev_info(&pdev->dev, "Creating hwmon interface failed: %d\n",
++ dev_info(&pdev->dev, "Failed to create hwmon interface: %d\n",
+ err);
+ goto err_hwmon_init;
+ }
@@ -5751,7 +5835,7 @@ index 000000000..727510507
+ pr_info("Creating platform profile support\n");
+ err = legion_platform_profile_init(priv);
+ if (err) {
-+ dev_info(&pdev->dev, "Creating platform profile failed: %d\n",
++ dev_info(&pdev->dev, "Failed to create platform profile: %d\n",
+ err);
+ goto err_platform_profile;
+ }
@@ -5759,7 +5843,7 @@ index 000000000..727510507
+ pr_info("Init WMI driver support\n");
+ err = legion_wmi_init();
+ if (err) {
-+ dev_info(&pdev->dev, "Init WMI driver failed: %d\n", err);
++ dev_info(&pdev->dev, "Failed to init WMI driver: %d\n", err);
+ goto err_wmi;
+ }
+
@@ -5768,7 +5852,7 @@ index 000000000..727510507
+ if (err) {
+ dev_info(
+ &pdev->dev,
-+ "Init keyboard backlight LED driver failed. Skipping ...\n");
++ "Failed to init keyboard backlight LED driver. Skipping ...\n");
+ }
+
+ pr_info("Init Y-Logo LED driver\n");
@@ -5776,7 +5860,7 @@ index 000000000..727510507
+ "platform::ylogo");
+ if (err) {
+ dev_info(&pdev->dev,
-+ "Init Y-Logo LED driver failed. Skipping ...\n");
++ "Failed to init Y-Logo LED driver. Skipping ...\n");
+ }
+
+ pr_info("Init IO-Port LED driver\n");
@@ -5784,7 +5868,7 @@ index 000000000..727510507
+ "platform::ioport");
+ if (err) {
+ dev_info(&pdev->dev,
-+ "Init IO-Port LED driver failed. Skipping ...\n");
++ "Failed to init IO-Port LED driver. Skipping ...\n");
+ }
+
+ dev_info(&pdev->dev, "legion_laptop loaded for this device\n");
@@ -5889,7 +5973,7 @@ index 000000000..727510507
+{
+ int err;
+
-+ pr_info("legion_laptop starts loading\n");
++ pr_info("Loading legion_laptop\n");
+ err = platform_driver_register(&legion_driver);
+ if (err) {
+ pr_info("legion_laptop: platform_driver_register failed\n");
@@ -5909,5 +5993,5 @@ index 000000000..727510507
+
+module_exit(legion_exit);
--
-2.41.0
+2.43.0
diff --git a/SOURCES/patch-6.6-redhat.patch b/SOURCES/patch-6.6-redhat.patch
index 09ef449..e36e4cd 100644
--- a/SOURCES/patch-6.6-redhat.patch
+++ b/SOURCES/patch-6.6-redhat.patch
@@ -38,7 +38,7 @@
37 files changed, 681 insertions(+), 181 deletions(-)
diff --git a/Makefile b/Makefile
-index 1eefa893f048..1ee70ed9aba6 100644
+index 707952172ece..456d7d6b52d6 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,18 @@ $(if $(filter __%, $(MAKECMDGOALS)), \
@@ -681,7 +681,7 @@ index 84e7ba5314d3..efc96776f761 100644
data->xport.ops = &hid_rmi_ops;
diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c
-index 77b0271ce6eb..96f60c139c4a 100644
+index 34aee59dd147..7c5a7f7c11bd 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x-core.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c
@@ -10,6 +10,7 @@
@@ -1034,7 +1034,7 @@ index 228fb2d11c70..696cfa7025de 100644
}
#else
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
-index e17509f0b3fa..f3b41bec28c2 100644
+index c2e8d9e27749..c24dbb681664 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -118,6 +118,14 @@ static const char *sd_cache_types[] = {
@@ -1052,7 +1052,7 @@ index e17509f0b3fa..f3b41bec28c2 100644
static void sd_set_flush_flag(struct scsi_disk *sdkp)
{
bool wc = false, fua = false;
-@@ -4052,6 +4060,8 @@ static int __init init_sd(void)
+@@ -4045,6 +4053,8 @@ static int __init init_sd(void)
goto err_out_class;
}
@@ -1429,7 +1429,7 @@ index a2ff4242e623..f0d2be1ee4f1 100644
int module_sig_check(struct load_info *info, int flags)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
-index b3dee80497cb..3715db3f99d4 100644
+index ac4ef3e206bb..80ede130812c 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -23,6 +23,7 @@
@@ -1440,7 +1440,7 @@ index b3dee80497cb..3715db3f99d4 100644
static bool module_enabled;
/* Are we using CONFIG_MODVERSIONS? */
-@@ -2088,6 +2089,12 @@ static void write_buf(struct buffer *b, const char *fname)
+@@ -2090,6 +2091,12 @@ static void write_buf(struct buffer *b, const char *fname)
}
}
@@ -1453,7 +1453,7 @@ index b3dee80497cb..3715db3f99d4 100644
static void write_if_changed(struct buffer *b, const char *fname)
{
char *tmp;
-@@ -2148,6 +2155,7 @@ static void write_mod_c_file(struct module *mod)
+@@ -2150,6 +2157,7 @@ static void write_mod_c_file(struct module *mod)
add_depends(&buf, mod);
add_moddevtable(&buf, mod);
add_srcversion(&buf, mod);
diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec
index 938e4b7..66c6f85 100644
--- a/SPECS/kernel.spec
+++ b/SPECS/kernel.spec
@@ -160,18 +160,18 @@ Summary: The Linux kernel
# the --with-release option overrides this setting.)
%define debugbuildsenabled 1
%define buildid .fsync
-%define specrpmversion 6.6.6
-%define specversion 6.6.6
+%define specrpmversion 6.6.7
+%define specversion 6.6.7
%define patchversion 6.6
%define pkgrelease 200
%define kversion 6
-%define tarfile_release 6.6.6
+%define tarfile_release 6.6.7
# This is needed to do merge window version magic
%define patchlevel 6
# This allows pkg_release to have configurable %%{?dist} tag
%define specrelease 201%{?buildid}%{?dist}
# This defines the kabi tarball version
-%define kabiversion 6.6.6
+%define kabiversion 6.6.7
# If this variable is set to 1, a bpf selftests build failure will cause a
# fatal kernel package build error
@@ -3832,8 +3832,13 @@ fi\
#
#
%changelog
-* Fri Dec 15 2023 Jan Drögehoff <sentrycraft123@gmail.com> - 6.6.6-201.fsync
-- kernel-fsync v6.6.6
+* Fri Dec 15 2023 Jan Drögehoff <sentrycraft123@gmail.com> - 6.6.7-201.fsync
+- kernel-fsync v6.6.7
+
+* Wed Dec 13 2023 Augusto Caringi <acaringi@redhat.com> [6.6.7-0]
+- Add rhbz#2253632 rhbz#2253633 to BugsFixed (Justin M. Forbes)
+- Turn on DRM_ACCEL drivers for Fedora (Justin M. Forbes)
+- Linux v6.6.7
* Mon Dec 11 2023 Augusto Caringi <acaringi@redhat.com> [6.6.6-0]
- redhat/configs: Enable UCLAMP_TASK for PipeWire and WirePlumber (Neal Gompa)