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
jacobk has quit [Ping timeout: 240 seconds]
montjoie has quit [Ping timeout: 260 seconds]
montjoie has joined #linux-amlogic
jacobk has joined #linux-amlogic
hexdump0815 has quit [Ping timeout: 264 seconds]
hexdump0815 has joined #linux-amlogic
jacobk has quit [Ping timeout: 268 seconds]
vagrantc has quit [Quit: leaving]
jacobk has joined #linux-amlogic
<narmstrong> Honestly since the emmc is already configured by the BL1, I think we should have a custom driver that only does direct reads like the BL2
djrscally has joined #linux-amlogic
luka177 has quit [Ping timeout: 268 seconds]
luka177 has joined #linux-amlogic
<f_[xmpp]> a stripped down drivee
<f_[xmpp]> *driver
luka177 has quit [Ping timeout: 255 seconds]
luka177 has joined #linux-amlogic
psydroid has joined #linux-amlogic
mripard has joined #linux-amlogic
rockosov has joined #linux-amlogic
<rockosov> Hello guys, do you know is it possible to setup energy model with thermal gov power allocator if SoC is based on the SCPI protocol?
<rockosov> I know, it's possible for SCMI, because it support dynamic power2state mapping
<rockosov> But if I setup static OPP table for SCPI-based thermal model, will it work?
<narmstrong> good question, I was wondering if we could declare static OOP tables bypassing the SCPI tables at some point if the SCPI is buggy (.... Odroid-C2 ....), and I don't see why we couldn't
<narmstrong> I mean if the OPP entries matches the clocks frequencies of &scpi_dvfs then it's ok
<rockosov> Hmmm, sorry, it's may be stupid question, because I'm just learning these things now... But in the my situation power allocator doesn't work, because energy model is not registered. And based on my research conclusions, energy model can be registered from the DT OPP table or SCMI...
<rockosov> That's why I've started to search a way to register energy model with proper power2state and state2power translation for SCPI
<narmstrong> maybe you could simply try to register it from the scpi cpufreq ?
<rockosov> Hmm, not I see that scpi cpufreq driver has such callback, but somehow it's not registered
<rockosov> So, debugging...
<rockosov> s/not/now/
<rockosov> Looks like scpi cpufreq calls dev_pm_opp_of_register_em(), but this call is totally designed for of-based opp table only
luka177 has quit [Ping timeout: 256 seconds]
<rockosov> Hmmm, <dynamic-power-coefficient> is required to make this workable.. I will try to run some experiments to calculate appropriate DPC value for axg. And looks like it's required to be calculated for all other SoCs
luka177 has joined #linux-amlogic
anessen97335 has joined #linux-amlogic
cottsay08 has joined #linux-amlogic
R0nd has joined #linux-amlogic
kbingham_ has joined #linux-amlogic
cyrozap_ has joined #linux-amlogic
InFerNo_- has joined #linux-amlogic
zkrx has quit [Killed (NickServ (GHOST command used by zkrx__))]
zkrx has joined #linux-amlogic
anessen9733 has quit [*.net *.split]
cyrozap has quit [*.net *.split]
Rond has quit [*.net *.split]
kbingham has quit [*.net *.split]
jelly has quit [*.net *.split]
cottsay has quit [*.net *.split]
InFerNo__ has quit [*.net *.split]
minute has quit [*.net *.split]
anessen97335 is now known as anessen9733
cottsay08 is now known as cottsay
minute has joined #linux-amlogic
jelly-home has joined #linux-amlogic
luka177 has quit [Ping timeout: 264 seconds]
luka177 has joined #linux-amlogic
R0nd is now known as Rond
jelly-home is now known as jelly
<phh> our board has several variants. only change concerning mainline driver is wifi, so we did it like this: meson-g12a-fbx8am.dtsi with a compatible "freebox,fbx8am", and then meson-g12a-fbx8am-broadcom.dts for the variant using broadcom wifi that includes the dtsi and with compatible "freebox,fbx8am-broadcom", "freebox,fbx8am", "amlogic,g12a"] but dtc_chk is unhappy with:
<phh> ['freebox,fbx8am-brcm', 'freebox,fbx8am', 'amlogic,g12a'] is too long
<phh> should we just move to ["freebox,fbx8am-brcm", "amlogic,g12a"]?
ldevulder has joined #linux-amlogic
<f_[xmpp]> phh: I'll have to say..I'm glad to see yet another vendor interested in mainline linux.
<f_[xmpp]> as for the compatible "brcm" should be fine..
jacobk has quit [Ping timeout: 260 seconds]
<narmstrong> phh: you may need to properly specify both compatible variants set in the bindings
<narmstrong> phh: can you share the changes you did in the amlogic.yaml bindings ?
kenny has quit [Quit: WeeChat 4.2.1]
chewitt has joined #linux-amlogic
kenny has joined #linux-amlogic
<phh> f_[xmpp]: well, mainline is the natural thing that comes out when you want long term support. and long term support is part of our business model with a 13 yrs old device still being given to our new customers
<f_> :D
<f_> If only other vendors were like that...
<f_> and I didn't know that. Not really familiar with free.fr...
<narmstrong> OK so yeah this won't work, so either you add a separate entry with something like:
<narmstrong> and either `"freebox,fbx8am-brcm", "freebox,fbx8am", "amlogic,g12a"` or `"freebox,fbx8am-realtek", "freebox,fbx8am", "amlogic,g12a"`
<narmstrong> or you can simply add `broadcom` to the amlogic,g12a list and add the broadcom and realtek variants as dtbos
marc|gonzalez has joined #linux-amlogic
<narmstrong> and merge the dtbo at runtime or before flashing
<narmstrong> *add `broadcom` to the amlogic,g12a list and add the broadcom and realtek variants as dtbos
<narmstrong> damn copy paste
<narmstrong> * add freebox,fbx8am to the amlogic,g12a list and add the broadcom and realtek variants as dtbos
<narmstrong> adding dtbos for variants seems to be the new preferred way to handle such case
<narmstrong> the fdtoverlay utility works well for this case
<phh> I did think of dtbos, but our bootloader is erm, yeah well. I didn't think of merging them before flashing though, I'll look at it thanks
<f_> amlogic downstream u-boot?
<phh> dtbo should definitely be the way to go for us, because we might get new hardware changes later, and we already have non-described hardware changes (like dvb which isn't supported in mainline)
<phh> f_: yeah
<narmstrong> phh: if it could fit then yes it would help for future board revisions
<phh> btw, our downstream kernel auto-detects between broadcom and realtek wifi using mmc pid/vid, and we could use that with dynamic overlays, but that's not a thing in mainline
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
hexdump0815 has quit [Quit: WeeChat 3.8]
hexdump0815 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
<chewitt> narmstrong: phh: I have this in my tree at the moment https://github.com/chewitt/linux/commit/23e74f62e6760a231daf3ebf1033f39e44538fc0
luka177 has quit [Ping timeout: 255 seconds]
<chewitt> I have a few patches that I need to group into a logical set and send
<chewitt> that's one of them..
<chewitt> the BT part of the modules isn't so simple, sadly
luka177 has joined #linux-amlogic
<phh> chewitt: yeah the reason the dtbo exists is for bluetooth, not wifi
chewitt has quit [Quit: Zzz..]
luka177 has quit [Ping timeout: 268 seconds]
luka177 has joined #linux-amlogic
jacobk has joined #linux-amlogic
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 256 seconds]
ldevulder_ has quit [*.net *.split]
ldevulder_ has joined #linux-amlogic
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
jacobk has quit [Ping timeout: 268 seconds]
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 240 seconds]
jacobk has joined #linux-amlogic
djrscally has quit [Ping timeout: 256 seconds]
jacobk has quit [Ping timeout: 260 seconds]
luka177 has quit [Read error: Connection reset by peer]
jacobk has joined #linux-amlogic
luka177 has joined #linux-amlogic