diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-09-11 17:16:23 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-09-11 17:16:23 -0700 |
commit | 513f9bc90d5bc0b812ec58b5ecce9edd8ea8af6a (patch) | |
tree | 380afd832a4059d6725d5b3863cb066d7ad45801 | |
parent | Updated to 5.19.6 (diff) | |
download | linux-513f9bc90d5bc0b812ec58b5ecce9edd8ea8af6a.tar.xz |
Updated to 5.19.8
8 files changed, 122 insertions, 34 deletions
diff --git a/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch b/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch index 96fd2fa..9a1d231 100644 --- a/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch +++ b/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch @@ -1,7 +1,7 @@ -From def86e269f3edccdc1004be9f64fc7ee2f0f12d0 Mon Sep 17 00:00:00 2001 +From 94b991f547408a533740c69260971d38cfb01075 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> Date: Mon, 16 Sep 2019 04:53:20 +0200 -Subject: [PATCH 1/6] ZEN: Add sysctl and CONFIG to disallow unprivileged +Subject: [PATCH 1/7] ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER Our default behavior continues to match the vanilla kernel. @@ -150,5 +150,5 @@ index 5481ba44a8d6..423ab2563ad7 100644 static DEFINE_MUTEX(userns_state_mutex); -- -2.37.1 +2.37.2 diff --git a/0002-drm-i915-psr-Use-full-update-In-case-of-area-calcula.patch b/0002-drm-i915-psr-Use-full-update-In-case-of-area-calcula.patch index cd36f84..e080fa6 100644 --- a/0002-drm-i915-psr-Use-full-update-In-case-of-area-calcula.patch +++ b/0002-drm-i915-psr-Use-full-update-In-case-of-area-calcula.patch @@ -1,7 +1,7 @@ -From 229f9299c99ad1201c7b3586d4c80c7ba6c157b3 Mon Sep 17 00:00:00 2001 +From a109628df29f8cde35ffcdeda2d6f5181a85d59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= <jouni.hogander@intel.com> Date: Fri, 13 May 2022 17:28:10 +0300 -Subject: [PATCH 2/6] drm/i915/psr: Use full update In case of area calculation +Subject: [PATCH 2/7] drm/i915/psr: Use full update In case of area calculation fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -61,5 +61,5 @@ index 06db407e2749..fecdaaeac39e 100644 goto skip_sel_fetch_set_loop; -- -2.37.1 +2.37.2 diff --git a/0003-drm-i915-Ensure-damage-clip-area-is-within-pipe-area.patch b/0003-drm-i915-Ensure-damage-clip-area-is-within-pipe-area.patch index 781cecd..625826b 100644 --- a/0003-drm-i915-Ensure-damage-clip-area-is-within-pipe-area.patch +++ b/0003-drm-i915-Ensure-damage-clip-area-is-within-pipe-area.patch @@ -1,7 +1,7 @@ -From 92d772d7269af7f39562c9350f8c88d493b6b17e Mon Sep 17 00:00:00 2001 +From 8a07cff9f880a1d528c3d4fd19c3bc3b86fb87f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= <jouni.hogander@intel.com> Date: Fri, 13 May 2022 17:28:11 +0300 -Subject: [PATCH 3/6] drm/i915: Ensure damage clip area is within pipe area +Subject: [PATCH 3/7] drm/i915: Ensure damage clip area is within pipe area MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -101,5 +101,5 @@ index fecdaaeac39e..36356893c7ca 100644 /* -- -2.37.1 +2.37.2 diff --git a/0004-mm-vmscan-fix-extreme-overreclaim-and-swap-floods.patch b/0004-mm-vmscan-fix-extreme-overreclaim-and-swap-floods.patch index 9bb8e5e..ee51c1c 100644 --- a/0004-mm-vmscan-fix-extreme-overreclaim-and-swap-floods.patch +++ b/0004-mm-vmscan-fix-extreme-overreclaim-and-swap-floods.patch @@ -1,7 +1,7 @@ -From 94e150170f4db2042f35ba74bf1fa63322f0100a Mon Sep 17 00:00:00 2001 +From 8da1f278ee7823d1d3d4438131bc0d33f19e9918 Mon Sep 17 00:00:00 2001 From: Johannes Weiner <hannes@cmpxchg.org> Date: Tue, 2 Aug 2022 12:28:11 -0400 -Subject: [PATCH 4/6] mm: vmscan: fix extreme overreclaim and swap floods +Subject: [PATCH 4/7] mm: vmscan: fix extreme overreclaim and swap floods During proactive reclaim, we sometimes observe severe overreclaim, with several thousand times more pages reclaimed than requested. @@ -127,5 +127,5 @@ index f7d9a683e3a7..1cc0c6666787 100644 blk_finish_plug(&plug); sc->nr_reclaimed += nr_reclaimed; -- -2.37.1 +2.37.2 diff --git a/0005-soundwire-intel-use-pm_runtime_resume-on-component-p.patch b/0005-soundwire-intel-use-pm_runtime_resume-on-component-p.patch index a334331..d686ce1 100644 --- a/0005-soundwire-intel-use-pm_runtime_resume-on-component-p.patch +++ b/0005-soundwire-intel-use-pm_runtime_resume-on-component-p.patch @@ -1,7 +1,7 @@ -From 025353ab40d53ab61e4c378582cfbdfd7f684f99 Mon Sep 17 00:00:00 2001 +From aaaa4d04d55ded0ec738ae5a6f927eeec66434e3 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Date: Tue, 21 Jun 2022 17:56:40 -0500 -Subject: [PATCH 5/6] soundwire: intel: use pm_runtime_resume() on component +Subject: [PATCH 5/7] soundwire: intel: use pm_runtime_resume() on component probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -78,5 +78,5 @@ index 505c5ef061e3..95ce292994cc 100644 }; -- -2.37.1 +2.37.2 diff --git a/0006-ALSA-hda-Once-again-fix-regression-of-page-allocatio.patch b/0006-ALSA-hda-Once-again-fix-regression-of-page-allocatio.patch new file mode 100644 index 0000000..93ce067 --- /dev/null +++ b/0006-ALSA-hda-Once-again-fix-regression-of-page-allocatio.patch @@ -0,0 +1,84 @@ +From a72ed1112caeb42af858924293b47029d7bc8500 Mon Sep 17 00:00:00 2001 +From: Takashi Iwai <tiwai@suse.de> +Date: Tue, 6 Sep 2022 11:03:19 +0200 +Subject: [PATCH 6/7] ALSA: hda: Once again fix regression of page allocations + with IOMMU + +The last fix for trying to recover the regression on AMD platforms, +unfortunately, leaded to yet another regression: it turned out that +IOMMUs don't like the usage of raw page allocations. + +This is yet another attempt for addressing the log saga; at this time, +we re-use the existing buffer allocation mechanism with SG-pages +although we require only single pages. The SG buffer allocation +itself was confirmed to work for stream buffers, so it's relatively +easy to adapt for other places. + +The only problem is: although the HD-audio code is accessing the +address directly via dmab->address field, SG-pages don't set up it. +For the ease of adaption, we now set up the dmab->addr field from the +address of the first page as default, so that it can run with the +HD-audio driver code as-is without the excessive call of +snd_sgbuf_get_addr() multiple times; that's the only change in the +memalloc helper side. The rest is nothing but a flip of the dma_type +field in the HD-audio side. + +Fixes: a8d302a0b770 ("ALSA: memalloc: Revive x86-specific WC page allocations again") +Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> +Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> +Cc: <stable@vger.kernel.org> +Link: https://lore.kernel.org/r/CABXGCsO+kB2t5QyHY-rUe76npr1m0-5JOtt8g8SiHUo34ur7Ww@mail.gmail.com +Link: https://bugzilla.kernel.org/show_bug.cgi?id=216112 +Link: https://bugzilla.kernel.org/show_bug.cgi?id=216363 +Link: https://lore.kernel.org/r/20220906090319.23358-1-tiwai@suse.de +Signed-off-by: Takashi Iwai <tiwai@suse.de> +--- + sound/core/memalloc.c | 9 +++++++-- + sound/pci/hda/hda_intel.c | 2 +- + 2 files changed, 8 insertions(+), 3 deletions(-) + +diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c +index 55b3c49ba61d..244afc38ddca 100644 +--- a/sound/core/memalloc.c ++++ b/sound/core/memalloc.c +@@ -535,10 +535,13 @@ static void *snd_dma_noncontig_alloc(struct snd_dma_buffer *dmab, size_t size) + dmab->dev.need_sync = dma_need_sync(dmab->dev.dev, + sg_dma_address(sgt->sgl)); + p = dma_vmap_noncontiguous(dmab->dev.dev, size, sgt); +- if (p) ++ if (p) { + dmab->private_data = sgt; +- else ++ /* store the first page address for convenience */ ++ dmab->addr = snd_sgbuf_get_addr(dmab, 0); ++ } else { + dma_free_noncontiguous(dmab->dev.dev, size, sgt, dmab->dev.dir); ++ } + return p; + } + +@@ -772,6 +775,8 @@ static void *snd_dma_sg_fallback_alloc(struct snd_dma_buffer *dmab, size_t size) + if (!p) + goto error; + dmab->private_data = sgbuf; ++ /* store the first page address for convenience */ ++ dmab->addr = snd_sgbuf_get_addr(dmab, 0); + return p; + + error: +diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c +index a77165bd92a9..b20694fd69de 100644 +--- a/sound/pci/hda/hda_intel.c ++++ b/sound/pci/hda/hda_intel.c +@@ -1817,7 +1817,7 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci, + + /* use the non-cached pages in non-snoop mode */ + if (!azx_snoop(chip)) +- azx_bus(chip)->dma_type = SNDRV_DMA_TYPE_DEV_WC; ++ azx_bus(chip)->dma_type = SNDRV_DMA_TYPE_DEV_WC_SG; + + if (chip->driver_type == AZX_DRIVER_NVIDIA) { + dev_dbg(chip->card->dev, "Enable delay in RIRB handling\n"); +-- +2.37.2 + @@ -9,7 +9,7 @@ # Arch version is 300 Hz # Arch version does not disable lockdown or integrity eee # Arch version does not disable HDCP -# Arch version does not disable IME/PSP and SGX/SEV and TXT/TEE and PXP +# Arch version does not disable IME/PSP and SGX/SEV and TXT/TEE/TDX and PXP # Arch version does not disable /dev/random being directly filled by rdrand # Arch version uses git @@ -19,7 +19,7 @@ _custom=0 pkgbase=linux _supver=5 _majver=19 -_minver=6 +_minver=8 _gccpatchver='20220315' _gccpatchker='5.17+' if [ "$_minver" == "0" ]; then @@ -47,6 +47,7 @@ source=( 0003-drm-i915-Ensure-damage-clip-area-is-within-pipe-area.patch 0004-mm-vmscan-fix-extreme-overreclaim-and-swap-floods.patch 0005-soundwire-intel-use-pm_runtime_resume-on-component-p.patch + 0006-ALSA-hda-Once-again-fix-regression-of-page-allocatio.patch kernel_compiler_patch-${_gccpatchver}.tar.gz::https://github.com/graysky2/kernel_compiler_patch/archive/${_gccpatchver}.tar.gz ath9k-regdom-hack.patch raid6-default-algo.patch @@ -56,25 +57,27 @@ validpgpkeys=( '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) # https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc -sha256sums=('41a4f824af614460c429a7c723e8dcbb0e042f0047d328c18b4ed6f2b4efa63a' +sha256sums=('616308795a952a6a39b4c74807c33916850eb7166d8ed7c9a87a1ba55d7487ce' 'SKIP' - '6bcf2eb3d3847dff866eb1a755598fa8c8bcda3242e80bd417b452a72d73d059' - '180c46b1a72a472595ae56ad480c1999d165d485e277b5fde617e9b47fa043cd' - 'f005c97c004164f974929b40821a1e1d83f2c596a53fa15d5b11f974dc4b90d3' - '0e1cb39e301ba7a8a86f110caafeb51f02222a0302681aa4b357fc48ced545b0' - 'c95f77b0dd8eef06ef1c3399ec32143baebce5349ba4fe7c102c0ad4389cb359' - '3770a414a5d3a74f30ce20883b2e44d11e2e5c1ce6c877f30247b8976ea210ef' + '9c432835f1946ae193f59a2bb31fe1710fc3c19a155e076c61ce8d5c67716085' + '01cc6ce2532e8d1e7b09356685bbd6411511db172623dffc9893648cfcec965b' + 'cb1d989d6d2933aa7014a54ada1d211d1ce7ec4e151b796e31c91b315fcfcdac' + 'c780396f89f014b8af75a05b46873c9034444ae3fb4f79dfb9573838b4c9e96c' + 'ff8f03fdb1d47fae5a0b963dce81b07d10bbb2d97e5e7364690f70110e8cf59a' + 'e29c3d59d7a2fe43fb86d78145f039632c5f124f6a42d712fa99e87fe24ac052' + '807d79f002fe0ef0404f20ad28549a2860eb3eb34b297a3fdcd2481d6b7c5a20' '5a29d172d442a3f31a402d7d306aaa292b0b5ea29139d05080a55e2425f48c5c' 'e9e0d289170b7fb598b572d9c892ae8d1420952034aa415e8b3334f20a58edcc' '6ab863c8cfe6e0dd53a9d6455872fd4391508a8b97ab92e3f13558a6617b12a6') -b2sums=('dd6fba4d56d26923310426589b28c83f699a62b676a76257e0ac49bc85d30ffb24f7a66a20108dfc5bdaa1454fb0ece3f28c483b246d3778cff220de527ec4aa' +b2sums=('59731fb2ceb6b1e6bb79121b0e07c755d2ce37cdf6b82458fe24bf6bb25f88f9d18dd2b657988842bb7b2a1c2ba685fdf3bf130bfca8960b801cd6ee1a973932' 'SKIP' - '905eb48a5fc52f012931fa8576d41654c3949f71f80b082c6f5014abb439f62ae2acd86bd335d66b1e794ff5909080e76d642382b86b0d3e93cbb8257aa97f42' - 'a16b6618d6f40332b05f867d6611a7542806f5b1f13ffd6f06d875c281187aea28f5f26cf1250fe8902d94b473c68e2173c62073416e5e2f414eded588df7b19' - '07f4568e058391e28dbb3bd959d977d1bec3b661e46bf2f28492b8a308203c93f9e9f73348da13c660510ff55d15d7cfc9406e677aa00c86ce6d1b553bd9bbb6' - '26622129cf33159aee5b1061847958575e3c3703723ea1e83e266462b44a5e216b6aae1680c70463d4b2122ee8fe31487d39fb61a7335111ee62d2959539b6ed' - 'a09b7ccf3192a42b756d3feb89753d16042da3113bb5d269f9cc9e17a6e3ddaedc19ccca21f65c6306f987443e11b8faa0fa48595bab27deec7bc7ddb5d296c5' - '77c8caa7c5fc9c64f9e27d0a1a70496e970fa769f8e9cba38908c97dea2657eebeb8a0e7386aacbf7d126a1a8f351f3157b1853c1085bc97087a1205997430f3' + 'db611718464698e8dcc5332d441e0a807b5d6bb42c609b453035a1230b05ee5d7a7cef36a3c3477e389527cf816f645d582f43a50442d66692fe3a5e8a410c69' + 'fce7cffc63bdee190179171bd3a1b4c63924f6f20fe2cf365ba25763a423ff91e6f83917f5c07e6c436ffcbc5f3b49c474c1e8d430730cbbba7b83c75fb3ccc9' + '3ea126197266d596617941c7f36c29e48b5167b817f19ac24485bafd3815e16eb33589432ca038cd283255b5fd4c4d66f0986b0bb50c3fa50022017ee1bf8507' + '471201842b50e639fb3b7a9e01ec311a7384c38c3a6678cde02d83e58711c5634e93702aae43b07ca758de8ada5363c2d42ba2c22b9e2e0eeb9a6be6526894b0' + '25f6d4310920e7bb72b1da2f208b40b2e65ea1112b7deb24752b5d694155167eb431322c31f9dde5258e7bcf453e0ce0903bc07b1e515fe7cbbda2bec4392637' + 'c137261768ac53a7e7b97f8f86b563a0f41f077f22297ed3c96ca595345c9fcc040461fd33e83af07223ee20d940afb5b5b2001c6ccf433d79453b3d9c14f912' + 'fb083e1cb1145a02ab7225240885f40595b86f5440b4b0c52587af4cd4e8395ae212b28754d3541f705e9044b4bc11882d2cd9fb90be2fa92370bbfaac716041' '20674a8fcc0a85726e06460a7dbccfe731c46bf377cc3bf511b7591175e7df892f271bc1909e77d9a02913c753d241493502c5ab15d9f78e95f31aa4399c2c27' 'b6ef77035611139fa9a6d5b8d30570e2781bb4da483bb569884b0bd0129b62e0b82a5a6776fefe43fee801c70d39de1ea4d4c177f7cedd5ac135e3c64f7b895a' 'e94aa35d92cec92f4b0d487e0569790f3b712b9eaa5107f14a4200578e398ca740bf369f30f070c8beb56a72d1a6d0fc06beb650d798a64f44abe5e3af327728') @@ -101,6 +104,7 @@ prepare() { patch -p1 -i ../0003-drm-i915-Ensure-damage-clip-area-is-within-pipe-area.patch patch -p1 -i ../0004-mm-vmscan-fix-extreme-overreclaim-and-swap-floods.patch patch -p1 -i ../0005-soundwire-intel-use-pm_runtime_resume-on-component-p.patch + patch -p1 -i ../0006-ALSA-hda-Once-again-fix-regression-of-page-allocatio.patch # graysky gcc patch echo "Applying graysky gcc patch" @@ -383,7 +383,7 @@ CONFIG_PARAVIRT_TIME_ACCOUNTING=y CONFIG_PARAVIRT_CLOCK=y CONFIG_JAILHOUSE_GUEST=y CONFIG_ACRN_GUEST=y -CONFIG_INTEL_TDX_GUEST=y +# CONFIG_INTEL_TDX_GUEST is not set # CONFIG_MK8 is not set # CONFIG_MK8SSE3 is not set # CONFIG_MK10 is not set @@ -8643,8 +8643,8 @@ CONFIG_VMGENID=y CONFIG_VBOXGUEST=m CONFIG_NITRO_ENCLAVES=m CONFIG_ACRN_HSM=m -CONFIG_EFI_SECRET=m -CONFIG_SEV_GUEST=m +# CONFIG_EFI_SECRET is not set +# CONFIG_SEV_GUEST is not set CONFIG_VIRTIO_ANCHOR=y CONFIG_VIRTIO=y CONFIG_VIRTIO_PCI_LIB=m |