Patch "net: stmmac: dwc-qos: Disable split header for Tegra194" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: stmmac: dwc-qos: Disable split header for Tegra194

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-stmmac-dwc-qos-disable-split-header-for-tegra194.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2005c90207772e86467df2683b35ebafa2e23250
Author: Jon Hunter <jonathanh@xxxxxxxxxx>
Date:   Wed Jul 6 09:39:13 2022 +0100

    net: stmmac: dwc-qos: Disable split header for Tegra194
    
    [ Upstream commit 029c1c2059e9c4b38f97a06204cdecd10cfbeb8a ]
    
    There is a long-standing issue with the Synopsys DWC Ethernet driver
    for Tegra194 where random system crashes have been observed [0]. The
    problem occurs when the split header feature is enabled in the stmmac
    driver. In the bad case, a larger than expected buffer length is
    received and causes the calculation of the total buffer length to
    overflow. This results in a very large buffer length that causes the
    kernel to crash. Why this larger buffer length is received is not clear,
    however, the feedback from the NVIDIA design team is that the split
    header feature is not supported for Tegra194. Therefore, disable split
    header support for Tegra194 to prevent these random crashes from
    occurring.
    
    [0] https://lore.kernel.org/linux-tegra/b0b17697-f23e-8fa5-3757-604a86f3a095@xxxxxxxxxx/
    
    Fixes: 67afd6d1cfdf ("net: stmmac: Add Split Header support and enable it in XGMAC cores")
    Signed-off-by: Jon Hunter <jonathanh@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220706083913.13750-1-jonathanh@xxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
index bc91fd867dcd..358fc26f8d1f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
@@ -361,6 +361,7 @@ static int tegra_eqos_probe(struct platform_device *pdev,
 	data->fix_mac_speed = tegra_eqos_fix_speed;
 	data->init = tegra_eqos_init;
 	data->bsp_priv = eqos;
+	data->sph_disable = 1;
 
 	err = tegra_eqos_init(pdev, eqos);
 	if (err < 0)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux