arm64: dts: renesas: Remove renesas, no-ether-link property
Subsystems (2)
v2 cover arm64: dts: renesas: Remove renesas, no-ether-link property
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.
As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper AVB_LINK signal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since the AVB_LINK is correctly handled by HW.
Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly from adjust_link function without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifies AVB_LINK signal value (0 - at low level; 1 - at high level).
In conclusion, the change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Note that DTS files for V3M Starter Kit, Draak and Eagle boards contain the same property, the files are untouched due to unavailable schematics to verify if the fix applies to these boards as well.
Changes from v1 to v2:
* per a request from Simon added Fixes tags to both changes, the specified commits generalize Salvator-X and ULCB dtsi files and the fixes should be applicable without a conflict, however similar but virtually different fixes can be spread into Salvator-X and ULCB board DTS files of older kernel revisions as well.
Bogdan Mirea (2):
arm64: dts: renesas: salvator-x: Remove renesas,no-ether-link property
arm64: dts: renesas: ulcb: Remove renesas,no-ether-link property
arch/arm64/boot/dts/renesas/salvator-common.dtsi | 1 - arch/arm64/boot/dts/renesas/ulcb.dtsi | 1 - 2 files changed, 2 deletions(-)
Signature · 1 line
2.8.1
PATCH v2 1/2 arm64: dts: renesas: salvator-x: Remove renesas, no-ether-link property
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.
As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper AVB_LINK signal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since the AVB_LINK is correctly handled by HW.
Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly from adjust_link function without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifies AVB_LINK signal value (0 - at low level; 1 - at high level).
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
--- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +0 -1
@@ -255,7 +255,6 @@ &avb { pinctrl-0 = <&avb_pins>; pinctrl-names = "default"; - renesas,no-ether-link; phy-handle = <&phy0>; status = "okay";
Signature · 1 line
2.8.1
PATCH v2 1/2 arm64: dts: renesas: salvator-x: Remove renesas,no-ether-link property
Quoted 26 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).
Quoted 6 lines
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Fixes d25e8ff0d5aa ("arm64: dts: renesas: Extract common Salvator-X board support")
The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Quoted 21 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>--- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 1 - 1 file changed, 1 deletion(-)arch/arm64/boot/dts/renesas/salvator-common.dtsi +0
-1@@ -255,7 +255,6 @@ &avb { pinctrl-0 = <&avb_pins>; pinctrl-names = "default"; - renesas,no-ether-link; phy-handle = <&phy0>; status = "okay";Signature · 1 line
2.8.1
PATCH v2 1/2 arm64: dts: renesas: salvator-x: Remove renesas,no-ether-link property
Quoted 32 lines · Simon Horman
Quoted 31 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Quoted 10 lines
Quoted 1 line
Fixes d25e8ff0d5aa ("arm64: dts: renesas: Extract common Salvator-X board support")The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Fixes dc36965a8905 ("arm64: dts: r8a7796: salvator-x: Enable EthernetAVB")Fixes 6fa501c549aa ("arm64: dts: r8a7795: enable EthernetAVB on Salvator-X")Quoted 2 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>
I have applied this a fix for v4.15 with the updated Fixes tags above.
PATCH v2 1/2 arm64: dts: renesas: salvator-x: Remove renesas,no-ether-link property
Hi Simon,
Quoted 38 lines · Simon Horman
Quoted 37 lines · Simon Horman
Quoted 26 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).Quoted 6 lines
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Fixes d25e8ff0d5aa ("arm64: dts: renesas: Extract common Salvator-X board support")The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Quoted 8 lines
Quoted 5 lines
Fixes dc36965a8905 ("arm64: dts: r8a7796: salvator-x: Enable EthernetAVB")Fixes 6fa501c549aa ("arm64: dts: r8a7795: enable EthernetAVB on Salvator-X")Quoted 2 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>I have applied this a fix for v4.15 with the updated Fixes tags above.
thank you, I was unsure if you expected to get changes which can be used as a base without patch application conflicts (my done choice) or changes, which originally intorduced the bug, but formally require slightly different fixes due to code changes in the middle. If it would be needed, hopefully linux-stable maintainers can resolve the trivial conflicts.
Also you may find this information from the cover letter useful, someone may want to check the relevant board schematics and send similar fixes (if applicable after schematics review and testing):
Note that DTS files for V3M Starter Kit, Draak and Eagle boards contain the same property, the files are untouched due to unavailable schematics to verify if the fix applies to these boards as well.
--
With best wishes,
Vladimir
PATCH v2 1/2 arm64: dts: renesas: salvator-x: Remove renesas,no-ether-link property
Hi Vladimir,
Happy New Year!
Quoted 56 lines · Vladimir Zapolskiy
Hi Simon,
Quoted 38 lines · Simon Horman
Quoted 37 lines · Simon Horman
Quoted 26 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).Quoted 6 lines
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Fixes d25e8ff0d5aa ("arm64: dts: renesas: Extract common Salvator-X board support")The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Quoted 8 lines
Quoted 5 lines
Fixes dc36965a8905 ("arm64: dts: r8a7796: salvator-x: Enable EthernetAVB")Fixes 6fa501c549aa ("arm64: dts: r8a7795: enable EthernetAVB on Salvator-X")Quoted 2 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>I have applied this a fix for v4.15 with the updated Fixes tags above.
thank you, I was unsure if you expected to get changes which can be used as a base without patch application conflicts (my done choice) or changes, which originally intorduced the bug, but formally require slightly different fixes due to code changes in the middle. If it would be needed, hopefully linux-stable maintainers can resolve the trivial conflicts.
Quoted 7 lines
Also you may find this information from the cover letter useful, someone may want to check the relevant board schematics and send similar fixes (if applicable after schematics review and testing):
Note that DTS files for V3M Starter Kit, Draak and Eagle boards contain the same property, the files are untouched due to unavailable schematics to verify if the fix applies to these boards as well.
Thanks. I took a quick look and my findings so far are:
* Eagle: This approach seems applicable as AVB_LINK appears to be hooked up
* V3M Starter Kit: This approach seems applicable as AVB0_LINK appears to be hooked up
* Draak: I don't seem to be able to locate documentation at this time
Are you interested in creating follow-up patches?
PATCH v2 1/2 arm64: dts: renesas: salvator-x: Remove renesas,no-ether-link property
Quoted 69 lines · Simon Horman
Hi Vladimir,
Happy New Year!
Quoted 56 lines · Vladimir Zapolskiy
Hi Simon,
Quoted 38 lines · Simon Horman
Quoted 37 lines · Simon Horman
Quoted 26 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).Quoted 6 lines
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Fixes d25e8ff0d5aa ("arm64: dts: renesas: Extract common Salvator-X board support")The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Quoted 8 lines
Quoted 5 lines
Fixes dc36965a8905 ("arm64: dts: r8a7796: salvator-x: Enable EthernetAVB")Fixes 6fa501c549aa ("arm64: dts: r8a7795: enable EthernetAVB on Salvator-X")Quoted 2 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>I have applied this a fix for v4.15 with the updated Fixes tags above.
thank you, I was unsure if you expected to get changes which can be used as a base without patch application conflicts (my done choice) or changes, which originally intorduced the bug, but formally require slightly different fixes due to code changes in the middle. If it would be needed, hopefully linux-stable maintainers can resolve the trivial conflicts.
Quoted 7 lines
Also you may find this information from the cover letter useful, someone may want to check the relevant board schematics and send similar fixes (if applicable after schematics review and testing):
Note that DTS files for V3M Starter Kit, Draak and Eagle boards contain the same property, the files are untouched due to unavailable schematics to verify if the fix applies to these boards as well.
Quoted 6 lines
Thanks. I took a quick look and my findings so far are:
* Eagle: This approach seems applicable as
AVB_LINKappears to be hooked up
* V3M Starter Kit: This approach seems applicable asAVB0_LINKappears to be hooked up
* Draak: I don't seem to be able to locate documentation at this time
I have now obtained Draak documentation. It seems that this approach is applicable to that board too as AVB0_LINK appears to be hooked up.
Quoted 1 line
Are you interested in creating follow-up patches?
PATCH v2 2/2 arm64: dts: renesas: ulcb: Remove renesas, no-ether-link property
In reply to Vladimir ZapolskiyFrom: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.
As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper AVB_LINK signal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since the AVB_LINK is correctly handled by HW.
Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly from adjust_link function without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifies AVB_LINK signal value (0 - at low level; 1 - at high level).
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
--- arch/arm64/boot/dts/renesas/ulcb.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/renesas/ulcb.dtsi +0 -1
@@ -145,7 +145,6 @@ &avb { pinctrl-0 = <&avb_pins>; pinctrl-names = "default"; - renesas,no-ether-link; phy-handle = <&phy0>; status = "okay";
Signature · 1 line
2.8.1
PATCH v2 2/2 arm64: dts: renesas: ulcb: Remove renesas,no-ether-link property
Quoted 26 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).
Quoted 6 lines
In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Fixes 253ed045a34d ("arm64: dts: renesas: Extract common ULCB board support")
The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Quoted 21 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>--- arch/arm64/boot/dts/renesas/ulcb.dtsi | 1 - 1 file changed, 1 deletion(-)arch/arm64/boot/dts/renesas/ulcb.dtsi +0
-1@@ -145,7 +145,6 @@ &avb { pinctrl-0 = <&avb_pins>; pinctrl-names = "default"; - renesas,no-ether-link; phy-handle = <&phy0>; status = "okay";Signature · 1 line
2.8.1
PATCH v2 2/2 arm64: dts: renesas: ulcb: Remove renesas,no-ether-link property
Quoted 32 lines · Simon Horman
Quoted 31 lines · Vladimir Zapolskiy
From: Bogdan Mirea <[email protected]>
The present change is a bug fix for AVB link iteratively up/down.
Steps to reproduce:
- start AVB TX stream (Using aplay via MSE),
- disconnect+reconnect the eth cable,
- after a reconnection the eth connection goes iteratively up/down without user interaction,
- this may heal after some seconds or even stay for minutes.As the documentation specifies, the "renesas,no-ether-link" option should be used when a board does not provide a proper
AVB_LINKsignal. There is no need for this option enabled on RCAR H3/M3 Salvator-X/XS and ULCB starter kits since theAVB_LINKis correctly handled by HW.Choosing to keep or remove the "renesas,no-ether-link" option will have impact on the code flow in the following ways:
- keeping this option enabled may lead to unexpected behavior since the RX & TX are enabled/disabled directly fromadjust_linkfunction without any HW interrogation,
- removing this option, the RX & TX will only be enabled/disabled after HW interrogation. The HW check is made through the LMON pin in PSR register which specifiesAVB_LINKsignal value (0 - at low level; 1 - at high level).In conclusion, the present change is also a safety improvement because it removes the "renesas,no-ether-link" option leading to a proper way of detecting the link state based on HW interrogation and not on software heuristic.
Quoted 10 lines
Quoted 1 line
Fixes 253ed045a34d ("arm64: dts: renesas: Extract common ULCB board support")The above shuffles the code around but does not introduce the problem as far as I can see. Instead I think we should use:
Fixes 144bf6ccb13f ("arm64: dts: h3ulcb: enable EthernetAVB")Fixes 883fae315a6a ("arm64: dts: m3ulcb: enable EthernetAVB")Quoted 2 lines
Signed-off-by Bogdan Mirea <[email protected]>Signed-off-by Vladimir Zapolskiy <[email protected]>
I have applied this a fix for v4.15 with the updated Fixes tags above.