]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jul 2019 10:43:18 +0000 (12:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jul 2019 10:43:18 +0000 (12:43 +0200)
added patches:
e1000e-start-network-tx-queue-only-when-link-is-up.patch

queue-4.14/series
queue-4.19/series [new file with mode: 0644]
queue-4.4/e1000e-start-network-tx-queue-only-when-link-is-up.patch [new file with mode: 0644]
queue-4.4/series
queue-4.9/series
queue-5.1/series [new file with mode: 0644]
queue-5.2/series [new file with mode: 0644]

index 491d86815366f7af74a7a3e2b8a6fcd6549b1f3b..fa824e815b699767003cd25c1b4068eea441304a 100644 (file)
@@ -1,3 +1,5 @@
+revert-e1000e-fix-cyclic-resets-at-link-up-with-active-tx.patch
+e1000e-start-network-tx-queue-only-when-link-is-up.patch
 crypto-talitos-rename-alternative-aead-algos.patch
 input-elantech-enable-middle-button-support-on-2-thi.patch
 samples-bpf-fix-to-change-the-buffer-size-for-read.patch
diff --git a/queue-4.19/series b/queue-4.19/series
new file mode 100644 (file)
index 0000000..1bd1db6
--- /dev/null
@@ -0,0 +1,2 @@
+revert-e1000e-fix-cyclic-resets-at-link-up-with-active-tx.patch
+e1000e-start-network-tx-queue-only-when-link-is-up.patch
diff --git a/queue-4.4/e1000e-start-network-tx-queue-only-when-link-is-up.patch b/queue-4.4/e1000e-start-network-tx-queue-only-when-link-is-up.patch
new file mode 100644 (file)
index 0000000..01030d0
--- /dev/null
@@ -0,0 +1,74 @@
+From d17ba0f616a08f597d9348c372d89b8c0405ccf3 Mon Sep 17 00:00:00 2001
+From: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
+Date: Wed, 17 Apr 2019 11:13:20 +0300
+Subject: e1000e: start network tx queue only when link is up
+
+From: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
+
+commit d17ba0f616a08f597d9348c372d89b8c0405ccf3 upstream.
+
+Driver does not want to keep packets in Tx queue when link is lost.
+But present code only reset NIC to flush them, but does not prevent
+queuing new packets. Moreover reset sequence itself could generate
+new packets via netconsole and NIC falls into endless reset loop.
+
+This patch wakes Tx queue only when NIC is ready to send packets.
+
+This is proper fix for problem addressed by commit 0f9e980bf5ee
+("e1000e: fix cyclic resets at link up with active tx").
+
+Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
+Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
+Tested-by: Joseph Yasi <joe.yasi@gmail.com>
+Tested-by: Aaron Brown <aaron.f.brown@intel.com>
+Tested-by: Oleksandr Natalenko <oleksandr@redhat.com>
+Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/ethernet/intel/e1000e/netdev.c |    6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/ethernet/intel/e1000e/netdev.c
++++ b/drivers/net/ethernet/intel/e1000e/netdev.c
+@@ -4171,7 +4171,7 @@ int e1000e_up(struct e1000_adapter *adap
+               e1000_configure_msix(adapter);
+       e1000_irq_enable(adapter);
+-      netif_start_queue(adapter->netdev);
++      /* Tx queue started by watchdog timer when link is up */
+       /* fire a link change interrupt to start the watchdog */
+       if (adapter->msix_entries)
+@@ -4539,6 +4539,7 @@ static int e1000_open(struct net_device
+       pm_runtime_get_sync(&pdev->dev);
+       netif_carrier_off(netdev);
++      netif_stop_queue(netdev);
+       /* allocate transmit descriptors */
+       err = e1000e_setup_tx_resources(adapter->tx_ring);
+@@ -4599,7 +4600,6 @@ static int e1000_open(struct net_device
+       e1000_irq_enable(adapter);
+       adapter->tx_hang_recheck = false;
+-      netif_start_queue(netdev);
+       hw->mac.get_link_status = true;
+       pm_runtime_put(&pdev->dev);
+@@ -5226,6 +5226,7 @@ static void e1000_watchdog_task(struct w
+                       if (phy->ops.cfg_on_link_up)
+                               phy->ops.cfg_on_link_up(hw);
++                      netif_wake_queue(netdev);
+                       netif_carrier_on(netdev);
+                       if (!test_bit(__E1000_DOWN, &adapter->state))
+@@ -5239,6 +5240,7 @@ static void e1000_watchdog_task(struct w
+                       /* Link status message must follow this format */
+                       pr_info("%s NIC Link is Down\n", adapter->netdev->name);
+                       netif_carrier_off(netdev);
++                      netif_stop_queue(netdev);
+                       if (!test_bit(__E1000_DOWN, &adapter->state))
+                               mod_timer(&adapter->phy_info_timer,
+                                         round_jiffies(jiffies + 2 * HZ));
index d55744def8fb044f93812af7a6f1f5eccf2b1bd2..8957148a9ec04ce004ecc50c7b8102beb2dd6205 100644 (file)
@@ -25,3 +25,4 @@ staging-comedi-amplc_pci230-fix-null-pointer-deref-on-interrupt.patch
 carl9170-fix-misuse-of-device-driver-api.patch
 vmci-fix-integer-overflow-in-vmci-handle-arrays.patch
 mips-remove-superfluous-check-for-__linux__.patch
+e1000e-start-network-tx-queue-only-when-link-is-up.patch
index 072de65ce76c46672ffb9f59ba92a69e7c16dc6e..853273a5bcccbabd51f7cc7f82f46cf2971d5b4f 100644 (file)
@@ -37,3 +37,5 @@ staging-comedi-amplc_pci230-fix-null-pointer-deref-on-interrupt.patch
 carl9170-fix-misuse-of-device-driver-api.patch
 vmci-fix-integer-overflow-in-vmci-handle-arrays.patch
 mips-remove-superfluous-check-for-__linux__.patch
+revert-e1000e-fix-cyclic-resets-at-link-up-with-active-tx.patch
+e1000e-start-network-tx-queue-only-when-link-is-up.patch
diff --git a/queue-5.1/series b/queue-5.1/series
new file mode 100644 (file)
index 0000000..1bd1db6
--- /dev/null
@@ -0,0 +1,2 @@
+revert-e1000e-fix-cyclic-resets-at-link-up-with-active-tx.patch
+e1000e-start-network-tx-queue-only-when-link-is-up.patch
diff --git a/queue-5.2/series b/queue-5.2/series
new file mode 100644 (file)
index 0000000..1bd1db6
--- /dev/null
@@ -0,0 +1,2 @@
+revert-e1000e-fix-cyclic-resets-at-link-up-with-active-tx.patch
+e1000e-start-network-tx-queue-only-when-link-is-up.patch