[arch-commits] Commit in linux-lts/trunk (3 files)

Jan Steffens heftig at archlinux.org
Wed Jul 1 15:39:37 UTC 2020


    Date: Wednesday, July 1, 2020 @ 15:39:37
  Author: heftig
Revision: 390694

5.4.50-1

Added:
  linux-lts/trunk/0002-ALSA-usb-audio-Fix-packet-size-calculation.patch
  linux-lts/trunk/0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch
Modified:
  linux-lts/trunk/PKGBUILD

-----------------------------------------------------------------+
 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch           |   35 ++++++++
 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch |   43 ++++++++++
 PKGBUILD                                                        |    8 +
 3 files changed, 84 insertions(+), 2 deletions(-)

Added: 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch
===================================================================
--- 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch	                        (rev 0)
+++ 0002-ALSA-usb-audio-Fix-packet-size-calculation.patch	2020-07-01 15:39:37 UTC (rev 390694)
@@ -0,0 +1,35 @@
+From f28f67e0c17c11790c8795e7f727d3e39c4d5c92 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander at tsoy.me>
+Date: Mon, 29 Jun 2020 05:59:33 +0300
+Subject: [PATCH 1/2] ALSA: usb-audio: Fix packet size calculation
+
+Commit f0bd62b64016 ("ALSA: usb-audio: Improve frames size computation")
+introduced a regression for devices which have playback endpoints with
+bInterval > 1. Fix this by taking ep->datainterval into account.
+
+Note that frame and fps are actually mean packet and packets per second
+in the code introduces by the mentioned commit. This will be fixed in a
+follow-up patch.
+
+Fixes: f0bd62b64016 ("ALSA: usb-audio: Improve frames size computation")
+BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208353
+Signed-off-by: Alexander Tsoy <alexander at tsoy.me>
+---
+ sound/usb/endpoint.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
+index 9bea7d3f99f8..11f23778f0a5 100644
+--- a/sound/usb/endpoint.c
++++ b/sound/usb/endpoint.c
+@@ -1093,6 +1093,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
+ 		ep->freqn = get_usb_high_speed_rate(rate);
+ 		ep->fps = 8000;
+ 	}
++	ep->fps >>= ep->datainterval;
+ 
+ 	ep->sample_rem = rate % ep->fps;
+ 	ep->framesize[0] = rate / ep->fps;
+-- 
+2.27.0
+

Added: 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch
===================================================================
--- 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch	                        (rev 0)
+++ 0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch	2020-07-01 15:39:37 UTC (rev 390694)
@@ -0,0 +1,43 @@
+From e140fa77c6a3f6b5282553ac91be3dae6cc7cc0b Mon Sep 17 00:00:00 2001
+From: Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>
+Date: Mon, 29 Jun 2020 13:03:52 -0400
+Subject: [PATCH 2/2] drm/amd/display: Only revalidate bandwidth on medium and
+ fast updates
+
+[Why]
+Changes that are fast don't require updating DLG parameters making
+this call unnecessary. Considering this is an expensive call it should
+not be done on every flip.
+
+[How]
+Guard the validation to only happen if update type isn't FAST.
+
+Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 47e7d11ca0c9..68d56a91d44b 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -2226,10 +2226,12 @@ void dc_commit_updates_for_stream(struct dc *dc,
+ 
+ 	copy_stream_update_to_stream(dc, context, stream, stream_update);
+ 
+-	if (!dc->res_pool->funcs->validate_bandwidth(dc, context, false)) {
+-		DC_ERROR("Mode validation failed for stream update!\n");
+-		dc_release_state(context);
+-		return;
++	if (update_type > UPDATE_TYPE_FAST) {
++		if (!dc->res_pool->funcs->validate_bandwidth(dc, context, false)) {
++			DC_ERROR("Mode validation failed for stream update!\n");
++			dc_release_state(context);
++			return;
++		}
+ 	}
+ 
+ 	commit_planes_for_stream(
+-- 
+2.27.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-01 15:39:32 UTC (rev 390693)
+++ PKGBUILD	2020-07-01 15:39:37 UTC (rev 390694)
@@ -1,7 +1,7 @@
 # Maintainer: Andreas Radke <andyrtr at archlinux.org>
 
 pkgbase=linux-lts
-pkgver=5.4.49
+pkgver=5.4.50
 pkgrel=1
 pkgdesc='LTS Linux'
 url="https://www.kernel.org/"
@@ -17,6 +17,8 @@
   https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
   config         # the main kernel config file
   0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
+  0002-ALSA-usb-audio-Fix-packet-size-calculation.patch
+  0003-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch
   sphinx-workaround.patch
 )
 validpgpkeys=(
@@ -24,10 +26,12 @@
   '647F28654894E3BD457199BE38DBBDC86092693E'  # Greg Kroah-Hartman
 )
 # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
-sha256sums=('55d89b636a07240ef57d04e840e9386f5aa18d957999bd077315042c9cd4573c'
+sha256sums=('ad10f4c1e900f4e3eb4903b65dbcb4ca74250de63aa9fa7105b9b3c3f9a8a6e2'
             'SKIP'
             'd20936f94b29f3e86513108ab772ef4778a8cb95ec7cd44519523a6eea40aa5d'
             'bdd05caf94135898bceac0a9d14ec6b1b458dba162d00efd46a292fe97f2679b'
+            'a4c0688aaf3e94c60f20684ed5fed8c8c1c4974926fa37c6fc50bb143d73c4f0'
+            '085b7ca855a0d6630b2a8b34f3d0d541c64ba816eefb0b72f96e2ca9d0907592'
             'b7c814c8183e4645947a6dcc3cbf80431de8a8fd4e895b780f9a5fd92f82cb8e')
 
 export KBUILD_BUILD_HOST=archlinux



More information about the arch-commits mailing list