From 2b22dfbbec156aef6df3f2f5e4b408e7cfd77290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 27 Dec 2022 15:55:40 +0100 Subject: [PATCH] Workaround broken sound issue by disabling SG-buffer Since about 5.17 kernel (2c95b92ecd92e784785b1db8cccc4f0f2bfa850c upstream commit specifically), audio stops working after some time. The real solution isn't known yet, but as a workaround disable problematic feature (SG-buffer) for now. See linked issue and upstream discussion at [1] for details. Fixes QubesOS/qubes-issues#7465 [1] https://lore.kernel.org/alsa-devel/Y6E9VixS7sV0kpWQ@mail-itl/T/ --- 0001-sound-Disable-SG-buffer.patch | 30 ++++++++++++++++++++++++++++++ kernel.spec.in | 1 + 2 files changed, 31 insertions(+) create mode 100644 0001-sound-Disable-SG-buffer.patch diff --git a/0001-sound-Disable-SG-buffer.patch b/0001-sound-Disable-SG-buffer.patch new file mode 100644 index 00000000..ff43c9d0 --- /dev/null +++ b/0001-sound-Disable-SG-buffer.patch @@ -0,0 +1,30 @@ +From bcc68c3829df041bf22ee493f8eb58fce230303b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= + +Date: Tue, 27 Dec 2022 15:49:46 +0100 +Subject: [PATCH] sound: Disable SG-buffer + +This appears to be broken under Xen PV (or other Qubes-specific +factor?), so disable it until fixed. +--- + sound/core/Kconfig | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/sound/core/Kconfig b/sound/core/Kconfig +index 12990d9a4dff..18798d99021d 100644 +--- a/sound/core/Kconfig ++++ b/sound/core/Kconfig +@@ -225,8 +225,8 @@ config SND_VMASTER + bool + + config SND_DMA_SGBUF +- def_bool y +- depends on X86 ++ def_bool n ++# depends on X86 + + config SND_CTL_LED + tristate +-- +2.37.3 + diff --git a/kernel.spec.in b/kernel.spec.in index 8e17de3f..33b1fe40 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -146,6 +146,7 @@ Patch12: 0013-xen-pcifront-pciback-Update-pciif.h-with-err-and-res.patch Patch16: 0001-usbip-tweak-clear-halt-with-simple-reset.patch Patch19: increase-reclaim-speed.patch Patch25: 0001-Re-enable-interrupts-before-loading-PNVM.patch +Patch26: 0001-sound-Disable-SG-buffer.patch %description Qubes Dom0 kernel.