Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by netdev-bot+sashiko
Sun, 22 Nov 2026 11:07
Re: [PATCH net v3 1/3] tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported
Author: netdev-bot+sashiko
Date: Sun, 22 Nov 2026 11:07
Date: Sun, 22 Nov 2026 11:07
69 lines
10590 bytes
10590 bytes
Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] On BCM57766, tg3_alloc_consistent() (drivers/net/ethernet/broadcom/tg3.c, around line 8870) can find that⦠-- tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported This patch makes the 31-bit coherent DMA mask for BCM57766 best effort. If the platform refuses that mask, the driver falls back to the coherent mask used before 614f4d166eee, so probe no longer fails. It also adds a warning when a status block is allocated at a DMA address that matches the erratum pattern described in 614f4d166eee. Link: https://lore.kernel.org/netdev/CALjTZvYKHWrD5m+RXimjxODvpFPw7Cq_EOEuzRi1PZT9_JxF+g@mail.gmail.com/ > diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c > index 95827df4cf6a1..2cf9d2ea069b5 100644 > --- a/drivers/net/ethernet/broadcom/tg3.c > +++ b/drivers/net/ethernet/broadcom/tg3.c > @@ -8867,6 +8867,13 @@ static int tg3_alloc_consistent(struct tg3 *tp) > if (!tnapi->hw_status) > goto err_out; > > + if (tg3_asic_rev(tp) == ASIC_REV_57766 && > + (lower_32_bits(tnapi->status_mapping) & 0xffff0000) == > + 0xffff0000) > + dev_warn(&tp->pdev->dev, > + "Status block at DMA address %pad may cause TX timeouts on this device\n", > + &tnapi->status_mapping); > + [Severity: Low] When the status block lands at an address that matches the erratum pattern, the driver keeps the buffer. tg3_rings_reset() later writes that address into the chip: tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_HIGH, ((u64) tnapi->status_mapping >> 32)); tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_LOW, ((u64) tnapi->status_mapping & 0xffffffff)); tg3_alloc_consistent() is only called from tg3_start(). A recovery reset therefore writes the same address again. That covers both the tg3_process_error() "DMA Status error. Resetting chip." path and a TX timeout reset. Only closing and reopening the interface gets a new allocation. Could the driver hold on to the matching buffer and allocate a replacement instead? That would keep the workaround in effect on platforms that refuse the 31-bit mask. The warning also gives TX timeouts as the symptom. 614f4d166eee says the hardware sets the overflow bit in the DMA status register, and tg3_process_error() would report that as a DMA status error. Are TX timeouts the expected symptom here, or should the message also mention the DMA status error? [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261118105408.1076095-1-pavan.chebbi%40broadcom.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads