arm64: dts: mt7622: fix switch probe on bananapi-r64
Subsystems (3)
PATCH 1/1 arm64: dts: mt7622: fix switch probe on bananapi-r64
From: Frank Wunderlich <[email protected]>
After commit 868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110
Fix this by adding phy address in devicetree.
--- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +2 -2
@@ -149,9 +149,9 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch@0 { + switch@1f { compatible = "mediatek,mt7531"; - reg = <0>; + reg = <0x1f>; interrupt-controller; #interrupt-cells = <1>; interrupts-extended = <&pio 53 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.34.1
Quoted 6 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.
Quoted 6 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>
I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Arınç
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 14 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.Quoted 6 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>
Quoted 8 lines
I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Arınç
Hi arinc,
From my PoV it is a regression in next/6.10 because the driver change was merged (without "broadcast" fallback) and the dts patch [1] is not.
I agree that my patch can be dropped because there was already one.
regards Frank
[CCing the regression list, as it should be in the loop for regressions:
https://docs.kernel.org/admin-guide/reporting-regressions.html]
Quoted 21 lines · Frank Wunderlich
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 20 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.Quoted 6 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Did you sent this? Because from what I see with my limited experience in this subsystem...
Quoted 1 line
From my PoV it is a regression in next/6.10
...I have to agree with Frank here. So it would be good to get this fixed before -rc1 is out to prevent more people from running into this.
Quoted 7 lines
because the driver change was merged (without "broadcast" fallback) and the dts patch [1] is not.
I agree that my patch can be dropped because there was already one.
regards Frank
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
[adding Paolo, who committed the culprit]
Quoted 9 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 8 lines · Frank Wunderlich
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 7 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Frank, am I right assuming the regression is still present in mainline? As from here it looks like for two weeks now there was no progress at all to fix this (or I missed it, which is quite possible).
Makes me wonder if the maintainers should revert the culprit or if the arm64 dts folks should accept your fix despite Arınç ÜNAL's (who from a quick look on lore hasn't posted anything for two weeks now) comment.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
#regzbot poke
Quoted 29 lines
Quoted 6 lines
Quoted 6 lines
I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Did you sent this? Because from what I see with my limited experience in this subsystem...
Quoted 1 line
From my PoV it is a regression in next/6.10
...I have to agree with Frank here. So it would be good to get this fixed before -rc1 is out to prevent more people from running into this.
Quoted 7 lines
because the driver change was merged (without "broadcast" fallback) and the dts patch [1] is not.
I agree that my patch can be dropped because there was already one.
regards Frank
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
Quoted 18 lines · Thorsten Leemhuis
[adding Paolo, who committed the culprit]
Quoted 9 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 8 lines · Frank Wunderlich
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 7 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Quoted 7 lines
Frank, am I right assuming the regression is still present in mainline? As from here it looks like for two weeks now there was no progress at all to fix this (or I missed it, which is quite possible).
Makes me wonder if the maintainers should revert the culprit or if the arm64 dts folks should accept your fix despite Arınç ÜNAL's (who from a quick look on lore hasn't posted anything for two weeks now) comment.
I'm not against the patch. I'm against the logic it entails on the patch log. I had already submitted a patch series that would've prevented this issue back in 14 March 2024 [1]. I've asked numerous times for the patch series to be applied [2][3][4][5].
Eventually Daniel asked for some changes [6]. But I won't have time to do that anytime soon and I think the patch series is good enough to be applied as is.
[1] https://lore.kernel.org/all/20240314-for-mediatek-mt7531-phy-address-v1-0-52f58db01acd@arinc9.com/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
[4] https://lore.kernel.org/all/[email protected]/
[5] https://lore.kernel.org/all/[email protected]/
[6] https://lore.kernel.org/all/[email protected]/
Arınç
Quoted 2 lines · Arınç ÜNAL
Quoted 1 line · Thorsten Leemhuis
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
Quoted 22 lines
Quoted 22 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 11 lines · Frank Wunderlich
Quoted 10 lines
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 8 lines · Frank Wunderlich
Quoted 7 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree")
the mt7531 switch on Bananapi-R64 was not detected.Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Frank, am I right assuming the regression is still present in mainline? As from here it looks like for two weeks now there was no progress at all to fix this (or I missed it, which is quite possible).
Quoted 6 lines
Quoted 3 lines
Makes me wonder if the maintainers should revert the culprit or if the arm64 dts folks should accept your fix despite Arınç ÜNAL's (who from a quick look on lore hasn't posted anything for two weeks now) comment.
I'm not against the patch. I'm against the logic it entails on the patch log.
In that case: can you maybe help Frank with writing something better or submit something based on this patch to resolve this and make everyone happy?
Quoted 6 lines
I had already submitted a patch series that would've prevented this issue back in 14 March 2024 [1]. I've asked numerous times for the patch series to be applied [2][3][4][5].
Quoted 1 line
Eventually Daniel asked for some changes [6]. But I won't have time to do
that anytime soon and I think the patch series is good enough to be applied as is.
Then I guess we need some other way to resolve this in mainline to unfix Frank's device. The two obvious options are afaics:
* revert the culprit (868ff5f4944aa9 ("net: dsa: mt7530-mdio: read PHY address of switch from device tree")) and reapply it in a later cycle
* apply Frank's patch (or an improved one) in this thread (and if needed revert it when some better changes emerge.
Arınç ÜNAL, could you please comment on that and ideally handle the necessary tasks, as it's your patch that causes the regression.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
Quoted 15 lines
[1]
https://lore.kernel.org/all/20240314-for-mediatek-mt7531-phy-address-v1-0-52f58db01acd@arinc9.com/
[2]
https://lore.kernel.org/all/[email protected]/
[3]
https://lore.kernel.org/all/[email protected]/
[4]
https://lore.kernel.org/all/[email protected]/
[5]
https://lore.kernel.org/all/[email protected]/
[6] https://lore.kernel.org/all/[email protected]/Arınç
Quoted 9 lines · Thorsten Leemhuis
Quoted 6 lines · Arınç ÜNAL
I had already submitted a patch series that would've prevented this issue back in 14 March 2024 [1]. I've asked numerous times for the patch series to be applied [2][3][4][5].
Quoted 1 line
Eventually Daniel asked for some changes [6]. But I won't have time to do
that anytime soon and I think the patch series is good enough to be applied as is.
Then I guess we need some other way to resolve this in mainline to unfix
I don't believe we need another way to resolve it. I've already told that the patch series is good enough to be applied as is and I don't see any responses with reasons against this here.
Quoted 4 lines
Frank's device. The two obvious options are afaics:
* revert the culprit (
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree")) and reapply it in a later cycle
Sorry, no. There's nothing wrong with that patch. The actual cause of this issue is the patch that introduced this device tree source file with the wrong PHY address.
Quoted 5 lines
* apply Frank's patch (or an improved one) in this thread (and if needed revert it when some better changes emerge.
Arınç ÜNAL, could you please comment on that and ideally handle the necessary tasks, as it's your patch that causes the regression.
I don't see any necessary tasks for me to handle. AngeloGioacchino Del Regno whom is the only person I know that maintains these device tree source files can simply apply the patch series that I have already submitted and we can all move on. I haven't heard from them whilst the patch had been waiting since March. So I'm not sure who's going to apply this patch, and to which tree.
Arınç
Quoted 17 lines · Arınç ÜNAL
Quoted 11 lines · Thorsten Leemhuis
Quoted 8 lines · Arınç ÜNAL
I had already submitted a patch series that would've prevented this issue back in 14 March 2024 [1]. I've asked numerous times for the patch series to be applied [2][3][4][5].
Quoted 2 lines
Eventually Daniel asked for some changes [6]. But I won't have time to do
that anytime soon and I think the patch series is good enough to be applied
as is.Then I guess we need some other way to resolve this in mainline to unfix
I don't believe we need another way to resolve it. I've already told that the patch series is good enough to be applied as is and I don't see any responses with reasons against this here.
Quoted 8 lines
Quoted 4 lines
Frank's device. The two obvious options are afaics:
* revert the culprit (
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree")) and reapply it in a later cycleSorry, no. There's nothing wrong with that patch. The actual cause of this issue is the patch that introduced this device tree source file with the wrong PHY address.
Was that also merged for 6.10? Because if not, then what matters here afaics is what patch exposed the problem. Of course ideally we wound fix that problem -- but if nobody takes care of that any time soon it might come down to a revert of the patch that exposed the problem. At least that how Linus handles these things afaics.
Quoted 6 lines
Quoted 5 lines
* apply Frank's patch (or an improved one) in this thread (and if needed revert it when some better changes emerge.
Arınç ÜNAL, could you please comment on that and ideally handle the necessary tasks, as it's your patch that causes the regression.
Quoted 6 lines
I don't see any necessary tasks for me to handle. AngeloGioacchino Del Regno whom is the only person I know that maintains these device tree source files can simply apply the patch series that I have already submitted and we can all move on. I haven't heard from them whilst the patch had been waiting since March. So I'm not sure who's going to apply this patch, and to which tree.
AngeloGioacchino Del Regno, if you have a minute, could you please comment if merging those changes for 6.10 is an option?
Ciao, Thorsten
Quoted 7 lines · Thorsten Leemhuis
Quoted 2 lines · Arınç ÜNAL
Quoted 1 line · Thorsten Leemhuis
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Thanks,
Paolo
Quoted 11 lines · Paolo Abeni
Quoted 7 lines · Thorsten Leemhuis
Quoted 2 lines · Arınç ÜNAL
Quoted 1 line · Thorsten Leemhuis
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Ciao, Thorsten
Quoted 13 lines · Thorsten Leemhuis
Quoted 11 lines · Paolo Abeni
Quoted 7 lines · Thorsten Leemhuis
Quoted 2 lines · Arınç ÜNAL
Quoted 1 line · Thorsten Leemhuis
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Quoted 7 lines
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Still no reply from the DRS folks or any other progress I noticed. Guess that means I will soon have no other choice than to get Linus involved, as this looks stuck. :-( #sigh
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Thorsten Leemhuis
Quoted 11 lines · Paolo Abeni
Quoted 7 lines · Thorsten Leemhuis
Quoted 2 lines · Arınç ÜNAL
Quoted 1 line · Thorsten Leemhuis
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
Quoted 6 lines
Quoted 2 lines
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Still no reply from the DRS folks or any other progress I noticed. Guess that means I will soon have no other choice than to get Linus involved, as this looks stuck. :-( #sigh
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address of MT7531 switch to 0x1f on MediaTek arm64 boards"? Aren't there any other ARM maintainers that can apply the fix to their tree?
Arınç
AngeloGioacchino Del Regno
maintainerIl 11/06/24 13:38, Arınç ÜNAL ha scritto:
Quoted 27 lines · Thorsten Leemhuis
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Paolo Abeni
Quoted 11 lines · Thorsten Leemhuis
Quoted 7 lines · Arınç ÜNAL
Quoted 2 lines · Thorsten Leemhuis
Quoted 1 line
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
Quoted 6 lines
Quoted 2 lines
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Still no reply from the DRS folks or any other progress I noticed. Guess that means I will soon have no other choice than to get Linus involved, as this looks stuck. :-( #sigh
Quoted 5 lines
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address of MT7531 switch to
0x1fon MediaTek arm64 boards"? Aren't there any other ARM maintainers that can apply the fix to their tree?Arınç
You have feedback from two people on the series that you mentioned, and noone is going to apply something that needs to be fixed.
I'm giving you the possibility of addressing the comments in your patch, but I don't want to see any mention of the driver previously ignoring this or that as this is irrelevant for a hardware description. Devicetree only describes HW.
Adding up, in commit 868ff5f4944a ("net: dsa: mt7530-mdio: read PHY address of switch from device tree"), you have created a regression.
Regressions should be fixed - as in - if the driver did work before with the old devicetrees, it shall still work. You can't break ABI. Any changes that you do to your driver must not break functionality with old devicetrees.
So...
------> Fix the driver that you broke <------
After you've fixed it - and I repeat - only after, *and* after someone (Frank?) validates that the old devicetrees do work with the fixed driver, I will take the device tree fixes for that MDIO address (as those are, again, fixing a description of the hardware on those boards, so I agree that those must be fixed AS WELL).
Regards,
Angelo
Quoted 44 lines · AngeloGioacchino Del Regno
Il 11/06/24 13:38, Arınç ÜNAL ha scritto:
Quoted 27 lines · Thorsten Leemhuis
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Paolo Abeni
Quoted 11 lines · Thorsten Leemhuis
Quoted 7 lines · Arınç ÜNAL
Quoted 2 lines · Thorsten Leemhuis
Quoted 1 line
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
Quoted 6 lines
Quoted 2 lines
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Still no reply from the DRS folks or any other progress I noticed. Guess that means I will soon have no other choice than to get Linus involved, as this looks stuck. :-( #sigh
Quoted 5 lines
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address of MT7531 switch to
0x1fon MediaTek arm64 boards"? Aren't there any other ARM maintainers that can apply the fix to their tree?Arınç
You have feedback from two people on the series that you mentioned, and noone is going to apply something that needs to be fixed.
I'm giving you the possibility of addressing the comments in your patch, but I don't want to see any mention of the driver previously ignoring this or that as this is irrelevant for a hardware description. Devicetree only describes HW.
Adding up, in commit
868ff5f4944a("net: dsa: mt7530-mdio: read PHY address of switch from device tree"), you have created a regression.
Quoted 7 lines
Regressions should be fixed - as in - if the driver did work before with the old devicetrees, it shall still work. You can't break ABI. Any changes that you do to your driver must not break functionality with old devicetrees.
So...
------> Fix the driver that you broke <------
The device tree ABI before the change on the driver:
The reg value represents the PHY address of the switch.
The device tree ABI after the change on the driver:
The reg value represents the PHY address of the switch.
I see no device tree ABI breakage. What I see instead is the driver starting enforcing the device tree ABI. No change had been made on the device tree ABI so any non-Linux driver that controls this switch continues to work.
These old device tree source files in question did not abide by the device tree ABI in the first place, which is why they don't work anymore as the Linux driver now enforces the ABI. Device tree source files not conforming to the ABI is not something to maintain but to fix. The patch series that fixes them are already submitted.
Quoted 6 lines
After you've fixed it - and I repeat - only after, *and* after someone (Frank?) validates that the old devicetrees do work with the fixed driver, I will take the device tree fixes for that MDIO address (as those are, again, fixing a description of the hardware on those boards, so I agree that those must be fixed AS WELL).
Sorry, this approach makes no sense to me.
Arınç
AngeloGioacchino Del Regno
maintainerIl 11/06/24 14:56, Arınç ÜNAL ha scritto:
Quoted 66 lines · AngeloGioacchino Del Regno
Quoted 44 lines
Il 11/06/24 13:38, Arınç ÜNAL ha scritto:
Quoted 27 lines · Thorsten Leemhuis
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Paolo Abeni
Quoted 11 lines · Thorsten Leemhuis
Quoted 7 lines · Arınç ÜNAL
Quoted 2 lines · Thorsten Leemhuis
Quoted 1 line
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
Quoted 6 lines
Quoted 2 lines
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Still no reply from the DRS folks or any other progress I noticed. Guess that means I will soon have no other choice than to get Linus involved, as this looks stuck. :-( #sigh
Quoted 5 lines
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address of MT7531 switch to
0x1fon MediaTek arm64 boards"? Aren't there any other ARM maintainers that can apply the fix to their tree?Arınç
You have feedback from two people on the series that you mentioned, and noone is going to apply something that needs to be fixed.
I'm giving you the possibility of addressing the comments in your patch, but I don't want to see any mention of the driver previously ignoring this or that as this is irrelevant for a hardware description. Devicetree only describes HW.
Adding up, in commit
868ff5f4944a("net: dsa: mt7530-mdio: read PHY address of switch from device tree"), you have created a regression.Quoted 7 lines
Regressions should be fixed - as in - if the driver did work before with the old devicetrees, it shall still work. You can't break ABI. Any changes that you do to your driver must not break functionality with old devicetrees.
So...
------> Fix the driver that you broke <------
The device tree ABI before the change on the driver:
The reg value represents the PHY address of the switch.
The device tree ABI after the change on the driver:
The reg value represents the PHY address of the switch.
I see no device tree ABI breakage. What I see instead is the driver starting enforcing the device tree ABI. No change had been made on the device tree ABI so any non-Linux driver that controls this switch continues to work.
Quoted 5 lines
These old device tree source files in question did not abide by the device tree ABI in the first place, which is why they don't work anymore as the Linux driver now enforces the ABI. Device tree source files not conforming to the ABI is not something to maintain but to fix. The patch series that fixes them are already submitted.
As I said, the devicetree MUST describe the hardware correctly, and on that I do agree, and I, again, said that I want to take the devicetree fix.
However, the driver regressed, and this broke functionality with old device trees. Old device trees might have been wrong (and they are, yes), but functionality was there and the switch was working.
I repeat, driver changes MUST be retro-compatible with older device trees, and your driver changes ARE NOT; otherwise, this wouldn't be called *regression*.
Again, please fix the driver to be retro-compatible with old device trees.
Regards,
Angelo
Quoted 76 lines · AngeloGioacchino Del Regno
Il 11/06/24 14:56, Arınç ÜNAL ha scritto:
Quoted 66 lines · AngeloGioacchino Del Regno
Quoted 44 lines
Il 11/06/24 13:38, Arınç ÜNAL ha scritto:
Quoted 27 lines · Thorsten Leemhuis
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Paolo Abeni
Quoted 11 lines · Thorsten Leemhuis
Quoted 7 lines · Arınç ÜNAL
Quoted 2 lines · Thorsten Leemhuis
Quoted 1 line
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below) and should be reapplied later together with the matching changes from Arınç ÜNAL.
FWIS I think a revert should be avoided, given that a fix is available and nicely small.
Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this until now remained silent in this thread, apart from Rob who sent the mail regarding the warnings.
Quoted 6 lines
Quoted 2 lines
I put those maintainers in the To: field of this mail, maybe that might lead to some reaction.
Still no reply from the DRS folks or any other progress I noticed. Guess that means I will soon have no other choice than to get Linus involved, as this looks stuck. :-( #sigh
Quoted 5 lines
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address of MT7531 switch to
0x1fon MediaTek arm64 boards"? Aren't there any other ARM maintainers that can apply the fix to their tree?Arınç
You have feedback from two people on the series that you mentioned, and noone is going to apply something that needs to be fixed.
I'm giving you the possibility of addressing the comments in your patch, but I don't want to see any mention of the driver previously ignoring this or that as this is irrelevant for a hardware description. Devicetree only describes HW.
Adding up, in commit
868ff5f4944a("net: dsa: mt7530-mdio: read PHY address of switch from device tree"), you have created a regression.Quoted 7 lines
Regressions should be fixed - as in - if the driver did work before with the old devicetrees, it shall still work. You can't break ABI. Any changes that you do to your driver must not break functionality with old devicetrees.
So...
------> Fix the driver that you broke <------
The device tree ABI before the change on the driver:
The reg value represents the PHY address of the switch.
The device tree ABI after the change on the driver:
The reg value represents the PHY address of the switch.
I see no device tree ABI breakage. What I see instead is the driver starting enforcing the device tree ABI. No change had been made on the device tree ABI so any non-Linux driver that controls this switch continues to work.
Quoted 5 lines
These old device tree source files in question did not abide by the device tree ABI in the first place, which is why they don't work anymore as the Linux driver now enforces the ABI. Device tree source files not conforming to the ABI is not something to maintain but to fix. The patch series that fixes them are already submitted.
As I said, the devicetree MUST describe the hardware correctly, and on that I do agree, and I, again, said that I want to take the devicetree fix.
Quoted 6 lines
However, the driver regressed, and this broke functionality with old device trees. Old device trees might have been wrong (and they are, yes), but functionality was there and the switch was working.
I repeat, driver changes MUST be retro-compatible with older device trees, and your driver changes ARE NOT; otherwise, this wouldn't be called *regression*.
I'm going to argue that what caused the regression is the broken device tree. The recent change on the driver only worked towards exposing the broken device tree. The device tree files hosted on the Linux repository is not only for use with the Linux drivers. Other projects use these device tree files as well, as hardware description is not supposed to differ by project. And for any non-Linux driver that would use this broken device tree, there would be a regression.
So I don't understand why you demand a change on a Linux driver to be made before applying the fix for a broken device tree.
That said, I don't understand the old device tree sentiment here. The driver, after the change, still does support old device trees. Never in the existence of this switch bindings, the PHY address was supposed to be described a value other than the PHY address the switch listens on. Yes, the driver now doesn't work with old and broken device trees. Which is why we're fixing the said device trees. I don't see why it is necessary to make the driver support broken device trees just because they used to work for a certain range of time. This isn't about preserving ABI.
Arınç
This thread/fixing the regressions looks stalled again, let me jump in here with a further comment below.
Quoted 105 lines · Arınç ÜNAL
Quoted 104 lines · AngeloGioacchino Del Regno
Il 11/06/24 14:56, Arınç ÜNAL ha scritto:
Quoted 84 lines · AngeloGioacchino Del Regno
Quoted 65 lines
Il 11/06/24 13:38, Arınç ÜNAL ha scritto:
Quoted 35 lines · Thorsten Leemhuis
Quoted 28 lines · Thorsten Leemhuis
Quoted 23 lines · Paolo Abeni
Quoted 11 lines · Thorsten Leemhuis
Quoted 9 lines · Arınç ÜNAL
Quoted 2 lines · Thorsten Leemhuis
Quoted 1 line
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below)
and should be reapplied later together with the matching changes from
Arınç ÜNAL.Quoted 3 lines
FWIS I think a revert should be avoided, given that a fix is available
and nicely small.Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this
until now remained silent in this thread, apart from Rob who sent the
mail regarding the warnings.Quoted 3 lines
I put those maintainers in the To: field of this mail, maybe that might
lead to some reaction.Quoted 5 lines
Still no reply from the DRS folks or any other progress I noticed. Guess
that means I will soon have no other choice than to get Linus involved,
as this looks stuck. :-( #sighQuoted 7 lines
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address
of MT7531 switch to0x1fon MediaTek arm64 boards"? Aren't there any other
ARM maintainers that can apply the fix to their tree?Arınç
You have feedback from two people on the series that you mentioned, and noone
is going to apply something that needs to be fixed.I'm giving you the possibility of addressing the comments in your patch, but
I don't want to see any mention of the driver previously ignoring this or that
as this is irrelevant for a hardware description. Devicetree only describes HW.Adding up, in commit
868ff5f4944a("net: dsa: mt7530-mdio: read PHY address of switch from device tree"),
you have created a regression.Regressions should be fixed - as in - if the driver did work before with the old
devicetrees, it shall still work. You can't break ABI. Any changes that you do
to your driver must not break functionality with old devicetrees.Quoted 3 lines
So...
------> Fix the driver that you broke <------
The device tree ABI before the change on the driver:
The reg value represents the PHY address of the switch.
The device tree ABI after the change on the driver:
The reg value represents the PHY address of the switch.
I see no device tree ABI breakage. What I see instead is the driver starting enforcing the device tree ABI. No change had been made on the device tree ABI so any non-Linux driver that controls this switch continues
to work.Quoted 8 lines
These old device tree source files in question did not abide by the device
tree ABI in the first place, which is why they don't work anymore as the Linux driver now enforces the ABI. Device tree source files not conforming
to the ABI is not something to maintain but to fix. The patch series that
fixes them are already submitted.As I said, the devicetree MUST describe the hardware correctly, and on that I do
agree, and I, again, said that I want to take the devicetree fix.However, the driver regressed, and this broke functionality with old device trees.
Old device trees might have been wrong (and they are, yes), but functionality was
there and the switch was working.
Quoted 7 lines
Quoted 3 lines
I repeat, driver changes MUST be retro-compatible with older device trees, and your
driver changes ARE NOT; otherwise, this wouldn't be called *regression*.I'm going to argue that what caused the regression is the broken device tree. The recent change on the driver only worked towards exposing the broken device tree.
Well, for the kernel that does not matter much: due to our "no regressions" rule and how Linus handles it the author of that "recent change" (e.g. you) is responsible to fix regressions a change exposed -- or that change is reverted (I might be wrong, but I think there are quotes from Linus in
https://docs.kernel.org/process/handling-regressions.html to back this up). So in the end a revert in a week or two is likely the outcome, unless you or someone else fixes it in a way that pleases AngeloGioacchino et. at.
Ciao, Thorsten
Quoted 117 lines · Linux regression tracking (Thorsten Leemhuis)
This thread/fixing the regressions looks stalled again, let me jump in here with a further comment below.
Quoted 105 lines · Arınç ÜNAL
Quoted 104 lines · AngeloGioacchino Del Regno
Il 11/06/24 14:56, Arınç ÜNAL ha scritto:
Quoted 84 lines · AngeloGioacchino Del Regno
Quoted 65 lines
Il 11/06/24 13:38, Arınç ÜNAL ha scritto:
Quoted 35 lines · Thorsten Leemhuis
Quoted 28 lines · Thorsten Leemhuis
Quoted 23 lines · Paolo Abeni
Quoted 11 lines · Thorsten Leemhuis
Quoted 9 lines · Arınç ÜNAL
Quoted 2 lines · Thorsten Leemhuis
Quoted 1 line
[adding Paolo, who committed the culprit]
/me slowly wonders if the culprit should be reverted for now (see below)
and should be reapplied later together with the matching changes from
Arınç ÜNAL.Quoted 3 lines
FWIS I think a revert should be avoided, given that a fix is available
and nicely small.Yeah, on one hand I agree; but on the other it seems that the maintainers that would have to take care of the dt changes to fix this
until now remained silent in this thread, apart from Rob who sent the
mail regarding the warnings.Quoted 3 lines
I put those maintainers in the To: field of this mail, maybe that might
lead to some reaction.Quoted 5 lines
Still no reply from the DRS folks or any other progress I noticed. Guess
that means I will soon have no other choice than to get Linus involved,
as this looks stuck. :-( #sighQuoted 7 lines
Does it have to be Linus that needs to apply "[PATCH 0/2] Set PHY address
of MT7531 switch to0x1fon MediaTek arm64 boards"? Aren't there any other
ARM maintainers that can apply the fix to their tree?Arınç
You have feedback from two people on the series that you mentioned, and noone
is going to apply something that needs to be fixed.I'm giving you the possibility of addressing the comments in your patch, but
I don't want to see any mention of the driver previously ignoring this or that
as this is irrelevant for a hardware description. Devicetree only describes HW.Adding up, in commit
868ff5f4944a("net: dsa: mt7530-mdio: read PHY address of switch from device tree"),
you have created a regression.Regressions should be fixed - as in - if the driver did work before with the old
devicetrees, it shall still work. You can't break ABI. Any changes that you do
to your driver must not break functionality with old devicetrees.Quoted 3 lines
So...
------> Fix the driver that you broke <------
The device tree ABI before the change on the driver:
The reg value represents the PHY address of the switch.
The device tree ABI after the change on the driver:
The reg value represents the PHY address of the switch.
I see no device tree ABI breakage. What I see instead is the driver starting enforcing the device tree ABI. No change had been made on the device tree ABI so any non-Linux driver that controls this switch continues
to work.Quoted 8 lines
These old device tree source files in question did not abide by the device
tree ABI in the first place, which is why they don't work anymore as the Linux driver now enforces the ABI. Device tree source files not conforming
to the ABI is not something to maintain but to fix. The patch series that
fixes them are already submitted.As I said, the devicetree MUST describe the hardware correctly, and on that I do
agree, and I, again, said that I want to take the devicetree fix.However, the driver regressed, and this broke functionality with old device trees.
Old device trees might have been wrong (and they are, yes), but functionality was
there and the switch was working.Quoted 7 lines
Quoted 3 lines
I repeat, driver changes MUST be retro-compatible with older device trees, and your
driver changes ARE NOT; otherwise, this wouldn't be called *regression*.I'm going to argue that what caused the regression is the broken device tree. The recent change on the driver only worked towards exposing the broken device tree.
Quoted 9 lines
Well, for the kernel that does not matter much: due to our "no regressions" rule and how Linus handles it the author of that "recent change" (e.g. you) is responsible to fix regressions a change exposed -- or that change is reverted (I might be wrong, but I think there are quotes from Linus in
https://docs.kernel.org/process/handling-regressions.html to back this up). So in the end a revert in a week or two is likely the outcome, unless you or someone else fixes it in a way that pleases AngeloGioacchino et. at.
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcome whilst the standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set a precedent that will tell maintainers that they can have their way by just not replying to the ongoing discussions.
That said, the decision of resolving the regression by either reverting the patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
Arınç
Quoted 6 lines · Arınç ÜNAL
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcome
Long story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.
Quoted 12 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set a precedent that will tell maintainers that they can have their way by just not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
AngeloGioacchino, should we ask the net maintainers to revert 868ff5f4944aa9 ("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
#regzbot poke
Quoted 25 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 6 lines · Arınç ÜNAL
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcomeLong story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.Quoted 12 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set a precedent that will tell maintainers that they can have their way by just not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.
Quoted 6 lines
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
There hasn't been progress at all. I believe I have clearly described the way out of this issue.
Quoted 6 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.
Are you suggesting the patch shall be reverted first, then the DT patch applied, then the reverted patch applied back? If only one of the first two steps were done, it would fix the regression so I don't understand why go through this tedious process when we can quite simply apply the DT patch to resolve the regression.
Keep in mind that I maintain the MT7530 DSA subdriver and the company I work with has got boards that uses the functionality the commit 868ff5f4944aa9 ("net: dsa: mt7530-mdio: read PHY address of switch from device tree") brings.
Arınç
Quoted 41 lines · Arınç ÜNAL
Quoted 30 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 8 lines · Arınç ÜNAL
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why
I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcomeLong story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.Quoted 15 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set
a precedent that will tell maintainers that they can have their way by just
not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the
patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.Quoted 6 lines
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
There hasn't been progress at all. I believe I have clearly described the way out of this issue.
Quoted 8 lines
Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Are you suggesting the patch shall be reverted first, then the DT patch applied, then the reverted patch applied back?
Yeah.
Quoted 4 lines
If only one of the first two
steps were done, it would fix the regression so I don't understand why go through this tedious process when we can quite simply apply the DT patch to resolve the regression.
Which DT patch do you mean here? Your series or the one from Frank at the start of the thread (the one you seems to be unhappy about iirc, but I might be wrong there)?
Anyway, to answer the statement: because the maintainers that would have to accept the DT patch to resolve the problem apparently are not happy with it -- and nobody seems to be working on providing patches that make them happy which are also acceptable at this point of the devel cycle; so as it looks like currently to prevent the regression from entering 6.10 reverting the net change is the only option left.
Quoted 4 lines
Keep in mind that I maintain the MT7530 DSA subdriver and the company I work with has got boards that uses the functionality the commit
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") brings.
Don't see a revert as setback at all, that's just normal for the kernel. I'm not the one that will decide about this anyway. And everyone involved afaics would like to prevent a revert. But it seems more and more likely that we are not getting there in time for the 6.10 release (or ideally -rc6 or -rc7 to allow some testing, as last-minute reverts can cause new problems).
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
Quoted 53 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 41 lines · Arınç ÜNAL
Quoted 30 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 8 lines · Arınç ÜNAL
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why
I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcomeLong story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.Quoted 15 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set
a precedent that will tell maintainers that they can have their way by just
not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the
patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.Quoted 6 lines
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
There hasn't been progress at all. I believe I have clearly described the way out of this issue.
Quoted 8 lines
Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Are you suggesting the patch shall be reverted first, then the DT patch applied, then the reverted patch applied back?
Yeah.
Quoted 8 lines
Quoted 4 lines
If only one of the first two
steps were done, it would fix the regression so I don't understand why go through this tedious process when we can quite simply apply the DT patch to resolve the regression.Which DT patch do you mean here? Your series or the one from Frank at the start of the thread (the one you seems to be unhappy about iirc, but I might be wrong there)?
My series, as arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts needs to be addressed too to resolve the regression.
Quoted 7 lines
Anyway, to answer the statement: because the maintainers that would have to accept the DT patch to resolve the problem apparently are not happy with it -- and nobody seems to be working on providing patches that make them happy which are also acceptable at this point of the devel cycle; so as it looks like currently to prevent the regression from entering 6.10 reverting the net change is the only option left.
I've already made my case regarding the situation with the DT patch. I can't provide new patches because Angelo did not acknowledge my points yet. I maintain the net driver and I too won't be happy with a revert on the driver.
Quoted 6 lines
Quoted 5 lines
Keep in mind that I maintain the MT7530 DSA subdriver and the company I work with has got boards that uses the functionality the commit
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") brings.
Quoted 6 lines
Don't see a revert as setback at all, that's just normal for the kernel. I'm not the one that will decide about this anyway. And everyone involved afaics would like to prevent a revert. But it seems more and more likely that we are not getting there in time for the 6.10 release (or ideally -rc6 or -rc7 to allow some testing, as last-minute reverts can cause new problems).
I am still calling for the simple procedure of applying the DT patch to resolve the regression.
Arınç
AngeloGioacchino Del Regno
maintainerIl 25/06/24 10:17, Arınç ÜNAL ha scritto:
Quoted 49 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 48 lines · Arınç ÜNAL
Quoted 47 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 30 lines · Arınç ÜNAL
Quoted 8 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why
I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcomeLong story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.Quoted 15 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set
a precedent that will tell maintainers that they can have their way by just
not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the
patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.Quoted 6 lines
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
There hasn't been progress at all. I believe I have clearly described the way out of this issue.
Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Are you suggesting the patch shall be reverted first, then the DT patch applied, then the reverted patch applied back?
Yeah.
Sorry, I've lost your reply in the long stack of emails that I get every day.
I'm not suggesting to revert the patch, but to fix it such that it does not break devices using old devicetrees, as it was the case before.
Even though, in a way, when you update the kernel, you do also update the devicetrees with it just because it's almost effortless to do so, doing that is not mandatory.
...and that's why the driver, which was - in a way - faulty before, getting the switch to work even though the devicetree node was wrong, must still be compatible.
I do want to apply the devicetree fix, but I also do *not* want to see *driver* changes that go against the backward compatibility rule of devicetree when this is not strictly necessary (when it is - it's okay to make an exception)...
...and this is not one of the cases in which it's strictly necessary.
Quoted 20 lines
Quoted 8 lines
Quoted 4 lines
If only one of the first two
steps were done, it would fix the regression so I don't understand why go through this tedious process when we can quite simply apply the DT patch to resolve the regression.Which DT patch do you mean here? Your series or the one from Frank at the start of the thread (the one you seems to be unhappy about iirc, but I might be wrong there)?
My series, as
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtsneeds to be addressed too to resolve the regression.Quoted 7 lines
Anyway, to answer the statement: because the maintainers that would have to accept the DT patch to resolve the problem apparently are not happy with it -- and nobody seems to be working on providing patches that make them happy which are also acceptable at this point of the devel cycle; so as it looks like currently to prevent the regression from entering 6.10 reverting the net change is the only option left.
Quoted 5 lines
I've already made my case regarding the situation with the DT patch. I can't provide new patches because Angelo did not acknowledge my points yet. I maintain the net driver and I too won't be happy with a revert on the driver.
And again, I wouldn't be happy to see a revert either; just fix it so that the old devicetree still works with the driver code.
Regards,
Angelo
Quoted 69 lines · AngeloGioacchino Del Regno
Il 25/06/24 10:17, Arınç ÜNAL ha scritto:
Quoted 49 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 48 lines · Arınç ÜNAL
Quoted 47 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 30 lines · Arınç ÜNAL
Quoted 8 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why
I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcomeLong story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.Quoted 15 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set
a precedent that will tell maintainers that they can have their way by just
not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the
patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.Quoted 6 lines
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
There hasn't been progress at all. I believe I have clearly described the way out of this issue.
Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Are you suggesting the patch shall be reverted first, then the DT patch applied, then the reverted patch applied back?
Yeah.
Sorry, I've lost your reply in the long stack of emails that I get every day.
I'm not suggesting to revert the patch, but to fix it such that it does not break devices using old devicetrees, as it was the case before.
Even though, in a way, when you update the kernel, you do also update the devicetrees with it just because it's almost effortless to do so, doing that is not mandatory.
...and that's why the driver, which was - in a way - faulty before, getting the switch to work even though the devicetree node was wrong, must still be compatible.
Quoted 5 lines
I do want to apply the devicetree fix, but I also do *not* want to see *driver* changes that go against the backward compatibility rule of devicetree when this is not strictly necessary (when it is - it's okay to make an exception)...
...and this is not one of the cases in which it's strictly necessary.
I understand that you receive emails often. It seems you've not read my point of view in the previous emails because of it, so it is preventing us from having a proper discussion to come to a mutual agreement. I don't intend to repeat myself for it to be lost in your inbox again.
I'm hoping that you manage to read this; Daniel has been working on a patch
[1] to make old device trees not hosted on the Linux repository with PHY address wrongfully described as "0" work.
As I see the extend of the reported regression is limited to the BPI-R64 board, fixing the device tree source file for it - and mt7622-rfb1.dts as the only remaining DTS file with wrong PHY address described in the Linux repository - is enough to resolve the regression. Then Daniel's patch can come in to address the device tree source files I've described above. Although I don't find that patch necessary, I won't stand against it.
So I suggest to apply my DT patch series [2] without taking any other steps to resolve the reported regression.
[1] https://lore.kernel.org/all/11f5f127d0350e72569c36f9060b6e642dfaddbb.1714514208.git.daniel@makrotopia.org/
[2] https://lore.kernel.org/all/20240314-for-mediatek-mt7531-phy-address-v1-0-52f58db01acd@arinc9.com/
Arınç
AngeloGioacchino Del Regno
maintainerIl 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 29 lines · Arınç ÜNAL
Quoted 6 lines · Linux regression tracking (Thorsten Leemhuis)
[...]
I've submitted a patch series that fixes the regression. Angelo argued against the way the regression is fixed. I've very clearly argued back why I find Angelo's approach wrong. There's been no response back. I don't understand why reverting the patch is the likely outcomeLong story short: because that how things like that are handled in the Linux kernel project, as Linus wants it like that. See some of the quotes from https://docs.kernel.org/process/handling-regressions.html
for details.Quoted 12 lines
whilst the
standing argument points towards applying the said patch series. If a revert happens before this discussion with Angelo finalises, this will set a precedent that will tell maintainers that they can have their way by just not replying to the ongoing discussions.That said, the decision of resolving the regression by either reverting the patch or applying the patch series shall not depend on whether or not Angelo is pleased but rather there're no counter-arguments left on the points brought, meaning the decision shall be made depending on the argument that stands.
Quoted 3 lines
Therefore, I suggest that unless Angelo responds back with a counter-argument in the window of a week or two, as you've described, my patch series shall be applied.
Quoted 9 lines
It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.
To be clear on this: I asked for the commit to be fixed such that it guarantees backwards compatibility with older device trees.
If no fix comes, then I guess that we should ask them to revert this commit until a fix is available.
I don't like this situation, either, btw.
Ciao!
Angelo
Quoted 7 lines
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.#regzbot poke
[CCing the other net maintainers]
Quoted 15 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 12 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.
Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
Quoted 1 line
I don't like this situation, either, btw.
I guess none of us does. :-/
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
#regzbot poke
Hi,
i can confirm that daniels patch pointed by arinc fixes driver for the wrong devicetree on BPI-R64.
but there are concerns from the netdev/dsa maintainers in its current state
regards Frank
Quoted 50 lines
Gesendet: Montag, 01. Juli 2024 um 08:16 Uhr
Von: "Linux regression tracking (Thorsten Leemhuis)" <[email protected]>
An: "Paolo Abeni" <[email protected]>, "David S. Miller" <[email protected]>, "AngeloGioacchino Del Regno" <[email protected]>, "Jakub Kicinski" <[email protected]>
Cc: [email protected], [email protected], [email protected], [email protected], "Daniel Golle" <[email protected]>, [email protected], "Frank Wunderlich" <[email protected]>, "Arınç ÜNAL" <[email protected]>, "Rob Herring" <[email protected]>, "Conor Dooley" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Matthias Brugger" <[email protected]>, "Linux regressions mailing list" <[email protected]>
Betreff: Re: [PATCH] arm64: dts: mt7622: fix switch probe on bananapi-r64[CCing the other net maintainers]
Quoted 15 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 12 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
Quoted 1 line
I don't like this situation, either, btw.
I guess none of us does. :-/
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.#regzbot poke
Quoted 24 lines · Linux regression tracking (Thorsten Leemhuis)
[CCing the other net maintainers]
Quoted 15 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 12 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and I just missed it?) while the 6.10 final is slowly getting closer. Hence:
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
Quoted 7 lines
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
This is quite frustrating. I absolutely won't consent to a revert. I've spent a great amount of time and effort explaining why this is neither necessary nor a good approach in this email thread. I'm not going to accept a revert due to the other side's failure to communicate, which will create unnecessary work for me to do. It is ridiculous to demand a change in a Linux driver before accepting a device tree patch.
Arınç
Quoted 29 lines · Arınç ÜNAL
Quoted 28 lines · Linux regression tracking (Thorsten Leemhuis)
[CCing the other net maintainers]
Quoted 17 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 9 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and
I just missed it?) while the 6.10 final is slowly getting closer. Hence:Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
This is quite frustrating. I absolutely won't consent to a revert. [...]
Reminder: try to not see a revert as a bad thing. It's just means "not ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/
Ciao, Thorsten
Quoted 36 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 35 lines · Arınç ÜNAL
Quoted 33 lines · Linux regression tracking (Thorsten Leemhuis)
[CCing the other net maintainers]
Quoted 17 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 9 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and
I just missed it?) while the 6.10 final is slowly getting closer. Hence:Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
Quoted 6 lines
Quoted 1 line
This is quite frustrating. I absolutely won't consent to a revert. [...]
Reminder: try to not see a revert as a bad thing. It's just means "not ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed. And then there's the patch in the works by Daniel that will address all the remaining cases outside of the reported regression.
Arınç
AngeloGioacchino Del Regno
maintainerIl 01/07/24 10:15, Arınç ÜNAL ha scritto:
Quoted 44 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 36 lines · Arınç ÜNAL
Quoted 35 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 33 lines
[CCing the other net maintainers]
Quoted 17 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 9 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and
I just missed it?) while the 6.10 final is slowly getting closer. Hence:Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
Quoted 6 lines
Quoted 1 line
This is quite frustrating. I absolutely won't consent to a revert. [...]
Reminder: try to not see a revert as a bad thing. It's just means "not ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/
Quoted 6 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed. And then there's the patch in the works by Daniel that will address all the remaining cases outside of the reported regression.
The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was picked and it is in v6.11-rc1.
I had to do this because I value the community (in this case, the users) much more than trying to make an arrogant developer to act in a community-friendly manner while leaving things completely broken.
That said, remembering that we're humans and, as such, it's normal to get something wrong during the development process, I want to remind you that:
1. A series that creates regressions is *not* good and *not* ready to be upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the kernel, not breaking devices and not breaking currently working functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse to break functionality; and
4. Blaming the one who introduced the devicetree (you're doing that, since you are blaming the devicetree being wrong) isn't solving anything and will not magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant behavior you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that their DT still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has a fix that works with both old and new driver, and the next version introduces the breakage. N.2 should ideally never happen, anyway.
Let's wrap up this matter now - I don't want to spend any more word, nor time, on this, as I really have nothing else to say.
Best regards,
Angelo
Quoted 96 lines · AngeloGioacchino Del Regno
Il 01/07/24 10:15, Arınç ÜNAL ha scritto:
Quoted 44 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 36 lines · Arınç ÜNAL
Quoted 35 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 33 lines
[CCing the other net maintainers]
Quoted 17 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 9 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and
I just missed it?) while the 6.10 final is slowly getting closer. Hence:Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
Quoted 6 lines
Quoted 1 line
This is quite frustrating. I absolutely won't consent to a revert. [...]
Reminder: try to not see a revert as a bad thing. It's just means "not ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/Quoted 6 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed. And then there's the patch in the works by Daniel that will address all the remaining cases outside of the reported regression.
The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was picked and it is in v6.11-rc1.
I had to do this because I value the community (in this case, the users) much more than trying to make an arrogant developer to act in a community-friendly manner while leaving things completely broken.
That said, remembering that we're humans and, as such, it's normal to get something wrong during the development process, I want to remind you that:
1. A series that creates regressions is *not* good and *not* ready to
be
upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the
kernel,
not breaking devices and not breaking currently working
functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse
to break
functionality; and
4. Blaming the one who introduced the devicetree (you're doing that,
since you
are blaming the devicetree being wrong) isn't solving anything and
will not
magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant
behavior
you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that
their DT
still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has
a fix that
works with both old and new driver, and the next version
introduces the
breakage. N.2 should ideally never happen, anyway.
Quoted 5 lines
Let's wrap up this matter now - I don't want to spend any more word, nor time, on this, as I really have nothing else to say.
Best regards,
Angelo
To be clear, I only became aware that my patch was picked by reading this email. It is clear that we have different views. To that extend, all of what you have written above can be answered to by reading what I have already written in this thread. Therefore, I don't see any wrongdoing from my side and invite everyone to fully read this thread to draw their own conclusions; something you seem not to have done. And I'm not the one, calling people names here. I can only offer my respect for hard working people.
In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demands were met. What I see is that, you failed as a maintainer to attend to my points against this practice. It's no surprise that, after not having heard back from you with an argument against my points, my patch was eventually taken in by someone else.
Arınç
Quoted 120 lines · On 2024-07-30 14:22, [email protected] wrote:
Quoted 96 lines · AngeloGioacchino Del Regno
Il 01/07/24 10:15, Arınç ÜNAL ha scritto:
Quoted 44 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 36 lines · Arınç ÜNAL
Quoted 35 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 33 lines
[CCing the other net maintainers]
Quoted 17 lines · AngeloGioacchino Del Regno
Il 25/06/24 07:56, Linux regression tracking (Thorsten Leemhuis) ha scritto:
Quoted 9 lines · Arınç ÜNAL
Quoted 3 lines
On 17/06/2024 11:33, Linux regression tracking (Thorsten Leemhuis) wrote:
[...]It looks more and more like we are stuck here (or was there progress and
I just missed it?) while the 6.10 final is slowly getting closer. Hence:Quoted 5 lines
AngeloGioacchino, should we ask the net maintainers to revert
868ff5f4944aa9("net: dsa: mt7530-mdio: read PHY address of switch from device tree") for now to resolve this regression? Reminder, there is nothing wrong with that commit per se afaik, it just exposes a problem that needs to be fixed first before it can be reapplied.Quoted 5 lines
To be clear on this: I asked for the commit to be fixed such that it guarantees
backwards compatibility with older device trees.If no fix comes,
I haven't see any since that mail, did you? If not, I think...
Quoted 2 lines
then I guess that we should ask them to revert this commit until a fix is available.
...it's time to ask them for the revert to resolve this for -rc7 (and avoid a last minute revert), or what do you think?
Quoted 6 lines
Quoted 1 line
This is quite frustrating. I absolutely won't consent to a revert. [...]
Reminder: try to not see a revert as a bad thing. It's just means "not ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/Quoted 6 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed. And then there's the patch in the works by Daniel that will address all the remaining cases outside of the reported regression.
The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was picked and it is in v6.11-rc1.
I had to do this because I value the community (in this case, the users) much more than trying to make an arrogant developer to act in a community-friendly manner while leaving things completely broken.
That said, remembering that we're humans and, as such, it's normal to get something wrong during the development process, I want to remind you that:
1. A series that creates regressions is *not* good and *not* ready to
be
upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the
kernel,
not breaking devices and not breaking currently working
functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse
to break
functionality; and
4. Blaming the one who introduced the devicetree (you're doing that,
since you
are blaming the devicetree being wrong) isn't solving anything and
will not
magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant
behavior
you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that
their DT
still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has
a fix that
works with both old and new driver, and the next version
introduces the
breakage. N.2 should ideally never happen, anyway.Quoted 5 lines
Let's wrap up this matter now - I don't want to spend any more word, nor time, on this, as I really have nothing else to say.
Best regards,
AngeloTo be clear, I only became aware that my patch was picked by reading this email. It is clear that we have different views. To that extend, all of what you have written above can be answered to by reading what I have already written in this thread. Therefore, I don't see any wrongdoing from my side and invite everyone to fully read this thread to draw their own conclusions; something you seem not to have done. And I'm not the one, calling people names here. I can only offer my respect for hard working people.
In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demands were met. What I see is that, you failed as a maintainer to attend to my points against this practice. It's no surprise that, after not having heard back from you with an argument against my points, my patch was eventually taken in by someone else.
Quoted 1 line
Arınç
Funny. It turns out it was not even my patch that was picked but rather the patch that spawned this thread. Picked by you, no less. An improper patch whose log was loaded with incorrect logic, and the patch itself not fixing all the remaining broken trees. Now someone needs to submit another patch to close the remaining hole, arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts. I shall do that.
Arınç
Quoted 82 lines · On 30/07/2024 13:22, [email protected] wrote:
Quoted 64 lines
Quoted 7 lines
Quoted 6 lines
Reminder: try to not see a revert as a bad thing. It's just means "not
ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/Quoted 8 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed.
And then there's the patch in the works by Daniel that will address all the
remaining cases outside of the reported regression.The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was
picked and it is in v6.11-rc1.I had to do this because I value the community (in this case, the users) much
more than trying to make an arrogant developer to act in a community-friendly
manner while leaving things completely broken.That said, remembering that we're humans and, as such, it's normal to get something
wrong during the development process, I want to remind you that:1. A series that creates regressions is *not* good and *not* ready to
be
upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the
kernel,
not breaking devices and not breaking currently working
functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse
to break
functionality; and
4. Blaming the one who introduced the devicetree (you're doing that,
since you
are blaming the devicetree being wrong) isn't solving anything and
will not
magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant
behavior
you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that
their DT
still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has
a fix that
works with both old and new driver, and the next version
introduces the
breakage. N.2 should ideally never happen, anyway.Quoted 6 lines
Let's wrap up this matter now - I don't want to spend any more word, nor time,
on this, as I really have nothing else to say.Best regards,
AngeloTo be clear, I only became aware that my patch was picked by reading this
email. It is clear that we have different views. To that extend, all of what you have written above can be answered to by reading what I have already written in this thread. Therefore, I don't see any wrongdoing from
my side and invite everyone to fully read this thread to draw their own conclusions; something you seem not to have done. And I'm not the one, calling people names here. I can only offer my respect for hard working people.
Quoted 3 lines
In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demands
Hm, why ever DTS patch should be applied before driver patch is? This clearly suggests ABI break. You proposed to fix ABI issue by fixing DTS, which is not the way, because it literally fixes nothing. You got comments - fix the driver to be backwards compatible.
Quoted 6 lines
were met. What I see is that, you failed as a maintainer to attend to my points against this practice. It's no surprise that, after not having heard
back from you with an argument against my points, my patch was eventually
taken in by someone else.
Best regards,
Krzysztof
Hi,
Quoted 10 lines · Krzysztof Kozlowski
Quoted 4 lines · On 30/07/2024 13:22, [email protected] wrote:
[...]
In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demandsHm, why ever DTS patch should be applied before driver patch is? This clearly suggests ABI break. You proposed to fix ABI issue by fixing DTS, which is not the way, because it literally fixes nothing. You got comments - fix the driver to be backwards compatible.
I've suggested a fix for the driver here:
It has been tested and acknowledged by Arinc, hence a possible solution would be to apply it and there by restore compatibility with existing (broken) device trees.
Quoted 83 lines · Krzysztof Kozlowski
Quoted 82 lines · On 30/07/2024 13:22, [email protected] wrote:
Quoted 64 lines
Quoted 7 lines
Quoted 6 lines
Reminder: try to not see a revert as a bad thing. It's just means "not
ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/Quoted 8 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed.
And then there's the patch in the works by Daniel that will address all the
remaining cases outside of the reported regression.The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was
picked and it is in v6.11-rc1.I had to do this because I value the community (in this case, the users) much
more than trying to make an arrogant developer to act in a community-friendly
manner while leaving things completely broken.That said, remembering that we're humans and, as such, it's normal to get something
wrong during the development process, I want to remind you that:1. A series that creates regressions is *not* good and *not* ready to
be
upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the
kernel,
not breaking devices and not breaking currently working
functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse
to break
functionality; and
4. Blaming the one who introduced the devicetree (you're doing that,
since you
are blaming the devicetree being wrong) isn't solving anything and
will not
magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant
behavior
you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that
their DT
still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has
a fix that
works with both old and new driver, and the next version
introduces the
breakage. N.2 should ideally never happen, anyway.Quoted 6 lines
Let's wrap up this matter now - I don't want to spend any more word, nor time,
on this, as I really have nothing else to say.Best regards,
AngeloTo be clear, I only became aware that my patch was picked by reading this
email. It is clear that we have different views. To that extend, all of what you have written above can be answered to by reading what I have already written in this thread. Therefore, I don't see any wrongdoing from
my side and invite everyone to fully read this thread to draw their own conclusions; something you seem not to have done. And I'm not the one, calling people names here. I can only offer my respect for hard working people.
Quoted 8 lines
Quoted 3 lines
In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demands
Hm, why ever DTS patch should be applied before driver patch is? This clearly suggests ABI break. You proposed to fix ABI issue by fixing DTS, which is not the way, because it literally fixes nothing. You got comments - fix the driver to be backwards compatible.
As I argued in this thread, I see no ABI issue here. I proposed to fix broken devicetrees, nothing more. Please read the full thread to understand where I'm coming from.
Arınç
Quoted 88 lines · Arınç ÜNAL
Quoted 87 lines · Krzysztof Kozlowski
Quoted 85 lines · On 30/07/2024 13:22, [email protected] wrote:
Quoted 64 lines
Quoted 7 lines
Quoted 6 lines
Reminder: try to not see a revert as a bad thing. It's just means "not
ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/Quoted 8 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed.
And then there's the patch in the works by Daniel that will address all the
remaining cases outside of the reported regression.The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was
picked and it is in v6.11-rc1.I had to do this because I value the community (in this case, the users) much
more than trying to make an arrogant developer to act in a community-friendly
manner while leaving things completely broken.That said, remembering that we're humans and, as such, it's normal to get something
wrong during the development process, I want to remind you that:1. A series that creates regressions is *not* good and *not* ready to
be
upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the
kernel,
not breaking devices and not breaking currently working
functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse
to break
functionality; and
4. Blaming the one who introduced the devicetree (you're doing that,
since you
are blaming the devicetree being wrong) isn't solving anything and
will not
magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant
behavior
you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that
their DT
still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has
a fix that
works with both old and new driver, and the next version
introduces the
breakage. N.2 should ideally never happen, anyway.Quoted 6 lines
Let's wrap up this matter now - I don't want to spend any more word, nor time,
on this, as I really have nothing else to say.Best regards,
AngeloTo be clear, I only became aware that my patch was picked by reading this
email. It is clear that we have different views. To that extend, all of what you have written above can be answered to by reading what I have already written in this thread. Therefore, I don't see any wrongdoing from
my side and invite everyone to fully read this thread to draw their own conclusions; something you seem not to have done. And I'm not the one, calling people names here. I can only offer my respect for hard working people.In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demands
Quoted 8 lines
Quoted 4 lines
Hm, why ever DTS patch should be applied before driver patch is? This clearly suggests ABI break. You proposed to fix ABI issue by fixing DTS, which is not the way, because it literally fixes nothing. You got comments - fix the driver to be backwards compatible.
As I argued in this thread, I see no ABI issue here. I proposed to fix broken devicetrees, nothing more. Please read the full thread to understand where I'm coming from.
I read most of it and it does suggest ABI break. But even if you do not focus on that aspect, your suggestion that DTS should be applied before driver patch is just wrong. It was never like this and it must not be like this.
Best regards,
Krzysztof
Quoted 98 lines · Krzysztof Kozlowski
Quoted 88 lines · Arınç ÜNAL
Quoted 87 lines · Krzysztof Kozlowski
Quoted 85 lines · On 30/07/2024 13:22, [email protected] wrote:
Quoted 64 lines
Quoted 7 lines
Quoted 6 lines
Reminder: try to not see a revert as a bad thing. It's just means "not
ready yet, revert and we'll try again later" -- that's actually something Linus wrote just a few hours ago:
https://lore.kernel.org/lkml/CAHk-=wgQMOscLeeA3QXOs97xOz_CTxdqJjpC20tJ-7bUdHWtSA@mail.gmail.com/Quoted 8 lines
Except it is ready and trying again is my responsibility, which means unnecessary work for me to do. I've already got a ton of things to do. Applying the device tree patch resolves this regression; no reverts needed.
And then there's the patch in the works by Daniel that will address all the
remaining cases outside of the reported regression.The commit that fixes your breakage in a way that does *not* please me (because of older devicetrees being still broken with the new driver) was
picked and it is in v6.11-rc1.I had to do this because I value the community (in this case, the users) much
more than trying to make an arrogant developer to act in a community-friendly
manner while leaving things completely broken.That said, remembering that we're humans and, as such, it's normal to get something
wrong during the development process, I want to remind you that:1. A series that creates regressions is *not* good and *not* ready to
be
upstreamed; and
2. As a maintainer, you have the responsibility of not breaking the
kernel,
not breaking devices and not breaking currently working
functionality; and
3. Devicetrees being wrong (but working) since day 0 is not an excuse
to break
functionality; and
4. Blaming the one who introduced the devicetree (you're doing that,
since you
are blaming the devicetree being wrong) isn't solving anything and
will not
magically make your code acceptable or good; and
5. If you push a wrong commit, there's nothing to be ashamed of; and
6. If you make a mistake, you should recognize that and find a way to make things right, that should be done for the community, not for yourself; and
7. You shall respect the community: in this case, with your arrogant
behavior
you did *not* respect the users.
P.S.: The right way of making such change is to:
1. Avoid breaking currently working devices by making sure that
their DT
still works with the new driver; and
2. If breakage is unavoidable, make it so one kernel version has
a fix that
works with both old and new driver, and the next version
introduces the
breakage. N.2 should ideally never happen, anyway.Quoted 6 lines
Let's wrap up this matter now - I don't want to spend any more word, nor time,
on this, as I really have nothing else to say.Best regards,
AngeloTo be clear, I only became aware that my patch was picked by reading this
email. It is clear that we have different views. To that extend, all of what you have written above can be answered to by reading what I have already written in this thread. Therefore, I don't see any wrongdoing from
my side and invite everyone to fully read this thread to draw their own conclusions; something you seem not to have done. And I'm not the one, calling people names here. I can only offer my respect for hard working people.In my view, your behaviour of not applying a devicetree patch before a Linux driver patch was applied, and then not replying to any arguments whatsoever, was keeping the devicetree files hostage until your demands
Quoted 8 lines
Quoted 4 lines
Hm, why ever DTS patch should be applied before driver patch is? This clearly suggests ABI break. You proposed to fix ABI issue by fixing DTS, which is not the way, because it literally fixes nothing. You got comments - fix the driver to be backwards compatible.
As I argued in this thread, I see no ABI issue here. I proposed to fix broken devicetrees, nothing more. Please read the full thread to understand where I'm coming from.
Quoted 7 lines
I read most of it and it does suggest ABI break. But even if you do not focus on that aspect, your suggestion that DTS should be applied before driver patch is just wrong. It was never like this and it must not be like this.
Best regards,
Krzysztof
I will use the ABI, bindings, and dt-bindings terms synonymously here.
Let's discuss the Devicetree Specification Releasev0.4. In 2.1, it is stated that DTSpec specifies a construct called a devicetree to describe system hardware. A boot program loads a devicetree into a client program’s memory and passes a pointer to the devicetree to the client.
A devicetree is a tree data structure with nodes that describe the devices in a system. Each node has property/value pairs that describe the characteristics of the device being represented. Each node has exactly one parent except for the root node, which has no parent. A device in this context may be an actual hardware device, such as a UART. It may be part of a hardware device, such as the random-number generator in a TPM. It may also be a device provided through virtualisation, such as a protocol providing access to an I2C device attached to a remote CPU. A device may include functions implemented by firmware running in higher privilege levels or remote processors. There is no requirement that nodes in a device tree be a physical hardware device, but generally they have some correlation to physical hardware devices. Nodes should not be designed for OS- or project- specific purposes. They should describe something which can be implemented by any OS or project.
As read here, devicetree design is not to be influenced by any project. That would mean that bindings and devicetree source files are described first, then the implementation is made by any OS or project. To be specific to the case here, it makes no sense to hold a patch that fixes a devicetree source file until a Linux driver patch is taken in.
I think the dt-bindings and the DT source files being hosted on the Linux repository greatly contributes to this false impression that Linux drivers have any influence over the design of bindings or fixing DT source files that did not comply with the bindings. That is why I'm looking forward to the efforts to take dt-bindings and DT source files out of the Linux repository into its own, separate repository. This would be a great step in addressing all the project-dependent bindings of Linux, U-Boot, OpenWrt, and all other projects, to have a single, unified repository to describe all the hardware that exists in the world.
One of the concepts of the devicetree architecture is that a boot program can describe and communicate system hardware information to a client program, thus eliminating the need for the client program to have hard-coded descriptions of system hardware. Not only eliminate the need of that, but allow hardware with a different value for the description than what was hard-coded.
A driver change cannot possibly break ABI because it's the implementation being changed, not the bindings. The implementation change can be so that it breaks compliance with the bindings. Which is not the case with the change made in the Linux driver in question. I have eliminated the hard-coded description from the Linux driver. That did not break compliance with the bindings. Instead, the implementation change made the driver compliant with the bindings; specifically, the description where the reg value represents the PHY address of the switch.
It is important to note that old devicetrees that abided to the bindings still work after the Linux driver change. This is also, of course, the case for any DT source files hosted out of the Linux repository.
Therefore, the correct path forward was to correct the DT source files that include values for descriptions that do not reflect the hardware it describes. Which is eventually what happened here. To be more specific, we fixed the incorrect description of the switch's PHY address on the DT source file as, on the hardware, the switch listens on PHY address 0x1f.
Arınç
Quoted 22 lines · Frank Wunderlich
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 21 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.Quoted 6 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Quoted 5 lines
Quoted 1 line
Arınç
Hi arinc,
From my PoV it is a regression in next/6.10 because the driver change was merged (without "broadcast" fallback) and the dts patch [1] is not.
What is a broadcast fallback? 0x1f is just another PHY address.
Arınç
Am 31. Mai 2024 08:12:06 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 23 lines · Frank Wunderlich
Quoted 22 lines
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 21 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.Quoted 6 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Arınç
Hi arinc,
From my PoV it is a regression in next/6.10 because the driver change was merged (without "broadcast" fallback) and the dts patch [1] is not.
What is a broadcast fallback?
0x1fis just another PHY address.
Afaik 0x0 is some kind of broadcast address if real phy address is not known. The driver change seems not allow this 0x0 adress and forces devicetree to have the real address.
Thats what i mean with broadcast fallback. Maybe the naming is wrong.
Quoted 1 line
Arınç
@thorsten i have not tested again,but i have not seen any further fix for it. regards Frank
Quoted 26 lines · Frank Wunderlich
Am 31. Mai 2024 08:12:06 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 25 lines · Frank Wunderlich
Quoted 24 lines
Am 17. Mai 2024 04:17:47 MESZ schrieb "Arınç ÜNAL" <[email protected]>:
Quoted 22 lines · Frank Wunderlich
Quoted 6 lines
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.Quoted 6 lines
mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>I don't like the mention of the Linux kernel driver on the patch log. What you're fixing is the incorrect description of the switch's PHY address on the DTS file. Whether or not any driver from any project is actually reading it from the DTS file is irrelevant to this patch. That said, I already have a patch series I've been meaning to send the next version of that already addresses this. Please wait for that.
Arınç
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Hi arinc,
From my PoV it is a regression in next/6.10 because the driver change was merged (without "broadcast" fallback) and the dts patch [1] is not.
What is a broadcast fallback?
0x1fis just another PHY address.Afaik
0x0is some kind of broadcast address if real phy address is not known. The driver change seems not allow this0x0adress and forces devicetree to have the real address.
That's not true. 0x0 is just another PHY address. The driver change actually allows reading 0x0 from the device tree and using that PHY address to control the switch registers, instead of using 0x1f which was hardcoded on the driver. But on the hardware, the switch actually listens on 0x1f.
Arınç
Rob Herring (Arm)
maintainerQuoted 9 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
After commit
868ff5f4944a
("net: dsa: mt7530-mdio: read PHY address of switch from device tree") the mt7531 switch on Bananapi-R64 was not detected.mt7530-mdio mdio-bus:00: reset timeout
mt7530-mdio mdio-bus:00: probe with driver mt7530-mdio failed with error -110
Quoted 7 lines
Fix this by adding phy address in devicetree.
Signed-off-by Frank Wunderlich <[email protected]>--- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y mediatek/mt7622-bananapi-bpi-r64.dtb' for [email protected]:
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dtb: switch@1f: 'interrupts' is a dependency of 'interrupt-controller'
from schema $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#