Compare commits
2 Commits
541b699fa5
...
06a5da3214
Author | SHA1 | Date | |
---|---|---|---|
06a5da3214 | |||
42650d9e26 |
debian
changelogseries
config/amd64
patches
bugfix/all
debian
krd
mixed-arch
0002-ZEN-Restore-CONFIG_OPTIMIZE_FOR_PERFORMANCE_O3.patch0003-krd-adjust-CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3.patch0006-XANMOD-kbuild-Add-GCC-SMS-based-modulo-scheduling-fl.patch
patchset-xanmod/xanmod
patchset-zen
fixes
sauce
14
debian/changelog
vendored
14
debian/changelog
vendored
@ -1,3 +1,17 @@
|
||||
linux (6.12.20-1) sid; urgency=medium
|
||||
|
||||
* New upstream stable update:
|
||||
https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.20
|
||||
|
||||
-- Konstantin Demin <rockdrilla@gmail.com> Sun, 23 Mar 2025 03:14:29 +0300
|
||||
|
||||
linux (6.12.19-1) sid; urgency=medium
|
||||
|
||||
* New upstream stable update:
|
||||
https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.19
|
||||
|
||||
-- Konstantin Demin <rockdrilla@gmail.com> Thu, 13 Mar 2025 20:47:49 +0300
|
||||
|
||||
linux (6.12.18-1) sid; urgency=medium
|
||||
|
||||
* New upstream stable update:
|
||||
|
2
debian/config/amd64/config.mobile
vendored
2
debian/config/amd64/config.mobile
vendored
@ -8579,6 +8579,8 @@ CONFIG_DRM_AUX_BRIDGE=m
|
||||
CONFIG_DRM_AUX_HPD_BRIDGE=m
|
||||
CONFIG_DRM_BRIDGE=y
|
||||
CONFIG_DRM_BUDDY=m
|
||||
CONFIG_DRM_CLIENT_SELECTION=y
|
||||
CONFIG_DRM_CLIENT_SETUP=y
|
||||
CONFIG_DRM_DISPLAY_DP_AUX_BUS=m
|
||||
CONFIG_DRM_DISPLAY_DP_HELPER=y
|
||||
CONFIG_DRM_DISPLAY_DP_TUNNEL=y
|
||||
|
61
debian/patches/bugfix/all/drm-amdkfd-Fix-user-queue-validation-on-Gfx7-8.patch
vendored
Normal file
61
debian/patches/bugfix/all/drm-amdkfd-Fix-user-queue-validation-on-Gfx7-8.patch
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
From: Philip Yang <Philip.Yang@amd.com>
|
||||
Date: Wed, 29 Jan 2025 12:37:30 -0500
|
||||
Subject: drm/amdkfd: Fix user queue validation on Gfx7/8
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
Origin: https://gitlab.freedesktop.org/drm/kernel/-/commit/e7a477735f1771b9a9346a5fbd09d7ff0641723a
|
||||
Bug-Debian: https://bugs.debian.org/1093124
|
||||
|
||||
To workaround queue full h/w issue on Gfx7/8, when application create
|
||||
AQL queue, the ring buffer bo allocate size is queue_size/2 and
|
||||
map queue_size ring buffer to GPU in 2 pieces using 2 attachments, each
|
||||
attachment map size is queue_size/2, with same ring_bo backing memory.
|
||||
|
||||
For Gfx7/8, user queue buffer validation should use queue_size/2 to
|
||||
verify ring_bo allocation and mapping size.
|
||||
|
||||
Fixes: 68e599db7a54 ("drm/amdkfd: Validate user queue buffers")
|
||||
Suggested-by: Tomáš Trnka <trnka@scm.com>
|
||||
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
|
||||
Acked-by: Alex Deucher <alexander.deucher@amd.com>
|
||||
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
|
||||
---
|
||||
drivers/gpu/drm/amd/amdkfd/kfd_queue.c | 12 +++++++++++-
|
||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/drivers/gpu/drm/amd/amdkfd/kfd_queue.c
|
||||
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_queue.c
|
||||
@@ -233,6 +233,7 @@ void kfd_queue_buffer_put(struct amdgpu_
|
||||
int kfd_queue_acquire_buffers(struct kfd_process_device *pdd, struct queue_properties *properties)
|
||||
{
|
||||
struct kfd_topology_device *topo_dev;
|
||||
+ u64 expected_queue_size;
|
||||
struct amdgpu_vm *vm;
|
||||
u32 total_cwsr_size;
|
||||
int err;
|
||||
@@ -241,6 +242,15 @@ int kfd_queue_acquire_buffers(struct kfd
|
||||
if (!topo_dev)
|
||||
return -EINVAL;
|
||||
|
||||
+ /* AQL queues on GFX7 and GFX8 appear twice their actual size */
|
||||
+ if (properties->type == KFD_QUEUE_TYPE_COMPUTE &&
|
||||
+ properties->format == KFD_QUEUE_FORMAT_AQL &&
|
||||
+ topo_dev->node_props.gfx_target_version >= 70000 &&
|
||||
+ topo_dev->node_props.gfx_target_version < 90000)
|
||||
+ expected_queue_size = properties->queue_size / 2;
|
||||
+ else
|
||||
+ expected_queue_size = properties->queue_size;
|
||||
+
|
||||
vm = drm_priv_to_vm(pdd->drm_priv);
|
||||
err = amdgpu_bo_reserve(vm->root.bo, false);
|
||||
if (err)
|
||||
@@ -255,7 +265,7 @@ int kfd_queue_acquire_buffers(struct kfd
|
||||
goto out_err_unreserve;
|
||||
|
||||
err = kfd_queue_buffer_get(vm, (void *)properties->queue_address,
|
||||
- &properties->ring_bo, properties->queue_size);
|
||||
+ &properties->ring_bo, expected_queue_size);
|
||||
if (err)
|
||||
goto out_err_unreserve;
|
||||
|
55
debian/patches/debian/gitignore.patch
vendored
55
debian/patches/debian/gitignore.patch
vendored
@ -1,55 +0,0 @@
|
||||
From: Ian Campbell <ijc@hellion.org.uk>
|
||||
Date: Thu, 17 Jan 2013 08:55:21 +0000
|
||||
Subject: Tweak gitignore for Debian pkg-kernel using git
|
||||
Forwarded: not-needed
|
||||
|
||||
[bwh: Tweak further for pure git]
|
||||
---
|
||||
.gitignore | 25 +++++++------------------
|
||||
1 file changed, 7 insertions(+), 18 deletions(-)
|
||||
|
||||
--- a/.gitignore
|
||||
+++ b/.gitignore
|
||||
@@ -79,11 +79,6 @@ modules.order
|
||||
/rpmbuild/
|
||||
|
||||
#
|
||||
-# Debian directory (make deb-pkg)
|
||||
-#
|
||||
-/debian/
|
||||
-
|
||||
-#
|
||||
# Snap directory (make snap-pkg)
|
||||
#
|
||||
/snap/
|
||||
@@ -100,19 +95,6 @@ modules.order
|
||||
/pacman/
|
||||
|
||||
#
|
||||
-# We don't want to ignore the following even if they are dot-files
|
||||
-#
|
||||
-!.clang-format
|
||||
-!.cocciconfig
|
||||
-!.editorconfig
|
||||
-!.get_maintainer.ignore
|
||||
-!.gitattributes
|
||||
-!.gitignore
|
||||
-!.kunitconfig
|
||||
-!.mailmap
|
||||
-!.rustfmt.toml
|
||||
-
|
||||
-#
|
||||
# Generated include files
|
||||
#
|
||||
/include/config/
|
||||
@@ -177,3 +159,10 @@ sphinx_*/
|
||||
|
||||
# Rust analyzer configuration
|
||||
/rust-project.json
|
||||
+
|
||||
+#
|
||||
+# Debian packaging: ignore everything at the top level, since it isn't
|
||||
+# included in our repository
|
||||
+#
|
||||
+/*
|
||||
+!/debian/
|
2
debian/patches/debian/kernelvariables.patch
vendored
2
debian/patches/debian/kernelvariables.patch
vendored
@ -54,7 +54,7 @@ use of $(ARCH) needs to be moved after this.
|
||||
KCONFIG_CONFIG ?= .config
|
||||
export KCONFIG_CONFIG
|
||||
|
||||
@@ -525,6 +495,35 @@ RUSTFLAGS_KERNEL =
|
||||
@@ -529,6 +499,35 @@ RUSTFLAGS_KERNEL =
|
||||
AFLAGS_KERNEL =
|
||||
LDFLAGS_vmlinux =
|
||||
|
||||
|
@ -20,7 +20,7 @@ is non-empty.
|
||||
---
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1813,7 +1813,7 @@ PHONY += prepare
|
||||
@@ -1825,7 +1825,7 @@ PHONY += prepare
|
||||
# now expand this into a simple variable to reduce the cost of shell evaluations
|
||||
prepare: CC_VERSION_TEXT := $(CC_VERSION_TEXT)
|
||||
prepare:
|
||||
|
@ -30,7 +30,7 @@ this reverts following commit:
|
||||
|
||||
--- a/tools/objtool/check.c
|
||||
+++ b/tools/objtool/check.c
|
||||
@@ -4888,10 +4888,14 @@ int check(struct objtool_file *file)
|
||||
@@ -4897,10 +4897,14 @@ int check(struct objtool_file *file)
|
||||
}
|
||||
|
||||
out:
|
||||
|
@ -13,7 +13,7 @@ dependency on CONFIG_ARC and adds RUSTFLAGS.
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -813,6 +813,9 @@ KBUILD_CFLAGS += -fno-delete-null-pointe
|
||||
@@ -820,6 +820,9 @@ KBUILD_CFLAGS += -fno-delete-null-pointe
|
||||
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
|
||||
KBUILD_CFLAGS += -O2
|
||||
KBUILD_RUSTFLAGS += -Copt-level=2
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -821,6 +821,10 @@ KBUILD_CFLAGS += -Os
|
||||
@@ -828,6 +828,10 @@ KBUILD_CFLAGS += -Os
|
||||
KBUILD_RUSTFLAGS += -Copt-level=s
|
||||
endif
|
||||
|
||||
|
2
debian/patches/mixed-arch/0006-XANMOD-kbuild-Add-GCC-SMS-based-modulo-scheduling-fl.patch
vendored
2
debian/patches/mixed-arch/0006-XANMOD-kbuild-Add-GCC-SMS-based-modulo-scheduling-fl.patch
vendored
@ -11,7 +11,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -825,6 +825,13 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
|
||||
@@ -832,6 +832,13 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
|
||||
KBUILD_CFLAGS += $(call cc-option,-fivopts)
|
||||
endif
|
||||
|
||||
|
2
debian/patches/patchset-xanmod/xanmod/0001-kbuild-Remove-GCC-minimal-function-alignment.patch
vendored
2
debian/patches/patchset-xanmod/xanmod/0001-kbuild-Remove-GCC-minimal-function-alignment.patch
vendored
@ -12,7 +12,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -997,15 +997,8 @@ export CC_FLAGS_FPU
|
||||
@@ -1004,15 +1004,8 @@ export CC_FLAGS_FPU
|
||||
export CC_FLAGS_NO_FPU
|
||||
|
||||
ifneq ($(CONFIG_FUNCTION_ALIGNMENT),0)
|
||||
|
@ -158,5 +158,5 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
||||
+}
|
||||
+
|
||||
extern void __futex_unqueue(struct futex_q *q);
|
||||
extern void __futex_queue(struct futex_q *q, struct futex_hash_bucket *hb);
|
||||
extern int futex_unqueue(struct futex_q *q);
|
||||
extern void __futex_queue(struct futex_q *q, struct futex_hash_bucket *hb,
|
||||
struct task_struct *task);
|
||||
|
@ -15,7 +15,7 @@ Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1019,11 +1019,6 @@ KBUILD_CFLAGS += -fno-strict-overflow
|
||||
@@ -1026,11 +1026,6 @@ KBUILD_CFLAGS += -fno-strict-overflow
|
||||
# Make sure -fstack-check isn't enabled (like gentoo apparently did)
|
||||
KBUILD_CFLAGS += -fno-stack-check
|
||||
|
||||
|
4
debian/patches/patchset-zen/sauce/0010-ZEN-mm-Stop-kswapd-early-when-nothing-s-waiting-for-.patch
vendored
4
debian/patches/patchset-zen/sauce/0010-ZEN-mm-Stop-kswapd-early-when-nothing-s-waiting-for-.patch
vendored
@ -70,7 +70,7 @@ Contains:
|
||||
|
||||
if (unlikely(nofail)) {
|
||||
/*
|
||||
@@ -4278,8 +4281,13 @@ restart:
|
||||
@@ -4279,8 +4282,13 @@ restart:
|
||||
goto nopage;
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ Contains:
|
||||
|
||||
/*
|
||||
* The adjusted alloc_flags might result in immediate success, so try
|
||||
@@ -4481,9 +4489,12 @@ nopage:
|
||||
@@ -4482,9 +4490,12 @@ nopage:
|
||||
goto retry;
|
||||
}
|
||||
fail:
|
||||
|
3
debian/patches/series
vendored
3
debian/patches/series
vendored
@ -1,5 +1,3 @@
|
||||
debian/gitignore.patch
|
||||
|
||||
# Disable features broken by exclusion of upstream files
|
||||
debian/dfsg/arch-powerpc-platforms-8xx-ucode-disable.patch
|
||||
debian/dfsg/drivers-media-dvb-dvb-usb-af9005-disable.patch
|
||||
@ -72,6 +70,7 @@ bugfix/all/disable-some-marvell-phys.patch
|
||||
bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch
|
||||
bugfix/all/documentation-use-relative-source-paths-in-abi-documentation.patch
|
||||
bugfix/all/nfsd-fix-legacy-client-tracking-initialization.patch
|
||||
bugfix/all/drm-amdkfd-Fix-user-queue-validation-on-Gfx7-8.patch
|
||||
|
||||
# Miscellaneous features
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user