rellla 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 - *only registered users can talk*
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jo0nas has quit [Ping timeout: 245 seconds]
gaston1980 has quit [Quit: Konversation terminated!]
jo0nas has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
Da_Coynul has quit [Client Quit]
Da_Coynul has joined #linux-sunxi
wwilly has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
skiboy has quit [Quit: Leaving]
Da_Coynul has joined #linux-sunxi
megi has quit [Ping timeout: 246 seconds]
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cnxsoft has joined #linux-sunxi
kaspter has joined #linux-sunxi
nexgen2 has quit [Remote host closed the connection]
wwilly has joined #linux-sunxi
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 244 seconds]
camus is now known as kaspter
vagrantc has quit [Quit: leaving]
<wens> I wonder if the "no archive" issue would be solved by lore.kernel.org?
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wigyori has quit [Ping timeout: 248 seconds]
wigyori has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
wwilly has joined #linux-sunxi
TheSeven has quit [Ping timeout: 264 seconds]
[7] has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wwilly has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wwilly has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 268 seconds]
wwilly has joined #linux-sunxi
selfbg has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wwilly has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
nexgen2 has joined #linux-sunxi
<montjoie> wens: since all message SHOULD be
<montjoie> CC to lkml, yes it is solved
oknos has joined #linux-sunxi
<smaeul> linux from https://github.com/smaeul/linux/tree/sunxi64-5.3-rc6 + crust master has working suspend/resume on pinebook by power button, lid switch, and RTC
<KotCzarny> nice
<smaeul> as far as I can tell, the only thing broken after resume is the out-of-tree wifi driver
<KotCzarny> what mA does it use in suspend?
<smaeul> KotCzarny: I haven't started optimizing that yet, maybe in a couple of weekends :)
reinforce has joined #linux-sunxi
<KotCzarny> :)
<KotCzarny> im curious, if you could measure even rough draw :)
<smaeul> I can see how many days/weeks the battery lasts
<KotCzarny> do you have any a64 board per chance?
<smaeul> but I don't think the pinebook turns on with the battery removed, so I can't measure wall draw
<KotCzarny> would make it easier to measure
<smaeul> yes, I have orange pi win+. I can measure that in a couple of days
<smaeul> but it's about the same as whay you get for you "fake off"
<KotCzarny> H3 would be nice too ;)
<KotCzarny> well, my h3fakeoff is very unoptimized
<KotCzarny> ;)
<KotCzarny> i probably could turn off a bit more
<smaeul> KotCzarny: h3 requires writing a bunch of new code, because there's no ATF
<KotCzarny> usb0 for once, but its nice to have debug
<smaeul> I'll do h6 first before h3
<KotCzarny> as long as you have good ol' h3 in TODO it's fine :)
<KotCzarny> btw. does crust support uart?
<KotCzarny> ie. some tiny shell for basic commands
<smaeul> it's not interactive, no
<KotCzarny> uhum
<smaeul> the entire thing is designed to fit in 16 KiB, which is 20% of the size of the AW blob it replaces
<smaeul> (not counting all of the DRAM buffers the blob uses)
<KotCzarny> why the size limitation?
<smaeul> so we don't have to move ATF out of SRAM A2
<KotCzarny> uhum
<smaeul> and so crust is entirely optional
<KotCzarny> would be nice to have it integrated into atf itself
<KotCzarny> ie. suspend/resume functionality
<KotCzarny> but i guess it's already fit to the brim
<smaeul> it is. linux talks to ATF, and ATF talks to crus
<smaeul> the whole point of crust is that it doesn't run on the ARM CPUs, so it can turn them off and on
<KotCzarny> ah, right, forgot atf runs on arm cores
<smaeul> that's what the "A" stands for :)
<KotCzarny> :)
<KotCzarny> anyway, good job
<smaeul> thanks
<anarsoul> smaeul: nice!
<smaeul> now that it's been two years since I started, I wonder if it's too late for e.g. the PinePhone or other battery devices
<KotCzarny> never too late
<KotCzarny> since they are opensource
<anarsoul> it's definitely not, pinephone isn't out yet
<KotCzarny> yup
<KotCzarny> but will be, this fall
<KotCzarny> but suspend on pinephone would have to work a bit different
<KotCzarny> kind of similar what aw does with ereaders
<smaeul> anarsoul: fyi, your anx driver blows up (two BUGs) with deferred console takeover enabled
<KotCzarny> ie. sleep all the time and wake every few seconds to check for events
<anarsoul> smaeul: that's possible, I haven't tried it with suspend. It's not my btw, Icenowy is the author :)
<smaeul> oh, true, though I'm using it out of your branch
<smaeul> the BUGs are at boot, unrelated to suspend
<anarsoul> smaeul: do you have a fix?
<anarsoul> hm
<smaeul> fbcon=nodefer :P
oknos has quit [Ping timeout: 268 seconds]
<KotCzarny> that's a workaround, not a fix :P
<anarsoul> smaeul: missing regulators or something like that?
<smaeul> hmm, maybe it's not anx but pwm that's the problem
<smaeul> I get it at shutdown too: http://ix.io/1Tv6
nexgen2 has quit [Remote host closed the connection]
tllim has quit [Read error: Connection reset by peer]
<smaeul> anarsoul: it was originally in anx6345_bridge_enable -> drm_panel_enable -> ... -> sun4i_pwm_apply
nexgen2 has joined #linux-sunxi
<smaeul> but I don't know what part of the chain is causing it to be atomic
<KotCzarny> it looks more like some corrupted pointer?
<KotCzarny> 'unreadable address' ?
<smaeul> KotCzarny: the actual error is [ 33.887413] BUG: scheduling while atomic: s6-linux-init-h/643/0x00000002
<smaeul> which means you tried to sleep while holding spinlocks
fl_0 has quit [Quit: STRG + Q]
<wens> a stack trace should have clues?
<smaeul> wens: unfortunately I don't have the original stack trace; that was several hours ago. but I remember most of it from my vim search history: http://ix.io/1Tva
<anarsoul> looks like a bug in panel simple to me?
<smaeul> somehow I can't reproduce it now
<anarsoul> :\
<smaeul> I think it depends on how many i2c errors I get during anx initialization
<anarsoul> sun4i_pwm_apply() does call msleep() or usleep_range()
<smaeul> aha got it
<anarsoul> again, sun4i_pwm_apply()
<anarsoul> smaeul: I'm not that well familiar with DRM and/or sun4i-pwm driver
<anarsoul> try asking wens or mripard?
<smaeul> sure, no worries
<smaeul> wens: mripard: what I don't understand is why anything in the call chain (http://ix.io/1Tvb) is atomic in the first place
xes__ has joined #linux-sunxi
xes_ has quit [Ping timeout: 268 seconds]
<smaeul> oh, nevermind, that whole thing is inside console_lock
<anarsoul> smaeul: drm_panel_enable() is not supposed to be called from atomic context for sure
<anarsoul> smaeul: I'd bet on some 5.3-rc bug, I've never seen anything like that in 5.2 or older
<anarsoul> could be something generic, not related to pinebook
fl_0 has joined #linux-sunxi
nexgen2 has quit [Remote host closed the connection]
<smaeul> that was in 4.19
<anarsoul> :(
xqdzn has joined #linux-sunxi
[7] has quit [Ping timeout: 264 seconds]
<wens> smaeul: you can try enabling CONFIG_DEBUG_PREEMPT, and the oops supposedly will tell you when atomic context was entered
TheSeven has joined #linux-sunxi
wwilly has joined #linux-sunxi
wwilly has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
wwilly has joined #linux-sunxi
<smaeul> wens: thanks. it's the totally bogus spin_lock(&sun4i_pwm->ctrl_lock); at the top of sun4i_pwm_apply
<smaeul> or at least sun4i_pwm_calculate needs to be called outside the lock
gsz has joined #linux-sunxi
no_- has joined #linux-sunxi
gsz has quit [Quit: Konversation terminated!]
yann has joined #linux-sunxi
megi has joined #linux-sunxi
fl_0 has quit [Quit: STRG + Q]
nexgen2 has joined #linux-sunxi
msevo has joined #linux-sunxi
AneoX has joined #linux-sunxi
msimpson has joined #linux-sunxi
msimpson_ has joined #linux-sunxi
msimpson has quit [Remote host closed the connection]
msimpson_ has quit [Client Quit]
gsz has joined #linux-sunxi
xqdzn has quit [Ping timeout: 260 seconds]
<fALSO> yo
florian_kc has joined #linux-sunxi
florian_kc is now known as florian
<wens> for anyone who finds the rtl8189fs efuse dumps annoying # https://github.com/jwrdegoede/rtl8189ES_linux/pull/29
wwilly_ has joined #linux-sunxi
wwilly has quit [Ping timeout: 272 seconds]
<KotCzarny> or just disable debug when compiling?
<diego71> KotCzarny: may be you want debug information, just not one byte per line :)
fl_0 has joined #linux-sunxi
tnovotny has joined #linux-sunxi
a|3x has joined #linux-sunxi
a|3x has left #linux-sunxi [#linux-sunxi]
ldevulder__ has quit [Quit: Leaving]
Mangy_Dog has joined #linux-sunxi
<MoeIcenowy> smaeul: people reported 8723cs breaks even when s2idle
<MoeIcenowy> smaeul: why is a new interrupt driver needed?
gnufan_home has quit [Ping timeout: 246 seconds]
aalm has quit [Quit: xyz 2.3]
Da_Coynul has joined #linux-sunxi
gnufan_home has joined #linux-sunxi
Alexis3D has joined #linux-sunxi
msevo has quit [Quit: Leaving]
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft1 has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 246 seconds]
Da_Coynul has joined #linux-sunxi
gnufan_home has quit [Ping timeout: 246 seconds]
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
gnufan_home has joined #linux-sunxi
Alexis3D has quit [Ping timeout: 272 seconds]
no_- has quit [Ping timeout: 246 seconds]
xqdzn has joined #linux-sunxi
gamelaster has joined #linux-sunxi
nashpa has quit [Ping timeout: 268 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
gamelaster has quit [Remote host closed the connection]
nashpa has joined #linux-sunxi
no_- has joined #linux-sunxi
lurchi_ is now known as lurchi__
gaston1980 has joined #linux-sunxi
nexgen2 has quit [Ping timeout: 272 seconds]
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #linux-sunxi
cnxsoft1 has quit [Quit: cnxsoft1]
dddddd has joined #linux-sunxi
no_- has quit [Ping timeout: 268 seconds]
Putti has joined #linux-sunxi
SopaXorzTaker has joined #linux-sunxi
<smaeul> MoeIcenowy: because the GIC is turned off in suspend
<smaeul> so for devices that can act as wakeup sources (those attached to R_INTC) we need to synchronize the GIC state with the R_INTC state
<smaeul> there are 20+ of these "stacked" interrupt controller drivers in the Linux tree
<smaeul> AW blob has a special memory area and protocol for configuring wakeup sources, but the simple way is "enabled IRQ during suspend == enabled wakeup source"
<smaeul> since Linux already does the job of turning off non-wakeup IRQs
kaspter has quit [Quit: kaspter]
Alexis3D has joined #linux-sunxi
<MoeIcenowy> smaeul: BTW I think you can consider to mainline it first
<MoeIcenowy> current NMI driver doesn't support wakeup at all, even from s2idle
no_- has joined #linux-sunxi
random_yanek has quit [Ping timeout: 268 seconds]
JohnDoe_71Rus has joined #linux-sunxi
random_yanek has joined #linux-sunxi
DrFrankensteinUK has quit [Read error: Connection reset by peer]
selfbg has quit [Remote host closed the connection]
tllim has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
no_- has quit [Ping timeout: 272 seconds]
<martinayotte> tllim: My coupon for PBP received few days ago expired within 2 days ... Can it be extended or re-issued ? (I've said the same thing on pinebook@pine64.org, but no answer yet ...)
DrFrankensteinUK has joined #linux-sunxi
<gaston1980> how i can exclude lichepi-zer-dock when cross-compiling dts?
<gaston1980> im using linux kernel 5.2.9
<gaston1980> I modify dts sun8i-v3s-licheepi-zero and sun8i-v3s.dtsi to enable ethernet
<gaston1980> but got errors related to the licheepi-zero-dock
<gaston1980> then I modify licheepi-zero-dock to enable ethernet but still got errors
<fALSO> you probably added something to the general dtsi what is already on that zero-dock
<gaston1980> sorry to ask
<gaston1980> but could you take a look?
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
<fALSO> just look at the error
<fALSO> its probably specified there
jstein has quit [Client Quit]
<tllim> @martinayotte, if till not getting reply from pinebook@pine64.org on 24 hours, just PM me and I will handle
Danct12_ has joined #linux-sunxi
no_- has joined #linux-sunxi
<gaston1980> fALSO: I only got this https://pastebin.com/3tYzS37p
<martinayotte> tllim: Thanks ! I will be in touch ...
<martinayotte> gaston1980: Since it shows "arch/arm/boot/dts/sun8i-v3s.dtsi:461.3-7 syntax error", please check line 461 of this DTSI ...
xqdzn has quit [Remote host closed the connection]
<fALSO> if you changed sun8i-v3s.dtsi, you changed it badly
<fALSO> check that line
<fALSO> as martinayotte told
<mru> and the surrounding lines
<mru> the error could be something like a missing ; on the previous line
<gaston1980> ok, thanks I solve it
<gaston1980> missing ;
<gaston1980> thanks guys
nexgen2 has joined #linux-sunxi
<fALSO> =)
<jernej> smaeul: From Crust README.md: "However, finishing the process and switching everyone over to use Crust will take a while" <- by that you don't mean that Crust will be mandatory, right?
<KotCzarny> only if one would want to use suspend
<KotCzarny> :)
<KotCzarny> otherwise it's programmed to be optionl
<KotCzarny> *optional
<jernej> just checking :)
<KotCzarny> i wouldnt mind it being mandatory tho
<KotCzarny> ;)
<jernej> no, because there could be legit uses of AR100 for other purposes like runing real time tasks (offloaded)
<KotCzarny> ah, that's what you mean
<jernej> and I don't like having yet another FW if not really necessary
<KotCzarny> btw. i still havent found a way to initialize arisc when linux already booted (without disabling all kinds of kernel protections)
<jernej> I don't know that part well...
<KotCzarny> once booted, registers are probably set in a way to prevent it
vagrantc has joined #linux-sunxi
<KotCzarny> hmm
<KotCzarny> funny idea
<KotCzarny> i wonder what would be performance of aes on arisc
<KotCzarny> :)
<KotCzarny> assuming one could write it in 16kB
shfil has joined #linux-sunxi
yann has quit [Ping timeout: 272 seconds]
reinforce has joined #linux-sunxi
no_- has quit [Read error: Connection reset by peer]
no_- has joined #linux-sunxi
florian_kc has joined #linux-sunxi
<megi> KotCzarny: I load it via /dev/mem :)
<megi> I guess that fits into "disabling kernel protections"...
<KotCzarny> :)
<KotCzarny> yeah, /dev/mem is more of a hack
<KotCzarny> but hmm
<megi> you can even toggle the clock/reset directly in the iomem, for cpus
<KotCzarny> your method is similar to devmem2 ?
<megi> really neat
<megi> all via /dev/mem
<megi> I don't know
<KotCzarny> got a script somewhere so i can peek?
<KotCzarny> thx
<megi> that's for A83T
<megi> you may need to toggle a few bits to make it work on other SoC
<KotCzarny> although looking at it, its devmem2 based
<KotCzarny> does it work on stock armbian or you compile own uboot/kernel?
<megi> it should be fairly trivial to write a driver just for loading firmware into the CPUS over some ioctl with proper access controls on some file in /dev/*
<KotCzarny> ahm. you didnt test for h3
<megi> it should work anywhere, you just need to check the addresses
<KotCzarny> addresses are ok because it works on legacy, for mainline i think it worked with boot_mode nonsec
<megi> it doesn't do anything hacky like H3 firmware, which loads half of the firmware into SRAM and hlaf int DRAM
<megi> yeah it expects working /dev/mem
<KotCzarny> i mean it works for me with 'sec', with nonsec it doesnt
<megi> what's that?
<KotCzarny> setenv bootm_boot_mode nonsec
<KotCzarny> nonsec is needed for psci and virtualization (basically mainline)
<megi> i'm pretty sure I'm using it in nonsec mode then (that's the default, right?)
<KotCzarny> for mainline, yes
<KotCzarny> hmm, one thing, is that usleep(1000) necessary?
Mangy_Dog has joined #linux-sunxi
rexxster has quit [Remote host closed the connection]
<megi> try removing it :)
<KotCzarny> nah, i will rather try to add it to my code
<KotCzarny> :)
quadjfet has joined #linux-sunxi
no_- has quit [Ping timeout: 245 seconds]
gsz has quit [Quit: Konversation terminated!]
tnovotny has quit [Ping timeout: 258 seconds]
tnovotny has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
rexxster has joined #linux-sunxi
no_- has joined #linux-sunxi
niceplace has quit [Ping timeout: 245 seconds]
yann has joined #linux-sunxi
shfil has quit [Quit: Connection closed for inactivity]
niceplace has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
notme has joined #linux-sunxi
notme has quit [Remote host closed the connection]
no_- has quit [Ping timeout: 244 seconds]
no_- has joined #linux-sunxi
lkcl has quit [Read error: Connection reset by peer]
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
lkcl has joined #linux-sunxi
Alexis3D has quit [Quit: BRB]
Alexis3D has joined #linux-sunxi
wwilly_ has quit [Ping timeout: 248 seconds]
kilobyte_ch has quit [Quit: WeeChat 1.6]
SopaXorzTaker has quit [Remote host closed the connection]
wwilly_ has joined #linux-sunxi
juri__ has joined #linux-sunxi
no_- has quit [Ping timeout: 268 seconds]
DrFrankensteinUK has quit [Read error: Connection reset by peer]
DrFrankensteinUK has joined #linux-sunxi
rexxster has quit [Remote host closed the connection]
juri__ has quit [Remote host closed the connection]
Alexis3D has quit [Ping timeout: 244 seconds]
lurchi__ is now known as lurchi_
Da_Coynul has joined #linux-sunxi
Da_Coynul has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 248 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
florian_kc has quit [Ping timeout: 245 seconds]
vagrantc has quit [Quit: leaving]