From 62b01334713de3d592b8ca240df769401e7d40d5 Mon Sep 17 00:00:00 2001 From: ferreo Date: Fri, 8 Nov 2024 18:47:43 +0000 Subject: [PATCH] amd drm fix --- patches/0004-amddrm-fix.patch | 21 +++++++++++++++++++++ patches/series | 3 ++- scripts/build.sh | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 patches/0004-amddrm-fix.patch diff --git a/patches/0004-amddrm-fix.patch b/patches/0004-amddrm-fix.patch new file mode 100644 index 0000000..e616032 --- /dev/null +++ b/patches/0004-amddrm-fix.patch @@ -0,0 +1,21 @@ +Signed-off-by: Melissa Wen +--- + drivers/gpu/drm/amd/display/dc/dc.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h +index 3992ad73165b..08b00b263533 100644 +--- a/drivers/gpu/drm/amd/display/dc/dc.h ++++ b/drivers/gpu/drm/amd/display/dc/dc.h +@@ -57,7 +57,7 @@ struct dmub_notification; + + #define DC_VER "3.2.301" + +-#define MAX_SURFACES 3 ++#define MAX_SURFACES 6 + #define MAX_PLANES 6 + #define MAX_STREAMS 6 + #define MIN_VIEWPORT_SIZE 12 +-- +2.45.2 + diff --git a/patches/series b/patches/series index 6fc82b3..4a790f7 100644 --- a/patches/series +++ b/patches/series @@ -1,3 +1,4 @@ 0001-cachyos-base-all.patch 0002-sched-ext.patch -0003-bore-cachy-ext.patch \ No newline at end of file +0003-bore-cachy-ext.patch +0004-amddrm-fix.patch \ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh index e0a4474..76b9a93 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -2,4 +2,4 @@ echo "Pika Kernel - Building" -make -j`nproc` bindeb-pkg LOCALVERSION=-pikaos KDEB_PKGVERSION=$(make kernelversion)-101pika4 +make -j`nproc` bindeb-pkg LOCALVERSION=-pikaos KDEB_PKGVERSION=$(make kernelversion)-101pika5