Mangy_Dog has quit [Remote host closed the connection]
Mangy_Dog has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
Jacmet has joined #linux-sunxi
<Jacmet>
smaeul: I'm trying to get your WIP branches running on my Nezha D1 board, but get a crash as soon as Linux tries to touch the PLIC registers in plic_toggle(). Same behaviour if I try to dump the registers in u-boot. Presumably I must have forgotten something, any ideas?
<hlauer>
could the driver strenght setting of a20 GPIO registers be used for current limiting, e.g. driving LEDs directly?
Mangy_Dog has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
cnxsoft has quit []
hlauer has joined #linux-sunxi
vagrantc has joined #linux-sunxi
valdikss has quit [Killed (NickServ (Too many failed password attempts.))]
valdikss has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
prefixcactus has quit [Ping timeout: 480 seconds]
Mangy_Dog has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 480 seconds]
<jernej>
apritzel: smaeul: H616 reset doesn't work with latest U-Boot master branch on OrangePi Zero2, but with v2021.10 does
<jernej>
I'm trying to figure out why Linux can't reboot OrangePi Zero2 (hangs at "reboot: Restarting system"), but it works on T95 TV box (also H616 based)
<jernej>
apritzel: for some reason, boot over FEL also doesn't work with v2021.01 on OrangePi Zero2
<jernej>
not sure what broke
JohnDoe_71Rus has quit []
hlauer has joined #linux-sunxi
jmas has quit [Ping timeout: 480 seconds]
<gnarface>
jernej: the real rpi's couldn't reboot either, maybe it's a hardware limitation
<gnarface>
jernej: on a PC the bios relies on the ATX power supply to hit the reboot button for it on command, but a pi has neither an ATX power supply, BIOS, nor reboot button
<gnarface>
it would make sense though that something sold as a "TV box" would have a real power supply
<jernej>
no, h616-v5 branch from apritzel has working reboot on OrangePi Zero2
<jernej>
however, if I rebase same branch on something newer, let say 5.14, it doesn't work anymore
<jernej>
now I'm bisecting which commit causes this issue
apritzel has joined #linux-sunxi
<gnarface>
oh hmm
<gnarface>
no idea then
<gnarface>
sorry
ugga has joined #linux-sunxi
ugga has quit []
juri_ has quit [Ping timeout: 480 seconds]
machinehum1 has quit []
gsz has quit [Quit: leaving]
<jernej>
smaeul: apritzel: found offending commit: 96be41d74f2e ("net: stmmac: dwmac-sun8i: Add a shutdown callback")
<jernej>
bisecting with adding H616 support every time, I found that this commit prevents OrangePi Zero2 to reboot
<apritzel>
jernej: many thanks for doing this (especially "adding h616 support every time" sounds tedious)
<jernej>
not really, fortunately I found one branch where I needed to skip just one commit
<jernej>
nevertheless it took about an hour
<jernej>
still much faster than cluelessly
<jernej>
looking around
<jernej>
I confirmed that taking 5.14 with H616 patches and reverting aforementioned commit, reboot works
<apritzel>
gnarface: rebooting on Allwinner (and most other ARM based SoCs) works via deliberately letting the watchdog kick in, so that's pretty easy and reliable
<apritzel>
jernej: did it just hang/not reboot, or did you see a kernel crash dump
<jernej>
first
<apritzel>
I remember seeing some splats on reboot with some branches, due to refcounting issues
<gnarface>
apritzel: hmm, interesting
<apritzel>
(ala: clocks disabled twice)
<jernej>
yeah, that's still present
<gnarface>
apritzel: do you think that would work for a rpi1?
<jernej>
r-apb2-rsb already disabled
<apritzel>
yes, that one
<jernej>
well, without revert, there is no this crash
<apritzel>
gnarface: don't know, but watchdog reset is the most common method, so if it's not working upstream, there must be a reason
<apritzel>
jernej: so you reckon it's actually sun8i_dwmac_shutdown() hanging?