Repository navigation
airoha: an7581: w1700k: fix RTL8261N PHY boot failure - #22564
Conversation
|
@hurrian Confirmed with couple users this fixed the 10G phy boot up issue. |
|
Confirmed. |
|
Please revise commit title to pass test formalities, it's too long ( Later W1700K hardware revisions and all known XR1710G are affected by this bug. |
|
After testing change related to realtek driver - #22563 - I spotted an issue that the w1700k got difficulties to start. More, it has such traceback: #22563 (comment) To solve that issue, it seems we just need to change interrupts: 2ba2afb and all seems to work normally - hard reboot/soft reboot. @rchen14b If you could include that in the patch or should I create another one? |
I have tested the edge failing solution, it breaks the irqbalance and also caused 1G port acting up. |
Not sure about 1G acting up - it works, but after 3th unplug-plug back it stops working. Interesting. After reboot works normally. |
|
@rchen14b @danpawlik Given what you guys said above, here's my suggestion:
|
|
@OpenWRT-fanboy I tested your proposal - f12351f - and... it works with #22563. 1G and 10G works, irqbalance - works. All seems to be fine, but - 3 seconds is required on unplug/plug cable or |
PR 22536 is meant to fix that link come up issue. I don't have any issue with that dts interrupts, but I can test how it will look like with the remove interrupts commit. |
…ure with increased reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]>
…ure with increased reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]>
…ure with increased reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]>
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]>
0ee9fab to
7be78e7
Compare
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]>
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 7be78e7)
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 7be78e7)
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 7be78e7)
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]>
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 7be78e7)
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]>
…reset timing Some W1700K and XR1701G boards with Realtek RTL8261N/RTL8261BE 10G PHYs fail to bring up the USXGMII link on cold boot. The PHY enters a bad state during initialization and the link stays down permanently until power cycle. Root cause: the GPIO reset assert/deassert timing (40ms/150ms) is too short for the RTL8261N to complete its internal firmware load. The OEM firmware uses 200ms/200ms. Increase both PHY reset timings to 200ms/200ms to match OEM values. Confirmed to fix intermittent boot failures on both W1700K (Gemtek) and XR1701G boards. Signed-off-by: Ryan Chen <[email protected]> Link: openwrt/openwrt#22564 Signed-off-by: Hauke Mehrtens <[email protected]>
Summary
Fix intermittent 10G PHY boot failure on W1700K and XR1701G boards
with Realtek RTL8261N/RTL8261BE PHYs.
On cold boot, the USXGMII link sometimes fails to come up and stays
dead until power cycle. The RTL8261N needs time to load its internal
firmware after reset deassertion. The current GPIO reset timing
(40ms assert / 150ms deassert) is too short — the PHY firmware load
hasn't completed when the PCS starts link training.
Fix: increase both PHY reset assert and deassert delays to 200ms,
matching the OEM firmware values.
Confirmed fix on:
Multiple users reported this issue:
Test plan