summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2021-05-20 12:10:09 -0400
committergraysky2021-05-20 12:10:37 -0400
commitec8faf0046151dc2f3a93550074b7e27ac217774 (patch)
tree796b511491a3d92ee2064acf8e8c5ab3e685409b
parent6902ebe69431a88fe68f637e7f85ee0286fc1f4f (diff)
downloadaur-ec8faf0046151dc2f3a93550074b7e27ac217774.tar.gz
Update to 5.12.6rc2-1
-rw-r--r--.SRCINFO18
-rw-r--r--0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch2
-rw-r--r--0002-Revert-bus-mhi-core-Process-execution-environment-ch.patch118
-rw-r--r--PKGBUILD10
4 files changed, 135 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0fef7e032f7..104ec1859b7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
pkgbase = linux-rc
- pkgver = 5.12.5rc2
+ pkgver = 5.12.6rc2
pkgrel = 1
url = https://www.kernel.org/
arch = x86_64
@@ -12,20 +12,22 @@ pkgbase = linux-rc
makedepends = tar
makedepends = xz
options = !strip
- source = https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.12.5-rc2.xz
- source = https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.12.5-rc2.sign
- source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.12.4.tar.xz
- source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.12.4.tar.sign
+ source = https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.12.6-rc2.xz
+ source = https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.12.6-rc2.sign
+ source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.12.5.tar.xz
+ source = https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.12.5.tar.sign
source = config
source = 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
+ source = 0002-Revert-bus-mhi-core-Process-execution-environment-ch.patch
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
- b2sums = aa8c99b0fa46afbb15fa28b3f90c06c8043231431da908b72d1dcd0501d2f04dcae06aee28455a137957e7d529ffff509af1d0eb4b8ee1fdee8b323a0ae8095c
+ b2sums = 22b06d9d8eb6e90e2e6e9d60b4585ec0a567ef36e2fc8628b5f3de1c76627bc5e658a27d1dcfc5dd45071a392898cb046fa182a14568bf39bcd25a0ddbc4b8d7
b2sums = SKIP
- b2sums = cb6413d9046bfbe68e7444aafd5353a3cf03a78aca38624dc91a313a8944c6da5d66f3fd7cc8dc47fc058287942d28c3e9d9eaa5da42a3a17d3d20e287968b03
+ b2sums = aa9209e38ad16160982c02d79bba9d9fbe64b2266959c5438e54a43598b110ef6b4a0f80c7605d950e8f8d250cda04fa964edf8e6aced8d0daa2a960ef495cd6
b2sums = SKIP
b2sums = ccb7779df282b54d9acf59682eaa93a39f27276798d61d4c8be8a3b31e582a377c9d3278a500744a3ed089a337807f95a2d23ef821af2f4a7eec24540092b746
- b2sums = 0d8b89b3853e2d40cf47ac41b4a2d6a5c45147961e613be568108e80ff40b350d530639e33364bdc47d3e217294ca14a1567d7aa95a422ebe8817c76cbc0fe85
+ b2sums = 009468b6fb9c859b5cfff12af1fd0ff8be60362c161af2c24a0d1bda5a7827c770cac0e3a7faf985d59419f693fba181c846390a25c6f07c769a652bcaeeaa32
+ b2sums = c3a333eea69c74444d8dc0a10ba112fb7bb7faa173140df829cb27afbf5d97c7ade2ae9d88bbd315a51438ca01f88f1f9b06d4bf8a52a2e29c1f5fa9370773ca
pkgname = linux-rc
pkgdesc = The release candidate kernel and modules
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 5adbaaaa9f7..845e2e19584 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,4 +1,4 @@
-From 6fe92facfd70f98899343cae2c4eacfe4225b387 Mon Sep 17 00:00:00 2001
+From ee5cf8733ed55ade590e32453b390090d40f7876 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/3] ZEN: Add sysctl and CONFIG to disallow unprivileged
diff --git a/0002-Revert-bus-mhi-core-Process-execution-environment-ch.patch b/0002-Revert-bus-mhi-core-Process-execution-environment-ch.patch
new file mode 100644
index 00000000000..fb7ab212fd7
--- /dev/null
+++ b/0002-Revert-bus-mhi-core-Process-execution-environment-ch.patch
@@ -0,0 +1,118 @@
+From e3f30700184dbcf2378428ac3fac8a6fd889d8c2 Mon Sep 17 00:00:00 2001
+From: Steven Barrett <steven@liquorix.net>
+Date: Tue, 18 May 2021 11:35:29 -0500
+Subject: [PATCH 2/3] Revert "bus: mhi: core: Process execution environment
+ changes serially"
+
+Fix ath11k / QCA6390 initialization:
+https://bugzilla.kernel.org/show_bug.cgi?id=213055
+
+This reverts commit 29b9829718c5e9bd68fc1c652f5e0ba9b9a64fed.
+---
+ drivers/bus/mhi/core/main.c | 40 ++++++++++++++++++-------------------
+ drivers/bus/mhi/core/pm.c | 7 +++----
+ 2 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/drivers/bus/mhi/core/main.c b/drivers/bus/mhi/core/main.c
+index 61c37b23dd71..bd71a2b6f984 100644
+--- a/drivers/bus/mhi/core/main.c
++++ b/drivers/bus/mhi/core/main.c
+@@ -444,7 +444,7 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv)
+ struct device *dev = &mhi_cntrl->mhi_dev->dev;
+ enum mhi_state state = MHI_STATE_MAX;
+ enum mhi_pm_state pm_state = 0;
+- enum mhi_ee_type ee = MHI_EE_MAX;
++ enum mhi_ee_type ee = 0;
+
+ write_lock_irq(&mhi_cntrl->pm_lock);
+ if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) {
+@@ -453,7 +453,8 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv)
+ }
+
+ state = mhi_get_mhi_state(mhi_cntrl);
+- ee = mhi_get_exec_env(mhi_cntrl);
++ ee = mhi_cntrl->ee;
++ mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
+ dev_dbg(dev, "local ee:%s device ee:%s dev_state:%s\n",
+ TO_MHI_EXEC_STR(mhi_cntrl->ee), TO_MHI_EXEC_STR(ee),
+ TO_MHI_STATE_STR(state));
+@@ -465,30 +466,27 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv)
+ }
+ write_unlock_irq(&mhi_cntrl->pm_lock);
+
+- if (pm_state != MHI_PM_SYS_ERR_DETECT || ee == mhi_cntrl->ee)
+- goto exit_intvec;
++ /* If device supports RDDM don't bother processing SYS error */
++ if (mhi_cntrl->rddm_image) {
++ /* host may be performing a device power down already */
++ if (!mhi_is_active(mhi_cntrl))
++ goto exit_intvec;
+
+- switch (ee) {
+- case MHI_EE_RDDM:
+- /* proceed if power down is not already in progress */
+- if (mhi_cntrl->rddm_image && mhi_is_active(mhi_cntrl)) {
++ if (mhi_cntrl->ee == MHI_EE_RDDM && mhi_cntrl->ee != ee) {
+ mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_EE_RDDM);
+- mhi_cntrl->ee = ee;
+ wake_up_all(&mhi_cntrl->state_event);
+ }
+- break;
+- case MHI_EE_PBL:
+- case MHI_EE_EDL:
+- case MHI_EE_PTHRU:
+- mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_FATAL_ERROR);
+- mhi_cntrl->ee = ee;
+- wake_up_all(&mhi_cntrl->state_event);
+- mhi_pm_sys_err_handler(mhi_cntrl);
+- break;
+- default:
++ goto exit_intvec;
++ }
++
++ if (pm_state == MHI_PM_SYS_ERR_DETECT) {
+ wake_up_all(&mhi_cntrl->state_event);
+- mhi_pm_sys_err_handler(mhi_cntrl);
+- break;
++
++ /* For fatal errors, we let controller decide next step */
++ if (MHI_IN_PBL(ee))
++ mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_FATAL_ERROR);
++ else
++ mhi_pm_sys_err_handler(mhi_cntrl);
+ }
+
+ exit_intvec:
+diff --git a/drivers/bus/mhi/core/pm.c b/drivers/bus/mhi/core/pm.c
+index 277704af7eb6..1edce7917b6b 100644
+--- a/drivers/bus/mhi/core/pm.c
++++ b/drivers/bus/mhi/core/pm.c
+@@ -377,22 +377,21 @@ static int mhi_pm_mission_mode_transition(struct mhi_controller *mhi_cntrl)
+ {
+ struct mhi_event *mhi_event;
+ struct device *dev = &mhi_cntrl->mhi_dev->dev;
+- enum mhi_ee_type ee = MHI_EE_MAX, current_ee = mhi_cntrl->ee;
++ enum mhi_ee_type current_ee = mhi_cntrl->ee;
+ int i, ret;
+
+ dev_dbg(dev, "Processing Mission Mode transition\n");
+
+ write_lock_irq(&mhi_cntrl->pm_lock);
+ if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state))
+- ee = mhi_get_exec_env(mhi_cntrl);
++ mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
+
+- if (!MHI_IN_MISSION_MODE(ee)) {
++ if (!MHI_IN_MISSION_MODE(mhi_cntrl->ee)) {
+ mhi_cntrl->pm_state = MHI_PM_LD_ERR_FATAL_DETECT;
+ write_unlock_irq(&mhi_cntrl->pm_lock);
+ wake_up_all(&mhi_cntrl->state_event);
+ return -EIO;
+ }
+- mhi_cntrl->ee = ee;
+ write_unlock_irq(&mhi_cntrl->pm_lock);
+
+ wake_up_all(&mhi_cntrl->state_event);
+--
+2.31.1
+
diff --git a/PKGBUILD b/PKGBUILD
index 1d5781bda28..d6fab2eb127 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ _srcname=linux-5.12
_major=5.12
### on initial release this is null otherwise it is the current stable subversion
### ie 1,2,3 corresponding $_major.1, $_major.3 etc
-_minor=4
+_minor=5
_minorc=$((_minor+1))
### on initial release this is just $_major
_fullver=$_major.$_minor
@@ -30,17 +30,19 @@ source=(
https://www.kernel.org/pub/linux/kernel/v5.x/linux-$_fullver.tar.{xz,sign}
config # the main kernel config file
0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
+ 0002-Revert-bus-mhi-core-Process-execution-environment-ch.patch
)
validpgpkeys=(
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
)
-b2sums=('aa8c99b0fa46afbb15fa28b3f90c06c8043231431da908b72d1dcd0501d2f04dcae06aee28455a137957e7d529ffff509af1d0eb4b8ee1fdee8b323a0ae8095c'
+b2sums=('22b06d9d8eb6e90e2e6e9d60b4585ec0a567ef36e2fc8628b5f3de1c76627bc5e658a27d1dcfc5dd45071a392898cb046fa182a14568bf39bcd25a0ddbc4b8d7'
'SKIP'
- 'cb6413d9046bfbe68e7444aafd5353a3cf03a78aca38624dc91a313a8944c6da5d66f3fd7cc8dc47fc058287942d28c3e9d9eaa5da42a3a17d3d20e287968b03'
+ 'aa9209e38ad16160982c02d79bba9d9fbe64b2266959c5438e54a43598b110ef6b4a0f80c7605d950e8f8d250cda04fa964edf8e6aced8d0daa2a960ef495cd6'
'SKIP'
'ccb7779df282b54d9acf59682eaa93a39f27276798d61d4c8be8a3b31e582a377c9d3278a500744a3ed089a337807f95a2d23ef821af2f4a7eec24540092b746'
- '0d8b89b3853e2d40cf47ac41b4a2d6a5c45147961e613be568108e80ff40b350d530639e33364bdc47d3e217294ca14a1567d7aa95a422ebe8817c76cbc0fe85')
+ '009468b6fb9c859b5cfff12af1fd0ff8be60362c161af2c24a0d1bda5a7827c770cac0e3a7faf985d59419f693fba181c846390a25c6f07c769a652bcaeeaa32'
+ 'c3a333eea69c74444d8dc0a10ba112fb7bb7faa173140df829cb27afbf5d97c7ade2ae9d88bbd315a51438ca01f88f1f9b06d4bf8a52a2e29c1f5fa9370773ca')
export KBUILD_BUILD_HOST=archlinux