Skip to contentSkip to conversation

5.8.10-rc1 review

PATCH In review Greg Kroah-Hartman 8 participants 198 messages Sep 15, 2020 – Sep 17, 2020 Page 2 of 2

Subsystems (3)
lore
Share & tools
lore
author maintainer
#42 lore raw

PATCH 31/177 RDMA/core: Fix reported speed and width

In reply to Greg Kroah-Hartman

From: Kamal Heib <[email protected]>

[ Upstream commit 28b0865714b315e318ac45c4fc9156f3d4649646 ]

When the returned speed from __ethtool_get_link_ksettings() is SPEED_UNKNOWN this will lead to reporting a wrong speed and width for providers that uses ib_get_eth_speed(), fix that by defaulting the netdev_speed to SPEED_1000 in case the returned value from __ethtool_get_link_ksettings() is SPEED_UNKNOWN.

Fixes d41861942fc5 ("IB/core: Add generic function to extract IB speed from netdev")
---
 drivers/infiniband/core/verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/verbs.c +1 -1
index f369f0a19e851..1b0ea945756f0 100644
@@ -1803,7 +1803,7 @@ int ib_get_eth_speed(struct ib_device *dev, u8 port_num, u8 *speed, u8 *width)
 
 	dev_put(netdev);
 
-	if (!rc) {
+	if (!rc && lksettings.base.speed != (u32)SPEED_UNKNOWN) {
 		netdev_speed = lksettings.base.speed;
 	} else {
 		netdev_speed = SPEED_1000;
Signature · 1 line
2.25.1
author maintainer
#7 lore raw

PATCH 7/177 ARM: dts: socfpga: fix register entry for timer3 on Arria10

In reply to Greg Kroah-Hartman

From: Dinh Nguyen <[email protected]>

[ Upstream commit 0ff5a4812be4ebd4782bbb555d369636eea164f7 ]

Fixes the register address for the timer3 entry on Arria10.

Fixes 475dc86d08de4 ("arm: dts: socfpga: Add a base DTSI for Altera's Arria10 SOC")
---
 arch/arm/boot/dts/socfpga_arria10.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/socfpga_arria10.dtsi +1 -1
index 8f614c4b0e3eb..9c71472c237bd 100644
@@ -819,7 +819,7 @@
 		timer3: timer3@ffd00100 {
 			compatible = "snps,dw-apb-timer";
 			interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
-			reg = <0xffd01000 0x100>;
+			reg = <0xffd00100 0x100>;
 			clocks = <&l4_sys_free_clk>;
 			clock-names = "timer";
 			resets = <&rst L4SYSTIMER1_RESET>;
Signature · 1 line
2.25.1
author maintainer
#9 lore raw

PATCH 9/177 selftests/timers: Turn off timeout setting

In reply to Greg Kroah-Hartman

From: Po-Hsu Lin <[email protected]>

[ Upstream commit 5c1e4f7e9e49b6925b1fb5c507d2c614f3edb292 ]

The following 4 tests in timers can take longer than the default 45 seconds that added in commit 852c8cbf34d3 ("selftests/kselftest/runner.sh:
Add 45 second timeout per test") to run:
* nsleep-lat - 2m7.350s
* set-timer-lat - 2m0.66s
* inconsistency-check - 1m45.074s
* raw_skew - 2m0.013s

Thus they will be marked as failed with the current 45s setting:
not ok 3 selftests: timers: nsleep-lat # TIMEOUT
not ok 4 selftests: timers: set-timer-lat # TIMEOUT not ok 6 selftests: timers: inconsistency-check # TIMEOUT not ok 7 selftests: timers: raw_skew # TIMEOUT

Disable the timeout setting for timers can make these tests finish properly:
ok 3 selftests: timers: nsleep-lat
ok 4 selftests: timers: set-timer-lat
ok 6 selftests: timers: inconsistency-check
ok 7 selftests: timers: raw_skew

https://bugs.launchpad.net/bugs/1864626

Fixes 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")
---
 tools/testing/selftests/timers/Makefile | 1 +
 tools/testing/selftests/timers/settings | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 tools/testing/selftests/timers/settings
tools/testing/selftests/timers/Makefile +1 -0
index 7656c7ce79d90..0e73a16874c4c 100644
@@ -13,6 +13,7 @@ DESTRUCTIVE_TESTS = alarmtimer-suspend valid-adjtimex adjtick change_skew \
 
 TEST_GEN_PROGS_EXTENDED = $(DESTRUCTIVE_TESTS)
 
+TEST_FILES := settings
 
 include ../lib.mk
 
tools/testing/selftests/timers/settings new file +1 -0
new file mode 100644
index 0000000000000..e7b9417537fbc
@@ -0,0 +1 @@
+timeout=0
Signature · 1 line
2.25.1
author maintainer
#6 lore raw

PATCH 6/177 regulator: remove superfluous lock in regulator_resolve_coupling()

In reply to Greg Kroah-Hartman

From: Michał Mirosław <[email protected]>

[ Upstream commit a577f3456c0a2fac3dee037c483753e6e68f3e49 ]

The code modifies rdev, but locks c_rdev instead. Remove the lock as this is held together by regulator_list_mutex taken in the caller.

---
 drivers/regulator/core.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/regulator/core.c +0 -4
index 86107d2e1733e..0ba5ca7082afd 100644
@@ -4891,13 +4891,9 @@ static void regulator_resolve_coupling(struct regulator_dev *rdev)
 			return;
 		}
 
-		regulator_lock(c_rdev);
-
 		c_desc->coupled_rdevs[i] = c_rdev;
 		c_desc->n_resolved++;
 
-		regulator_unlock(c_rdev);
-
 		regulator_resolve_coupling(c_rdev);
 	}
 }
Signature · 1 line
2.25.1
author maintainer
#43 lore raw

PATCH 32/177 scsi: megaraid_sas: Dont call disable_irq from process IRQ poll

In reply to Greg Kroah-Hartman

From: Tomas Henzl <[email protected]>

[ Upstream commit d2af39141eea34ef651961e885f49d96781a1016 ]

disable_irq() might sleep. Replace it with disable_irq_nosync() which is sufficient as irq_poll_scheduled protects against concurrently running complete_cmd_fusion() from megasas_irqpoll() and megasas_isr_fusion().

Fixes a6ffd5bf681 scsi: megaraid_sas: Call disable_irq from process IRQ poll
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/megaraid/megaraid_sas_fusion.c +1 -1
index fcf03f733e417..1a0e2e4342ad8 100644
@@ -3690,7 +3690,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget)
 	instance = irq_ctx->instance;
 
 	if (irq_ctx->irq_line_enable) {
-		disable_irq(irq_ctx->os_irq);
+		disable_irq_nosync(irq_ctx->os_irq);
 		irq_ctx->irq_line_enable = false;
 	}
 
Signature · 1 line
2.25.1
author maintainer
#33 lore raw

PATCH 22/177 RDMA/bnxt_re: Remove the qp from list only if the qp destroy succeeds

In reply to Greg Kroah-Hartman

From: Selvin Xavier <[email protected]>

[ Upstream commit 097a9d23b7250355b182c5fd47dd4c55b22b1c33 ]

Driver crashes when destroy_qp is re-tried because of an error returned. This is because the qp entry was removed from the qp list during the first call.

Remove qp from the list only if destroy_qp returns success.

The driver will still trigger a WARN_ON due to the memory leaking, but at least it isn't corrupting memory too.

Fixes 8dae419f9ec7 ("RDMA/bnxt_re: Refactor queue pair creation code")
---
 drivers/infiniband/hw/bnxt_re/ib_verbs.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
