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
vagrantc has quit [Quit: leaving]
tdebrouw has quit [Quit: Leaving.]
dliviu has quit [Remote host closed the connection]
dliviu has joined #linux-amlogic
elastic_1 has joined #linux-amlogic
elastic_dog has quit [Killed (calcium.libera.chat (Nickname regained by services))]
buzzmarshall has quit [Quit: Konversation terminated!]
JohnnyonFlame has quit [Ping timeout: 260 seconds]
jernej has joined #linux-amlogic
jernej has quit [Ping timeout: 268 seconds]
<narmstrong> tolszak: list the possible frequencies from cpufreq, it should be there
Pinchiukas_ has quit [*.net *.split]
Pinchiukas_ has joined #linux-amlogic
narmstrong has quit [*.net *.split]
mrec has quit [*.net *.split]
mrec has joined #linux-amlogic
narmstrong has joined #linux-amlogic
tdebrouw has joined #linux-amlogic
tolszak has joined #linux-amlogic
wens has quit [Read error: Connection reset by peer]
shoragan has quit [Read error: Connection reset by peer]
<tolszak> narmstrong: Is it possible to overclock odroidc2 clock using meta-meson and mailnline kernel/u-boot?
<tolszak> narmstrong: xdarklight helped me to enable cpufreq but as you said it is limited to 1536. I just didn't get that the limit is set by u-boot...
wens has joined #linux-amlogic
<narmstrong> tolszak: the limit isn't set by u-boot
<tolszak> narmstrong: So I misunderstood it even more :) Is there a way to overclock it?
<narmstrong> tolszak: the tables are in the firmware loaded in the SCP co-processor bundled with u-boot, then used via the SCPI protocol
<narmstrong> tolszak: can you list the possible frequencies listed by cpufreq
<narmstrong> the fw I use in meta-meson may have the correct frequencies, so you'll probably need to import the "bad" ones with tables up to 2GHz in amlogic-boot-fip
<tolszak> narmstrong: I need to reflash the sd card, but yeah they look like the ones from https://wiki.odroid.com/odroid-c2/application_note/software/set_cpu_freq up to 1536
<narmstrong> seems they have tricked the scpi table to allow going higher https://github.com/hardkernel/u-boot/commit/205c7b3259559283161703a1a200b787c2c445a5
shoragan has joined #linux-amlogic
<tolszak> Ok so the frequencies I see are: 100000 250000 500000 1000000 1296000 1536000
<tolszak> narmstrong: Device has custom 20W power adapter and fan, hence it could work stable with 1752
<narmstrong> tolszak: a trick must be done in the scpi driver to use the "alternate" table
<narmstrong> https://github.com/hardkernel/u-boot_firmware/commit/b7b90c1099b057d35ebae886b7846b5d9bfb4143 is the firmware change, now we must find how to use that from linux
<narmstrong> tolszak: add https://termbin.com/pk9x
<narmstrong> tolszak: but you'll perhaps need to update the amlogic-boot-fip odroidc2 firmwares with https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01/fip/gxb as built by recipes-bsp/trusted-firmware-a/amlogic-boot-fip.bb
<narmstrong> or not, test before with this patch
<tolszak> narmstrong: building updated kernel
<tolszak> amlogic-boot-fip from librelec you use seems like using hardkernel blobs
<narmstrong> yep, but I don't know if they contain this trick
<narmstrong> it should they they were added in 2019
JohnnyonFlame has joined #linux-amlogic
<tolszak> narmstrong: http://dpaste.com//9W2YKEXTN kernel null pointer
<narmstrong> :-/
<tolszak> narmstrong: I copied the files from fip/gxp to amlogic-boot-fip/odroid-c2 they are exactly the same
<tolszak> narmstrong: I think I know what's wrong
<tolszak> Do I understand correctly that adding 0x80 informs firmware to use different table, but it is only between kernel and firwmare communication. So we should only add 0x80 in scpi_send_message. And use initial domain value in scpi_info->dvfs[domain] = info;
<narmstrong> oh yeah indeed
<narmstrong> we should make a copy of the domain we pass to sent_message
<tolszak> narmstrong: Testing it now
<tolszak> I mean building then testing
<tolszak> narmstrong: Still crashing, shouldn
<tolszak> shouldn't we replace any scpi_send_message with domain | 0x80?
<tolszak> e,.g. in scpi_dvfs_get_idx, scpi_dvfs_set_idx
<tolszak> narmstrong: Hmm should it should still work with modern boot right?
ldevulder has quit [Quit: Leaving]
elastic_dog has quit [Remote host closed the connection]
elastic_dog has joined #linux-amlogic
<narmstrong> tolszak: I don't understand
ldevulder has joined #linux-amlogic
<tomeu> narmstrong: do you happen to know off the top of your head to which dtsi I should add a node for the vivante npu on the vim3?
<tomeu> I leaning towards meson-g12b-a311d.dtsi, but I don't know if other socs based on g12b also have that IP
<narmstrong> tomeu: A311d and S905D3 uses this ip
<narmstrong> I tried once and got the etnaviv kernel driver probe, let me search if I find the change
<tomeu> narmstrong: oh, I was actually having some problems with the power domain
<tomeu> we got it to run quite a few opencl CTS tests, btw
<narmstrong> oh you got it working ??? great
<tomeu> I'm now cleaning up the kernel changes, they are quite small
<tomeu> this is what I ended up doing out of desperation, when trying to get it to probe: https://gitlab.freedesktop.org/tomeu/linux/-/commit/af365186ab305d2fa3e91145ac79d2569b9df2a5
<narmstrong> add the node to g12-commont but enable it only into a311d
<narmstrong> for SM1 it's not clear which socs has the ip
<narmstrong> tomeu: ok, the G12B power domain must be missing, it's present for SM1 (PWRC_SM1_NNA_ID)
<narmstrong> I think you should only enable it on known boards we are sure the IP is enabled in the fuses like the vim3 & vim3l
<tomeu> narmstrong: ok
<tomeu> if you find the patch that gets it to probe properly, it could save me quite some time :)
elastic_1 has joined #linux-amlogic
elastic_dog has quit [Killed (erbium.libera.chat (Nickname regained by services))]
<narmstrong> seems I lost it when leaving baylibre :-/
<tomeu> oh, didn't know that happened
<tomeu> do you remember anything about the power domains? I suspect that is what I was missing
buzzmarshall has joined #linux-amlogic
<tomeu> narmstrong: guess I should be adding a PWRC_G12A_NNA_ID power domain similar to that in SM1?
<narmstrong> tomeu: yes
naoki has quit [Quit: naoki]
<narmstrong> tolszak: is it the same crash as before ? what was your change >
jernej has joined #linux-amlogic
vagrantc has joined #linux-amlogic
jernej has quit [Ping timeout: 264 seconds]
naoki has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
jernej has joined #linux-amlogic
jernej has quit [Ping timeout: 265 seconds]
jernej has joined #linux-amlogic
jernej has quit [Ping timeout: 265 seconds]
vagrantc has quit [Quit: leaving]