tg3: make depend on ZONE_DMA
Subsystems (3)
PATCH 1/1 tg3: make depend on ZONE_DMA
Since 614f4d166eee, on systems with ZONE_DMA unavailable, the Tigon3 driver fails to initialize, at least on systems with BCM57766 controllers. On a late 2012 Mac Mini:
[ 1.226623] tg3 0000:01:00.0: Unable to obtain 64 bit DMA for consistent allocations [ 1.226718] tg3 0000:01:00.0: probe with driver tg3 failed with error -5
--- drivers/net/ethernet/broadcom/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/broadcom/Kconfig +1 -0
@@ -124,6 +124,7 @@ config TIGON3 tristate "Broadcom Tigon3 support" depends on PCI depends on PTP_1588_CLOCK_OPTIONAL + depends on ZONE_DMA select CRC32 select PHYLIB help
Signature · 1 line
2.55.0
Quoted 8 lines · Rui Salvaterra
Since
614f4d166eee, on systems withZONE_DMAunavailable, the Tigon3 driver fails to initialize, at least on systems with BCM57766 controllers. On a late 2012 Mac Mini:[ 1.226623] tg3 0000:01:00.0: Unable to obtain 64 bit DMA for consistent allocations [ 1.226718] tg3 0000:01:00.0: probe with driver tg3 failed with error -5
Quoted 9 lines
Fixes 614f4d166eee "tg3: Set coherent DMA mask bits to 31 for BCM57766 chipsets"Signed-off-by Rui Salvaterra <[email protected]>--- drivers/net/ethernet/broadcom/Kconfig | 1 + 1 file changed, 1 insertion(+)
No! This is not the solution. Please wait while I am trying to fix it.
Quoted 9 lines · Rui Salvaterra
Since
614f4d166eee, on systems withZONE_DMAunavailable, the Tigon3 driver fails to initialize, at least on systems with BCM57766 controllers. On a late 2012 Mac Mini:[ 1.226623] tg3 0000:01:00.0: Unable to obtain 64 bit DMA for consistent allocations [ 1.226718] tg3 0000:01:00.0: probe with driver tg3 failed with error -5Fixes 614f4d166eee "tg3: Set coherent DMA mask bits to 31 for BCM57766 chipsets"
The format is not right. And please target net branch if it's a fix by changing your title to ']PATCH net]'.
Quoted 13 lines
Signed-off-by Rui Salvaterra <[email protected]>--- drivers/net/ethernet/broadcom/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/broadcom/Kconfig +0
-0
drivers/net/ethernet/broadcom/Kconfig config TIGON3 · line 127
Quoted 4 lines
drivers/net/ethernet/broadcom/Kconfig +1
-0@@ -124,6 +124,7 @@ config TIGON3 tristate "Broadcom Tigon3 support" depends on PCI depends on PTP_1588_CLOCK_OPTIONAL + depends on ZONE_DMA
Did you verify it possibly affects those kernels without DMA config?
The blamed patch seems correct, so I think you need to root cause it instead of adding a global dependency here.
Thanks,
Jason
Quoted 7 lines
drivers/net/ethernet/broadcom/Kconfig +0
-1select CRC32 select PHYLIB help --2.55.0
Hi, Jason,
Quoted 1 line · Jason Xing
[snipped]
Quoted 3 lines
The blamed patch seems correct, so I think you need to root cause it instead of adding a global dependency here.
I'm sorry, perhaps I misunderstood, but *I* need to root cause it? I never claimed to fully understand the implications of the patch I sent, nor the intricacies of the tg3 driver. What I *do* understand is that a supposed "fix" from Broadcom has left the Ethernet controller on my late 2012 Mac Mini inoperable since the 24th November 2024, when absolutely nothing changed in my kconfig. That is, by definition, a regression. I'm entirely available for testing any patches people send my way, if whoever fully understands the driver and the hardware is unable to reproduce the issue. However, asking the user to fix a problem created by a patch from the hardware manufacturer is… an interesting approach, at best.
Kind regards,
Rui Salvaterra.
Quoted 6 lines · Rui Salvaterra
Hi, Jason,
Quoted 1 line · Jason Xing
Quoted 7 lines
[snipped]
Quoted 3 lines
The blamed patch seems correct, so I think you need to root cause it instead of adding a global dependency here.
I'm sorry, perhaps I misunderstood, but *I* need to root cause it? I never claimed to fully understand the implications of the patch I
This is not how things are going here. As long as someone proposes a patch, they should at least know what they are doing.
Quoted 9 lines
sent, nor the intricacies of the tg3 driver. What I *do* understand is that a supposed "fix" from Broadcom has left the Ethernet controller on my late 2012 Mac Mini inoperable since the 24th November 2024, when absolutely nothing changed in my kconfig. That is, by definition, a regression. I'm entirely available for testing any patches people send my way, if whoever fully understands the driver and the hardware is unable to reproduce the issue. However, asking the user to fix a problem created by a patch from the hardware manufacturer is… an interesting approach, at best.
I see what you meant; I thought you were trying to make your first contribution to the kernel :)
With that said, maintainers would pick up this and probably send a fix with your credit (reported-by tag). Thanks for your report :)
Thanks,
Jason