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 - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
sputnik__ has joined #linux-amlogic
kaspter has joined #linux-amlogic
kaspter has quit [Ping timeout: 264 seconds]
kaspter has joined #linux-amlogic
Necrosporus has quit [Ping timeout: 240 seconds]
nickotheus has joined #linux-amlogic
buzzmarshall has quit [Remote host closed the connection]
Darkmatter66 has quit [Ping timeout: 240 seconds]
Barada has joined #linux-amlogic
nickotheus has quit [Quit: Leaving]
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 272 seconds]
camus is now known as kaspter
drieschel has joined #linux-amlogic
drieschel has quit [Quit: drieschel]
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 256 seconds]
camus is now known as kaspter
kaspter has quit [Read error: Connection reset by peer]
camus has joined #linux-amlogic
camus is now known as kaspter
ldevulder_ is now known as ldevulder\
ldevulder\ is now known as ldevulder
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-amlogic
chewitt_ is now known as chewitt
<jbrunet> xdarklight: CCF (automatic) reparenting is good when the consumer does not have clue which input it should, such has the audio card and its 3 PLLs. It removed a lot of boiler code from many drivers. However, sometimes the consumer knows better. Its the case of the mmc (which has to pick fdiv2 through a specific path).
<jbrunet> unfortunately "Clock protection" is not the silver bullet here. If the net driver was to protect the picked input (MPLL2), it would prevent the audio card from setting the required. You'd have a working ethernet but a broken audio ... which makes me sad
<jbrunet> Managing (clock) use cases is hard and we cannot expect something that choice solely on "minimal delta to target" to get it right each time. It cannot "think ahead" or manage resources really.
<jbrunet> MPLL being multipurpose PLL are a ressource which we have to allocate in way. If you can do without it, you probably should
<jbrunet> Bottom line, I think that Gx (and following chips) should explicitly pick fdiv2, whether or not mpll is provided
<jbrunet> I remember that meson8 is slightly different, so maybe these chips could pick mpll (explicitly as well)
Tony_mac32 has quit [Ping timeout: 256 seconds]
Tonymac32 has joined #linux-amlogic
Tony_mac32 has joined #linux-amlogic
Tonymac32 has quit [Ping timeout: 260 seconds]
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-amlogic
Tony_mac32 has quit [Ping timeout: 272 seconds]
Tonymac32 has joined #linux-amlogic
Tony_mac32 has joined #linux-amlogic
Tonymac32 has quit [Ping timeout: 264 seconds]
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 260 seconds]
camus is now known as kaspter
Darkmatter66 has joined #linux-amlogic
Barada has quit [Quit: Barada]
camus has joined #linux-amlogic
kaspter has quit [Ping timeout: 256 seconds]
camus is now known as kaspter
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 240 seconds]
kaspter has quit [Ping timeout: 264 seconds]
kaspter has joined #linux-amlogic
kaspter has quit [Quit: kaspter]
Barada has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 272 seconds]
Barada has quit [Quit: Barada]
Anessen97_07 has joined #linux-amlogic
Anessen97_0 has quit [Ping timeout: 256 seconds]
Anessen97_07 is now known as Anessen97_0
asdf28 has joined #linux-amlogic
<asdf28> some android systems allow to reboot from an SD card using "adb boot recovery", does anyone know where the magic for this happens? in uboot?
<asdf28> it still seems to boot android for a second (the android boot logo appears), but then the SD card system starts
vagrantc has joined #linux-amlogic
hexdump0815 has joined #linux-amlogic
<hexdump0815> asdf28: i'm not sure but i think i have some android boot stuff seen in the u-boot source code - for instance for sm1 and g12a the android boot stuff is enabled by default i think
<hexdump0815> narmstrong: am i doing anything wrong or are there simply way less performance counters for sm1 that for for instance gxl? i get way less with "perf list" on sm1 than on gxl ...
<narmstrong> hexdump0815: no idea, maybe the cortex-a55 gives less counters
<hexdump0815> narmstrong: ok - seems it does not have any real hw counters at all like for mem or cache - and another a55 question: does the cache arch play any role for the kernel? a55 has per cpu l2 and shared l3 but in the case of sm1 l2 seems to be zero (which seems to be a valid option)
cmeerw has joined #linux-amlogic
<asdf28> hexdump0815: thank you, do you know where to find the uboot source for this?
<asdf28> oh, never mind i googled it and found some android stuff in it
<asdf28> let's see if it's referenced there
<hexdump0815> asdf28: thats good as i did not find it quickly :)
<asdf28> i wouldn't have guessed that the amlogic uboot has android stuff hardwired into it
<narmstrong> asdf28: it has too much hardwired stuff
<narmstrong> hexdump0815: I have absolutely no idea
<asdf28> the interesting part is, how does it know that the user typed "reboot recovery" before the reboot
<narmstrong> u-boot can store a "reboot reason" in a non volatile register
<asdf28> ah!
<narmstrong> it was the good ol' time
<narmstrong> now Android has a special misc partition to "speak" with the bootloader with the BCB format
<narmstrong> because some SoCs can't store a reboot reason
<asdf28> this is all mystery to me
drieschel has joined #linux-amlogic
<asdf28> thanks, i understood the BCB thing now
<asdf28> what's interesting is that the uboot code only ever executes "run recovery_from_flash" when it sees the recovery BCB message
<asdf28> but never "run recovery_from_sdcard"
<asdf28> so maybe this was only possible using the old method?
_whitelogger has joined #linux-amlogic
Darkmatter66 has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
hexdump0815 has quit [Remote host closed the connection]
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
drieschel has quit [Quit: drieschel]
asdf28 has quit [Ping timeout: 264 seconds]
asdf28 has joined #linux-amlogic
asdf28 has quit [Remote host closed the connection]
gaspode has quit [*.net *.split]
narmstrong has quit [*.net *.split]
narmstrong has joined #linux-amlogic
gaspode has joined #linux-amlogic
<xdarklight> jbrunet: thanks for the explanation. I think the idea that we have come up with (always using the first input which is FCLK_DIV2 on GX and MPLL2 on Meson8b/Meson8m2) will be the way to go then. if we have some more advanced framework for fine-grained clock control then we can always switch to that
sputnik_ has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 240 seconds]
ldevulder has quit [Ping timeout: 240 seconds]