narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
bengal has joined #linux-amlogic
ldevulder__ has joined #linux-amlogic
ldevulder_ has quit [Ping timeout: 268 seconds]
bengal has quit [Ping timeout: 265 seconds]
bengal has joined #linux-amlogic
bengal has quit [Ping timeout: 268 seconds]
bengal has joined #linux-amlogic
bengal has quit [Ping timeout: 268 seconds]
bengal has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
bengal has quit [Ping timeout: 250 seconds]
bengal has joined #linux-amlogic
bengal has quit [Ping timeout: 240 seconds]
bengal has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder__ has quit [Ping timeout: 265 seconds]
bengal has quit [Ping timeout: 250 seconds]
bengal has joined #linux-amlogic
bengal has quit [Ping timeout: 265 seconds]
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
bengal has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
bengal has quit [Ping timeout: 240 seconds]
sputnik_ has quit [Remote host closed the connection]
bengal has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
ldevulder__ has joined #linux-amlogic
ldevulder_ has quit [Ping timeout: 240 seconds]
Darkmatter66 has joined #linux-amlogic
random_yanek has quit [Ping timeout: 250 seconds]
random_yanek has joined #linux-amlogic
vagrantc has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
Barada has joined #linux-amlogic
Darkmatter66_ has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 250 seconds]
Barada has quit [Quit: Barada]
nsaenz has quit [Quit: Leaving]
nsaenz has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder__ has quit [Ping timeout: 250 seconds]
ldevulder_ is now known as ldevulder
bengal has quit [Ping timeout: 265 seconds]
bengal has joined #linux-amlogic
Linnaea has quit [Quit: WeeChat 2.6]
Linnaea has joined #linux-amlogic
yann has joined #linux-amlogic
yann has quit [Ping timeout: 250 seconds]
Linnaea has quit [Read error: Connection reset by peer]
Linnaea has joined #linux-amlogic
yann has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
yann has quit [Ping timeout: 240 seconds]
nashpa has quit [Ping timeout: 265 seconds]
Barada has joined #linux-amlogic
yann has joined #linux-amlogic
nashpa has joined #linux-amlogic
yann has quit [Ping timeout: 268 seconds]
Darkmatter66_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
yann has joined #linux-amlogic
Darkmatter66 has quit [Client Quit]
Darkmatter66 has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
niceplaces has joined #linux-amlogic
niceplace has quit [Ping timeout: 252 seconds]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
Barada has quit [Quit: Barada]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 265 seconds]
nexgen has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
pigiron has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
<pigiron> I'm having some fear and loathing with my ODroid-C2 ...
<pigiron> After upgrading the Arch Linux mainline kernel from 5.2 to 5.3, the ethernet (eth0) won't come up.
<pigiron> The key line in dmesg seems to be:
<pigiron> "meson8b-dwmac c9410000.ethernet: Failed to reset the dma"
<pigiron> That gets repeated again and again.
<pigiron> That line comes from the stmmac_init_dma_engine() function in drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
<pigiron> But... after reverting commit f29cabf240ed6e67993f17594e5e6fffc5bc07e0 then life is good again.
<pigiron> Anyone else with a "C2" running 5.3 seeing this?
vagrantc has joined #linux-amlogic
nashpa has quit [Ping timeout: 265 seconds]
nashpa has joined #linux-amlogic
<xdarklight> pigiron: strange, that should not happen
<xdarklight> pigiron: Kevin's KernelCI lab doesn't seem to have an Odroid-C2 anymore but there's the GXBB P200 board (same SoC, also Gbit/s Ethernet, just a Micrel PHY instead of a Realtek one) and it seems to work fine: https://storage.kernelci.org/next/master/next-20191010/arm64/defconfig/clang-8/lab-baylibre/boot-meson-gxbb-p200.html
<xdarklight> can you compare your kernel .config with what the P200 board uses (https://storage.kernelci.org/next/master/next-20191010/arm64/defconfig/clang-8/kernel.config)?
<pigiron> I sure will... give me a minute... and thanks!
<pigiron> There's a massive difference. So I narrowed it to the dwmac stuff by doing this:
<pigiron> diff c2-kernel.config p200-kernel.config |grep -e STMICRO -e STMMAC -e DWMAC
<pigiron> And the result is:
<pigiron> < CONFIG_DWMAC_DWC_QOS_ETH=m
<pigiron> > # CONFIG_DWMAC_DWC_QOS_ETH is not set
<pigiron> > CONFIG_DWMAC_SOCFPGA=m
<pigiron> I *assume* that the failing dma reset was in the dwmac code/area. Perhaps I'm wrong.
<pigiron> And yea, and I was bummed when I checked kernelci about a week ago, and there weren't any Odroid-C2 results.
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
yann has quit [Ping timeout: 268 seconds]
<pigiron> I compared the "meson8b-dwmac" output from that P200's dmesg output on KernelCI and that part is identical with mine...
<pigiron> Except, mine has later "meson8b-dwmac" dmesg output and then it starts failing.
<pigiron> I pasted the journalctl ouput from my C2 here: http://dpaste.com/38FX689
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
yann|work has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
<xdarklight> pigiron: can you pastebin your .config as well please?
<pigiron> Certainly. Give me a minute...
<pigiron> Here it is (and thanks for the help!!): http://dpaste.com/35WH92X
<Xogium> pigiron: are you running on an eMMC ?
<Xogium> asking because I'm tempted to migrate to 5.3 kernel but still unsure about it since I run on eMMC
<pigiron> Yes, and I have the one that was failing with the 5.2 kernel. That's why I was waiting so much for 5.3, because that problem is fixed in that version. And then I immediately ran into this problem :-(
<Xogium> pigiron: hah
<Xogium> pigiron: did the speed improve on eMMC ? Or does it still gets limited at 80 mb/s or so ?
<Xogium> I can try the 5.3 kernel too :)
<pigiron> hmm... I've never tested the speed. But it sure "feels" a LOT faster than the SD card.
<Xogium> oh yeah it is faster
<Xogium> hdparm -Tt can give you the speed
<Xogium> both buffered and non-buffered
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
<pigiron> You can read the long and sad eMMC story here (but it has a happy ending):
<Xogium> good
<Xogium> I was still on 4.19
<Tartarus> FWIW, eMMC works on my S905 board but the v5.2 kernel in meta-meson seems very unstable on it
<Xogium> yeah I'm not gonna try 5.2
<Tartarus> I'm about to crack open another one of these boxes and see if it's just the one I'm using or a real problem.
<Tartarus> Some general concerns or ?
<Tartarus> I'm looking at just backporting the driver to 4.20 for now as that was fine
<pigiron> All I can say is that eMMC Version 5.1 HS400 was failing for some of us on 5.2. Yet some (undefined) eMMC chips seemed to work.
nsaenz has quit [Remote host closed the connection]
<xdarklight> pigiron: can you do an experiment with your kernel config? please replace CONFIG_HZ_100=y with CONFIG_HZ_250=y and set CONFIG_HZ to 250 (your old value is 100), rebuild your kernel and test if that "fixes" (rather works around) the issue
<Tartarus> pigiron: unstable or just not showing up?
<Tartarus> actually scratch that, I'm crashing writing to the SD card anyhow
nsaenz has joined #linux-amlogic
<pigiron> xdarklight: You bet. But that will take a long time. Can I give the results tomorrow?
<xdarklight> pigiron: sure - it's only an experiment and may lead to nothing but there was an Odroid-C1 user some time ago who reported that this fixes a similar problem
<pigiron> xdarklight: Good. That's encouraging ;)
<xdarklight> pigiron: I made a similar change that's problematic for you on Odroid-C1 and tested that on my own board and in my tests it worked fine regardless of CONFIG_HZ set to 100 or 250. I've also tested it on a Khadas VIM2 with similar Ethernet setup as your Odorid-C2 and it was working fine for me. however, I've learned that just because it works for me doesn't mean it works for everyone ;)
<Xogium> xdarklight: well I'm starting a build, do you want me to do this too ?
<Xogium> odroid c2 from 2016 -- I don't know what rev of the board that is
<pigiron> Tartarus: It fails to boot 100% of the time... if you have the "wrong" chip.
<Tartarus> pigiron: ah, so not this problem then, ok
<Tartarus> thanks
<Xogium> eMMC are awesome, at least the ones hk is using, still going strong and reproting no issue after almost 4 years of 24/7 usage
<Xogium> reporting
<pigiron> xdarklight: Chuckle. Now that you say that, I was looking at that P200 output on KernelCI and I don't think it captures *everything*...
<xdarklight> Xogium: I'm not sure - I'm more curious to see whether CONFIG_HZ=100 works for you, but you could end up with broken Ethernet (in theory, not sure how high the chances are). if it does then pigiron's issue may be a timing problem "somewhere"
<Xogium> nod
<Xogium> will left at default first and see how it goes
<Xogium> *leave
<Xogium> hmm. I should really reinstall my system, one of these days
<xdarklight> pigiron: indeed, but it has this: "Starting network: OK"
<pigiron> xdarklight: Ahh, OK. Its missing the "Link is Up" or "Link is Down" type messages I find on my box (failing or not).
<Xogium> so issue is that you get link is up, then it goes downafter that dma thing, all in a loop ? So up, down, up, down again and again ?
* Xogium gets uart ready
<pigiron> Then things are good, it's UP, DOWN, and UP. When it fails, it's UP, DOWN, and never comes UP again.
<pigiron> s/Then/When/
<Xogium> ah
<Xogium> alright
<Xogium> woah 24 days uptime on my c2 ? I didn't even notice
CEnnis91 has joined #linux-amlogic
<pigiron> Xogium: Yes, you'll need the USB dongle. If/when it fails, revert commit f29cabf240ed6e67993f17594e5e6fffc5bc07e0. If it *doesn't* fail, please let us know. I'm not sure if my box is unique with this problem. But I really doubt it. It's failed on the Arch 5.3.1 and 5.3.5 kernels for me.
<Xogium> alrighty
<pigiron> xdarklight: FYI - I just remembered that I've got an appointment tomorrow morning. So I might not get back with results until Friday afternoon. Maybe around happy hour ;-) But I'm not in any rush. And once again, a HUGE thanks for looking into this!!!
Elpaulo1 has joined #linux-amlogic
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo1 is now known as Elpaulo
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 265 seconds]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
warpme_ has quit [Quit: Connection closed for inactivity]
vagrantc has quit [Quit: leaving]
return0e has quit [Remote host closed the connection]