Skip to contentSkip to conversation

MIPS: ralink: select WEAK_REORDERING_BEYOND_LLSC on MT7621

PATCH In review Ilya Lipnitskiy 2 participants 3 messages Mar 7, 2021 – Mar 16, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: ralink: select WEAK_REORDERING_BEYOND_LLSC on MT7621

Upstream a long-standing OpenWrt patch for RALINK MT7621 SoC. Selecting WEAK_REORDERING_BEYOND_LLSC fixes random kernel hangs. This bug and fix was reported by MediaTek WCN division [0].

[0]: https://lists.infradead.org/pipermail/lede-commits/2017-August/004537.html

---
 arch/mips/ralink/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/mips/ralink/Kconfig +1 -0
index c20c44788b62..31671bbf26ff 100644
@@ -62,6 +62,7 @@ choice
 		select CLKSRC_MIPS_GIC
 		select HAVE_PCI if PCI_MT7621
 		select SOC_BUS
+		select WEAK_REORDERING_BEYOND_LLSC
 endchoice
 
 choice
Signature · 7 lines
2.30.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#1 lore raw
Quoted 5 lines · Ilya Lipnitskiy

Upstream a long-standing OpenWrt patch for RALINK MT7621 SoC. Selecting WEAK_REORDERING_BEYOND_LLSC fixes random kernel hangs. This bug and fix was reported by MediaTek WCN division [0].

[0]: https://lists.infradead.org/pipermail/lede-commits/2017-August/004537.html

I don't see the Mediatek WCN reporting there. Looking at the 1004K user manual I couldn't find a notice about such behaviour. So this looks more like a fix for papering over the real bug by just introducing a few more syncs. Could you please point me to where this is really documented ?

Thomas.

Signature · 7 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#2 lore raw

Hi Thomas,

Quoted 6 lines · Thomas Bogendoerfer
Quoted 4 lines · Ilya Lipnitskiy

Upstream a long-standing OpenWrt patch for RALINK MT7621 SoC. Selecting WEAK_REORDERING_BEYOND_LLSC fixes random kernel hangs. This bug and fix was reported by MediaTek WCN division [0].

Quoted 7 lines
Quoted 1 line

[0]: https://lists.infradead.org/pipermail/lede-commits/2017-August/004537.html

I don't see the Mediatek WCN reporting there. Looking at the 1004K user manual I couldn't find a notice about such behaviour. So this looks more like a fix for papering over the real bug by just introducing a few more syncs. Could you please point me to where this is really documented ?

You may actually be right. After doing some testing we may not need this change after all. Let me drop this patch for now. FYI, the following commit may have fixed LL SC issues this change was covering
up: https://lore.kernel.org/lkml/[email protected]/

Quoted 6 lines

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]

Ilya

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek