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
apritzel has quit [Ping timeout: 480 seconds]
<macromorgan> yes, all of them do
<macromorgan> the only ones I've worked on thus far are the H700 based devices (Anbernic models RG35XX-Plus, RG35XX-2024, RG35XX-H, RG35XX-SP, and RG28XX) and the V3S based device (Anbernic RG Nano)
<macromorgan> which is to say all of their Allwinner lineup
<tokyovigilante> very annoying googling for info about the display engine now and only finding my patches... #FWDPs
<macromorgan> yeah, I hate it when that happens
<tokyovigilante> thanks apritzel for the review of the cpufreq patch too
<tokyovigilante> Good to see a clang build works though
<tokyovigilante> [ 0.000000] Linux version 6.10.0-rc2+ (ryan@crackotage) (clang version 17.0.0 (https://github.com/apple/llvm-project.git c7c87ee42989d4bea0df5eb1b7c16fcf358d6c35), GNU ld version 2.41-1.fc41) #56 SMP PREEMPT Wed Jun 19 14:08:50 NZST 2024
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
cyrevolt has joined #linux-sunxi
AntoniAloyTorrens[m]1 has joined #linux-sunxi
aedancullen has joined #linux-sunxi
aerospace[m] has joined #linux-sunxi
chuang[m] has joined #linux-sunxi
cmeerw[m] has joined #linux-sunxi
cperon has joined #linux-sunxi
dickenhobelix[m] has joined #linux-sunxi
dittid[m] has joined #linux-sunxi
error2[m] has joined #linux-sunxi
KNULLNoNeAll[m] has joined #linux-sunxi
exkc has joined #linux-sunxi
fraolt has joined #linux-sunxi
GrantM11235[m] has joined #linux-sunxi
JosephWatson[m] has joined #linux-sunxi
JuniorJPDJ has joined #linux-sunxi
Guest9912 has joined #linux-sunxi
triskit|away has joined #linux-sunxi
Newbyte has joined #linux-sunxi
obbardc has joined #linux-sunxi
oliv3r[m] has joined #linux-sunxi
pgwipeout[m] has joined #linux-sunxi
psydroid[m] has joined #linux-sunxi
exkcmoeadmin[m] has joined #linux-sunxi
rsglobal[m] has joined #linux-sunxi
sajattack[m] has joined #linux-sunxi
t4h4[m] has joined #linux-sunxi
Tooniis[m] has joined #linux-sunxi
MatrixTravelerbot[m] has joined #linux-sunxi
vulpes2[m] has joined #linux-sunxi
movedon5b2z4xywybidzannet[m] has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
tnovotny has joined #linux-sunxi
macromorgan_ has joined #linux-sunxi
macromorgan has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
gsz has joined #linux-sunxi
gnarface has quit [Read error: Connection reset by peer]
gnarface has joined #linux-sunxi
dsimic is now known as Guest10145
dsimic has joined #linux-sunxi
Guest10145 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
MatrixTravelerbot[m] has quit []
AntoniAloyTorrens[m]1 has quit []
psydroid[m] has quit []
aedancullen has quit []
ungeskriptet is now known as Guest10152
ungeskriptet has joined #linux-sunxi
Guest10152 has quit [Ping timeout: 480 seconds]
cmeerw[m] has quit []
dickenhobelix[m] has quit []
exkc has quit []
exkcmoeadmin[m] has quit []
JohnDoe_71Rus has joined #linux-sunxi
vagrantc has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<smaeul> 11:59 <apritzel> well, the AXP PMICs support some kind of suspend mode, but I don't know if that keeps the DRAM rails alive
<smaeul> entering AXP PMIC suspend mode just records the regulator enable state, and exiting restores the recorded state. you still have to disable regulators in software
<smaeul> 11:50 <apritzel> the secondaries could be completely off, but you would need something to run the wakeup code, right?
<smaeul> the CPU complex can be put in reset if there's a hardware state machine to bring it back up when receiving an IRQ, which there is: https://linux-sunxi.org/CPUIDLE
<smaeul> but without an ARISC you can't do anything _else_ after WFI like disabling VDD_CPUX
<smaeul> 12:04 <apritzel> I think it can even run on a 32KHz oscillator, so you can turn the 24 MHz osc off
<smaeul> yep, you can isolate the ARISC so you can power off VCC_DRAM/VCC_PLL/VDD_SYS as well (everything but VCC_PL/VCC_RTC/VDD_CPUS) and still be running code with access to the outside world through the R_ peripherals
bauen1 has quit [Ping timeout: 480 seconds]
<smaeul> btw there are things you can do to save power without losing access to DRAM, like bypassing and powering off all of the other PLLs
gsz has quit [Ping timeout: 480 seconds]
<apritzel> smaeul: thanks for the input!
<apritzel> smaeul: regarding PMIC suspend mode: from what I gather from the AXP717 manual, waking up from suspend only work via either an I2C register write (by software), or via the IRQ line
<apritzel> I guess the latter also comes from the SoC?
<apritzel> but apparently you cannot wake up the PMIC via the Power Key?
<apritzel> and I agree in general: we need some code to turn off devices, go to WFI, wakeup and return
<apritzel> what "turn off devices" really means, it's an implementation detail, so to speak, so we can start easy (like turning off as many PLLs as possible)
<apritzel> and then enhance this later, with stuff like turning PMIC rails off, using DRAM self refresh, and so on
<apritzel> smaeul: I was wondering if crust would be helpful here? Can we compile it for aarch64, and put (some of) it into SRAM A1?
warpme has quit [Read error: Connection reset by peer]
bauen1 has joined #linux-sunxi
ftg has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
hexdump01 has quit []
hexdump0815 has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
halal_beef has joined #linux-sunxi
halal_beef has quit [Remote host closed the connection]
halal_beef has joined #linux-sunxi
<halal_beef> long time no see, finally got my orangepi zero3, had to rebuy it cause im pretty sure the original order got lost in china, but thats all done and dusted now, im trying to boot some baremetal code as a kernel on it posing as a kernel but it seems like U-Boot isnt a fan of it, it shows "FDT_ERR_BADMAGIC" though i dont even really see why it would, i dont see any appended dtbs on the kernel, any help would be appreciated
vagrantc has quit [Quit: leaving]
gsz has quit [Ping timeout: 480 seconds]
<Jookia> halal_beef: are you using 'go' as the booting command
<halal_beef> im just letting the device autoboot through u-boot
<halal_beef> had to fatload it and use go lol, anyways i think its time to try get this running now, thanks
<Jookia> nice
<halal_beef> btw is it normal for even a linux kernel to just hang on nothingness when i fatload and go?
<Jookia> yes, the kernel needs to be loaded a specific way
<Jookia> using bootz or bootm :)
<halal_beef> ahh lmao
apritzel has joined #linux-sunxi
gsz has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
<halal_beef> well i found out for some reason the board was reverting to the onboard u-boot which was the reason why nothingness was happening, sadly the non onboard stuff isnt much better, using fatload mmc 0:3 0x40080000 payload.bin and doing go 0x40080000 ends up in a phat synchronous exception, https://pastebin.com/1jVY7QRD
<halal_beef> nvm, managed to fix it, no more exception
<halal_beef> holy crap, i have the baremetal running
<halal_beef> thanks guys :DD
colinsane has quit []
colinsane has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
halal_beef has quit [Remote host closed the connection]
colinsane has quit [Remote host closed the connection]
Raqbit has quit [Quit: .]
colinsane has joined #linux-sunxi
Raqbit has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
hentai has quit [Ping timeout: 480 seconds]
<smaeul> apritzel: crust is intended to support multiple ISAs, yes. You'd need to replace the whole main loop to run it on the main ARM/RISC-V CPUs; currently it's designed to not touch anything until after the other CPUs are off, to avoid MMIO races.
<smaeul> apritzel: my interpretation is that either the SoC or the PMIC can drive the IRQ line low, and either one counts. It should be easy to test.
<smaeul> (for the SoC driving the IRQ line low, search "irq output to nmi pad" in the H616 manual)
ftg has quit [Read error: Connection reset by peer]
<apritzel> smaeul: thanks, but my hope was that the power key would trigger the PMIC wakeup. Then we could turn all cores off, but keep VCC_DRAM alive, and on resume the SoC would reboot, but then shortcut the boot process
<apritzel> I am not sure if the PMIC being in suspend helps too much if we need a core anyway: we could just program the PMIC manually to take most rails offline
<apritzel> smaeul: do you use PMIC suspend in crust at the moment? And does it bring you something?
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
rsglobal[m] has quit []
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi