<boobypi>
<montjoie> About emac timeout, seem to be currious...just moving same code from emac_init to emac_open resolve this issue on my op pc.
clonak has joined #linux-sunxi
<boobypi>
I try to use your function emac_uninit to succes "/etc/init.d/network restart" and it work but there is an (interesting bug) : If i don't plug eth cable and doing eth restart (many time so soft reset emac and unregister mdio ), when i connect ping will work.
<boobypi>
but i plug a eth cable and doing eth restart (it's seem to work, up link 100mbit detection) but nothing go out with a ping...
<boobypi>
I trace all #define register, soft reset occur perfectly...maybe an idea?
jstein has joined #linux-sunxi
boobypi has quit [Quit: Page closed]
apritzel has joined #linux-sunxi
tkaiser has joined #linux-sunxi
tkaiser has quit [Ping timeout: 258 seconds]
<montjoie>
boobypi do you use my latest version ?
jstein has quit [Remote host closed the connection]
Mr__Anderson has joined #linux-sunxi
phipli has joined #linux-sunxi
boobypi has joined #linux-sunxi
apritzel has quit [Ping timeout: 244 seconds]
<boobypi>
<montjoie> I copy your driver from your github on 25/05/2016...so maybe not the last (i see add regulator...)
<boobypi>
<monjoie> sorry 29/05/2016
mosterta has quit [Ping timeout: 264 seconds]
phipli has quit [Ping timeout: 260 seconds]
Netlynx has joined #linux-sunxi
tkaiser has joined #linux-sunxi
tkaiser has quit [Ping timeout: 246 seconds]
boobypi has quit [Quit: Page closed]
jernej has joined #linux-sunxi
Mr__Anderson has quit [Remote host closed the connection]
scream has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
tkaiser has joined #linux-sunxi
tkaiser has quit [Ping timeout: 258 seconds]
<montjoie>
could you retry from latest
<montjoie>
I will try the plug/unplug with my opipc
jernej has quit [Remote host closed the connection]
jernej has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
reinforce has joined #linux-sunxi
Amit_t_ has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
<tkaiser>
Now BPi M2+ is running at 312MHz with only 3 CPU cores active. Does further testing makes any sense?
IgorPec has quit [Ping timeout: 260 seconds]
Amit_t_ has joined #linux-sunxi
<Amit_t_>
The Legend, Great Ali passed away :(
FergusL has joined #linux-sunxi
orly_owl has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
orly_owl has joined #linux-sunxi
FergusL has quit [Remote host closed the connection]
<ssvb>
tkaiser: maybe the 600MHz mali clock speed is to blame?
FergusL has joined #linux-sunxi
mosterta has joined #linux-sunxi
<tkaiser>
ssvb: Will try to lower that now and check again. At least BPi M2+ survived an hour with 720 MHz DRAM clockspeed with the Armbian image I made (u-boot 2016.05 and new BSP kernel)
<xcasex>
tkaiser: whats the issue with the dram clock?
<tkaiser>
xcasex: Trying to test highest reliably clockspeed.
<xcasex>
good god, they cheaped out on the voltage reg of all thing >_>
<xcasex>
*things
<ssvb>
tkaiser: can you try to use the same U-Boot image for the FEL mode test?
al1o has joined #linux-sunxi
<tkaiser>
ssvb: Yes, would be the next step. I already thought about how to extract u-boot+spl (which dd parameters)
<ssvb>
tkaiser: and also the other way around - try to use the U-Boot image from the current FEL test bundle to boot your system and test it again
MrBIOS2 is now known as WB6ALX
apritzel has quit [Ping timeout: 244 seconds]
<ssvb>
basically, I wonder if your current kernel is still doing any kind of DRAM reclocking or the problem is only U-Boot related
<ssvb>
also we still have an experimental DRAM init code for H3, which tries to be deterministic (this test could help to rule out any random changes possibly caused by the SoC temperature differences at the time of boot)
<tkaiser>
ssvb: I built another kernel to get back DRAM reclocking, then adjusted it in fex file too and tested. Same results and /sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/cur_freq showed stable 720 MHz. I adjusted the value in the fex to 648 and as soon as throttling starts, DRAM clock speed was reduced to 648 MHz (both tests just to confirm). Will now revert back to the kernel where DRAM reclocking is disabled and
<boobypi>
<montjoie> I tried your latest emac driver and I got emac timeout when eth cable not pluged.
<boobypi>
<montjoie> I tried to add some msleep to simulate my debug output on uart (adding delay) but no way, SUN8I_EMAC_BASIC_CTL1 stay at 8001 softresetting state
<boobypi>
<montjoie> maybe the problem is openwrt boot faster 13sec ready with eth up
<boobypi>
<montjoie> so i move some code like i explain and it's work fine (better thanks to your cleaning of emac_stop).
al1o has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<boobypi>
<montjoie> Now it can boot with or without cable pluged, doing "/etc/init.d/network restart" without probleme. Just it's reset all the driver with mdio phy (I used emac_uninit function).
<boobypi>
<montjoie> I notice the phy blinking when reset was latter at boot, in emac_open call that emac_init ... maybe it's a point?
<boobypi>
<montjoie> No error, full speed 86mbit / 94mbit. Tested with 50cm eth cable.
boobypi has quit [Quit: Page closed]
Amit_t_ has quit [Ping timeout: 250 seconds]
mosterta has quit [Ping timeout: 276 seconds]
<juri_>
ok, something is still borked in stmmac_poll.
<juri_>
mind you, i have to do evil things to force it to crash (full speed iscsi + compiling a kernel -j2..)
<juri_>
but i'm starting to have a collection of oopses, that are not happening in my code.
<wens>
juri_: get a proper stack trace and send a report to the mailing list?
Amit_t_ has joined #linux-sunxi
Shirasaka-Hazumi has quit [Ping timeout: 244 seconds]
<ssvb>
tkaiser: don't forget about the mali clock speed
<tkaiser>
ssvb: Exactly the same settings, only CPU dvfs table is different (and different voltage regulator switching on OPi PC Plus down to 1240mV and 1140mV @ 1008 MHz)
<tkaiser>
ssvb: BTW: Another user tried this test Armbian image on an OPi Plus 2 (2GB model) and said lima-memtester spits out this message: 'Please remove 'sunxi_no_mali_mem_reserve' option from your kernel command line. Otherwise the mali kernel driver may be non-functional and actually knock down your system with some old linux-sunxi kernels. Aborted'
Amit_t_ has joined #linux-sunxi
<ssvb>
tkaiser: the 'sunxi_no_mali_mem_reserve' option is not supported by the h3 kernel anyway, so the user should just stop doing this cargo cult stuff
<tkaiser>
ssvb: Wrong information, I asked for contents of /proc/cmdline and this differs from what is set inside /boot/boot.scr. It seems he managed to boot from eMMC and switched then to the SD card.
<tkaiser>
ssvb: Ah, good to know
Amit_t_ has quit [Ping timeout: 250 seconds]
ninolein has quit [Remote host closed the connection]
Amit_t_ has joined #linux-sunxi
ninolein has joined #linux-sunxi
tomboy64 has quit [Quit: Uhh ... gotta go.]
tomboy64 has joined #linux-sunxi
<montjoie>
boobypi you use openwrt ? (which version)
tomboy64 has quit [Client Quit]
tomboy64 has joined #linux-sunxi
The_Loko has joined #linux-sunxi
<tkaiser>
ssvb: No spinning cube on OPI Plus 2 too.
tomboy64 has quit [Client Quit]
tomboy64 has joined #linux-sunxi
ninolein has quit [Ping timeout: 258 seconds]
ninolein has joined #linux-sunxi
Amit_t_ has quit [Ping timeout: 250 seconds]
Amit_t_ has joined #linux-sunxi
<montjoie>
boobypi you copu code from emac_init to emac_open but where ? at start or end..
<montjoie>
boobypi could you pastebin the diff that made it work ?
apritzel has joined #linux-sunxi
ninolein has quit [Ping timeout: 258 seconds]
ninolein_ has joined #linux-sunxi
Amit_t_ has quit [Ping timeout: 250 seconds]
<ssvb>
tkaiser: yeah, I will look into it when opi+2e arrives
<ssvb>
tkaiser: also this would the the second h3 board for me and I could check this boot0 vs. SPL reliability thing on more than one board sample
mosterta has joined #linux-sunxi
ninolein_ has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
<boobypi>
<montjoie> I started from openwrt r48747 but it's not official because i updade some pkg manualy and setup a linux4.6.1 (stable patch) + new uboot, etc...
<boobypi>
<montjoie> I find your eth driver very usable, you are made an awsome work thanks a lot
<boobypi>
<montjoie> tested with 10meters cable no shield, ok. same good bw, no err
apritzel has quit [Ping timeout: 244 seconds]
jernej has quit [Quit: Konversation terminated!]
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
[7] has quit [Ping timeout: 250 seconds]
TheSeven has joined #linux-sunxi
ninolein has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
nove has quit [Quit: nove]
boobypi has quit [Quit: Page closed]
Amit_t_ has quit [Ping timeout: 250 seconds]
peepsalot has quit [Ping timeout: 250 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 4.9.2, revision: git-6627-gf708225, sources date: 20160102, built on: 2016-05-12 17:32:15 UTC git-6627-gf708225 http://www.kvirc.net/]
phipli has joined #linux-sunxi
vagrantc has joined #linux-sunxi
Netlynx has quit [Quit: Leaving]
zuikis has left #linux-sunxi [#linux-sunxi]
jernej has quit [Ping timeout: 276 seconds]
apritzel has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
al1o has joined #linux-sunxi
<jrg>
hm... well that sucks
<jrg>
guess the opi doesn't have the same hole dimensions as a bananapi
<jrg>
i kind of hate leaving it in the open like that
<jrg>
ah well.. whatever. let me make an armbian SD for it
<jrg>
hopefully 5.41 is the latest
<jrg>
14
orly_owl has quit [Quit: leaving]
vagrantc has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-sunxi
scream has quit [Remote host closed the connection]