ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
ftg has quit [Read error: Connection reset by peer]
montjoie has joined #linux-sunxi
<smaeul> jernej: idle states turn the CPU off in the same way that hotplug or system suspend would, if that is what you are asking. though system suspend turns some additional bits off so it can kill the power supply at the PMIC
montjoie_ has quit [Ping timeout: 480 seconds]
Danct12 has joined #linux-sunxi
junari has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
wasutton3 has quit []
wasutton3 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
Daaanct12 has joined #linux-sunxi
Daanct12 has quit [Ping timeout: 480 seconds]
junari has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
warpme has joined #linux-sunxi
apritzel has joined #linux-sunxi
DarkNeutrino is now known as Guest2210
DarkNeutrino has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
warpme has quit []
warpme has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
Daaanct12 has quit [Ping timeout: 480 seconds]
warpme has quit [Read error: Connection reset by peer]
warpme has joined #linux-sunxi
error2[m] has joined #linux-sunxi
Guest2210 has quit [Read error: Connection reset by peer]
warpme has quit []
junari has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
junari has quit [Remote host closed the connection]
sunshavi_ has joined #linux-sunxi
sunshavi has quit [Ping timeout: 480 seconds]
pg12 has quit [Remote host closed the connection]
pg12 has joined #linux-sunxi
apritzel has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
kuba2k2 has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Quit: WeeChat 4.0.4]
kuba2k2 has joined #linux-sunxi
bauen1 has joined #linux-sunxi
chewitt has joined #linux-sunxi
Danct12 has quit [Remote host closed the connection]
kuba2k2 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
mps has joined #linux-sunxi
Danct12 has joined #linux-sunxi
Danct12 has quit []
Danct12 has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
kuba2k2 has quit [Ping timeout: 480 seconds]
kuba2k2 has joined #linux-sunxi
<jernej> smaeul: why are idle states good for then? can't psci already manage CPU cores?
kuba2k2 has quit []
<smaeul> jernej: I'm not sure what you're asking. The cpuidle driver uses the PSCI CPU_SUSPEND function to enter the idle state.
<jernej> yeah, but kernel can use psci directly to power off/on cores too, right?
<smaeul> yes, hotplug uses the PSCI CPU_ON/CPU_OFF functions
<smaeul> though I would not call that any more "direct" than using CPU_SUSPEND
<smaeul> the difference between CPU_OFF and CPU_SUSPEND is that with CPU_SUSPEND, an interrupt automatically turns the CPU back on
<jernej> So could this be the mechanism AW uses for H616 Android?
<smaeul> mechanism for what?
mripard has quit [Quit: mripard]
<jernej> I mean, there is no ARISC on H616, so probably there is some other method for suspend/resume on H616
<jernej> and if cores can be turned off by interrupt, that's easy way to have suspend/resume working with power button
<jernej> *turned on
<smaeul> yes and now
<smaeul> *no
<smaeul> there is a hardware block that implements the CPU power sequencing, and can turn on a CPU in response to an interrupt: https://linux-sunxi.org/CPUIDLE
<smaeul> (though this "CPUIDLE" hardware is distinct from Linux's cpuidle subsystem -- it can be used to implement either PSCI CPU_OFF or CPU_SUSPEND function)
<jernej> can you select which interrupts wakes up cores?
<smaeul> only by preconfiguring the GIC before turning off the CPU
JohnDoe_71Rus has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
<smaeul> jernej: looking back at your original question, maybe I can give a more helpful answer. Yes, idle states can be used for suspend/resume. This is exactly what s2idle is: calling PSCI CPU_SUSPEND from every CPU in the system
<smaeul> as opposed to what Linux calls "s2ram" or "deep" sleep, which is calling CPU_OFF for all except one CPU, then calling SYSTEM_SUSPEND from that remaining CPU
<smaeul> it's up to the PSCI implementation whether the result of s2idle vs s2ram is any different
<jernej> TF-A implements idlestates only for A64, right?
<jernej> or can be that reused for other SoCs as well?
<smaeul> currently, yes, mainline TF-A only advertises them for A64. They should work for H6 as well without any code changes; someone would just need to measure the latencies and power consumption.
<smaeul> (when using crust, that is)
<smaeul> TF-A could implement idle states natively for H6 and H616 as well, using the hardware block instead of SCPI
<smaeul> if you did this, then s2idle and s2ram would be exactly the same on H616
<smaeul> AW's implementation probably does additional steps for s2ram, like suspending the DRAM controller and slowing down the bus clocks. You could do all this from TF-A as well
<smaeul> (though any code that runs with DRAM suspended must be placed in SRAM, so it would be some thunk called by TF-A, sort of like the or1k thunk that exists today )
<jernej> but TF-A resides in H616 DRAM, right?
<jernej> yeah
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
CornflakeDeath has joined #linux-sunxi
<CornflakeDeath> i'm trying to get uart working on my a13 tablet, using a multimeter and looking at the sdcard socket description in the original fex i've established that the rx/tx pads connect to PF01 and PF04
DarkNeutrino has quit [Quit: 403. You dont have permissions to see the reason]
<CornflakeDeath> which sounds good but according to the A13/PIO wiki page it's completely wrong?
DarkNeutrino has joined #linux-sunxi
<CornflakeDeath> that page says PF4 is UART0 RX and PF1 is JTAG_TDI
<CornflakeDeath> i modified my fex to use PF1/PF4 and it didn't work, but the fault might have been somewhere in my boot process because this was the first time i tried to boot from usb instead of sd
<CornflakeDeath> maybe somebody here will be able to help with identifying the issue. are my board's uart pads useless, do i not know how to use a multimeter, can i boot legacy 3.4 kernels from usb in fel mode?
<CornflakeDeath> the original script.bin disables all uart ports and the default config is again completely different, so i wasn't even able to test my usb pl2303 device
<smaeul> are you using pads on the PCB, or a microSD card breakout board?
kuba2k2 has quit [Ping timeout: 480 seconds]
<smaeul> the SoC certainly supports UART on port F, though you won't be able to use that UART and an SD card at the same time
<CornflakeDeath> the pcb pads. i don't even know where to buy an sd breakout board and decided i didn't even need one since soldering wouldn't be a problem
<CornflakeDeath> maybe i should try connecting to PF4 and PF2 anyway?
<smaeul> if the PCB pads are labeled RX/TX, then I would assume they are correct
<smaeul> have you tried FEL booting uart0-helloworld-sdboot.bin ?
<smaeul> that will allow you to test your connection without worrying about software issues
<CornflakeDeath> do i need script.bin or a dtb for it?
<CornflakeDeath> maybe i'm just unable to use a multimeter? i switched it to the mode labeled by a triangle pointing to the right, with a vertical line and struck through with a horizontal line, then connected one probe to rx and the other to every pin under the sdcard socket one after another until the meter's display said 0 or close to 0
bauen1 has joined #linux-sunxi
<CornflakeDeath> by this method i determined that there are two ground pins which appears to be correct since the mmc config in my fex file only mentions 7 out of 9
macromorgan has quit [Quit: Leaving]
<CornflakeDeath> since the last pin was ground i assumed PF00 had to be the first one (from the left) but this was just a guess. if PF00 is the second to last and one of those pins is PG00 (mentioned in the mmc config) then TX may really be on PF02 and RX on PF04
kuba2k2 has joined #linux-sunxi
<smaeul> no, uart0-helloworld-sdboot.bin is totally standalone. for A13 it hardcodes using the UART on port F
<CornflakeDeath> it works. thank you so much for the suggestion
<smaeul> of course that only tests one direction. you could implement some uart0_getc() in uart0-helloworld-sdboot.c, or just assume the other direction works until proven otherwise
<smaeul> at least you know the connection is good for receiving log messages from the bootloader
<CornflakeDeath> for now i'm trying to get messages from the kernel though
<CornflakeDeath> can i try to boot a kernel without a rootfs for this purpose? do i need to enable early printk before i compile it?
JohnDoe_71Rus has quit []
warpme has joined #linux-sunxi
macromorgan has joined #linux-sunxi
macromorgan has quit []
evgeny_boger1 has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
ad__ has quit []
kuba2k2 has quit [Ping timeout: 480 seconds]
ad__ has joined #linux-sunxi
ad__ has quit []
ad__ has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
evgeny_boger1 has quit [Remote host closed the connection]
warpme has quit []
CornflakeDeath has quit [Quit: Page closed]
ad__ has quit []
ad__ has joined #linux-sunxi
apritzel has joined #linux-sunxi
kuba2k2 has quit []
DarkNeutrino has quit [Read error: Connection reset by peer]
DarkNeutrino has joined #linux-sunxi
stefan_ has joined #linux-sunxi
DarkNeutrino has quit [Read error: Connection reset by peer]
DarkNeutrino has joined #linux-sunxi
DarkNeutrino has quit [Read error: Connection reset by peer]
DarkNeutrino has joined #linux-sunxi
armorer has joined #linux-sunxi
armorer has quit []
Schreiber has joined #linux-sunxi
stefan_ has quit []
vagrantc has quit [Quit: leaving]
Danct12 has quit [Quit: What if we rewrite the code?]