ChanServ changed the topic of #linux-rockchip to: Rockchip development discussion | IRC log http://irclog.whitequark.org/linux-rockchip | Community GH https://github.com/linux-rockchip | Rockchip GH https://github.com/rockchip-linux | ML https://groups.google.com/group/linux-rockchip
field^Mop has quit [Ping timeout: 265 seconds]
lkcl has quit [Ping timeout: 276 seconds]
BenG83 has quit [Quit: Leaving]
drrty has quit [Quit: Leaving]
lkcl has joined #linux-rockchip
return0e has joined #linux-rockchip
return0e_ has quit [Read error: Connection reset by peer]
_whitelogger has joined #linux-rockchip
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-rockchip
nlhowell has joined #linux-rockchip
nlhowell has quit [Ping timeout: 240 seconds]
<sphalerite> hanetzer: exactly that, ISTR it rebooting when I do that though
<sphalerite> might be confusing it with a phone though
cristian_c has quit [Read error: Connection reset by peer]
cristian__c has joined #linux-rockchip
field^Mop has joined #linux-rockchip
BenG83 has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
cristian__c has quit [Ping timeout: 250 seconds]
BenG83 has quit [Remote host closed the connection]
vicencb has joined #linux-rockchip
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
mrjay has joined #linux-rockchip
BenG83 has joined #linux-rockchip
sigmaris_ has joined #linux-rockchip
sigmaris_ has quit [Remote host closed the connection]
<micken> hiho
<micken> I am trying to change core after jumping to el1 aarch32
<micken> That is directly after u-boot
<micken> R"Synchronous Abort" handler, esr 0x02000000
<micken> ELR: 7fd23e00
<micken> LR: 7fd26204
<micken> the first "R" is from my code
<micken> I wonder how to decode that ELR value?
<micken> I am trying todo "CPU_ON"
sigmaris_ has joined #linux-rockchip
<micken> oh I know now I think
<micken> the address sent in seems to be "rom relative"
<micken> maybe stupid , but I added loadaddress to it , but still same output
Kelsar has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Kelsar has joined #linux-rockchip
ifbizo has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
<micken> ok.. address is right now, did the mistake of using LDR and not ADR
sigmaris_ has quit [Read error: Connection reset by peer]
sigmaris_ has joined #linux-rockchip
ifbizo has quit [Ping timeout: 260 seconds]
ifbizo has joined #linux-rockchip
ifbizo has quit [Remote host closed the connection]
ifbizo_ has joined #linux-rockchip
stikonas has joined #linux-rockchip
stikonas_ has joined #linux-rockchip
stikonas has quit [Read error: Connection reset by peer]
<mrjay> anyone has a solution to reboot bug on rk3399?
<anarsoul> but it still hangs on subsequent linux boots
<anarsoul> I noticed that vdd_cpu_l voltage is too low and tried to set it to higher value but it didn't help
<anarsoul> my u-boot is here: https://github.com/anarsoul/u-boot-pine64/
stikonas_ is now known as stikonas
ifbizo_ has quit [Remote host closed the connection]
ifbizo_ has joined #linux-rockchip
vagrantc has joined #linux-rockchip
<mrjay> thanks i'lll check your u-boot
ifbizo_ has quit [Remote host closed the connection]
ifbizo_ has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
<anarsoul> mrjay: it won't fix reboot issue though
<mrjay> ah ok :-)
<anarsoul> mmind00: any ideas what can cause linux to hang on subsequent boot?
<mrjay> try vdd_log voltage setting in u-boot, maxcpus=4 boot option
<mmind00> anarsoul: hmm, the only idea on short notice would cpu frequency vs. regulator voltage maybe ... aka system in some very low frequency state when rebooting
<anarsoul> mrjay: vdd_log is already set, and I tried maxcpus
<mmind00> anarsoul: I think uboot tries to ramp up frequencies during startup and pmic vdd_arm defaults are generally a bit higher
<anarsoul> mmind00: I tried to set higher voltages for vdd_cpu_l and vdd_cpu_h
<anarsoul> guess I can try setting max
<mmind00> anarsoul: but then, it does survive uboot itself ... so that doesn't really look like a cause
<mmind00> anarsoul: and btw ATF moved to gerrit, so they probably won't take your pull-request via github
<anarsoul> :\
<anarsoul> where's new location?
<anarsoul> mmind00: u-boot doesn't bring up other CPUs. linux hangs *after* it brought up all the CPUs
<anarsoul> well, not exactly after
<anarsoul> I'm not sure what genpd_power_off_work_fn does
<anarsoul> but sounds like something related to power
<mmind00> anarsoul: if _that_ is the case, it would be power-domain related
<mmind00> that is their "new" process
<anarsoul> OK, thanks
<anarsoul> (sounds like they've got some 'effective' managers)
<mmind00> yep :-)
<mmind00> anarsoul: interestingly I had a similar thing recently on the px30 ... which was caused by a bad cpu frequency
<mmind00> anarsoul: what cpufreq governor are you running?
<anarsoul> genpd_power_off_work_fn-related?
<anarsoul> mmind00: conservative
<mmind00> not exactly ... more like random rcu stalls, irq errors and a lot of random issues that were caused by the system somehow not liking 408MHz
<mmind00> anarsoul: aka "apt-get install cpufrequtils" did cause the issue for me :-D ... because before it was just running with the "performance" (always max) governor, but after that switched to "ondemand"
<anarsoul> mmind00: well, I can set CPU frequency in u-boot
<mmind00> anarsoul: but I'm not sure uboot also sets the regulator
<anarsoul> mmind00: it does not for rockpro64 :P
<anarsoul> (see my github)
<anarsoul> *now
<mmind00> :-D
<anarsoul> i.e. it does now :)
<anarsoul> fan53555 driver was a mess, I'm 100% sure it wasn't even tested
<micken> hey wizards! , I am trying to startup A72 on RK3399
<anarsoul> micken: cool, still hacking your riscos?
<micken> so I thought I do it as the first thing , and followed this site (~) https://stackoverflow.com/questions/980999/what-does-multicore-assembly-language-look-like/33651438
<micken> scroll down
<micken> however when I do hvc 0
<mmind00> anarsoul: also ... what happens when you disable cpufreq in your kernel
<mmind00> anarsoul: before and after reboot
<anarsoul> mmind00: I haven't tried that yet
<micken> I get ELR: "Synchronous Abort" handler, esr 0x02000000
<micken> ELR: 7fd23e00
<micken> LR: 7fd26204
<mmind00> anarsoul: aka these stalls / genpd thingies are often just a "strawman" or what it is called and not the real reason
<micken> I have tried both aarch64 code and aarch32
<micken> same result
<anarsoul> mmind00: 'red herring'
<anarsoul> thanks, I'll try setting CPU frequency to some known value in u-boot
<anarsoul> let's see if it fixes the issue
ifbizo_ has quit [Remote host closed the connection]
<anarsoul> mmind00: looks like u-boot already sets CPU clock to 600 MHz for both cores
ifbizo_ has joined #linux-rockchip
<anarsoul> see rkclk_init() in clk_rk3399.c
<mmind00> anarsoul: yes I know ... still thinking that somehow there might be an undervolting of the cpu happening ... for example the fan5355 has this funny vsel gpio thingy that is not always initialized correctly
<anarsoul> good point
<anarsoul> I can check this gpio
<mmind00> anarsoul: vsel-gpio selects which voltage setting register to use and I already managed to set the wrong one ;-)
<anarsoul> let me check that
piter75 has joined #linux-rockchip
<anarsoul> well, vsel-gpio is input and is 0
<anarsoul> sorry, wrong gpio, it's actually 1
<anarsoul> oops, nope, 0
<anarsoul> darn, these symbolic names are confusing
piter75 has quit [Remote host closed the connection]
<anarsoul> I already hate upstreaming process of ATF changes
<anarsoul> why it has to be so complicated?!
<anarsoul> gerrit documentation is terrible
mrjay has quit [Remote host closed the connection]
<anarsoul> mmind00: I'm probably stupid but I just can't figure out how to submit my changes to ATF :\
<mmind00> anarsoul: na, it's not you ... it's the darn process ;-)
<anarsoul> so I have Change-Id (added the hook)
<anarsoul> yet 'git push gerrit HEAD:refs/for/integration' complains " ! [remote rejected] HEAD -> refs/for/integration (branch integration not found)"
<mmind00> anarsoul: my push example that I reuse all the time is "git push origin HEAD:refs/for/integration/cortex-a12-partid" ... with cortex-a12-partid being a new branch name
<anarsoul> nope, ! [remote rejected] HEAD -> refs/for/integration/rk3399-fix-reset-poweroff-gpios (branch integration/rk3399-fix-reset-poweroff-gpios not found)
<anarsoul> :\
<mmind00> anarsoul: your gerrit-remote looks similar to "url = ssh://mmind@review.trustedfirmware.org:29418/TF-A/trusted-firmware-a"
<mmind00> ?
<anarsoul> yes
<anarsoul> ssh://anarsoul@review.trustedfirmware.org:29418/TF-A
<mmind00> missing the "/trusted-firmware-a" at the end maybe?
<anarsoul> ah, probably
<anarsoul> " ERROR: commit d52331d: email address anarsoul@gmail.com is not registered in your account, and you lack 'forge committer' permission."
<anarsoul> and "Error 422 (Unprocessable Entity): invalid token" when I try to add my email address
<anarsoul> arrrrgh
<mmind00> anarsoul: ... yea, it was a veeeeery smart move for them to go to gerrit ... reduces the amount of contributions significantly
cristian_c has joined #linux-rockchip
<micken> bah not getting anywhere today
<micken> and video output is still flaky , not managed to figure the exact relation between a/d/hclk and picture
<anarsoul> mmind00: OK, that's all I can do: https://developer.trustedfirmware.org/T582
<anarsoul> So either someone merges it or it stays broken. I did my best to submit it upstream.
<mmind00> anarsoul: ok ... I guess I can also pick this up ... I'll give them a day to maybe respond to the issue-ticket before
ifbizo_ has quit [Remote host closed the connection]
ifbizo_ has joined #linux-rockchip
<anarsoul> thanks
sigmaris_ has quit [Read error: Connection reset by peer]
<anarsoul> mmind00: guess I also need to check pll configurations between reboots to confirm that it's the same
<mmind00> anarsoul: maybe ... what I really wanted to check was what happens if the kernel doesn't touch the cpu-frequency at all
<anarsoul> OK, I'm commenting out operating points
<anarsoul> mmind00: didn't help, same issue here.
ifbizo_ has quit [Remote host closed the connection]
ifbizo_ has joined #linux-rockchip
vagrantc has joined #linux-rockchip
BenG83 has quit [Remote host closed the connection]
BenG83 has joined #linux-rockchip
stikonas has quit [Quit: Konversation terminated!]
stikonas_ has joined #linux-rockchip
vicencb has quit [Quit: Leaving.]
ifbizo_ has quit [Remote host closed the connection]
ifbizo_ has joined #linux-rockchip
ifbizo_ has quit [Remote host closed the connection]
ifbizo has joined #linux-rockchip
ldevulder__ has joined #linux-rockchip
ldevulder_ has quit [Ping timeout: 252 seconds]