drivers/infiniband/hw/bnxt_re/ib_verbs.c +11 -11
index dad38aa06403d..cb6e873039df5 100644
@@ -752,12 +752,6 @@ static int bnxt_re_destroy_gsi_sqp(struct bnxt_re_qp *qp)
 	gsi_sqp = rdev->gsi_ctx.gsi_sqp;
 	gsi_sah = rdev->gsi_ctx.gsi_sah;
 
-	/* remove from active qp list */
-	mutex_lock(&rdev->qp_lock);
-	list_del(&gsi_sqp->list);
-	mutex_unlock(&rdev->qp_lock);
-	atomic_dec(&rdev->qp_count);
-
 	ibdev_dbg(&rdev->ibdev, "Destroy the shadow AH\n");
 	bnxt_qplib_destroy_ah(&rdev->qplib_res,
 			      &gsi_sah->qplib_ah,
@@ -772,6 +766,12 @@ static int bnxt_re_destroy_gsi_sqp(struct bnxt_re_qp *qp)
 	}
 	bnxt_qplib_free_qp_res(&rdev->qplib_res, &gsi_sqp->qplib_qp);
 
+	/* remove from active qp list */
+	mutex_lock(&rdev->qp_lock);
+	list_del(&gsi_sqp->list);
+	mutex_unlock(&rdev->qp_lock);
+	atomic_dec(&rdev->qp_count);
+
 	kfree(rdev->gsi_ctx.sqp_tbl);
 	kfree(gsi_sah);
 	kfree(gsi_sqp);
@@ -792,11 +792,6 @@ int bnxt_re_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata)
 	unsigned int flags;
 	int rc;
 
-	mutex_lock(&rdev->qp_lock);
-	list_del(&qp->list);
-	mutex_unlock(&rdev->qp_lock);
-	atomic_dec(&rdev->qp_count);
-
 	bnxt_qplib_flush_cqn_wq(&qp->qplib_qp);
 
 	rc = bnxt_qplib_destroy_qp(&rdev->qplib_res, &qp->qplib_qp);
@@ -819,6 +814,11 @@ int bnxt_re_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata)
 			goto sh_fail;
 	}
 
+	mutex_lock(&rdev->qp_lock);
+	list_del(&qp->list);
+	mutex_unlock(&rdev->qp_lock);
+	atomic_dec(&rdev->qp_count);
+
 	ib_umem_release(qp->rumem);
 	ib_umem_release(qp->sumem);
 
Signature · 1 line
2.25.1
author maintainer
#8 lore raw

PATCH 8/177 ARM: dts: omap5: Fix DSI base address and clocks

In reply to Greg Kroah-Hartman

From: David Shah <[email protected]>

[ Upstream commit 6542e2b613c2b1952e83973dc434831332ce8e27 ]

DSI was not probing due to base address off by 0x1000, and sys_clk missing.

With this patch, the Pyra display works if HDMI is disabled in the device tree.

Fixes 5a507162f096 ("ARM: dts: Configure interconnect target module for omap5 dsi1")
[[email protected]: standardized subject line, added fixes tag]
---
 arch/arm/boot/dts/omap5.dtsi | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
arch/arm/boot/dts/omap5.dtsi +11 -9
index fb889c5b00c9d..de55ac5e60f39 100644
@@ -463,11 +463,11 @@
 					};
 				};
 
-				target-module@5000 {
+				target-module@4000 {
 					compatible = "ti,sysc-omap2", "ti,sysc";
-					reg = <0x5000 0x4>,
-					      <0x5010 0x4>,
-					      <0x5014 0x4>;
+					reg = <0x4000 0x4>,
+					      <0x4010 0x4>,
+					      <0x4014 0x4>;
 					reg-names = "rev", "sysc", "syss";
 					ti,sysc-sidle = <SYSC_IDLE_FORCE>,
 							<SYSC_IDLE_NO>,
@@ -479,7 +479,7 @@
 					ti,syss-mask = <1>;
 					#address-cells = <1>;
 					#size-cells = <1>;
-					ranges = <0 0x5000 0x1000>;
+					ranges = <0 0x4000 0x1000>;
 
 					dsi1: encoder@0 {
 						compatible = "ti,omap5-dsi";
@@ -489,8 +489,9 @@
 						reg-names = "proto", "phy", "pll";
 						interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
 						status = "disabled";
-						clocks = <&dss_clkctrl OMAP5_DSS_CORE_CLKCTRL 8>;
-						clock-names = "fck";
+						clocks = <&dss_clkctrl OMAP5_DSS_CORE_CLKCTRL 8>,
+							 <&dss_clkctrl OMAP5_DSS_CORE_CLKCTRL 10>;
+						clock-names = "fck", "sys_clk";
 					};
 				};
 
@@ -520,8 +521,9 @@
 						reg-names = "proto", "phy", "pll";
 						interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
 						status = "disabled";
-						clocks = <&dss_clkctrl OMAP5_DSS_CORE_CLKCTRL 8>;
-						clock-names = "fck";
+						clocks = <&dss_clkctrl OMAP5_DSS_CORE_CLKCTRL 8>,
+							 <&dss_clkctrl OMAP5_DSS_CORE_CLKCTRL 10>;
+						clock-names = "fck", "sys_clk";
 					};
 				};
 
Signature · 1 line
2.25.1
author maintainer
#12 lore raw

PATCH 12/177 arm64: dts: imx: Add missing imx8mm-beacon-kit.dtb to build

In reply to Greg Kroah-Hartman

From: Rob Herring <[email protected]>

[ Upstream commit 56e79dfd036b538940227fb31371c1cd67b2467f ]

The imx8mm-beacon-kit.dtb was never added to dtbs-y and wasn't getting built. Fix it.

Fixes 593816fa2f35 ("arm64: dts: imx: Add Beacon i.MX8m-Mini development kit")
Cc Shawn Guo <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Pengutronix Kernel Team <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
---
 arch/arm64/boot/dts/freescale/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/Makefile +1 -0
index a39f0a1723e02..903c0eb61290d 100644
@@ -28,6 +28,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-honeycomb.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb
 
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb
Signature · 1 line
2.25.1
author maintainer
#18 lore raw

PATCH 18/177 RDMA/bnxt_re: Do not report transparent vlan from QP1

In reply to Greg Kroah-Hartman

From: Selvin Xavier <[email protected]>

[ Upstream commit 2d0e60ee322d512fa6bc62d23a6760b39a380847 ]

QP1 Rx CQE reports transparent VLAN ID in the completion and this is used while reporting the completion for received MAD packet. Check if the vlan id is configured before reporting it in the work completion.

Fixes 84511455ac5b ("RDMA/bnxt_re: report vlan_id and sl in qp1 recv completion")
---
 drivers/infiniband/hw/bnxt_re/ib_verbs.c | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
drivers/infiniband/hw/bnxt_re/ib_verbs.c +18 -3
index 8b6ad5cddfce9..dad38aa06403d 100644
@@ -3178,6 +3178,19 @@ static void bnxt_re_process_res_rawqp1_wc(struct ib_wc *wc,
 	wc->wc_flags |= IB_WC_GRH;
 }
 
