From dccfb4188661e4e2e745a2cc62f1675280d6e8f9 Mon Sep 17 00:00:00 2001 From: sebanc Date: Fri, 23 Feb 2024 08:21:05 +0100 Subject: [PATCH] Changelog: - Add patches for SteamDeck Oled --- kernel-patches/6.1/base/base.patch | 18 +- .../6.1/others/0002-surface-lte.patch | 4 +- kernel-patches/6.6/base/base.patch | 1020 +---------------- prepare_kernels.sh | 2 +- 4 files changed, 25 insertions(+), 1019 deletions(-) diff --git a/kernel-patches/6.1/base/base.patch b/kernel-patches/6.1/base/base.patch index b158cab81e..779ce1387e 100644 --- a/kernel-patches/6.1/base/base.patch +++ b/kernel-patches/6.1/base/base.patch @@ -38848,14 +38848,18 @@ diff -ruN a/mm/page_alloc.c b/mm/page_alloc.c #include #include #include -@@ -4938,6 +4939,7 @@ - * several times in the row. - */ - if (*no_progress_loops > MAX_RECLAIM_RETRIES) { +@@ -4938,8 +4939,10 @@ + else + (*no_progress_loops)++; + +- if (*no_progress_loops > MAX_RECLAIM_RETRIES) ++ if (*no_progress_loops > MAX_RECLAIM_RETRIES) { + low_mem_notify(); - /* Before OOM, exhaust highatomic_reserve */ - return unreserve_highatomic_pageblock(ac, true); - } + goto out; ++ } + + + /* @@ -5548,6 +5550,8 @@ &alloc_gfp, &alloc_flags)) return NULL; diff --git a/kernel-patches/6.1/others/0002-surface-lte.patch b/kernel-patches/6.1/others/0002-surface-lte.patch index 00adf5eb44..9296a2b378 100644 --- a/kernel-patches/6.1/others/0002-surface-lte.patch +++ b/kernel-patches/6.1/others/0002-surface-lte.patch @@ -12,9 +12,9 @@ index 613f91add03d..e1428222dd73 100644 --- a/drivers/usb/serial/qcserial.c +++ b/drivers/usb/serial/qcserial.c @@ -177,6 +177,7 @@ static const struct usb_device_id id_table[] = { - {DEVICE_SWI(0x413c, 0x81d0)}, /* Dell Wireless 5819 */ - {DEVICE_SWI(0x413c, 0x81d1)}, /* Dell Wireless 5818 */ {DEVICE_SWI(0x413c, 0x81d2)}, /* Dell Wireless 5818 */ + {DEVICE_SWI(0x413c, 0x8217)}, /* Dell Wireless DW5826e */ + {DEVICE_SWI(0x413c, 0x8218)}, /* Dell Wireless DW5826e QDL */ + {DEVICE_SWI(0x045e, 0x096e)}, /* Microsoft Surface Go LTE */ /* Huawei devices */ diff --git a/kernel-patches/6.6/base/base.patch b/kernel-patches/6.6/base/base.patch index ea6a9005a9..474c1a85be 100644 --- a/kernel-patches/6.6/base/base.patch +++ b/kernel-patches/6.6/base/base.patch @@ -5594,945 +5594,6 @@ diff -ruN a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/pan { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, boe_of_match); -diff -ruN a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c ---- a/drivers/gpu/drm/panel/panel-edp.c 2023-11-08 11:56:25.000000000 +0100 -+++ b/drivers/gpu/drm/panel/panel-edp.c 2024-01-24 07:43:25.000000000 +0100 -@@ -1840,6 +1840,7 @@ - EDP_PANEL_ENTRY('A', 'U', 'O', 0x145c, &delay_200_500_e50, "B116XAB01.4"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x1e9b, &delay_200_500_e50, "B133UAN02.1"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x1ea5, &delay_200_500_e50, "B116XAK01.6"), -+ EDP_PANEL_ENTRY('A', 'U', 'O', 0x235c, &delay_200_500_e50, "B116XTN02"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x582d, &delay_200_500_e50, "B133UAN01.0"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1"), -@@ -1848,8 +1849,10 @@ - EDP_PANEL_ENTRY('B', 'O', 'E', 0x0786, &delay_200_500_p2e80, "NV116WHM-T01"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x07d1, &boe_nv133fhm_n61.delay, "NV133FHM-N61"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x082d, &boe_nv133fhm_n61.delay, "NV133FHM-N62"), -+ EDP_PANEL_ENTRY('B', 'O', 'E', 0x09c3, &delay_200_500_e50, "NT116WHM-N21,836X2"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x094b, &delay_200_500_e50, "NT116WHM-N21"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x095f, &delay_200_500_e50, "NE135FBM-N41 v8.1"), -+ EDP_PANEL_ENTRY('B', 'O', 'E', 0x0979, &delay_200_500_e50, "NV116WHM-N49 V8.0"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x098d, &boe_nv110wtm_n61.delay, "NV110WTM-N61"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x09dd, &delay_200_500_e50, "NT116WHM-N21"), - EDP_PANEL_ENTRY('B', 'O', 'E', 0x0a5d, &delay_200_500_e50, "NV116WHM-N45"), -diff -ruN a/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c b/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c ---- a/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c 1970-01-01 01:00:00.000000000 +0100 -+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9882t.c 2024-01-24 07:43:25.000000000 +0100 -@@ -0,0 +1,779 @@ -+// SPDX-License-Identifier: GPL-2.0 -+/* -+ * Panels based on the Ilitek ILI9882T display controller. -+ */ -+#include -+#include -+#include -+#include -+#include -+ -+#include -+#include -+#include -+#include -+ -+#include