]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 12:22:06 +0000 (14:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Aug 2022 12:22:06 +0000 (14:22 +0200)
added patches:
acpi-video-force-backlight-native-for-some-tongfang-devices.patch
acpi-video-shortening-quirk-list-by-identifying-clevo-by-board_name-only.patch

queue-4.14/acpi-video-force-backlight-native-for-some-tongfang-devices.patch [new file with mode: 0644]
queue-4.14/acpi-video-shortening-quirk-list-by-identifying-clevo-by-board_name-only.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/acpi-video-force-backlight-native-for-some-tongfang-devices.patch b/queue-4.14/acpi-video-force-backlight-native-for-some-tongfang-devices.patch
new file mode 100644 (file)
index 0000000..07e8e1f
--- /dev/null
@@ -0,0 +1,90 @@
+From c752089f7cf5b5800c6ace4cdd1a8351ee78a598 Mon Sep 17 00:00:00 2001
+From: Werner Sembach <wse@tuxedocomputers.com>
+Date: Thu, 7 Jul 2022 20:09:52 +0200
+Subject: ACPI: video: Force backlight native for some TongFang devices
+
+From: Werner Sembach <wse@tuxedocomputers.com>
+
+commit c752089f7cf5b5800c6ace4cdd1a8351ee78a598 upstream.
+
+The TongFang PF5PU1G, PF4NU1F, PF5NU1G, and PF5LUXG/TUXEDO BA15 Gen10,
+Pulse 14/15 Gen1, and Pulse 15 Gen2 have the same problem as the Clevo
+NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2:
+They have a working native and video interface. However the default
+detection mechanism first registers the video interface before
+unregistering it again and switching to the native interface during boot.
+This results in a dangling SBIOS request for backlight change for some
+reason, causing the backlight to switch to ~2% once per boot on the first
+power cord connect or disconnect event. Setting the native interface
+explicitly circumvents this buggy behaviour by avoiding the unregistering
+process.
+
+Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
+Cc: All applicable <stable@vger.kernel.org>
+Reviewed-by: Hans de Goede <hdegoede@redhat.com>
+Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/acpi/video_detect.c |   51 +++++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 50 insertions(+), 1 deletion(-)
+
+--- a/drivers/acpi/video_detect.c
++++ b/drivers/acpi/video_detect.c
+@@ -431,7 +431,56 @@ static const struct dmi_system_id video_
+               DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
+               },
+       },
+-
++      /*
++       * The TongFang PF5PU1G, PF4NU1F, PF5NU1G, and PF5LUXG/TUXEDO BA15 Gen10,
++       * Pulse 14/15 Gen1, and Pulse 15 Gen2 have the same problem as the Clevo
++       * NL5xRU and NL5xNU/TUXEDO Aura 15 Gen1 and Gen2. See the description
++       * above.
++       */
++      {
++      .callback = video_detect_force_native,
++      .ident = "TongFang PF5PU1G",
++      .matches = {
++              DMI_MATCH(DMI_BOARD_NAME, "PF5PU1G"),
++              },
++      },
++      {
++      .callback = video_detect_force_native,
++      .ident = "TongFang PF4NU1F",
++      .matches = {
++              DMI_MATCH(DMI_BOARD_NAME, "PF4NU1F"),
++              },
++      },
++      {
++      .callback = video_detect_force_native,
++      .ident = "TongFang PF4NU1F",
++      .matches = {
++              DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
++              DMI_MATCH(DMI_BOARD_NAME, "PULSE1401"),
++              },
++      },
++      {
++      .callback = video_detect_force_native,
++      .ident = "TongFang PF5NU1G",
++      .matches = {
++              DMI_MATCH(DMI_BOARD_NAME, "PF5NU1G"),
++              },
++      },
++      {
++      .callback = video_detect_force_native,
++      .ident = "TongFang PF5NU1G",
++      .matches = {
++              DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
++              DMI_MATCH(DMI_BOARD_NAME, "PULSE1501"),
++              },
++      },
++      {
++      .callback = video_detect_force_native,
++      .ident = "TongFang PF5LUXG",
++      .matches = {
++              DMI_MATCH(DMI_BOARD_NAME, "PF5LUXG"),
++              },
++      },
+       /*
+        * Desktops which falsely report a backlight and which our heuristics
+        * for this do not catch.
diff --git a/queue-4.14/acpi-video-shortening-quirk-list-by-identifying-clevo-by-board_name-only.patch b/queue-4.14/acpi-video-shortening-quirk-list-by-identifying-clevo-by-board_name-only.patch
new file mode 100644 (file)
index 0000000..1c7689a
--- /dev/null
@@ -0,0 +1,75 @@
+From f0341e67b3782603737f7788e71bd3530012a4f4 Mon Sep 17 00:00:00 2001
+From: Werner Sembach <wse@tuxedocomputers.com>
+Date: Thu, 7 Jul 2022 20:09:53 +0200
+Subject: ACPI: video: Shortening quirk list by identifying Clevo by board_name only
+
+From: Werner Sembach <wse@tuxedocomputers.com>
+
+commit f0341e67b3782603737f7788e71bd3530012a4f4 upstream.
+
+Taking a recent change in the i8042 quirklist to this one: Clevo
+board_names are somewhat unique, and if not: The generic Board_-/Sys_Vendor
+string "Notebook" doesn't help much anyway. So identifying the devices just
+by the board_name helps keeping the list significantly shorter and might
+even hit more devices requiring the fix.
+
+Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
+Fixes: c844d22fe0c0 ("ACPI: video: Force backlight native for Clevo NL5xRU and NL5xNU")
+Cc: All applicable <stable@vger.kernel.org>
+Reviewed-by: Hans de Goede <hdegoede@redhat.com>
+Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/acpi/video_detect.c |   34 ----------------------------------
+ 1 file changed, 34 deletions(-)
+
+--- a/drivers/acpi/video_detect.c
++++ b/drivers/acpi/video_detect.c
+@@ -371,23 +371,6 @@ static const struct dmi_system_id video_
+       .callback = video_detect_force_native,
+       .ident = "Clevo NL5xRU",
+       .matches = {
+-              DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
+-              DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
+-              },
+-      },
+-      {
+-      .callback = video_detect_force_native,
+-      .ident = "Clevo NL5xRU",
+-      .matches = {
+-              DMI_MATCH(DMI_SYS_VENDOR, "SchenkerTechnologiesGmbH"),
+-              DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
+-              },
+-      },
+-      {
+-      .callback = video_detect_force_native,
+-      .ident = "Clevo NL5xRU",
+-      .matches = {
+-              DMI_MATCH(DMI_SYS_VENDOR, "Notebook"),
+               DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
+               },
+       },
+@@ -411,23 +394,6 @@ static const struct dmi_system_id video_
+       .callback = video_detect_force_native,
+       .ident = "Clevo NL5xNU",
+       .matches = {
+-              DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"),
+-              DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
+-              },
+-      },
+-      {
+-      .callback = video_detect_force_native,
+-      .ident = "Clevo NL5xNU",
+-      .matches = {
+-              DMI_MATCH(DMI_SYS_VENDOR, "SchenkerTechnologiesGmbH"),
+-              DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
+-              },
+-      },
+-      {
+-      .callback = video_detect_force_native,
+-      .ident = "Clevo NL5xNU",
+-      .matches = {
+-              DMI_MATCH(DMI_SYS_VENDOR, "Notebook"),
+               DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"),
+               },
+       },
index 157b6fdfa59cae73fa47f9a3034f3a88a61792ba..c53ce675081c1f649891cf7538dde3d02615ce5e 100644 (file)
@@ -7,3 +7,5 @@ net-sungem_phy-add-of_node_put-for-reference-returne.patch
 netfilter-nf_queue-do-not-allow-packet-truncation-be.patch
 arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch
 mt7601u-add-usb-device-id-for-some-versions-of-xiaodu-wifi-dongle.patch
+acpi-video-force-backlight-native-for-some-tongfang-devices.patch
+acpi-video-shortening-quirk-list-by-identifying-clevo-by-board_name-only.patch