1 From f9b3ea02555e67e2e7bf95219953b88d122bd275 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Mon, 9 Oct 2023 14:11:01 +0200
4 Subject: ACPI: resource: Add TongFang GM6BGEQ, GM6BG5Q and GM6BG0Q to irq1_edge_low_force_override[]
6 From: Hans de Goede <hdegoede@redhat.com>
8 commit f9b3ea02555e67e2e7bf95219953b88d122bd275 upstream.
10 The TongFang GM6BGEQ, GM6BG5Q and GM6BG0Q are 3 GPU variants of a TongFang
11 barebone design which is sold under various brand names.
13 The ACPI IRQ override for the keyboard IRQ must be used on these AMD Zen
14 laptops in order for the IRQ to work.
16 Adjust the pcspecialist_laptop[] DMI match table for this:
18 1. Drop the sys-vendor match from the existing PCSpecialist Elimina Pro 16
19 entry for the GM6BGEQ (RTX3050 GPU) model so that it will also match
20 the laptop when sold by other vendors such as hyperbook.pl.
22 2. Add board-name matches for the GM6BG5Q (RTX4050) and GM6B0Q (RTX4060)
25 Note the .ident values of the dmi_system_id structs are left unset
26 since these are not used.
28 Suggested-by: August Wikerfors <git@augustwikerfors.se>
29 Reported-by: Francesco <f.littarru@outlook.com>
30 Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217394
31 Link: https://laptopparts4less.frl/index.php?route=product/search&filter_name=GM6BG
32 Link: https://hyperbook.pl/en/content/14-hyperbook-drivers
33 Link: https://linux-hardware.org/?probe=bfa70344e3
34 Link: https://bbs.archlinuxcn.org/viewtopic.php?id=13313
35 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
36 Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
37 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 drivers/acpi/resource.c | 19 +++++++++++++------
40 1 file changed, 13 insertions(+), 6 deletions(-)
42 --- a/drivers/acpi/resource.c
43 +++ b/drivers/acpi/resource.c
44 @@ -507,16 +507,23 @@ static const struct dmi_system_id mainge
46 static const struct dmi_system_id pcspecialist_laptop[] = {
48 - .ident = "PCSpecialist Elimina Pro 16 M",
50 - * Some models have product-name "Elimina Pro 16 M",
51 - * others "GM6BGEQ". Match on board-name to match both.
53 + /* TongFang GM6BGEQ / PCSpecialist Elimina Pro 16 M, RTX 3050 */
55 - DMI_MATCH(DMI_SYS_VENDOR, "PCSpecialist"),
56 DMI_MATCH(DMI_BOARD_NAME, "GM6BGEQ"),
60 + /* TongFang GM6BG5Q, RTX 4050 */
62 + DMI_MATCH(DMI_BOARD_NAME, "GM6BG5Q"),
66 + /* TongFang GM6BG0Q / PCSpecialist Elimina Pro 16 M, RTX 4060 */
68 + DMI_MATCH(DMI_BOARD_NAME, "GM6BG0Q"),