diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-07-01 22:32:29 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-07-01 22:32:29 -0700 |
commit | 75a74f9eb033a1934ea3fd4039ce71695baf6d66 (patch) | |
tree | 67300b7af1db6aa7530c1a05b9831a5e350662b9 | |
parent | Added hotfix (diff) | |
download | linux-libre-75a74f9eb033a1934ea3fd4039ce71695baf6d66.tar.xz |
Updated to 5.7.7
-rw-r--r-- | 0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch | 38 | ||||
-rw-r--r-- | 0002-efi-libstub-Fix-path-separator-regression.patch | 54 | ||||
-rw-r--r-- | 0003-ALSA-usb-audio-Fix-packet-size-calculation.patch | 35 | ||||
-rw-r--r-- | 0004-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch | 42 | ||||
-rw-r--r-- | PKGBUILD | 18 |
5 files changed, 127 insertions, 60 deletions
diff --git a/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch b/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch new file mode 100644 index 0000000..1631d9a --- /dev/null +++ b/0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch @@ -0,0 +1,38 @@ +From 6535fe9061b6f1ce76ac658ae34b85fb3ed38ad9 Mon Sep 17 00:00:00 2001 +From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> +Date: Wed, 15 Apr 2020 17:38:32 -0700 +Subject: PCI/EDR: Log only ACPI_NOTIFY_DISCONNECT_RECOVER events + +Previously we logged *all* ACPI SYSTEM-level events, which may include lots +of non-EDR events. Move the message so we only log those related to EDR. + +Link: https://lore.kernel.org/r/01afb4e01efbe455de0c445bef6cf3ffc59340d2.1586996350.git.sathyanarayanan.kuppuswamy@linux.intel.com +[bhelgaas: drop the pci_dbg() of all events since ACPI can log those +already] +Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> +Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> +--- + drivers/pci/pcie/edr.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/pci/pcie/edr.c b/drivers/pci/pcie/edr.c +index 594622a6cb16..a6b9b479b97a 100644 +--- a/drivers/pci/pcie/edr.c ++++ b/drivers/pci/pcie/edr.c +@@ -148,11 +148,11 @@ static void edr_handle_event(acpi_handle handle, u32 event, void *data) + pci_ers_result_t estate = PCI_ERS_RESULT_DISCONNECT; + u16 status; + +- pci_info(pdev, "ACPI event %#x received\n", event); +- + if (event != ACPI_NOTIFY_DISCONNECT_RECOVER) + return; + ++ pci_info(pdev, "EDR event received\n"); ++ + /* Locate the port which issued EDR event */ + edev = acpi_dpc_port_get(pdev); + if (!edev) { +-- +cgit v1.2.3-1-gf6bb5 + diff --git a/0002-efi-libstub-Fix-path-separator-regression.patch b/0002-efi-libstub-Fix-path-separator-regression.patch deleted file mode 100644 index ad780ee..0000000 --- a/0002-efi-libstub-Fix-path-separator-regression.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 2eff8033714ddf05bb2fe52003921af8c8839ed2 Mon Sep 17 00:00:00 2001 -From: Philipp Fent <fent@in.tum.de> -Date: Mon, 15 Jun 2020 13:51:09 +0200 -Subject: efi/libstub: Fix path separator regression - -Commit 9302c1bb8e47 ("efi/libstub: Rewrite file I/O routine") introduced a -regression that made a couple of (badly configured) systems fail to -boot [1]: Until 5.6, we silently accepted Unix-style file separators in -EFI paths, which might violate the EFI standard, but are an easy to make -mistake. This fix restores the pre-5.7 behaviour. - -[1] https://bbs.archlinux.org/viewtopic.php?id=256273 - -Fixes: 9302c1bb8e47 ("efi/libstub: Rewrite file I/O routine") -Signed-off-by: Philipp Fent <fent@in.tum.de> -Link: https://lore.kernel.org/r/20200615115109.7823-1-fent@in.tum.de -[ardb: rewrite as chained if/else statements] -Signed-off-by: Ard Biesheuvel <ardb@kernel.org> ---- - drivers/firmware/efi/libstub/file.c | 16 ++++++++++++---- - 1 file changed, 12 insertions(+), 4 deletions(-) - -diff --git a/drivers/firmware/efi/libstub/file.c b/drivers/firmware/efi/libstub/file.c -index ea66b1f16a79..f1c4faf58c76 100644 ---- a/drivers/firmware/efi/libstub/file.c -+++ b/drivers/firmware/efi/libstub/file.c -@@ -104,12 +104,20 @@ static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, - if (!found) - return 0; - -+ /* Skip any leading slashes */ -+ while (cmdline[i] == L'/' || cmdline[i] == L'\\') -+ i++; -+ - while (--result_len > 0 && i < cmdline_len) { -- if (cmdline[i] == L'\0' || -- cmdline[i] == L'\n' || -- cmdline[i] == L' ') -+ efi_char16_t c = cmdline[i++]; -+ -+ if (c == L'\0' || c == L'\n' || c == L' ') - break; -- *result++ = cmdline[i++]; -+ else if (c == L'/') -+ /* Replace UNIX dir separators with EFI standard ones */ -+ *result++ = L'\\'; -+ else -+ *result++ = c; - } - *result = L'\0'; - return i; --- -cgit v1.2.3-1-gf6bb5 - diff --git a/0003-ALSA-usb-audio-Fix-packet-size-calculation.patch b/0003-ALSA-usb-audio-Fix-packet-size-calculation.patch new file mode 100644 index 0000000..b75ab48 --- /dev/null +++ b/0003-ALSA-usb-audio-Fix-packet-size-calculation.patch @@ -0,0 +1,35 @@ +From 17c5f7dd425becd30c4a2dafaecb054641a1fdc9 Mon Sep 17 00:00:00 2001 +From: Alexander Tsoy <alexander@tsoy.me> +Date: Mon, 29 Jun 2020 05:59:33 +0300 +Subject: 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@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; +-- +cgit v1.2.3-1-gf6bb5 + diff --git a/0004-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch b/0004-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch new file mode 100644 index 0000000..2cce397 --- /dev/null +++ b/0004-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch @@ -0,0 +1,42 @@ +From 7fab9d4206e54d19b578c70cd0529045ad642f25 Mon Sep 17 00:00:00 2001 +From: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> +Date: Mon, 29 Jun 2020 13:03:52 -0400 +Subject: 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@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 4acaf4be8a81..c825d383f0f1 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -2533,10 +2533,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( +-- +cgit v1.2.3-1-gf6bb5 + @@ -13,7 +13,7 @@ pkgbase=linux-libre _supver=5 _majver=7 -_minver=6 +_minver=7 _gccpatchver='20200615' _gccpatchger='10.1' _gccpatchker='5.7' @@ -22,7 +22,7 @@ _gccpatchker='5.7' else pkgver=${_supver}.${_majver}.${_minver} fi -pkgrel=1.2 +pkgrel=1 pkgdesc='Linux-libre' url='https://linux-libre.fsfla.org/' arch=(x86_64) @@ -39,7 +39,9 @@ _gnupkgver=${pkgver}-gnu source=( https://linux-libre.fsfla.org/pub/linux-libre/releases/${_gnumajver}/linux-libre-${_gnumajver}.tar.xz{,.sign} 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch - 0002-efi-libstub-Fix-path-separator-regression.patch + 0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch + 0003-ALSA-usb-audio-Fix-packet-size-calculation.patch + 0004-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch kernel_gcc_patch-${_gccpatchver}.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/${_gccpatchver}.tar.gz ath9k-regdom-hack.patch raid6-default-algo.patch @@ -55,13 +57,15 @@ validpgpkeys=( b2sums=('bb65e65c69d1c38943327a0859028c843439590e9f1af66705a0fe01aaf006daf14a5a0adfaef6d1de53511e50b2f6b8ee13caa63dd7cf4065253599fe524998' 'SKIP' 'ab1fb19c67d4c107f75767581c33d9c1458b4d9fdb88f4adb41d30a36f5a2f95f1c48ef079eb87e1e6e8ce2f98b293195cb2c0f2a8ec975aa817453289158c6e' - '3bb69cc581164cfdc416198b8a1d3d905d98e7f0f6f739d68a0c19d697e76545230f9e224d08e09c15d0ea3126a73608b56dbfa852892462bc11ef9dac525811' + '490c7d188215f1d24b5807a744853fa308c2cd17c9eb8668918a50a0c58cab9cbc9ee13ac9abbb614eb010a4a56e9092fea4440d44c80c8e67f2d9abdf19a83f' + 'c080582b285af6b08f004e49ff4b96a074ad455b91688bc06a96bd6cfe422e6d270e7157f95cb7ad9a6b0fd47e07f2b1ec06f7f275591d22c958de4077a28b87' + '49ddc76376ec49e099089d7f87e5f566524ccf1b1ac7acf8353a3f0a4abdd1ee1108b99860f99fd0f55cfcd8c1149fb9aa2467449ebff2cb251b8466349b95bc' 'c8d0697f99fe6105815217b8ec059d8f587415ea8dd2b88a65e1087feedf697341a64cd56810fde9e7aeada79125fc8235faccc7e7b06492c099e27a8abbe99c' '2e58bb89b247b1678355368956e67c1de51fcde97a227b2162f6771e30f17fa5520faafe7be4b6816a542e7ae10d05f64c6b6354f352c12746d4b8da632936dd' 'fde132f3705d908e6f2147c78a2193289916d72304ca5efa2229d79fc3e57a857314ce94e71425caef2f7f7b6cf87f05ef86335dc8bd4be78e7035afe608005a' '51ee159a1274f248f1fdf530e1e6d0b523c6ef98d66ebc30aa7c899e08ad35c36dbad9557a3e3917e5fcb3d006aeb70d457beb8ae268039030d8ae1ba209937d' 'b4e1377d97ad7e8144d6e55b6d43731e3271a5aec65b65ca6d81026a95f15f549b9303fb3c6f492099ca691e3f65f4cf7f0c3aa742df03b396d7f6d81813aa95' - '193d55f9acdb89c452fe1c8daeabeab497f8fb3ae03d41a07f48b77add651f0a78fa7c1485019b9dd5d63415ec18accf7dc502df539bdcca7317f16f9ab2d9e0' + '622ba7fcaa8619ae5c55eb2f6fca229fd57113cefcc83b4a74ac6370715e128134890fa08b5e5be89f00aeae2b740bf2ce3de71354e906dfa70682ad0b216c3a' 'SKIP') #export KBUILD_BUILD_HOST=arc4linux @@ -81,7 +85,9 @@ prepare() { # Hotfixes echo "Applying hotfixes" patch -p1 -i ../0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch - patch -p1 -i ../0002-efi-libstub-Fix-path-separator-regression.patch + patch -p1 -i ../0002-PCI-EDR-Log-only-ACPI_NOTIFY_DISCONNECT_RECOVER-even.patch + patch -p1 -i ../0003-ALSA-usb-audio-Fix-packet-size-calculation.patch + patch -p1 -i ../0004-drm-amd-display-Only-revalidate-bandwidth-on-medium-.patch patch -p1 -i ../sphinx-workaround.patch |