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 - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
<steev> many hours later...
<steev> [ 275.184560] meson_clk_pll_set_rate: sys_pll_dco pll did not lock, trying to restore old rate 4008000000
elastic_dog has quit [Ping timeout: 260 seconds]
elastic_dog has joined #linux-amlogic
<steev> here at least, it looks like it's always sys_pll_dco
vagrantc has quit [Quit: leaving]
elastic_dog has quit [Ping timeout: 244 seconds]
elastic_dog has joined #linux-amlogic
camus has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
<narmstrong> sys_pll is the cpu dvfs
<narmstrong> Weird it only happens when graphic is plugged in
<narmstrong> The ugly solution is to switch to the performance cpufreq governor so it never changes the cpu frequencies
zkrx has quit [Read error: Connection reset by peer]
zkrx has joined #linux-amlogic
zkrx has quit []
zkrx has joined #linux-amlogic
repk_ has joined #linux-amlogic
zkrx has quit [Client Quit]
zkrx has joined #linux-amlogic
zkrx has quit []
zkrx has joined #linux-amlogic
repk_ has quit [Ping timeout: 246 seconds]
Ballerburg9005 has joined #linux-amlogic
zkrx has quit []
zkrx has joined #linux-amlogic
camus has quit [Quit: camus]
warpme___ has joined #linux-amlogic
repk_ has joined #linux-amlogic
Ballerburg9005 has quit [Ping timeout: 264 seconds]
camus has joined #linux-amlogic
<steev> conservative also seems to not cause it to switch as fast
<Cheaterman> performance sounds like a great workaround in my case
<Cheaterman> I'll give it a try, thanks to everyone for investigating
naoki has quit [Quit: naoki]
<steev> yeah, i just noticed the one that was "not showing the message" because it was headless, does not have any cpufreq utils installed, and by default, cpufreq-utils sets it to ondemand, at least on debian based systems
<steev> so it was still set to performance
<steev> the system i set to conservative still hasn't shown the message
<steev> you can ignore the 2GHz, i do that via an overlay
<steev> i keep going back and forth on whether or not to submit it upstream. not sure what the general consensus is on adding overclocking to the kernel
vagrantc has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
Ballerburg9005 has joined #linux-amlogic
Cheaterman has quit [Ping timeout: 265 seconds]
<xdarklight> steev: I think so far we don't have any overclocking options upstream. also it would be interesting to see which rate is passed to meson_clk_pll_set_rate() when it fails. possibly it's always the same rate, then we can investigate further
<xdarklight> steev: if I understand it correctly then we're allowing any M (multiplier) in the range of 128..250 while the vendor driver only allows select M values according to https://github.com/khadas/linux/blob/khadas-vims-5.4.y/drivers/clk/meson/g12a.c#L109-L124
<steev> that seems limited only if 32bit though?
<xdarklight> oh, I missed the CONFIG_ARM
<steev> i can have it spit out rate... assuming i got this right
Cheaterman has joined #linux-amlogic
<steev> xdarklight: [ 122.288773] meson_clk_pll_set_rate: sys_pll_dco pll did not lock to 3600000000, trying to restore old rate 3408000000 (so far)
<xdarklight> steev: that should be an M value of 150 (M = 3600000000 / 24MHz * N where N=1, which it typically is)
<xdarklight> steev: let's see what further testing reports
<steev> yep, will be waiting
kenny has joined #linux-amlogic
naoki has joined #linux-amlogic
<steev> i'm gonna let it run over night, and then collect all of them
<xdarklight> hmm, Amlogic uses a slightly different waiting loop in their codebase: https://github.com/khadas/linux/blob/khadas-vims-5.4.y/drivers/clk/meson/clk-pll.c#L412-L419
<steev> xdarklight: interesting, so, i switched our loop to be same 1000, and 1 udelay - https://paste.debian.net/1254986/ so far, same workload with same cpufreq driver, and nothing just yet
<steev> oh, and added the 50 udelay too
Ballerburg9005 has quit [Ping timeout: 268 seconds]