* [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size
@ 2025-02-03 9:34 Steven Price
2025-02-03 10:38 ` Russell King (Oracle)
0 siblings, 1 reply; 9+ messages in thread
From: Steven Price @ 2025-02-03 9:34 UTC (permalink / raw)
To: David S. Miller, Kunihiko Hayashi, Alexandre Torgue, Andrew Lunn,
Eric Dumazet, Jakub Kicinski, Maxime Coquelin, Jose Abreu,
Paolo Abeni
Cc: Steven Price, linux-arm-kernel, linux-kernel, linux-stm32, netdev,
Russell King (Oracle), Furong Xu, Petr Tesarik, Serge Semin,
Yanteng Si, Xi Ruoyao
Commit 8865d22656b4 ("net: stmmac: Specify hardware capability value
when FIFO size isn't specified") modified the behaviour to bail out if
both the FIFO size and the hardware capability were both set to zero.
However devices where has_gmac4 and has_xgmac are both false don't use
the fifo size and that commit breaks platforms for which these values
were zero.
Only warn and error out when (has_gmac4 || has_xgmac) where the values
are used and zero would cause problems, otherwise continue with the zero
values.
Fixes: 8865d22656b4 ("net: stmmac: Specify hardware capability value when FIFO size isn't specified")
Tested-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Steven Price <steven.price@arm.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index d04543e5697b..821404beb629 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -7222,7 +7222,7 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
if (!priv->plat->rx_fifo_size) {
if (priv->dma_cap.rx_fifo_size) {
priv->plat->rx_fifo_size = priv->dma_cap.rx_fifo_size;
- } else {
+ } else if (priv->plat->has_gmac4 || priv->plat->has_xgmac) {
dev_err(priv->device, "Can't specify Rx FIFO size\n");
return -ENODEV;
}
@@ -7236,7 +7236,7 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
if (!priv->plat->tx_fifo_size) {
if (priv->dma_cap.tx_fifo_size) {
priv->plat->tx_fifo_size = priv->dma_cap.tx_fifo_size;
- } else {
+ } else if (priv->plat->has_gmac4 || priv->plat->has_xgmac) {
dev_err(priv->device, "Can't specify Tx FIFO size\n");
return -ENODEV;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-03 9:34 [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size Steven Price @ 2025-02-03 10:38 ` Russell King (Oracle) 2025-02-03 11:01 ` Steven Price 0 siblings, 1 reply; 9+ messages in thread From: Russell King (Oracle) @ 2025-02-03 10:38 UTC (permalink / raw) To: Steven Price Cc: David S. Miller, Kunihiko Hayashi, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Jakub Kicinski, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Yanteng Si, Xi Ruoyao On Mon, Feb 03, 2025 at 09:34:18AM +0000, Steven Price wrote: > Commit 8865d22656b4 ("net: stmmac: Specify hardware capability value > when FIFO size isn't specified") modified the behaviour to bail out if > both the FIFO size and the hardware capability were both set to zero. > However devices where has_gmac4 and has_xgmac are both false don't use > the fifo size and that commit breaks platforms for which these values > were zero. > > Only warn and error out when (has_gmac4 || has_xgmac) where the values > are used and zero would cause problems, otherwise continue with the zero > values. > > Fixes: 8865d22656b4 ("net: stmmac: Specify hardware capability value when FIFO size isn't specified") > Tested-by: Xi Ruoyao <xry111@xry111.site> > Signed-off-by: Steven Price <steven.price@arm.com> I'm still of the opinion that the original patch set was wrong, and I was thinking at the time that it should _not_ have been submitted for the "net" tree (it wasn't fixing a bug afaics, and was a risky change.) Yes, we had multiple places where we have code like: int rxfifosz = priv->plat->rx_fifo_size; int txfifosz = priv->plat->tx_fifo_size; if (rxfifosz == 0) rxfifosz = priv->dma_cap.rx_fifo_size; if (txfifosz == 0) txfifosz = priv->dma_cap.tx_fifo_size; /* Split up the shared Tx/Rx FIFO memory on DW QoS Eth and DW XGMAC */ if (priv->plat->has_gmac4 || priv->plat->has_xgmac) { rxfifosz /= rx_channels_count; txfifosz /= tx_channels_count; } and this is passed to stmmac_dma_rx_mode() and stmmac_dma_tx_mode(). We also have it in the stmmac_change_mtu() path for the transmit side, which ensures that the MTU value is not larger than the transmit FIFO size (which is going to fail as it's always done before or after the original patch set, and whether or not your patch is applied.) Now, as for the stmmac_dma_[tr]x_mode(), these are method functions calling into the DMA code. dwmac4, dwmac1000, dwxgmac2, dwmac100 and sun8i implement methods for this. Of these, dwmac4, dwxgmac2 makes use of the value passed into stmmac_dma_[tr]x_mode() - both of which initialise dma.[tr]x_fifo_size. dwmac1000, dwmac100 and sun8i do not make use of it. So, going back to the original patch series, I still question the value of the changes there - and with your patch, it makes their value even less because the justification seemed to be to ensure that priv->plat->[tr]x_fifo_size contained a sensible value. With your patch we're going back to a situation where we allow these to effectively be "unset" or zero. I'll ask the question straight out - with your patch applied, what is the value of the original four patch series that caused the breakage? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-03 10:38 ` Russell King (Oracle) @ 2025-02-03 11:01 ` Steven Price 2025-02-03 11:16 ` Russell King (Oracle) 0 siblings, 1 reply; 9+ messages in thread From: Steven Price @ 2025-02-03 11:01 UTC (permalink / raw) To: Russell King (Oracle), Kunihiko Hayashi Cc: David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Jakub Kicinski, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Yanteng Si, Xi Ruoyao [Moved Kunihiko to the To: line] On 03/02/2025 10:38, Russell King (Oracle) wrote: > On Mon, Feb 03, 2025 at 09:34:18AM +0000, Steven Price wrote: >> Commit 8865d22656b4 ("net: stmmac: Specify hardware capability value >> when FIFO size isn't specified") modified the behaviour to bail out if >> both the FIFO size and the hardware capability were both set to zero. >> However devices where has_gmac4 and has_xgmac are both false don't use >> the fifo size and that commit breaks platforms for which these values >> were zero. >> >> Only warn and error out when (has_gmac4 || has_xgmac) where the values >> are used and zero would cause problems, otherwise continue with the zero >> values. >> >> Fixes: 8865d22656b4 ("net: stmmac: Specify hardware capability value when FIFO size isn't specified") >> Tested-by: Xi Ruoyao <xry111@xry111.site> >> Signed-off-by: Steven Price <steven.price@arm.com> > > I'm still of the opinion that the original patch set was wrong, and > I was thinking at the time that it should _not_ have been submitted > for the "net" tree (it wasn't fixing a bug afaics, and was a risky > change.) > > Yes, we had multiple places where we have code like: > > int rxfifosz = priv->plat->rx_fifo_size; > int txfifosz = priv->plat->tx_fifo_size; > > if (rxfifosz == 0) > rxfifosz = priv->dma_cap.rx_fifo_size; > if (txfifosz == 0) > txfifosz = priv->dma_cap.tx_fifo_size; > > /* Split up the shared Tx/Rx FIFO memory on DW QoS Eth and DW XGMAC */ > if (priv->plat->has_gmac4 || priv->plat->has_xgmac) { > rxfifosz /= rx_channels_count; > txfifosz /= tx_channels_count; > } > > and this is passed to stmmac_dma_rx_mode() and stmmac_dma_tx_mode(). > > We also have it in the stmmac_change_mtu() path for the transmit side, > which ensures that the MTU value is not larger than the transmit FIFO > size (which is going to fail as it's always done before or after the > original patch set, and whether or not your patch is applied.) > > Now, as for the stmmac_dma_[tr]x_mode(), these are method functions > calling into the DMA code. dwmac4, dwmac1000, dwxgmac2, dwmac100 and > sun8i implement methods for this. > > Of these, dwmac4, dwxgmac2 makes use of the value passed into > stmmac_dma_[tr]x_mode() - both of which initialise dma.[tr]x_fifo_size. > dwmac1000, dwmac100 and sun8i do not make use of it. > > So, going back to the original patch series, I still question the value > of the changes there - and with your patch, it makes their value even > less because the justification seemed to be to ensure that > priv->plat->[tr]x_fifo_size contained a sensible value. With your patch > we're going back to a situation where we allow these to effectively be > "unset" or zero. > > I'll ask the question straight out - with your patch applied, what is > the value of the original four patch series that caused the breakage? > I've no opinion whether the original series "had value" - I'm just trying to fix the breakage that entailed. My first attempt at a patch was indeed a (partial) revert, but Andrew was keen to find a better solution[1]. I'd prefer we don't delay getting a fix merged arguing about the finer details on this. Obviously once a fix is merged the code can be improved at leisure. If you want to propose a straight revert then by all means send the patch and I'll post a Tested-By. Steve [1] https://lore.kernel.org/all/fc08926d-b9af-428f-8811-4bfe08acc5b7@lunn.ch/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-03 11:01 ` Steven Price @ 2025-02-03 11:16 ` Russell King (Oracle) 2025-02-03 11:40 ` Steven Price 2025-02-03 22:23 ` Jakub Kicinski 0 siblings, 2 replies; 9+ messages in thread From: Russell King (Oracle) @ 2025-02-03 11:16 UTC (permalink / raw) To: Steven Price Cc: Kunihiko Hayashi, David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Jakub Kicinski, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Yanteng Si, Xi Ruoyao On Mon, Feb 03, 2025 at 11:01:28AM +0000, Steven Price wrote: > [Moved Kunihiko to the To: line] > > On 03/02/2025 10:38, Russell King (Oracle) wrote: > > On Mon, Feb 03, 2025 at 09:34:18AM +0000, Steven Price wrote: > >> Commit 8865d22656b4 ("net: stmmac: Specify hardware capability value > >> when FIFO size isn't specified") modified the behaviour to bail out if > >> both the FIFO size and the hardware capability were both set to zero. > >> However devices where has_gmac4 and has_xgmac are both false don't use > >> the fifo size and that commit breaks platforms for which these values > >> were zero. > >> > >> Only warn and error out when (has_gmac4 || has_xgmac) where the values > >> are used and zero would cause problems, otherwise continue with the zero > >> values. > >> > >> Fixes: 8865d22656b4 ("net: stmmac: Specify hardware capability value when FIFO size isn't specified") > >> Tested-by: Xi Ruoyao <xry111@xry111.site> > >> Signed-off-by: Steven Price <steven.price@arm.com> > > > > I'm still of the opinion that the original patch set was wrong, and > > I was thinking at the time that it should _not_ have been submitted > > for the "net" tree (it wasn't fixing a bug afaics, and was a risky > > change.) > > > > Yes, we had multiple places where we have code like: > > > > int rxfifosz = priv->plat->rx_fifo_size; > > int txfifosz = priv->plat->tx_fifo_size; > > > > if (rxfifosz == 0) > > rxfifosz = priv->dma_cap.rx_fifo_size; > > if (txfifosz == 0) > > txfifosz = priv->dma_cap.tx_fifo_size; > > > > /* Split up the shared Tx/Rx FIFO memory on DW QoS Eth and DW XGMAC */ > > if (priv->plat->has_gmac4 || priv->plat->has_xgmac) { > > rxfifosz /= rx_channels_count; > > txfifosz /= tx_channels_count; > > } > > > > and this is passed to stmmac_dma_rx_mode() and stmmac_dma_tx_mode(). > > > > We also have it in the stmmac_change_mtu() path for the transmit side, > > which ensures that the MTU value is not larger than the transmit FIFO > > size (which is going to fail as it's always done before or after the > > original patch set, and whether or not your patch is applied.) > > > > Now, as for the stmmac_dma_[tr]x_mode(), these are method functions > > calling into the DMA code. dwmac4, dwmac1000, dwxgmac2, dwmac100 and > > sun8i implement methods for this. > > > > Of these, dwmac4, dwxgmac2 makes use of the value passed into > > stmmac_dma_[tr]x_mode() - both of which initialise dma.[tr]x_fifo_size. > > dwmac1000, dwmac100 and sun8i do not make use of it. > > > > So, going back to the original patch series, I still question the value > > of the changes there - and with your patch, it makes their value even > > less because the justification seemed to be to ensure that > > priv->plat->[tr]x_fifo_size contained a sensible value. With your patch > > we're going back to a situation where we allow these to effectively be > > "unset" or zero. > > > > I'll ask the question straight out - with your patch applied, what is > > the value of the original four patch series that caused the breakage? > > > > I've no opinion whether the original series "had value" - I'm just > trying to fix the breakage that entailed. My first attempt at a patch > was indeed a (partial) revert, but Andrew was keen to find a better > solution[1]. There are two ways to fix the breakage - either revert the original patches (which if they have little value now would be the sensible approach IMHO) or try to fix them up, which may entail several patches if further breakage is found. Does the flow control test behave the same before and after the patch series? Please can you test that? See drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c::stmmac_test_flowctrl() Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-03 11:16 ` Russell King (Oracle) @ 2025-02-03 11:40 ` Steven Price 2025-02-03 22:23 ` Jakub Kicinski 1 sibling, 0 replies; 9+ messages in thread From: Steven Price @ 2025-02-03 11:40 UTC (permalink / raw) To: Russell King (Oracle) Cc: Kunihiko Hayashi, David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Jakub Kicinski, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Yanteng Si, Xi Ruoyao On 03/02/2025 11:16, Russell King (Oracle) wrote: > On Mon, Feb 03, 2025 at 11:01:28AM +0000, Steven Price wrote: >> [Moved Kunihiko to the To: line] >> >> On 03/02/2025 10:38, Russell King (Oracle) wrote: >>> On Mon, Feb 03, 2025 at 09:34:18AM +0000, Steven Price wrote: >>>> Commit 8865d22656b4 ("net: stmmac: Specify hardware capability value >>>> when FIFO size isn't specified") modified the behaviour to bail out if >>>> both the FIFO size and the hardware capability were both set to zero. >>>> However devices where has_gmac4 and has_xgmac are both false don't use >>>> the fifo size and that commit breaks platforms for which these values >>>> were zero. >>>> >>>> Only warn and error out when (has_gmac4 || has_xgmac) where the values >>>> are used and zero would cause problems, otherwise continue with the zero >>>> values. >>>> >>>> Fixes: 8865d22656b4 ("net: stmmac: Specify hardware capability value when FIFO size isn't specified") >>>> Tested-by: Xi Ruoyao <xry111@xry111.site> >>>> Signed-off-by: Steven Price <steven.price@arm.com> >>> >>> I'm still of the opinion that the original patch set was wrong, and >>> I was thinking at the time that it should _not_ have been submitted >>> for the "net" tree (it wasn't fixing a bug afaics, and was a risky >>> change.) >>> >>> Yes, we had multiple places where we have code like: >>> >>> int rxfifosz = priv->plat->rx_fifo_size; >>> int txfifosz = priv->plat->tx_fifo_size; >>> >>> if (rxfifosz == 0) >>> rxfifosz = priv->dma_cap.rx_fifo_size; >>> if (txfifosz == 0) >>> txfifosz = priv->dma_cap.tx_fifo_size; >>> >>> /* Split up the shared Tx/Rx FIFO memory on DW QoS Eth and DW XGMAC */ >>> if (priv->plat->has_gmac4 || priv->plat->has_xgmac) { >>> rxfifosz /= rx_channels_count; >>> txfifosz /= tx_channels_count; >>> } >>> >>> and this is passed to stmmac_dma_rx_mode() and stmmac_dma_tx_mode(). >>> >>> We also have it in the stmmac_change_mtu() path for the transmit side, >>> which ensures that the MTU value is not larger than the transmit FIFO >>> size (which is going to fail as it's always done before or after the >>> original patch set, and whether or not your patch is applied.) >>> >>> Now, as for the stmmac_dma_[tr]x_mode(), these are method functions >>> calling into the DMA code. dwmac4, dwmac1000, dwxgmac2, dwmac100 and >>> sun8i implement methods for this. >>> >>> Of these, dwmac4, dwxgmac2 makes use of the value passed into >>> stmmac_dma_[tr]x_mode() - both of which initialise dma.[tr]x_fifo_size. >>> dwmac1000, dwmac100 and sun8i do not make use of it. >>> >>> So, going back to the original patch series, I still question the value >>> of the changes there - and with your patch, it makes their value even >>> less because the justification seemed to be to ensure that >>> priv->plat->[tr]x_fifo_size contained a sensible value. With your patch >>> we're going back to a situation where we allow these to effectively be >>> "unset" or zero. >>> >>> I'll ask the question straight out - with your patch applied, what is >>> the value of the original four patch series that caused the breakage? >>> >> >> I've no opinion whether the original series "had value" - I'm just >> trying to fix the breakage that entailed. My first attempt at a patch >> was indeed a (partial) revert, but Andrew was keen to find a better >> solution[1]. > > There are two ways to fix the breakage - either revert the original > patches (which if they have little value now would be the sensible > approach IMHO) or try to fix them up, which may entail several patches > if further breakage is found. > > Does the flow control test behave the same before and after the patch > series? Please can you test that? Yes I see the same results from "ethtool -t eth0" on v6.13 and after applying this patch on v6.14-rc1. Although neither exactly look healthy: The test result is FAIL The test extra info: 1. MAC Loopback 0 2. PHY Loopback -110 3. MMC Counters 0 4. EEE -95 5. Hash Filter MC 0 6. Perfect Filter UC -110 7. MC Filter -110 8. UC Filter 0 9. Flow Control -110 10. RSS -95 11. VLAN Filtering -95 12. VLAN Filtering (perf) -95 13. Double VLAN Filter -95 14. Double VLAN Filter (perf) -95 15. Flexible RX Parser -95 16. SA Insertion (desc) -95 17. SA Replacement (desc) -95 18. SA Insertion (reg) -95 19. SA Replacement (reg) -95 20. VLAN TX Insertion -95 21. SVLAN TX Insertion -95 22. L3 DA Filtering -95 23. L3 SA Filtering -95 24. L4 DA TCP Filtering -95 25. L4 SA TCP Filtering -95 26. L4 DA UDP Filtering -95 27. L4 SA UDP Filtering -95 28. ARP Offload -95 29. Jumbo Frame 1 30. Multichannel Jumbo -95 31. Split Header -95 32. TBS (ETF Scheduler) -95 But I'll admit I've no idea what I'm doing here, so perhaps I don't have a correct setup for running these tests? Thanks, Steve ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-03 11:16 ` Russell King (Oracle) 2025-02-03 11:40 ` Steven Price @ 2025-02-03 22:23 ` Jakub Kicinski 2025-02-05 14:22 ` Yanteng Si 1 sibling, 1 reply; 9+ messages in thread From: Jakub Kicinski @ 2025-02-03 22:23 UTC (permalink / raw) To: Russell King (Oracle) Cc: Steven Price, Kunihiko Hayashi, David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Yanteng Si, Xi Ruoyao On Mon, 3 Feb 2025 11:16:34 +0000 Russell King (Oracle) wrote: > > I've no opinion whether the original series "had value" - I'm just > > trying to fix the breakage that entailed. My first attempt at a patch > > was indeed a (partial) revert, but Andrew was keen to find a better > > solution[1]. > > There are two ways to fix the breakage - either revert the original > patches (which if they have little value now would be the sensible > approach IMHO) +1, I also vote revert FWIW ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-03 22:23 ` Jakub Kicinski @ 2025-02-05 14:22 ` Yanteng Si 2025-02-05 14:39 ` Russell King (Oracle) 0 siblings, 1 reply; 9+ messages in thread From: Yanteng Si @ 2025-02-05 14:22 UTC (permalink / raw) To: Jakub Kicinski, Russell King (Oracle), Steven Price Cc: Kunihiko Hayashi, David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Xi Ruoyao 在 2/4/25 06:23, Jakub Kicinski 写道: > On Mon, 3 Feb 2025 11:16:34 +0000 Russell King (Oracle) wrote: >>> I've no opinion whether the original series "had value" - I'm just >>> trying to fix the breakage that entailed. My first attempt at a patch >>> was indeed a (partial) revert, but Andrew was keen to find a better >>> solution[1]. >> There are two ways to fix the breakage - either revert the original >> patches (which if they have little value now would be the sensible >> approach IMHO) > +1, I also vote revert FWIW +1, same here. For a driver that runs on so much hardware, we need to act cautiously. A crucial prerequisite is that code changes must never cause some hardware to malfunction. I was too simplistic in my thinking when reviewing this before, and I sincerely apologize for that. Steven, thank you for your tests, Let's revert it. Thanks, Yanteng ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-05 14:22 ` Yanteng Si @ 2025-02-05 14:39 ` Russell King (Oracle) 2025-02-06 7:05 ` Kunihiko Hayashi 0 siblings, 1 reply; 9+ messages in thread From: Russell King (Oracle) @ 2025-02-05 14:39 UTC (permalink / raw) To: Yanteng Si Cc: Jakub Kicinski, Steven Price, Kunihiko Hayashi, David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Xi Ruoyao On Wed, Feb 05, 2025 at 10:22:00PM +0800, Yanteng Si wrote: > > 在 2/4/25 06:23, Jakub Kicinski 写道: > > On Mon, 3 Feb 2025 11:16:34 +0000 Russell King (Oracle) wrote: > > > > I've no opinion whether the original series "had value" - I'm just > > > > trying to fix the breakage that entailed. My first attempt at a patch > > > > was indeed a (partial) revert, but Andrew was keen to find a better > > > > solution[1]. > > > There are two ways to fix the breakage - either revert the original > > > patches (which if they have little value now would be the sensible > > > approach IMHO) > > +1, I also vote revert FWIW > > +1, same here. > > > For a driver that runs on so much hardware, we need to act > > cautiously. A crucial prerequisite is that code changes must > > never cause some hardware to malfunction. I was too simplistic > > in my thinking when reviewing this before, and I sincerely > > apologize for that. > > > Steven, thank you for your tests, Let's revert it. https://lore.kernel.org/r/E1tfeyR-003YGJ-Gb@rmk-PC.armlinux.org.uk -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size 2025-02-05 14:39 ` Russell King (Oracle) @ 2025-02-06 7:05 ` Kunihiko Hayashi 0 siblings, 0 replies; 9+ messages in thread From: Kunihiko Hayashi @ 2025-02-06 7:05 UTC (permalink / raw) To: Russell King (Oracle), Yanteng Si Cc: Jakub Kicinski, Steven Price, David S. Miller, Alexandre Torgue, Andrew Lunn, Eric Dumazet, Maxime Coquelin, Jose Abreu, Paolo Abeni, linux-arm-kernel, linux-kernel, linux-stm32, netdev, Furong Xu, Petr Tesarik, Serge Semin, Xi Ruoyao Hi Russell, On 2025/02/05 23:39, Russell King (Oracle) wrote: > On Wed, Feb 05, 2025 at 10:22:00PM +0800, Yanteng Si wrote: >> >> 在 2/4/25 06:23, Jakub Kicinski 写道: >>> On Mon, 3 Feb 2025 11:16:34 +0000 Russell King (Oracle) wrote: >>>>> I've no opinion whether the original series "had value" - I'm just >>>>> trying to fix the breakage that entailed. My first attempt at a >>>>> patch >>>>> was indeed a (partial) revert, but Andrew was keen to find a better >>>>> solution[1]. >>>> There are two ways to fix the breakage - either revert the original >>>> patches (which if they have little value now would be the sensible >>>> approach IMHO) >>> +1, I also vote revert FWIW >> >> +1, same here. >> >> >> For a driver that runs on so much hardware, we need to act >> >> cautiously. A crucial prerequisite is that code changes must >> >> never cause some hardware to malfunction. I was too simplistic >> >> in my thinking when reviewing this before, and I sincerely >> >> apologize for that. >> >> >> Steven, thank you for your tests, Let's revert it. > > https://lore.kernel.org/r/E1tfeyR-003YGJ-Gb@rmk-PC.armlinux.org.uk I'm sorry to bother you. Thanks for posting revert. There are variations in the capabilities that the hardware has, and more hardware needs to be verified to show that they work correctly, so it had to be handled carefully. Reports that the change patch "worked" or "didn't work" on any hardware are helpful. I apologize that posting this change to "-net" was inappropriate because I added a completely new feature. Thank you, --- Best Regards Kunihiko Hayashi ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-02-06 7:05 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-02-03 9:34 [PATCH] net: stmmac: Allow zero for [tr]x_fifo_size Steven Price 2025-02-03 10:38 ` Russell King (Oracle) 2025-02-03 11:01 ` Steven Price 2025-02-03 11:16 ` Russell King (Oracle) 2025-02-03 11:40 ` Steven Price 2025-02-03 22:23 ` Jakub Kicinski 2025-02-05 14:22 ` Yanteng Si 2025-02-05 14:39 ` Russell King (Oracle) 2025-02-06 7:05 ` Kunihiko Hayashi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).