+static bool bnxt_re_check_if_vlan_valid(struct bnxt_re_dev *rdev,
+					u16 vlan_id)
+{
+	/*
+	 * Check if the vlan is configured in the host.  If not configured, it
+	 * can be a transparent VLAN. So dont report the vlan id.
+	 */
+	if (!__vlan_find_dev_deep_rcu(rdev->netdev,
+				      htons(ETH_P_8021Q), vlan_id))
+		return false;
+	return true;
+}
+
 static bool bnxt_re_is_vlan_pkt(struct bnxt_qplib_cqe *orig_cqe,
 				u16 *vid, u8 *sl)
 {
@@ -3246,9 +3259,11 @@ static void bnxt_re_process_res_shadow_qp_wc(struct bnxt_re_qp *gsi_sqp,
 	wc->src_qp = orig_cqe->src_qp;
 	memcpy(wc->smac, orig_cqe->smac, ETH_ALEN);
 	if (bnxt_re_is_vlan_pkt(orig_cqe, &vlan_id, &sl)) {
-		wc->vlan_id = vlan_id;
-		wc->sl = sl;
-		wc->wc_flags |= IB_WC_WITH_VLAN;
+		if (bnxt_re_check_if_vlan_valid(rdev, vlan_id)) {
+			wc->vlan_id = vlan_id;
+			wc->sl = sl;
+			wc->wc_flags |= IB_WC_WITH_VLAN;
+		}
 	}
 	wc->port_num = 1;
 	wc->vendor_err = orig_cqe->status;
Signature · 1 line
2.25.1
author maintainer
#5 lore raw

PATCH 5/177 regulator: push allocation in regulator_ena_gpio_request() out of lock

In reply to Greg Kroah-Hartman

From: Michał Mirosław <[email protected]>

[ Upstream commit 467bf30142c64f2eb64e2ac67fa4595126230efd ]

Move another allocation out of regulator_list_mutex-protected region, as reclaim might want to take the same lock.

WARNING: possible circular locking dependency detected
5.7.13+ #534 Not tainted
------------------------------------------------------
kswapd0/383 is trying to acquire lock:
c0e5d920 (regulator_list_mutex){+.+.}-{3:3}, at: regulator_lock_dependent+0x54/0x2c0

but task is already holding lock:
c0e38518 (fs_reclaim){+.+.}-{0:0}, at: __fs_reclaim_acquire+0x0/0x50

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-> #1 (fs_reclaim){+.+.}-{0:0}:

       fs_reclaim_acquire.part.11+0x40/0x50
       fs_reclaim_acquire+0x24/0x28
       kmem_cache_alloc_trace+0x40/0x1e8
       regulator_register+0x384/0x1630
       devm_regulator_register+0x50/0x84
       reg_fixed_voltage_probe+0x248/0x35c

[...]
other info that might help us debug this:

 Possible unsafe locking scenario:
       CPU0                    CPU1
       ----                    ----
  lock(fs_reclaim);
                               lock(regulator_list_mutex);
                               lock(fs_reclaim);

lock(regulator_list_mutex);

*** DEADLOCK ***
[...]
2 locks held by kswapd0/383:
#0: c0e38518 (fs_reclaim){+.+.}-{0:0}, at: __fs_reclaim_acquire+0x0/0x50 #1: cb70e5e0 (hctx->srcu){....}-{0:0}, at: hctx_lock+0x60/0xb8
[...]

Fixes 541d052d7215 ("regulator: core: Only support passing enable GPIO descriptors")
[this commit only changes context]
Fixes f8702f9e4aa7 ("regulator: core: Use ww_mutex for regulators locking")
[this is when the regulator_list_mutex was introduced in reclaim locking path]
---
 drivers/regulator/core.c | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
drivers/regulator/core.c +14 -5
index 720f28844795b..86107d2e1733e 100644
@@ -2222,10 +2222,13 @@ EXPORT_SYMBOL_GPL(regulator_bulk_unregister_supply_alias);
 static int regulator_ena_gpio_request(struct regulator_dev *rdev,
 				const struct regulator_config *config)
 {
-	struct regulator_enable_gpio *pin;
+	struct regulator_enable_gpio *pin, *new_pin;
 	struct gpio_desc *gpiod;
 
 	gpiod = config->ena_gpiod;
+	new_pin = kzalloc(sizeof(*new_pin), GFP_KERNEL);
+
+	mutex_lock(&regulator_list_mutex);
 
 	list_for_each_entry(pin, &regulator_ena_gpio_list, list) {
 		if (pin->gpiod == gpiod) {
@@ -2234,9 +2237,13 @@ static int regulator_ena_gpio_request(struct regulator_dev *rdev,
 		}
 	}
 
-	pin = kzalloc(sizeof(struct regulator_enable_gpio), GFP_KERNEL);
-	if (pin == NULL)
+	if (new_pin == NULL) {
+		mutex_unlock(&regulator_list_mutex);
 		return -ENOMEM;
+	}
+
+	pin = new_pin;
+	new_pin = NULL;
 
 	pin->gpiod = gpiod;
 	list_add(&pin->list, &regulator_ena_gpio_list);
@@ -2244,6 +2251,10 @@ static int regulator_ena_gpio_request(struct regulator_dev *rdev,
 update_ena_gpio_to_rdev:
 	pin->request_count++;
 	rdev->ena_pin = pin;
+
+	mutex_unlock(&regulator_list_mutex);
+	kfree(new_pin);
+
 	return 0;
 }
 
@@ -5137,9 +5148,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
 	}
 
 	if (config->ena_gpiod) {
-		mutex_lock(&regulator_list_mutex);
 		ret = regulator_ena_gpio_request(rdev, config);
-		mutex_unlock(&regulator_list_mutex);
 		if (ret != 0) {
 			rdev_err(rdev, "Failed to request enable GPIO: %d\n",
 				 ret);
Signature · 1 line
2.25.1
author maintainer
#13 lore raw

PATCH 13/177 ARM: dts: imx7d-zii-rmu2: fix rgmii phy-mode for ksz9031 phy

In reply to Greg Kroah-Hartman

From: Chris Healy <[email protected]>

[ Upstream commit 5cbb80d5236b47b149da292b86d5fc99a680894b ]

Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on the imx7d-zii-rmu2 board.

The end result is that network receive behaviour is marginal with lots of RX CRC errors experienced and NFS frequently failing.

Quoting the explanation from Andrew Lunn in commit 0672d22a19244 ("ARM: dts: imx: Fix the AR803X phy-mode"):

"The problem here is, all the DTs were broken since day 0. However, because the PHY driver was also broken, nobody noticed and it worked. Now that the PHY driver has been fixed, all the bugs in the DTs now become an issue"

Fix it by switching to phy-mode = "rgmii-id".

Fixes bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")
---
 arch/arm/boot/dts/imx7d-zii-rmu2.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx7d-zii-rmu2.dts +1 -1
index e5e20b07f184b..7cb6153fc650b 100644
@@ -58,7 +58,7 @@
 			  <&clks IMX7D_ENET1_TIME_ROOT_CLK>;
 	assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
 	assigned-clock-rates = <0>, <100000000>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 	phy-handle = <&fec1_phy>;
 	status = "okay";
 
Signature · 1 line
2.25.1
author maintainer
#14 lore raw

PATCH 14/177 RDMA/rtrs-srv: Replace device_register with device_initialize and device_add

In reply to Greg Kroah-Hartman

From: Md Haris Iqbal <[email protected]>

[ Upstream commit baa5b28b7a474f66a511ebf71a2ade510652a2f6 ]

There are error cases when we will call free_srv before device kobject is initialized; in such cases calling put_device generates the following warning:

kobject: '(null)' (000000009f5445ed): is not initialized, yet kobject_put() is being called.

So call device_initialize() only once when the server is allocated. If we end up calling put_srv() and subsequently free_srv(), our call to put_device() would result in deletion of the obj. Call device_add() later when we actually have a connection. Correspondingly, call device_del() instead of device_unregister() when srv->dev_ref falls to 0.

---
 drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c | 8 ++++----
 drivers/infiniband/ulp/rtrs/rtrs-srv.c       | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c +4 -4
index 3d7877534bcc9..2f981ae970767 100644
@@ -182,16 +182,16 @@ static int rtrs_srv_create_once_sysfs_root_folders(struct rtrs_srv_sess *sess)
 	 * sysfs files are created
 	 */
 	dev_set_uevent_suppress(&srv->dev, true);
-	err = device_register(&srv->dev);
+	err = device_add(&srv->dev);
 	if (err) {
-		pr_err("device_register(): %d\n", err);
+		pr_err("device_add(): %d\n", err);
 		goto put;
 	}
 	srv->kobj_paths = kobject_create_and_add("paths", &srv->dev.kobj);
 	if (!srv->kobj_paths) {
 		err = -ENOMEM;
 		pr_err("kobject_create_and_add(): %d\n", err);
-		device_unregister(&srv->dev);
+		device_del(&srv->dev);
 		goto unlock;
 	}
 	dev_set_uevent_suppress(&srv->dev, false);
@@ -216,7 +216,7 @@ rtrs_srv_destroy_once_sysfs_root_folders(struct rtrs_srv_sess *sess)
 		kobject_del(srv->kobj_paths);
 		kobject_put(srv->kobj_paths);
 		mutex_unlock(&srv->paths_mutex);
-		device_unregister(&srv->dev);
+		device_del(&srv->dev);
 	} else {
 		mutex_unlock(&srv->paths_mutex);
 	}
drivers/infiniband/ulp/rtrs/rtrs-srv.c +1 -0
index a219bd1bdbc26..b61a18e57aeba 100644
@@ -1336,6 +1336,7 @@ static struct rtrs_srv *__alloc_srv(struct rtrs_srv_ctx *ctx,
 	uuid_copy(&srv->paths_uuid, paths_uuid);
 	srv->queue_depth = sess_queue_depth;
 	srv->ctx = ctx;
+	device_initialize(&srv->dev);
 
 	srv->chunks = kcalloc(srv->queue_depth, sizeof(*srv->chunks),
 			      GFP_KERNEL);
Signature · 1 line
2.25.1
author maintainer
#30 lore raw

PATCH 19/177 RDMA/bnxt_re: Fix the qp table indexing

In reply to Greg Kroah-Hartman

From: Selvin Xavier <[email protected]>

[ Upstream commit 84cf229f4001c1216afc3e4c7f05e1620a0dd4bc ]

qp->id can be a value outside the max number of qp. Indexing the qp table with the id can cause out of bounds crash. So changing the qp table indexing by (qp->id % max_qp -1).

Allocating one extra entry for QP1. Some adapters create one more than the max_qp requested to accommodate QP1. If the qp->id is 1, store the inforamtion in the last entry of the qp table.

Fixes f218d67ef004 ("RDMA/bnxt_re: Allow posting when QPs are in error")
---
 drivers/infiniband/hw/bnxt_re/qplib_fp.c   | 22 ++++++++++++++--------
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 10 ++++++----
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h |  5 +++++
 3 files changed, 25 insertions(+), 12 deletions(-)
drivers/infiniband/hw/bnxt_re/qplib_fp.c +14 -8
index c5e29577cd434..b217208f6bcce 100644
@@ -796,6 +796,7 @@ int bnxt_qplib_create_qp1(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
 	u16 cmd_flags = 0;
 	u32 qp_flags = 0;
 	u8 pg_sz_lvl;
+	u32 tbl_indx;
 	int rc;
 
 	RCFW_CMD_PREP(req, CREATE_QP1, cmd_flags);
@@ -891,8 +892,9 @@ int bnxt_qplib_create_qp1(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
 		rq->dbinfo.xid = qp->id;
 		rq->dbinfo.db = qp->dpi->dbr;
 	}
-	rcfw->qp_tbl[qp->id].qp_id = qp->id;
-	rcfw->qp_tbl[qp->id].qp_handle = (void *)qp;
+	tbl_indx = map_qp_id_to_tbl_indx(qp->id, rcfw);
+	rcfw->qp_tbl[tbl_indx].qp_id = qp->id;
+	rcfw->qp_tbl[tbl_indx].qp_handle = (void *)qp;
 
 	return 0;
 
@@ -950,6 +952,7 @@ int bnxt_qplib_create_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
 	u32 qp_flags = 0;
 	u8 pg_sz_lvl;
 	u16 max_rsge;
+	u32 tbl_indx;
 
 	RCFW_CMD_PREP(req, CREATE_QP, cmd_flags);
 
@@ -1118,8 +1121,9 @@ int bnxt_qplib_create_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
 		rq->dbinfo.xid = qp->id;
 		rq->dbinfo.db = qp->dpi->dbr;
 	}
-	rcfw->qp_tbl[qp->id].qp_id = qp->id;
-	rcfw->qp_tbl[qp->id].qp_handle = (void *)qp;
+	tbl_indx = map_qp_id_to_tbl_indx(qp->id, rcfw);
+	rcfw->qp_tbl[tbl_indx].qp_id = qp->id;
+	rcfw->qp_tbl[tbl_indx].qp_handle = (void *)qp;
 
 	return 0;
 
@@ -1467,10 +1471,12 @@ int bnxt_qplib_destroy_qp(struct bnxt_qplib_res *res,
 	struct cmdq_destroy_qp req;
 	struct creq_destroy_qp_resp resp;
 	u16 cmd_flags = 0;
+	u32 tbl_indx;
 	int rc;
 
-	rcfw->qp_tbl[qp->id].qp_id = BNXT_QPLIB_QP_ID_INVALID;
-	rcfw->qp_tbl[qp->id].qp_handle = NULL;
+	tbl_indx = map_qp_id_to_tbl_indx(qp->id, rcfw);
+	rcfw->qp_tbl[tbl_indx].qp_id = BNXT_QPLIB_QP_ID_INVALID;
+	rcfw->qp_tbl[tbl_indx].qp_handle = NULL;
 
 	RCFW_CMD_PREP(req, DESTROY_QP, cmd_flags);
 
@@ -1478,8 +1484,8 @@ int bnxt_qplib_destroy_qp(struct bnxt_qplib_res *res,
 	rc = bnxt_qplib_rcfw_send_message(rcfw, (void *)&req,
 					  (void *)&resp, NULL, 0);
 	if (rc) {
-		rcfw->qp_tbl[qp->id].qp_id = qp->id;
-		rcfw->qp_tbl[qp->id].qp_handle = qp;
+		rcfw->qp_tbl[tbl_indx].qp_id = qp->id;
+		rcfw->qp_tbl[tbl_indx].qp_handle = qp;
 		return rc;
 	}
 
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +6 -4
index 4e211162acee2..f7736e34ac64c 100644
@@ -307,14 +307,15 @@ static int bnxt_qplib_process_qp_event(struct bnxt_qplib_rcfw *rcfw,
 	__le16  mcookie;
 	u16 cookie;
 	int rc = 0;
-	u32 qp_id;
+	u32 qp_id, tbl_indx;
 
 	pdev = rcfw->pdev;
 	switch (qp_event->event) {
 	case CREQ_QP_EVENT_EVENT_QP_ERROR_NOTIFICATION:
 		err_event = (struct creq_qp_error_notification *)qp_event;
 		qp_id = le32_to_cpu(err_event->xid);
-		qp = rcfw->qp_tbl[qp_id].qp_handle;
+		tbl_indx = map_qp_id_to_tbl_indx(qp_id, rcfw);
+		qp = rcfw->qp_tbl[tbl_indx].qp_handle;
 		dev_dbg(&pdev->dev, "Received QP error notification\n");
 		dev_dbg(&pdev->dev,
 			"qpid 0x%x, req_err=0x%x, resp_err=0x%x\n",
@@ -615,8 +616,9 @@ int bnxt_qplib_alloc_rcfw_channel(struct bnxt_qplib_res *res,
 
 	cmdq->bmap_size = bmap_size;
 
-	rcfw->qp_tbl_size = qp_tbl_sz;
-	rcfw->qp_tbl = kcalloc(qp_tbl_sz, sizeof(struct bnxt_qplib_qp_node),
+	/* Allocate one extra to hold the QP1 entries */
+	rcfw->qp_tbl_size = qp_tbl_sz + 1;
+	rcfw->qp_tbl = kcalloc(rcfw->qp_tbl_size, sizeof(struct bnxt_qplib_qp_node),
 			       GFP_KERNEL);
 	if (!rcfw->qp_tbl)
 		goto fail;
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h +5 -0
index 157387636d004..5f2f0a5a3560f 100644
@@ -216,4 +216,9 @@ int bnxt_qplib_deinit_rcfw(struct bnxt_qplib_rcfw *rcfw);
 int bnxt_qplib_init_rcfw(struct bnxt_qplib_rcfw *rcfw,
 			 struct bnxt_qplib_ctx *ctx, int is_virtfn);
 void bnxt_qplib_mark_qp_error(void *qp_handle);
+static inline u32 map_qp_id_to_tbl_indx(u32 qid, struct bnxt_qplib_rcfw *rcfw)
+{
+	/* Last index of the qp_tbl is for QP1 ie. qp_tbl_size - 1*/
+	return (qid == 1) ? rcfw->qp_tbl_size - 1 : qid % rcfw->qp_tbl_size - 2;
+}
 #endif /* __BNXT_QPLIB_RCFW_H__ */
Signature · 1 line
2.25.1
author maintainer
#2 lore raw

PATCH 2/177 ARM: dts: logicpd-torpedo-baseboard: Fix broken audio

In reply to Greg Kroah-Hartman

From: Adam Ford <[email protected]>

[ Upstream commit d7dfee67688ac7f2dfd4c3bc70c053ee990c40b5 ]

Older versions of U-Boot would pinmux the whole board, but as the bootloader got updated, it started to only pinmux the pins it needed, and expected Linux to configure what it needed.

Unfortunately this caused an issue with the audio, because the mcbsp2 pins were configured in the device tree, they were never referenced by the driver. When U-Boot stopped muxing the audio pins, the audio died.

This patch adds the references to the associate the pin controller with the mcbsp2 driver which makes audio operate again.

Fixes 739f85bba5ab ("ARM: dts: Move most of logicpd-torpedo-37xx-devkit to logicpd-torpedo-baseboard")
---
 arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi +2 -0
index 381f0e82bb706..b0f6613e6d549 100644
@@ -81,6 +81,8 @@
 };
 
 &mcbsp2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp2_pins>;
 	status = "okay";
 };
 
Signature · 1 line
2.25.1
author maintainer
#15 lore raw

PATCH 15/177 RDMA/rxe: Fix memleak in rxe_mem_init_user

In reply to Greg Kroah-Hartman

From: Dinghao Liu <[email protected]>

[ Upstream commit e3ddd6067ee62f6e76ebcf61ff08b2c729ae412b ]

When page_address() fails, umem should be freed just like when rxe_mem_alloc() fails.

---
 drivers/infiniband/sw/rxe/rxe_mr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/infiniband/sw/rxe/rxe_mr.c +1 -0
index e83c7b518bfa2..bfb96a0d071bb 100644
@@ -207,6 +207,7 @@ int rxe_mem_init_user(struct rxe_pd *pd, u64 start,
 			vaddr = page_address(sg_page_iter_page(&sg_iter));
 			if (!vaddr) {
 				pr_warn("null vaddr\n");
+				ib_umem_release(umem);
 				err = -ENOMEM;
 				goto err1;
 			}
Signature · 1 line
2.25.1
author maintainer
#4 lore raw

PATCH 4/177 ARM: dts: logicpd-som-lv-baseboard: Fix missing video

In reply to Greg Kroah-Hartman

From: Adam Ford <[email protected]>

[ Upstream commit d1db7b80a6c8c5f81db0e80664d29b374750e2c6 ]

A previous commit removed the panel-dpi driver, which made the SOM-LV video stop working because it relied on the DPI driver for setting video timings. Now that the simple-panel driver is available in omap2plus, this patch migrates the SOM-LV dev kits to use a similar panel and remove the manual timing requirements. A similar patch was already done and applied to the Torpedo family.

Fixes 8bf4b1621178 ("drm/omap: Remove panel-dpi driver")
---
 .../boot/dts/logicpd-som-lv-baseboard.dtsi    | 27 ++++---------------
 1 file changed, 5 insertions(+), 22 deletions(-)
arch/arm/boot/dts/logicpd-som-lv-baseboard.dtsi +5 -22
index c310c33ca6f3f..395e05f10d36c 100644
@@ -104,35 +104,18 @@
 		regulator-max-microvolt = <3300000>;
 	};
 
-	lcd0: display@0 {
-		compatible = "panel-dpi";
-		label = "28";
-		status = "okay";
-		/* default-on; */
+	lcd0: display {
+		/* This isn't the exact LCD, but the timings meet spec */
+		compatible = "logicpd,type28";
 		pinctrl-names = "default";
 		pinctrl-0 = <&lcd_enable_pin>;
-		enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;	/* gpio155, lcd INI */
+		backlight = <&bl>;
+		enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;
 		port {
 			lcd_in: endpoint {
 				remote-endpoint = <&dpi_out>;
 			};
 		};
-
-		panel-timing {
-			clock-frequency = <9000000>;
-			hactive = <480>;
-			vactive = <272>;
-			hfront-porch = <3>;
-			hback-porch = <2>;
-			hsync-len = <42>;
-			vback-porch = <3>;
-			vfront-porch = <2>;
-			vsync-len = <11>;
-			hsync-active = <1>;
-			vsync-active = <1>;
-			de-active = <1>;
-			pixelclk-active = <0>;
-		};
 	};
 
 	bl: backlight {
Signature · 1 line
2.25.1
author maintainer
#31 lore raw

PATCH 20/177 RDMA/bnxt_re: Static NQ depth allocation

In reply to Greg Kroah-Hartman

From: Naresh Kumar PBS <[email protected]>

[ Upstream commit f86b31c6a28f06eed3f6d9dc958079853b0792f1 ]

At first, driver allocates memory for NQ based on qplib_ctx->cq_count and qplib_ctx->srqc_count. Later when creating ring, it uses a static value of 128K -1.

Fixing this with a static value for now.

Fixes b08fe048a69d ("RDMA/bnxt_re: Refactor net ring allocation function")
---
 drivers/infiniband/hw/bnxt_re/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/infiniband/hw/bnxt_re/main.c +1 -2
index 5c41e13496a02..882c4f49d3a87 100644
@@ -1027,8 +1027,7 @@ static int bnxt_re_alloc_res(struct bnxt_re_dev *rdev)
 		struct bnxt_qplib_nq *nq;
 
 		nq = &rdev->nq[i];
-		nq->hwq.max_elements = (qplib_ctx->cq_count +
-					qplib_ctx->srqc_count + 2);
+		nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT;
 		rc = bnxt_qplib_alloc_nq(&rdev->qplib_res, &rdev->nq[i]);
 		if (rc) {
 			ibdev_err(&rdev->ibdev, "Alloc Failed NQ%d rc:%#x",
Signature · 1 line
2.25.1
author maintainer
#17 lore raw

PATCH 17/177 RDMA/rxe: Fix panic when calling kmem_cache_create()

In reply to Greg Kroah-Hartman

From: Kamal Heib <[email protected]>

[ Upstream commit d862060a4b43479887ae8e2c0b74a58c4e27e5f3 ]

To avoid the following kernel panic when calling kmem_cache_create() with a NULL pointer from pool_cache(), Block the rxe_param_set_add() from running if the rdma_rxe module is not initialized.

 BUG: unable to handle kernel NULL pointer dereference at 000000000000000b
 PGD 0 P4D 0
 Oops: 0000 [#1] SMP NOPTI
 CPU: 4 PID: 8512 Comm: modprobe Kdump: loaded Not tainted 4.18.0-231.el8.x86_64 #1
 Hardware name: HPE ProLiant DL385 Gen10/ProLiant DL385 Gen10, BIOS A40 10/02/2018
 RIP: 0010:kmem_cache_alloc+0xd1/0x1b0
 Code: 8b 57 18 45 8b 77 1c 48 8b 5c 24 30 0f 1f 44 00 00 5b 48 89 e8 5d 41 5c 41 5d 41 5e 41 5f c3 81 e3 00 00 10 00 75 0e 4d 89 fe <41> f6 47 0b 04 0f 84 6c ff ff ff 4c 89 ff e8 cc da 01 00 49 89 c6
 RSP: 0018:ffffa2b8c773f9d0 EFLAGS: 00010246
 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000005
 RDX: 0000000000000004 RSI: 00000000006080c0 RDI: 0000000000000000
 RBP: ffff8ea0a8634fd0 R08: ffffa2b8c773f988 R09: 00000000006000c0
 R10: 0000000000000000 R11: 0000000000000230 R12: 00000000006080c0
 R13: ffffffffc0a97fc8 R14: 0000000000000000 R15: 0000000000000000
 FS:  00007f9138ed9740(0000) GS:ffff8ea4ae800000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 000000000000000b CR3: 000000046d59a000 CR4: 00000000003406e0
 Call Trace:
  rxe_alloc+0xc8/0x160 [rdma_rxe]
  rxe_get_dma_mr+0x25/0xb0 [rdma_rxe]
  __ib_alloc_pd+0xcb/0x160 [ib_core]
  ib_mad_init_device+0x296/0x8b0 [ib_core]
  add_client_context+0x11a/0x160 [ib_core]
  enable_device_and_get+0xdc/0x1d0 [ib_core]
  ib_register_device+0x572/0x6b0 [ib_core]
  ? crypto_create_tfm+0x32/0xe0
  ? crypto_create_tfm+0x7a/0xe0
  ? crypto_alloc_tfm+0x58/0xf0
  rxe_register_device+0x19d/0x1c0 [rdma_rxe]
  rxe_net_add+0x3d/0x70 [rdma_rxe]
  ? dev_get_by_name_rcu+0x73/0x90
  rxe_param_set_add+0xaf/0xc0 [rdma_rxe]
  parse_args+0x179/0x370
  ? ref_module+0x1b0/0x1b0
  load_module+0x135e/0x17e0
  ? ref_module+0x1b0/0x1b0
  ? __do_sys_init_module+0x13b/0x180
  __do_sys_init_module+0x13b/0x180
  do_syscall_64+0x5b/0x1a0
  entry_SYSCALL_64_after_hwframe+0x65/0xca
 RIP: 0033:0x7f9137ed296e

This can be triggered if a user tries to use the 'module option' which is not actually a real module option but some idiotic (and thankfully no obsolete) sysfs interface.

---
 drivers/infiniband/sw/rxe/rxe.c       | 4 ++++
 drivers/infiniband/sw/rxe/rxe.h       | 2 ++
 drivers/infiniband/sw/rxe/rxe_sysfs.c | 5 +++++
 3 files changed, 11 insertions(+)
drivers/infiniband/sw/rxe/rxe.c +4 -0
index c7191b5e04a5a..d6b1236b114ab 100644
@@ -48,6 +48,8 @@ static void rxe_cleanup_ports(struct rxe_dev *rxe)
 
 }
 
+bool rxe_initialized;
+
 /* free resources for a rxe device all objects created for this device must
  * have been destroyed
  */
@@ -345,6 +347,7 @@ static int __init rxe_module_init(void)
 		return err;
 
 	rdma_link_register(&rxe_link_ops);
+	rxe_initialized = true;
 	pr_info("loaded\n");
 	return 0;
 }
@@ -356,6 +359,7 @@ static void __exit rxe_module_exit(void)
 	rxe_net_exit();
 	rxe_cache_exit();
 
+	rxe_initialized = false;
 	pr_info("unloaded\n");
 }
 
drivers/infiniband/sw/rxe/rxe.h +2 -0
index fb07eed9e4028..cae1b0a24c850 100644
@@ -67,6 +67,8 @@
 
 #define RXE_ROCE_V2_SPORT		(0xc000)
 
+extern bool rxe_initialized;
+
 static inline u32 rxe_crc32(struct rxe_dev *rxe,
 			    u32 crc, void *next, size_t len)
 {
drivers/infiniband/sw/rxe/rxe_sysfs.c +5 -0
index ccda5f5a3bc0a..2af31d421bfc3 100644
@@ -61,6 +61,11 @@ static int rxe_param_set_add(const char *val, const struct kernel_param *kp)
 	struct net_device *ndev;
 	struct rxe_dev *exists;
 
+	if (!rxe_initialized) {
+		pr_err("Module parameters are not supported, use rdma link add or rxe_cfg\n");
+		return -EAGAIN;
+	}
+
 	len = sanitize_arg(val, intf, sizeof(intf));
 	if (!len) {
 		pr_err("add: invalid interface name\n");
Signature · 1 line
2.25.1
author maintainer
#10 lore raw

PATCH 10/177 ARM: dts: ls1021a: fix QuadSPI-memory reg range

In reply to Greg Kroah-Hartman

From: Matthias Schiffer <[email protected]>

[ Upstream commit 81dbbb417da4d1ac407dca5b434d39d5b6b91ef3 ]

According to the Reference Manual, the correct size is 512 MiB.

Without this fix, probing the QSPI fails:

fsl-quadspi 1550000.spi: ioremap failed for resource
[mem 0x40000000-0x7fffffff]
fsl-quadspi 1550000.spi: Freescale QuadSPI probe failed
fsl-quadspi: probe of 1550000.spi failed with error -12

Fixes 85f8ee78ab72 ("ARM: dts: ls1021a: Add support for QSPI with ls1021a SoC")
---
 arch/arm/boot/dts/ls1021a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/ls1021a.dtsi +1 -1
index b2ff27af090ec..9435ce527e855 100644
@@ -181,7 +181,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <0x0 0x1550000 0x0 0x10000>,
-			      <0x0 0x40000000 0x0 0x40000000>;
+			      <0x0 0x40000000 0x0 0x20000000>;
 			reg-names = "QuadSPI", "QuadSPI-memory";
 			interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
 			clock-names = "qspi_en", "qspi";
Signature · 1 line
2.25.1
author maintainer
#16 lore raw

PATCH 16/177 RDMA/rxe: Drop pointless checks in rxe_init_ports

In reply to Greg Kroah-Hartman

From: Kamal Heib <[email protected]>

[ Upstream commit 6112ef62826e91afbae5446d5d47b38e25f47e3f ]

Both pkey_tbl_len and gid_tbl_len are set in rxe_init_port_param() - so no need to check if they aren't set.

---
 drivers/infiniband/sw/rxe/rxe.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/infiniband/sw/rxe/rxe.c +0 -3
index 5642eefb4ba1c..c7191b5e04a5a 100644
@@ -147,9 +147,6 @@ static int rxe_init_ports(struct rxe_dev *rxe)
 
 	rxe_init_port_param(port);
 
-	if (!port->attr.pkey_tbl_len || !port->attr.gid_tbl_len)
-		return -EINVAL;
-
 	port->pkey_tbl = kcalloc(port->attr.pkey_tbl_len,
 			sizeof(*port->pkey_tbl), GFP_KERNEL);
 
Signature · 1 line
2.25.1
author maintainer
#3 lore raw

PATCH 3/177 ARM: dts: logicpd-som-lv-baseboard: Fix broken audio

In reply to Greg Kroah-Hartman

From: Adam Ford <[email protected]>

[ Upstream commit 4d26e9a028e3d88223e06fa133c3d55af7ddbceb ]

Older versions of U-Boot would pinmux the whole board, but as the bootloader got updated, it started to only pinmux the pins it needed, and expected Linux to configure what it needed.

Unfortunately this caused an issue with the audio, because the mcbsp2 pins were configured in the device tree but never referenced by the driver. When U-Boot stopped muxing the audio pins, the audio died.

This patch adds the references to the associate the pin controller with the mcbsp2 driver which makes audio operate again.

Fixes 5cb8b0fa55a9 ("ARM: dts: Move most of logicpd-som-lv-37xx-devkit.dts to logicpd-som-lv-baseboard.dtsi")
---
 arch/arm/boot/dts/logicpd-som-lv-baseboard.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/logicpd-som-lv-baseboard.dtsi +2 -0
index 100396f6c2feb..c310c33ca6f3f 100644
@@ -51,6 +51,8 @@
 
 &mcbsp2 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp2_pins>;
 };
 
 &charger {
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

PATCH 1/177 ARM: OMAP2+: Fix an IS_ERR() vs NULL check in _get_pwrdm()

In reply to Greg Kroah-Hartman

From: Jing Xiangfeng <[email protected]>

[ Upstream commit a58cfdba2039ff2d5758840e97a23a2dedecf1e8 ]

The of_clk_get() function returns error pointers, it never returns NULL.

Fixes 4ea3711aece4 ("ARM: OMAP2+: omap-iommu.c conversion to ti-sysc")
---
 arch/arm/mach-omap2/omap-iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/omap-iommu.c +1 -1
index 54aff33e55e6e..bfa5e1b8dba7f 100644
@@ -74,7 +74,7 @@ static struct powerdomain *_get_pwrdm(struct device *dev)
 		return pwrdm;
 
 	clk = of_clk_get(dev->of_node->parent, 0);
-	if (!clk) {
+	if (IS_ERR(clk)) {
 		dev_err(dev, "no fck found\n");
 		return NULL;
 	}
Signature · 1 line
2.25.1
author maintainer
#11 lore raw

PATCH 11/177 ARM: dts: imx7ulp: Correct gpio ranges

In reply to Greg Kroah-Hartman

From: Anson Huang <[email protected]>

[ Upstream commit deb6323b739c54e1a1e83cd3a2bae4901e3eebf6 ]

Correct gpio ranges according to i.MX7ULP pinctrl driver:

gpio_ptc: ONLY pin 0~19 are available;
gpio_ptd: ONLY pin 0~11 are available;
gpio_pte: ONLY pin 0~15 are available;
gpio_ptf: ONLY pin 0~19 are available;

Fixes 20434dc92c05 ("ARM: dts: imx: add common imx7ulp dtsi support")
---
 arch/arm/boot/dts/imx7ulp.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx7ulp.dtsi +4 -4
index f7c4878534c8e..1bff3efe8aafe 100644
@@ -394,7 +394,7 @@
 			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
 				 <&pcc3 IMX7ULP_CLK_PCTLC>;
 			clock-names = "gpio", "port";
-			gpio-ranges = <&iomuxc1 0 0 32>;
+			gpio-ranges = <&iomuxc1 0 0 20>;
 		};
 
 		gpio_ptd: gpio@40af0000 {
@@ -408,7 +408,7 @@
 			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
 				 <&pcc3 IMX7ULP_CLK_PCTLD>;
 			clock-names = "gpio", "port";
-			gpio-ranges = <&iomuxc1 0 32 32>;
+			gpio-ranges = <&iomuxc1 0 32 12>;
 		};
 
 		gpio_pte: gpio@40b00000 {
@@ -422,7 +422,7 @@
 			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
 				 <&pcc3 IMX7ULP_CLK_PCTLE>;
 			clock-names = "gpio", "port";
-			gpio-ranges = <&iomuxc1 0 64 32>;
+			gpio-ranges = <&iomuxc1 0 64 16>;
 		};
 
 		gpio_ptf: gpio@40b10000 {
@@ -436,7 +436,7 @@
 			clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>,
 				 <&pcc3 IMX7ULP_CLK_PCTLF>;
 			clock-names = "gpio", "port";
-			gpio-ranges = <&iomuxc1 0 96 32>;
+			gpio-ranges = <&iomuxc1 0 96 20>;
 		};
 	};
 
Signature · 1 line
2.25.1
#20 lore raw
In reply to Shuah Khan
Quoted 23 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:
    https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

Quoted 8 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.8.y and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

thanks,
-- Shuah

author maintainer
#21 lore raw
Quoted 34 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:
    https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

Quoted 7 lines

The following commit is what caused ath10k_pci driver problem that killed wifi.

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

odd,

greg k-h

maintainer Tested-by on the v1 series
#192 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

All tests passing for Tegra ...

Test results for stable-v5.8:

    14 builds:	14 pass, 0 fail
    26 boots:	26 pass, 0 fail
    60 tests:	60 pass, 0 fail

Linux version: 5.8.10-rc1-g337aafeeb4cd
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,

                tegra194-p2972-0000, tegra20-ventana,
                tegra210-p2371-2180, tegra210-p3450-0000,
                tegra30-cardhu-a04

Jon

Tested-by Linux Kernel Functional Testing on the v1 series
#194 lore raw
In reply to Greg Kroah-Hartman
Quoted 10 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 9 lines
        https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.

Summary
------------------------------------------------------------------------

kernel: 5.8.10-rc1
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-5.8.y
git commit: 337aafeeb4cdb1868fff6b6689b715ff376249a2
git describe: v5.8.9-178-g337aafeeb4cd
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.8.y/build/v5.8.9-178-g337aafeeb4cd

No regressions (compared to build v5.8.9)

No fixes (compared to build v5.8.9)

Ran 37876 total tests in the following environments and test suites.

Environments
--------------
- dragonboard-410c
- hi6220-hikey
- i386
- juno-r2
- juno-r2-compat
- juno-r2-kasan
- nxp-ls2088
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15
- x86
- x86-kasan

Test Suites
-----------
* build
* install-android-platform-tools-r2600
* kselftest
* kselftest/drivers
* kselftest/filesystems
* kselftest/net
* libhugetlbfs
* linux-log-parser
* ltp-cap_bounds-tests
* ltp-commands-tests
* ltp-containers-tests
* ltp-controllers-tests
* ltp-cpuhotplug-tests
* ltp-crypto-tests
* ltp-dio-tests
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-math-tests
* ltp-mm-tests
* ltp-tracing-tests
* perf
* v4l2-compliance
* ltp-ipc-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* network-basic-tests
* ltp-cve-tests
* ltp-open-posix-tests
* ltp-syscalls-tests
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-native/drivers
* kselftest-vsyscall-mode-native/filesystems
* kselftest-vsyscall-mode-native/net
* kselftest-vsyscall-mode-none
* kselftest-vsyscall-mode-none/drivers
* kselftest-vsyscall-mode-none/filesystems
* kselftest-vsyscall-mode-none/net
* ssuite

Signature · 2 lines
Linaro LKFT
https://lkft.linaro.org
author maintainer
#23 lore raw
In reply to Shuah Khan
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:
    https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 4 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Couldn't find anything obvious.

Again, really odd...

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

thanks,

greg k-h

author maintainer
#25 lore raw
In reply to Shuah Khan
Quoted 68 lines · Shuah Khan
Quoted 67 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:
    https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 4 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Couldn't find anything obvious.

Again, really odd...

Quoted 8 lines
Quoted 3 lines

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

Sorry. Yes. Dropping from 5.8 and 5.4 would be great until we figure out why this patch causes problems.

I will continue debugging and let you know what I find.

Thanks, now dropped from both trees.

greg k-h

#24 lore raw
In reply to Greg Kroah-Hartman
Quoted 63 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:
    https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 3 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Quoted 7 lines
Quoted 1 line

Couldn't find anything obvious.

Again, really odd...

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

Sorry. Yes. Dropping from 5.8 and 5.4 would be great until we figure out why this patch causes problems.

I will continue debugging and let you know what I find.

thanks,
-- Shuah

#22 lore raw
In reply to Greg Kroah-Hartman
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:
    https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Couldn't find anything obvious.

thanks,
-- Shuah

Tested-by on the v1 series
#196 lore raw
In reply to Greg Kroah-Hartman
Quoted 8 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

Build results:

	total: 154 pass: 154 fail: 0
Qemu test results:
	total: 430 pass: 430 fail: 0

Guenter

author maintainer
#193 lore raw
In reply to Jon Hunter
Quoted 26 lines · Jon Hunter
Quoted 9 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

Quoted 8 lines
	https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

All tests passing for Tegra ...

Test results for stable-v5.8:

    14 builds:	14 pass, 0 fail
    26 boots:	26 pass, 0 fail
    60 tests:	60 pass, 0 fail
Quoted 7 lines

Linux version: 5.8.10-rc1-g337aafeeb4cd
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,

                tegra194-p2972-0000, tegra20-ventana,
                tegra210-p2371-2180, tegra210-p3450-0000,
                tegra30-cardhu-a04

Thanks for testing all of these and letting me know.

greg k-h

author maintainer
#195 lore raw
In reply to Naresh Kamboju
Quoted 19 lines · Naresh Kamboju
Quoted 17 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

        https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz

or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.8.y
and the diffstat can be found below.

thanks,

Quoted 7 lines
Quoted 2 lines

greg k-h

Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.

Thanks for testing all of these and letting me know.

greg k-h

author maintainer
#197 lore raw
In reply to Guenter Roeck
Quoted 10 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

Quoted 6 lines

Build results:

	total: 154 pass: 154 fail: 0
Qemu test results:
	total: 430 pass: 430 fail: 0

Thanks for testing them all and letting me know.

greg k-h

Tested-by
#26 lore raw
In reply to Greg Kroah-Hartman
Quoted 69 lines · Greg Kroah-Hartman
Quoted 68 lines · Shuah Khan
Quoted 67 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

       https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz
Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 4 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Couldn't find anything obvious.

Again, really odd...

Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

Sorry. Yes. Dropping from 5.8 and 5.4 would be great until we figure out why this patch causes problems.

I will continue debugging and let you know what I find.

With this it boots and wifi is good for me. I am very puzzled by why this made a difference to make sure I am not narrowing in on the wrong patch.

Compiled and booted on my test system. No dmesg regressions.

thanks,
-- Shuah

author maintainer
#27 lore raw
Quoted 80 lines · Shuah Khan
Quoted 69 lines · Greg Kroah-Hartman
Quoted 68 lines · Shuah Khan
Quoted 67 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

       https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz
Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 4 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Couldn't find anything obvious.

Again, really odd...

Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

Sorry. Yes. Dropping from 5.8 and 5.4 would be great until we figure out why this patch causes problems.

I will continue debugging and let you know what I find.

Quoted 7 lines

With this it boots and wifi is good for me. I am very puzzled by why this made a difference to make sure I am not narrowing in on the wrong patch.

Compiled and booted on my test system. No dmesg regressions.

Great, thanks for testing them all and letting me know.

greg k-h

#28 lore raw
Quoted 78 lines · Greg Kroah-Hartman
Quoted 77 lines · Shuah Khan
Quoted 76 lines · Greg Kroah-Hartman
Quoted 75 lines · Shuah Khan
Quoted 63 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

        https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz
Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 3 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Quoted 7 lines
Quoted 1 line

Couldn't find anything obvious.

Again, really odd...

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

Sorry. Yes. Dropping from 5.8 and 5.4 would be great until we figure out why this patch causes problems.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 1 line

I will continue debugging and let you know what I find.

With this it boots and wifi is good for me. I am very puzzled by why this made a difference to make sure I am not narrowing in on the wrong patch.

Update on this. I did a series of reboots and boots with the patch I asked you to drop and I am not seeing the wifi problem.

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

With my testing, I think it is an unrelated issue and the error messages from the fw load code path in the driver when wifi failed through me off.

Sorry for making you drop the patch from 5.8.y and 5.4.y. Please include them in the next rc.

thanks,
-- Shuah

author maintainer
#29 lore raw
Quoted 93 lines · Shuah Khan
Quoted 78 lines · Greg Kroah-Hartman
Quoted 77 lines · Shuah Khan
Quoted 76 lines · Greg Kroah-Hartman
Quoted 75 lines · Shuah Khan
Quoted 63 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 38 lines · Greg Kroah-Hartman
Quoted 37 lines · Shuah Khan
Quoted 24 lines · Shuah Khan
Quoted 11 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 5.8.10 release. There are 177 patches in this series, all will be posted as a response to this one.  If anyone has any issues with these being applied, please let me know.

Responses should be made by Thu, 17 Sep 2020 14:06:12 +0000. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

        https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.8.10-rc1.gz
Quoted 9 lines

or in the git tree and branch at:
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-5.8.y
and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted fine. wifi died:

Quoted 8 lines

ath10k_pci 0000:02:00.0: could not init core (-110) ath10k_pci 0000:02:00.0: could not probe fw (-110)

This is regression from 5.8.9 and 5.9-rc5 works just fine.

I will try to bisect later this evening to see if I can isolate the commit.

The following commit is what caused ath10k_pci driver problem that killed wifi.

Quoted 9 lines
Quoted 4 lines

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-5.8.y&id=ec0a59266c9c9f46037efd3dcc0323973e102271

Ugh, that's not good, is this also a problem in 5.9-rc5 as well? For reference, this is commit 4965b8cd1bc1 ("firmware_loader: fix memory leak for paged buffer") in Linus's tree.

Quoted 7 lines

I am not seeing this on Linux 5.9-rc5 for sure.

Quoted 3 lines

And it should be showing up in 5.4.y at the moment too, as this patch is in that tree right now...

I don't see this patch in 4.19.146-rc1

It's not there, it's in 5.4.66-rc1, which worked for you somehow, right?

Quoted 3 lines

Linus's tree works for with this patch in. I compared the two files for differences in commit between Linus's tree and 5.8.10-rc1

Quoted 7 lines
Quoted 1 line

Couldn't find anything obvious.

Again, really odd...

I don't have a problem dropping it, but I should drop it from both 5.4.y and 5.8.y, right?

Sorry. Yes. Dropping from 5.8 and 5.4 would be great until we figure out why this patch causes problems.

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 1 line

I will continue debugging and let you know what I find.

With this it boots and wifi is good for me. I am very puzzled by why this made a difference to make sure I am not narrowing in on the wrong patch.

Update on this. I did a series of reboots and boots with the patch I asked you to drop and I am not seeing the wifi problem.

Prateek Sood <[email protected]>
firmware_loader: fix memory leak for paged buffer

Quoted 6 lines

With my testing, I think it is an unrelated issue and the error messages from the fw load code path in the driver when wifi failed through me off.

Sorry for making you drop the patch from 5.8.y and 5.4.y. Please include them in the next rc.

No worries, now added back, thanks for testing some more.

greg k-h