Turl changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
forkbomb has quit [Remote host closed the connection]
reinforce has quit [Quit: Leaving.]
lurchi_ is now known as lurchi__
<MoeIcenowy> smaeul: You met lockups?
<smaeul> yes
<MoeIcenowy> have you applied the CCU patches?
<smaeul> which ccu patches?
<MoeIcenowy> smaeul: clk: sunxi-ng: add mux and pll notifiers for A64 CPU clock
<smaeul> again, I don't think they're directly related to dvfs, but a bug in the timer hardware
<smaeul> MoeIcenowy: yes, I have that
<smaeul> e.g. one of the lockups/panics was even in SyS_adjtimex
<MoeIcenowy> oh why don't I met the timer bug...
<MoeIcenowy> isn't it a firmware bug?
<smaeul> apritzel says he only met it a small percent of the time
<MoeIcenowy> oh a silicon bug
<smaeul> er, no, it wasn't him, it was the person who linked that to me originally
<smaeul> anyway, I got 3 lockups: 2 with the DVFS patchset, and one without. and once my date went to sometime in 2112
<MoeIcenowy> have you tried add fsl,erratum-a008585 to the timer node of the DT?
<smaeul> yes, and that is mostly stable
<MoeIcenowy> so maybe you can send out this patch now?
<smaeul> if I reduce the number of retries from 200 down to 50, it fails to get a consistent value as soon as I enable dvfs
<MoeIcenowy> and provide a method to reproduce the bug faster
<smaeul> i.e. boot governor is performance, and 'echo ondemand > scaling_governor' immediately locks up
<smaeul> ok, I can try to reproduce
ninolein has quit [Ping timeout: 246 seconds]
ninolein has joined #linux-sunxi
<MoeIcenowy> P.S. I think the AW timer also exists in A64
<smaeul> yes it does
<smaeul> arisc firmware uses it
<MoeIcenowy> but I wonder whether ARM64 Linux can use it
<smaeul> I can give you the addresses for the functions (and what addresses it reads from)
<MoeIcenowy> ARMv7 Linux should be able to use it -- as early ARMv7 doesn't contain arch timer and the AW timer is used
<MoeIcenowy> on sun4i/5i
<smaeul> ; loptr = 0x01f01e84 [CNT64_LOW_REG]
<smaeul> ; hiptr = 0x01f01e88 [CNT64_HIGH_REG]
<smaeul> the function to read the timer is at 0x00004348 in the sun50iw1p1 firmware included in drivers/arisc in all of the bsp dumps
<MoeIcenowy> and is this bug present on H5?
<smaeul> no idea
<MoeIcenowy> you didn
<MoeIcenowy> didn't trigger it on H5?
<smaeul> no, I haven't
fugitive has quit [Ping timeout: 248 seconds]
hp197 has joined #linux-sunxi
hp197 has quit [Changing host]
hp197 has joined #linux-sunxi
_hp197 has quit [Ping timeout: 260 seconds]
cnxsoft has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9.1]
forkbomb has joined #linux-sunxi
nvz has quit [Ping timeout: 248 seconds]
nvz has joined #linux-sunxi
IgorPec has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
TheSeven has quit [Ping timeout: 246 seconds]
TheSeven has joined #linux-sunxi
dave0x6d has quit [Quit: Connection closed for inactivity]
<smaeul> MoeIcenowy: martinayotte: in the middle of the log is your explanation for why the time jumps forward: http://ix.io/AAC
<smaeul> code is at http://ix.io/AAD
<smaeul> so it looks like it erroneously clears the low bits before changing bit 15
<smaeul> and "CPU 2: ending at 0x000000111fffffff, read 30243060 times, failed 39 times"
<smaeul> the time jumping forward is because it erroneously sets all bits when changing a high bit???
<smaeul> and changing the condition to look for jumping forward... CPU 0: failed after 2040147781 reads: 0x0000001468ffffff → 0x0000001469ffffff (retry = 0x0000001469000000)
_whitelogger has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 258 seconds]
nvz has quit [Ping timeout: 248 seconds]
TheSeven has quit [Ping timeout: 258 seconds]
[7] has joined #linux-sunxi
nvz has joined #linux-sunxi
<smaeul> heh, I managed to trigger the "your clock is too unstable for the errata workaround" warning with my test program
<smaeul> [ 251.438526] WARNING: CPU: 0 PID: 580 at drivers/clocksource/arm_arch_timer.c:263 hisi_161010101_read_cntvct_el0+0x28/0x30
JohnDoe_71Rus has joined #linux-sunxi
<smaeul> MoeIcenowy: so if I use the userspace governor to manually change the CPU speed every 0.25 seconds, it gets *really* bad: http://ix.io/AAQ
<smaeul> I'll let this run for 12 hours and see if there are any larger jumps
arete74 has quit [Remote host closed the connection]
awais has joined #linux-sunxi
Putti has quit [Ping timeout: 248 seconds]
Putti has joined #linux-sunxi
DullTube has joined #linux-sunxi
vagrantc has quit [Ping timeout: 248 seconds]
jstein has joined #linux-sunxi
jstein has quit [Remote host closed the connection]
diego_r has joined #linux-sunxi
arete74 has joined #linux-sunxi
maz_ has joined #linux-sunxi
maz_ is now known as maz
nvz has quit [Ping timeout: 258 seconds]
cnxsoft has quit [Read error: Connection reset by peer]
nvz has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
yann has quit [Ping timeout: 260 seconds]
fkluknav has joined #linux-sunxi
Leepty has joined #linux-sunxi
sunxi_fan has quit [Quit: Page closed]
msimpson has joined #linux-sunxi
f0xx has joined #linux-sunxi
premoboss has joined #linux-sunxi
JohnDoe_71Rus has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has joined #linux-sunxi
<Net147> mripard: will Mali r6p2 Wayland blob be requested from Allwinner? they already have it and while it does depend on Wayland library it
<Net147> mripard: it can be used for gbm
<Net147> mripard: even without Wayland running
foxx_ has joined #linux-sunxi
f0xx has quit [Remote host closed the connection]
yann has joined #linux-sunxi
premoboss has quit [Ping timeout: 246 seconds]
lemonzest has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine has quit [Ping timeout: 246 seconds]
tom_nov has joined #linux-sunxi
sunxi_fan has joined #linux-sunxi
fugitive has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
chlorine_ has quit [Ping timeout: 240 seconds]
chlorine_ has joined #linux-sunxi
chlorine_ has quit [Read error: Connection reset by peer]
libv_ is now known as libv
chlorine has joined #linux-sunxi
<sunxi_fan> Net147: i'm trying your "sun7i-drm-wip" branch, with the "olinuxino-lime" DTB and i stuble very soon on tha "NULL pointer": https://paste.debian.net/988664/ (BTW i had to add the earlyPrintk on sunxi UART to see these MSG..), any hints?
chlorine has quit [Ping timeout: 240 seconds]
<Net147> sunxi_fan: I have not seen that backtrace before
<Net147> sunxi_fan: you have Olimex A20-OLinuXino-LIME?
reinforce has joined #linux-sunxi
BenG83 has joined #linux-sunxi
<sunxi_fan> no, i dont. i have an A20 SOM EVB, that similar but not the same, of course.. it's just that i'd like to see the kernel booting the same way you did.. before committing the DRM changes on the A20 SOM EVB DTS..
<sunxi_fan> i'm going to boot the kernel with the "standard A20 SOM EVB, to see if the crash there too, and i'll report..
<sunxi_fan> i.e. without the new DRM entries, i mean..
<Net147> sunxi_fan: I would advise not to boot DT for a different board on your board. if some things are wired differently it can cause hardware/software issues
<Net147> sunxi_fan: it should not be hard to do a diff to see the changes and apply them to your own board
lemonzest has quit [Remote host closed the connection]
fugitive has quit [Ping timeout: 246 seconds]
Ntemis has joined #linux-sunxi
muvlon has joined #linux-sunxi
lemonzest has joined #linux-sunxi
<wens> Net147: there's a31-hdmi-v4 now, you might want to rebase :)
<Net147> wens: done
<MoeIcenowy> wens: are you still WIP on the SMP of A80/A83T?
<Net147> wens: any idea where the 300 MHz clock for the backend comes from?
<Net147> wens: wondering if I need to change the be0/be1/mali assigned clock frequency
<qschulz> wens: I think you should take a look at Julia's answer on my patch series for AXP813
skiboy has quit [Quit: Leaving]
reinforce1 has joined #linux-sunxi
jbrown has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
DullTube has quit [Quit: Leaving]
<wens> qschulz: I believe I was mentioned in that thread, and yeah, I think it's unsafe
<wens> Net147: you'll have to ask mripard
<wens> MoeIcenowy: I have something, but I forgot what state it was in, so I kind of need a refresher
<wens> qschulz: though I think we were depending on likely behavior that a shrink wouldn't move it around
<wens> not sure if it holds true
lurchi_ is now known as lurchi__
chlorine has joined #linux-sunxi
afaerber has joined #linux-sunxi
<martinayotte> @smaeul : Interesting !
<qschulz> wens: is there a reason for not using a simple kzalloc over a devm_kzalloc? (having to manually free it aside)
TEKrantz has joined #linux-sunxi
foxx_ has quit []
f0xx has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<smaeul> martinayotte: MoeIcenowy: CPU 2: jumped forward 3578440ms: 0x0000007fffffffff → 0x00000093feffffff (retry = 0x0000008000000000)
<smaeul> that's the biggest jump so far
lurchi__ is now known as lurchi_
<wens> qschulz: devm_ is preferred as it makes the remove and error paths cleaner and simpler
leviathanch has joined #linux-sunxi
<qschulz> wens: hmmm yes, so that also means that if we have to use the non devm method, we have to move everything else out of devm to be sure it works as intended
rah has quit [Quit: leaving]
<qschulz> and that will be not a funny thing to do :/
rah has joined #linux-sunxi
SP7RT has joined #linux-sunxi
IgorPec has quit [Ping timeout: 240 seconds]
nvz_ has joined #linux-sunxi
<wens> qschulz: well, not really
<wens> you just have to make sure that any devm_ stuff doesn't have ordering issues with non-devm stuff
<wens> in this case you probably have to avoid any use-after-free stuff
robogoat has quit [Ping timeout: 252 seconds]
bbrezillon has quit [Ping timeout: 252 seconds]
bbrezillon has joined #linux-sunxi
lurchi_ is now known as lurchi__
nvz has quit [Ping timeout: 258 seconds]
robogoat has joined #linux-sunxi
Leepty has quit [Read error: Connection reset by peer]
awais has quit [Ping timeout: 258 seconds]
<marble_visions> hi all, does anyone know why uboot spl nand init fails because of ecc on the olimex-a13, but succeeds with the chip-r8?
<marble_visions> i think there is an issue with the seeds
<marble_visions> which need to be different
SP7RT has quit [Ping timeout: 246 seconds]
SP7RT has joined #linux-sunxi
lurchi__ is now known as lurchi_
cnxsoft has quit [Quit: cnxsoft]
hms has joined #linux-sunxi
paulk-gagarine has quit [Ping timeout: 255 seconds]
paulk-gagarine has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has joined #linux-sunxi
chlorine_ has quit [Ping timeout: 240 seconds]
<marble_visions> turns out there was a patch that's in u-boot mainline not in CHIP-u-boot
paulk-gagarine has quit [Ping timeout: 240 seconds]
paulk-gagarine has joined #linux-sunxi
BenG83 has quit [Ping timeout: 260 seconds]
Leepty has joined #linux-sunxi
jernej has joined #linux-sunxi
chlorine has joined #linux-sunxi
anarsoul has quit [Ping timeout: 260 seconds]
anarsoul has joined #linux-sunxi
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
SP7RT has quit [Ping timeout: 260 seconds]
aalm has quit [Ping timeout: 258 seconds]
jelly has quit [Ping timeout: 240 seconds]
jelly-home has joined #linux-sunxi
f0xx has quit [Ping timeout: 260 seconds]
matthias_bgg has quit [Quit: Leaving]
afaerber has quit [Ping timeout: 240 seconds]
aalm has joined #linux-sunxi
tom_nov has quit [Quit: Leaving]
Leepty has quit [Ping timeout: 248 seconds]
yann has quit [Remote host closed the connection]
afaerber has joined #linux-sunxi
Leepty has joined #linux-sunxi
Ntemis has quit [Remote host closed the connection]
lurchi_ is now known as lurchi__
msimpson has quit [Quit: Leaving]
yann has joined #linux-sunxi
lurchi__ is now known as lurchi_
IgorPec has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
chlorine has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
diego_r has quit [Ping timeout: 240 seconds]
chlorine has quit [Ping timeout: 258 seconds]
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
f0xx has joined #linux-sunxi
jelly-home has quit [Ping timeout: 258 seconds]
yann has quit [Read error: No route to host]
jelly-home has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine has quit [Remote host closed the connection]
chlorine_ has quit [Read error: Connection reset by peer]
chlorine has joined #linux-sunxi
lurchi_ is now known as lurchi__
vagrantc has joined #linux-sunxi
fugitive has joined #linux-sunxi
BenG83 has joined #linux-sunxi
aalm has quit [Quit: xyz 1.9]
anarsoul|2 has joined #linux-sunxi
Mr__Anderson has joined #linux-sunxi
nixdork has quit [Quit: EliteBNC free bnc service - http://elitebnc.org/]
lurchi__ is now known as lurchi_
nixdork has joined #linux-sunxi
SP7RT has joined #linux-sunxi
afaerber has quit [Quit: Leaving]
phipli has joined #linux-sunxi
<delarge> hello everybody, I bought a OrangePi board (doesn't arrive yet) and I have a doubt. A python code used for RasperrbyPi could be work for OrangePi too, right? Assuming that the GPIOS mapping is not the same maybe
<KotCzarny> gpio is gpio, you are responsible to tickle proper pins
<KotCzarny> but if you know what you are doing just a tiny bit it's simple
sunxi_fan has quit [Ping timeout: 248 seconds]
<delarge> ok
<delarge> I understand, so shouldn't be a problem
<beeble> the most common raspberry gpio python libs are using /dev/gpiomem. thats something raspberry specific and not portable. some are using sysfs, but thats actually deprecated. you want to use the new gpio device interface if targeting mainline
<beeble> best way to get it into python would be ctypes in combination with libgpiod
Ntemis has joined #linux-sunxi
<martinayotte> The orangepi_PC_gpio_pyH3-master library, a fork from pyA20, is using /dev/mem by doing a mmap().
<anarsoul|2> why using sysfs is deprecated?
<anarsoul|2> they should have left a notice in https://www.kernel.org/doc/Documentation/gpio/sysfs.txt
<anarsoul|2> anyway, good to know, thanks beeble
<beeble> anarsoul|2: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/ provides a nice lib and some userlandtools if you want to use it from a shell script
<beeble> so at least some infrastructure is available
lurchi_ is now known as lurchi__
<beeble> but consider your kernel version. this stuff was intruduced with 4.7 or something like that. so if you are using older stuff you will have to stick with other solutions
lurchi__ is now known as lurchi_
SP7RT has quit [Ping timeout: 240 seconds]
delarge has quit [Quit: Reconnecting]
delarge has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
SP7RT has joined #linux-sunxi
lerc has quit [Quit: No Ping reply in 180 seconds.]
lerc has joined #linux-sunxi
<smaeul> MoeIcenowy: none of my tests produce any failures on H5, even after several minutes (whereas on A64 I get hundreds of wrong values per second)
<smaeul> so H5 looks like it's not affected
* vagrantc wonders how much adjustment the pine64_plus mainline u-boot would need to support pinebook
Putti has quit [Ping timeout: 248 seconds]
lurchi_ is now known as lurchi__
Putti has joined #linux-sunxi
<miasma> does anyone here compress their kernel with lz4? i've noticed that my lz4 compressed kernels won't boot anymore (using zimage)
<miasma> maybe i'm missing something, but i've enabled both lz4 and lz4hc in the crypto menu in menuconfig. lzo, gzip and other compression methods seem to work
<miasma> but lz4 gets stuck at the decompression message
<miasma> i also got this same with exynos SoC
<miasma> otoh, lz4 works great as an initramfs compression method or with squashfs
netlynx has quit [Quit: Ex-Chat]
<Net147> mripard: where do the assigned clock rates for be0/mali come from in your device tree changes?
<anarsoul|2> I also use couple of patches for battery and ac support
<vagrantc> anarsoul|2: that looks like linux, not u-boot
<anarsoul|2> oh
<vagrantc> i've run with those patches, but didn't get a working configuration
<vagrantc> anarsoul|2: plan on pushing that upstream? :)
<anarsoul|2> I'm waiting for sunxi pinctrl to land
<vagrantc> anarsoul|2: ok, that's promising!
bbrezillon has quit [Ping timeout: 248 seconds]
lkcl has quit [Ping timeout: 258 seconds]
bbrezillon has joined #linux-sunxi
SP7RT_ has joined #linux-sunxi
SP7RT has quit [Ping timeout: 260 seconds]
ojn has quit [Excess Flood]
ojn has joined #linux-sunxi
<martinayotte> @MoeIcenowy : @smaeul : I'm confirming that I've seen it only A64, one time on OPiWin, and 2 times on Pine64.
lkcl has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
diego_r has joined #linux-sunxi
lkcl has quit [Ping timeout: 248 seconds]
hms has quit [Quit: Leaving]
arete74 has quit [Read error: Connection reset by peer]
arete74 has joined #linux-sunxi
lkcl has joined #linux-sunxi
fkluknav has quit [Ping timeout: 248 seconds]
afaerber has joined #linux-sunxi
f0xx has quit [Ping timeout: 260 seconds]
jernej has quit [Ping timeout: 240 seconds]
SP7RT_ has quit [Ping timeout: 248 seconds]
SP7RT has joined #linux-sunxi
dev1990 has joined #linux-sunxi
yann has joined #linux-sunxi
jbrown has quit [Ping timeout: 240 seconds]
lemonzest has quit [Quit: Quitting]
Mr__Anderson has quit [Quit: Leaving.]
lkcl has quit [Read error: Connection reset by peer]
IgorPec has quit [Ping timeout: 246 seconds]
Guest93805 has joined #linux-sunxi
lurchi__ is now known as lurchi_
lkcl has joined #linux-sunxi
argulp has quit [Remote host closed the connection]
<anarsoul|2> vagrantc: actually there's no progress on pinctrl patches since March...
diego_r has quit [Ping timeout: 264 seconds]
yann has left #linux-sunxi ["Quitte"]
Guest93805 has quit [Quit: [BX] Ping-pong timeout]
phipli has quit [Quit: Leaving]
nvz_ has quit [Ping timeout: 248 seconds]
libv has quit [Ping timeout: 260 seconds]
leviathanch has quit [Remote host closed the connection]
SP7RT has quit [Ping timeout: 240 seconds]
libv has joined #linux-sunxi
nvz has joined #linux-sunxi
libv_ has joined #linux-sunxi
libv has quit [Ping timeout: 260 seconds]
lkcl has quit [Ping timeout: 248 seconds]
libv_ has quit [Ping timeout: 260 seconds]
libv has joined #linux-sunxi
lkcl has joined #linux-sunxi
libv has quit [Ping timeout: 260 seconds]
fugitive has quit [Ping timeout: 258 seconds]
chomwitt has quit [Ping timeout: 255 seconds]
fugitive has joined #linux-sunxi
libv has joined #linux-sunxi
fugitive has quit [Ping timeout: 258 seconds]