From: Greg Kroah-Hartman Date: Sun, 12 Jan 2025 09:17:54 +0000 (+0100) Subject: 5.4-stable patches X-Git-Tag: v6.1.125~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf0d4206e62a6e5260cc79744e96c845deb3ca1e;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: acpi-resource-add-asus-vivobook-x1504vap-to-irq1_level_low_skip_override.patch acpi-resource-add-tongfang-gm5hg0a-to-irq1_edge_low_force_override.patch drm-amd-display-increase-max_surfaces-to-the-value-supported-by-hw.patch --- diff --git a/queue-5.4/acpi-resource-add-asus-vivobook-x1504vap-to-irq1_level_low_skip_override.patch b/queue-5.4/acpi-resource-add-asus-vivobook-x1504vap-to-irq1_level_low_skip_override.patch new file mode 100644 index 00000000000..9cbf6a9c332 --- /dev/null +++ b/queue-5.4/acpi-resource-add-asus-vivobook-x1504vap-to-irq1_level_low_skip_override.patch @@ -0,0 +1,42 @@ +From 66d337fede44dcbab4107d37684af8fcab3d648e Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Fri, 20 Dec 2024 19:13:52 +0100 +Subject: ACPI: resource: Add Asus Vivobook X1504VAP to irq1_level_low_skip_override[] + +From: Hans de Goede + +commit 66d337fede44dcbab4107d37684af8fcab3d648e upstream. + +Like the Vivobook X1704VAP the X1504VAP has its keyboard IRQ (1) described +as ActiveLow in the DSDT, which the kernel overrides to EdgeHigh which +breaks the keyboard. + +Add the X1504VAP to the irq1_level_low_skip_override[] quirk table to fix +this. + +Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219224 +Cc: All applicable +Signed-off-by: Hans de Goede +Link: https://patch.msgid.link/20241220181352.25974-1-hdegoede@redhat.com +Signed-off-by: Rafael J. Wysocki +Signed-off-by: Greg Kroah-Hartman +--- + drivers/acpi/resource.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +--- a/drivers/acpi/resource.c ++++ b/drivers/acpi/resource.c +@@ -443,6 +443,13 @@ static const struct dmi_system_id asus_l + }, + }, + { ++ /* Asus Vivobook X1504VAP */ ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), ++ DMI_MATCH(DMI_BOARD_NAME, "X1504VAP"), ++ }, ++ }, ++ { + /* Asus Vivobook X1704VAP */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), diff --git a/queue-5.4/acpi-resource-add-tongfang-gm5hg0a-to-irq1_edge_low_force_override.patch b/queue-5.4/acpi-resource-add-tongfang-gm5hg0a-to-irq1_edge_low_force_override.patch new file mode 100644 index 00000000000..d5800835754 --- /dev/null +++ b/queue-5.4/acpi-resource-add-tongfang-gm5hg0a-to-irq1_edge_low_force_override.patch @@ -0,0 +1,58 @@ +From 7ed4e4a659d99499dc6968c61970d41b64feeac0 Mon Sep 17 00:00:00 2001 +From: Hans de Goede +Date: Sat, 28 Dec 2024 17:48:45 +0100 +Subject: ACPI: resource: Add TongFang GM5HG0A to irq1_edge_low_force_override[] + +From: Hans de Goede + +commit 7ed4e4a659d99499dc6968c61970d41b64feeac0 upstream. + +The TongFang GM5HG0A is a TongFang barebone design which is sold under +various brand names. + +The ACPI IRQ override for the keyboard IRQ must be used on these AMD Zen +laptops in order for the IRQ to work. + +At least on the SKIKK Vanaheim variant the DMI product- and board-name +strings have been replaced by the OEM with "Vanaheim" so checking that +board-name contains "GM5HG0A" as is usually done for TongFang barebones +quirks does not work. + +The DMI OEM strings do contain "GM5HG0A". I have looked at the dmidecode +for a few other TongFang devices and the TongFang code-name string being +in the OEM strings seems to be something which is consistently true. + +Add a quirk checking one of the DMI_OEM_STRING(s) is "GM5HG0A" in the hope +that this will work for other OEM versions of the "GM5HG0A" too. + +Link: https://www.skikk.eu/en/laptops/vanaheim-15-rtx-4060 +Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219614 +Cc: All applicable +Signed-off-by: Hans de Goede +Link: https://patch.msgid.link/20241228164845.42381-1-hdegoede@redhat.com +Signed-off-by: Rafael J. Wysocki +Signed-off-by: Greg Kroah-Hartman +--- + drivers/acpi/resource.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +--- a/drivers/acpi/resource.c ++++ b/drivers/acpi/resource.c +@@ -514,6 +514,17 @@ static const struct dmi_system_id asus_l + DMI_MATCH(DMI_BOARD_NAME, "16T90SP"), + }, + }, ++ { ++ /* ++ * TongFang GM5HG0A in case of the SKIKK Vanaheim relabel the ++ * board-name is changed, so check OEM strings instead. Note ++ * OEM string matches are always exact matches. ++ * https://bugzilla.kernel.org/show_bug.cgi?id=219614 ++ */ ++ .matches = { ++ DMI_EXACT_MATCH(DMI_OEM_STRING, "GM5HG0A"), ++ }, ++ }, + { } + }; + diff --git a/queue-5.4/drm-amd-display-increase-max_surfaces-to-the-value-supported-by-hw.patch b/queue-5.4/drm-amd-display-increase-max_surfaces-to-the-value-supported-by-hw.patch new file mode 100644 index 00000000000..26dc85284a1 --- /dev/null +++ b/queue-5.4/drm-amd-display-increase-max_surfaces-to-the-value-supported-by-hw.patch @@ -0,0 +1,38 @@ +From 21541bc6b44241e3f791f9e552352d8440b2b29e Mon Sep 17 00:00:00 2001 +From: Melissa Wen +Date: Tue, 17 Dec 2024 17:45:04 -0300 +Subject: drm/amd/display: increase MAX_SURFACES to the value supported by hw + +From: Melissa Wen + +commit 21541bc6b44241e3f791f9e552352d8440b2b29e upstream. + +As the hw supports up to 4 surfaces, increase the maximum number of +surfaces to prevent the DC error when trying to use more than three +planes. + +[drm:dc_state_add_plane [amdgpu]] *ERROR* Surface: can not attach plane_state 000000003e2cb82c! Maximum is: 3 + +Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3693 +Signed-off-by: Melissa Wen +Reviewed-by: Rodrigo Siqueira +Signed-off-by: Rodrigo Siqueira +Signed-off-by: Alex Deucher +(cherry picked from commit b8d6daffc871a42026c3c20bff7b8fa0302298c1) +Cc: stable@vger.kernel.org +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/amd/display/dc/dc.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/gpu/drm/amd/display/dc/dc.h ++++ b/drivers/gpu/drm/amd/display/dc/dc.h +@@ -41,7 +41,7 @@ + + #define DC_VER "3.2.48" + +-#define MAX_SURFACES 3 ++#define MAX_SURFACES 4 + #define MAX_PLANES 6 + #define MAX_STREAMS 6 + #define MAX_SINKS_PER_LINK 4 diff --git a/queue-5.4/series b/queue-5.4/series index c3abc7023cd..caf68cd8558 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -12,3 +12,6 @@ dm-thin-make-get_first_thin-use-rcu-safe-list-first-function.patch sctp-sysctl-cookie_hmac_alg-avoid-using-current-nsproxy.patch sctp-sysctl-auth_enable-avoid-using-current-nsproxy.patch drm-amd-display-add-check-for-granularity-in-dml-ceil-floor-helpers.patch +acpi-resource-add-tongfang-gm5hg0a-to-irq1_edge_low_force_override.patch +acpi-resource-add-asus-vivobook-x1504vap-to-irq1_level_low_skip_override.patch +drm-amd-display-increase-max_surfaces-to-the-value-supported-by-hw.patch