aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeontx
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-03-26 15:19:42 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-28 13:03:02 +0100
commit5ecc0cfd6f3da1e8f573024753169aa6f115745e (patch)
tree23aa098938d7a572de3f56bc35661cd5cb2a05aa /target/linux/octeontx
parentbf15557f8a85e7ada25074122f4af5bd3a5df697 (diff)
downloadupstream-5ecc0cfd6f3da1e8f573024753169aa6f115745e.tar.gz
upstream-5ecc0cfd6f3da1e8f573024753169aa6f115745e.tar.bz2
upstream-5ecc0cfd6f3da1e8f573024753169aa6f115745e.zip
kernel: bump 5.4 to 5.4.28
Changelog since 5.4.24 mentions CVE-2019-19769, CVE-2020-8648, CVE-2020-8649 and CVE-2020-8647. Removed upstreamed: generic: 507-v5.6-iio-chemical-sps30-fix-missing-triggered-buffer-depe.patch generic: 600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch bcm27xx: 950-0435-ASoC-pcm512x-Fix-unbalanced-regulator-enable-call-in.patch ipq806x: 701-stmmac-fix-notifier-registration.patch lantiq: 002-pinctrl-falcon-fix-syntax-error.patch octeontx: 0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch Run tested: apu2, qemu-x86-64, apalis, a64-olinuxino, nbg6617 Build tested: sunxi/a53, imx6, x86/64, ipq40xx Tested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> [apu2] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/octeontx')
-rw-r--r--target/linux/octeontx/patches-5.4/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch7
-rw-r--r--target/linux/octeontx/patches-5.4/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch150
-rw-r--r--target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch14
-rw-r--r--target/linux/octeontx/patches-5.4/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch9
4 files changed, 7 insertions, 173 deletions
diff --git a/target/linux/octeontx/patches-5.4/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch b/target/linux/octeontx/patches-5.4/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch
index 0369e6ff67..6f144b6db8 100644
--- a/target/linux/octeontx/patches-5.4/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch
+++ b/target/linux/octeontx/patches-5.4/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch
@@ -29,11 +29,9 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
-index 8ae28f8..5f2db9c 100644
--- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
+++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
-@@ -1042,7 +1042,7 @@ static int phy_interface_mode(u8 lmac_type)
+@@ -1048,7 +1048,7 @@ static int phy_interface_mode(u8 lmac_ty
if (lmac_type == BGX_MODE_QSGMII)
return PHY_INTERFACE_MODE_QSGMII;
if (lmac_type == BGX_MODE_RGMII)
@@ -42,6 +40,3 @@ index 8ae28f8..5f2db9c 100644
return PHY_INTERFACE_MODE_SGMII;
}
---
-2.7.4
-
diff --git a/target/linux/octeontx/patches-5.4/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch b/target/linux/octeontx/patches-5.4/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
deleted file mode 100644
index 597dd9da74..0000000000
--- a/target/linux/octeontx/patches-5.4/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
+++ /dev/null
@@ -1,150 +0,0 @@
-From 585ddca487c827178cf697f8bc2e87346061d155 Mon Sep 17 00:00:00 2001
-From: Tim Harvey <tharvey@gateworks.com>
-Date: Wed, 19 Feb 2020 15:19:36 -0800
-Subject: [PATCH 02/12] net: thunderx: workaround BGX TX Underflow issue
-
-While it is not yet understood why a TX underflow can easily occur
-for SGMII interfaces resulting in a TX wedge. It has been found that
-disabling/re-enabling the LMAC resolves the issue.
-
-Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-Reviewed-by: Robert Jones <rjones@gateworks.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
----
- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 62 +++++++++++++++++++++--
- drivers/net/ethernet/cavium/thunder/thunder_bgx.h | 9 ++++
- 2 files changed, 68 insertions(+), 3 deletions(-)
-
-diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
-index 5f2db9c..ade414a 100644
---- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
-+++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
-@@ -413,10 +413,19 @@ void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable)
- lmac = &bgx->lmac[lmacid];
-
- cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_CFG);
-- if (enable)
-+ if (enable) {
- cfg |= CMR_PKT_RX_EN | CMR_PKT_TX_EN;
-- else
-+
-+ /* enable TX FIFO Underflow interrupt */
-+ bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_TXX_INT_ENA_W1S,
-+ GMI_TXX_INT_UNDFLW);
-+ } else {
- cfg &= ~(CMR_PKT_RX_EN | CMR_PKT_TX_EN);
-+
-+ /* Disable TX FIFO Underflow interrupt */
-+ bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_TXX_INT_ENA_W1C,
-+ GMI_TXX_INT_UNDFLW);
-+ }
- bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg);
-
- if (bgx->is_rgx)
-@@ -1544,6 +1553,48 @@ static int bgx_init_phy(struct bgx *bgx)
- return bgx_init_of_phy(bgx);
- }
-
-+static irqreturn_t bgx_intr_handler(int irq, void *data)
-+{
-+ struct bgx *bgx = (struct bgx *)data;
-+ u64 status, val;
-+ int lmac;
-+
-+ for (lmac = 0; lmac < bgx->lmac_count; lmac++) {
-+ status = bgx_reg_read(bgx, lmac, BGX_GMP_GMI_TXX_INT);
-+ if (status & GMI_TXX_INT_UNDFLW) {
-+ pci_err(bgx->pdev, "BGX%d lmac%d UNDFLW\n",
-+ bgx->bgx_id, lmac);
-+ val = bgx_reg_read(bgx, lmac, BGX_CMRX_CFG);
-+ val &= ~CMR_EN;
-+ bgx_reg_write(bgx, lmac, BGX_CMRX_CFG, val);
-+ val |= CMR_EN;
-+ bgx_reg_write(bgx, lmac, BGX_CMRX_CFG, val);
-+ }
-+ /* clear interrupts */
-+ bgx_reg_write(bgx, lmac, BGX_GMP_GMI_TXX_INT, status);
-+ }
-+
-+ return IRQ_HANDLED;
-+}
-+
-+static void bgx_register_intr(struct pci_dev *pdev)
-+{
-+ struct bgx *bgx = pci_get_drvdata(pdev);
-+ int ret;
-+
-+ ret = pci_alloc_irq_vectors(pdev, BGX_LMAC_VEC_OFFSET,
-+ BGX_LMAC_VEC_OFFSET, PCI_IRQ_ALL_TYPES);
-+ if (ret < 0) {
-+ pci_err(pdev, "Req for #%d msix vectors failed\n",
-+ BGX_LMAC_VEC_OFFSET);
-+ return;
-+ }
-+ ret = pci_request_irq(pdev, GMPX_GMI_TX_INT, bgx_intr_handler, NULL,
-+ bgx, "BGX%d", bgx->bgx_id);
-+ if (ret)
-+ pci_free_irq(pdev, GMPX_GMI_TX_INT, bgx);
-+}
-+
- static int bgx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
- {
- int err;
-@@ -1559,7 +1610,7 @@ static int bgx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
-
- pci_set_drvdata(pdev, bgx);
-
-- err = pci_enable_device(pdev);
-+ err = pcim_enable_device(pdev);
- if (err) {
- dev_err(dev, "Failed to enable PCI device\n");
- pci_set_drvdata(pdev, NULL);
-@@ -1613,6 +1664,8 @@ static int bgx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
-
- bgx_init_hw(bgx);
-
-+ bgx_register_intr(pdev);
-+
- /* Enable all LMACs */
- for (lmac = 0; lmac < bgx->lmac_count; lmac++) {
- err = bgx_lmac_enable(bgx, lmac);
-@@ -1629,6 +1682,7 @@ static int bgx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
-
- err_enable:
- bgx_vnic[bgx->bgx_id] = NULL;
-+ pci_free_irq(pdev, GMPX_GMI_TX_INT, bgx);
- err_release_regions:
- pci_release_regions(pdev);
- err_disable_device:
-@@ -1646,6 +1700,8 @@ static void bgx_remove(struct pci_dev *pdev)
- for (lmac = 0; lmac < bgx->lmac_count; lmac++)
- bgx_lmac_disable(bgx, lmac);
-
-+ pci_free_irq(pdev, GMPX_GMI_TX_INT, bgx);
-+
- bgx_vnic[bgx->bgx_id] = NULL;
- pci_release_regions(pdev);
- pci_disable_device(pdev);
-diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.h b/drivers/net/ethernet/cavium/thunder/thunder_bgx.h
-index cbdd20b..ac0c89c 100644
---- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.h
-+++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.h
-@@ -183,6 +183,15 @@
- #define BGX_GMP_GMI_TXX_BURST 0x38228
- #define BGX_GMP_GMI_TXX_MIN_PKT 0x38240
- #define BGX_GMP_GMI_TXX_SGMII_CTL 0x38300
-+#define BGX_GMP_GMI_TXX_INT 0x38500
-+#define BGX_GMP_GMI_TXX_INT_W1S 0x38508
-+#define BGX_GMP_GMI_TXX_INT_ENA_W1C 0x38510
-+#define BGX_GMP_GMI_TXX_INT_ENA_W1S 0x38518
-+#define GMI_TXX_INT_PTP_LOST BIT_ULL(4)
-+#define GMI_TXX_INT_LATE_COL BIT_ULL(3)
-+#define GMI_TXX_INT_XSDEF BIT_ULL(2)
-+#define GMI_TXX_INT_XSCOL BIT_ULL(1)
-+#define GMI_TXX_INT_UNDFLW BIT_ULL(0)
-
- #define BGX_MSIX_VEC_0_29_ADDR 0x400000 /* +(0..29) << 4 */
- #define BGX_MSIX_VEC_0_29_CTL 0x400008
---
-2.7.4
-
diff --git a/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch b/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch
index aabf1b9b1e..6096fcf2be 100644
--- a/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch
+++ b/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch
@@ -12,11 +12,9 @@ Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/net/can/spi/mcp251x.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
-diff --git a/drivers/net/can/spi/mcp251x.c b/drivers/net/can/spi/mcp251x.c
-index 0b0dd3f0..c655b29 100644
--- a/drivers/net/can/spi/mcp251x.c
+++ b/drivers/net/can/spi/mcp251x.c
-@@ -345,8 +345,7 @@ static u8 mcp251x_read_reg(struct spi_device *spi, uint8_t reg)
+@@ -291,23 +291,23 @@ static u8 mcp251x_read_reg(struct spi_de
priv->spi_tx_buf[0] = INSTRUCTION_READ;
priv->spi_tx_buf[1] = reg;
@@ -26,9 +24,8 @@ index 0b0dd3f0..c655b29 100644
return val;
}
-@@ -354,15 +353,16 @@ static u8 mcp251x_read_reg(struct spi_device *spi, uint8_t reg)
- static void mcp251x_read_2regs(struct spi_device *spi, uint8_t reg,
- uint8_t *v1, uint8_t *v2)
+
+ static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2)
{
+ u8 val[4] = {0};
struct mcp251x_priv *priv = spi_get_drvdata(spi);
@@ -45,7 +42,4 @@ index 0b0dd3f0..c655b29 100644
+ *v2 = val[1];
}
- static void mcp251x_write_reg(struct spi_device *spi, u8 reg, uint8_t val)
---
-2.7.4
-
+ static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val)
diff --git a/target/linux/octeontx/patches-5.4/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch b/target/linux/octeontx/patches-5.4/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch
index f7bc97c035..70990a102a 100644
--- a/target/linux/octeontx/patches-5.4/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch
+++ b/target/linux/octeontx/patches-5.4/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch
@@ -12,11 +12,9 @@ Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/pci/quirks.c | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
-diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
-index 419dda6..40e2ddb 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
-@@ -26,6 +26,7 @@
+@@ -25,6 +25,7 @@
#include <linux/ktime.h>
#include <linux/mm.h>
#include <linux/nvme.h>
@@ -24,7 +22,7 @@ index 419dda6..40e2ddb 100644
#include <linux/platform_data/x86/apple.h>
#include <linux/pm_runtime.h>
#include <linux/switchtec.h>
-@@ -5216,3 +5217,34 @@ static void quirk_reset_lenovo_thinkpad_p50_nvgpu(struct pci_dev *pdev)
+@@ -5431,3 +5432,34 @@ out_disable:
DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_NVIDIA, 0x13b1,
PCI_CLASS_DISPLAY_VGA, 8,
quirk_reset_lenovo_thinkpad_p50_nvgpu);
@@ -59,6 +57,3 @@ index 419dda6..40e2ddb 100644
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8606, newport_pciesw_early_fixup);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8604, newport_pciesw_early_fixup);
+#endif /* CONFIG_PCI_HOST_THUNDER_PEM */
---
-2.7.4
-