<apritzel>
smaeul: Can you confirm that this CPUIDLE hardware feature in the H6 and later waits for the core the enter WFI?
lkcl has quit [Ping timeout: 264 seconds]
Mangy_Dog has quit [Remote host closed the connection]
gaston1980 has quit [Quit: Konversation terminated!]
Wizzup has quit [Ping timeout: 240 seconds]
gaston1980 has joined #linux-sunxi
lkcl has joined #linux-sunxi
jstein has quit [Quit: quit]
lerc_ has joined #linux-sunxi
Wizzup has joined #linux-sunxi
<apritzel>
smaeul: and not only delaying the sequence for some amount of time?
lerc has quit [Ping timeout: 258 seconds]
ganbold has joined #linux-sunxi
lkcl has quit [Ping timeout: 264 seconds]
apritzel has quit [Ping timeout: 256 seconds]
victhor has quit [Ping timeout: 264 seconds]
azend has quit [Ping timeout: 256 seconds]
lkcl has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
cnxsoft has joined #linux-sunxi
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 240 seconds]
ChriChri_ is now known as ChriChri
azend has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
random_yanek has quit [Ping timeout: 260 seconds]
random_yanek has joined #linux-sunxi
lkcl has joined #linux-sunxi
reinforce has joined #linux-sunxi
cmeerw has joined #linux-sunxi
lkcl has quit [Ping timeout: 256 seconds]
indy has joined #linux-sunxi
apritzel has joined #linux-sunxi
lkcl has joined #linux-sunxi
hlauer has joined #linux-sunxi
apritzel has quit [Ping timeout: 272 seconds]
mmarc__ has joined #linux-sunxi
cmeerw has quit [Ping timeout: 260 seconds]
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 264 seconds]
lurchi_ is now known as lurchi__
rojiro has quit [Remote host closed the connection]
rojiro has joined #linux-sunxi
lkcl has quit [Ping timeout: 272 seconds]
mmarc__ has joined #linux-sunxi
lkcl has joined #linux-sunxi
aballier_ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 240 seconds]
aballier has quit [Ping timeout: 264 seconds]
matthias_bgg has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 272 seconds]
ldevulder has joined #linux-sunxi
ndufresne2 has joined #linux-sunxi
ndufresne has quit [Read error: Connection reset by peer]
ndufresne2 is now known as ndufresne
mmarc__ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 272 seconds]
mmarc__ has joined #linux-sunxi
damex has quit [Ping timeout: 246 seconds]
lurchi__ is now known as lurchi_
ldevulder_ has joined #linux-sunxi
ldevulder_ has quit [Excess Flood]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 240 seconds]
damex has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
pCactus has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
prefixcactus has quit [Ping timeout: 240 seconds]
pCactus has joined #linux-sunxi
damex has quit [Ping timeout: 240 seconds]
ndufresne2 has joined #linux-sunxi
nashpa has quit [Quit: Going away]
nashpa has joined #linux-sunxi
ndufresne has quit [Ping timeout: 272 seconds]
zumbi has quit [Ping timeout: 272 seconds]
ndufresne2 is now known as ndufresne
mripard has quit [Ping timeout: 272 seconds]
tuxillo has quit [Ping timeout: 272 seconds]
wens has quit [Ping timeout: 246 seconds]
zumbi has joined #linux-sunxi
wens has joined #linux-sunxi
mripard has joined #linux-sunxi
<daregap>
Good day. I'd like to put the u-boot image on a SPI NOR flash chip. The board (pcduino 3 nano) originally doesn't have one, but I will add it via the pins. What steps are needed to compile a working SPI flash u-boot image? The wiki says I only need to enable "CONFIG_SPL_SPI_SUNXI=y" after loading the board defconfig.
<daregap>
Is that it or are any more modifications needed?
<daregap>
The board is AllWinner A20
<plaes>
hopefully yes, if you're using the default SPI bus
mmarc__ has quit [Remote host closed the connection]
tbueno has quit [Client Quit]
<daregap>
on A20
tbueno has joined #linux-sunxi
<apritzel>
booting won't work from those pins, the BootROM configures the pinmux on PortC, and there is nothing we can do about it (it's ROM, after all, baked into the A20)
<apritzel>
on other boards it works this way, I once booted a Pine64 through the header pins
tbueno has joined #linux-sunxi
<daregap>
okay, planB = u-boot on NAND.
Mangy_Dog has joined #linux-sunxi
<daregap>
Although I could try verifying that it doesn't work by wiring an oscilloscope to the SPI MOSI/CLK pin and confirming there is no traffic on them upon booting
tbueno has quit [Client Quit]
tbueno has joined #linux-sunxi
lurchi_ is now known as lurchi__
prefixcactus has joined #linux-sunxi
prefixcactus_ has joined #linux-sunxi
pCactus has quit [Ping timeout: 246 seconds]
prefixcactus_ is now known as qCactus
qCactus has left #linux-sunxi [#linux-sunxi]
qCactus has joined #linux-sunxi
qCactus has left #linux-sunxi [#linux-sunxi]
qCactus has joined #linux-sunxi
<qCactus>
am I unmuted now?
mmarc__ has joined #linux-sunxi
<karlp>
I can see you at least.
<qCactus>
I am then
<qCactus>
apritzel: so, where would you recommend I start? just substitute my mainline non-SPL uboot bin after forlinx's boot0, or try to concoct the SPL-boot0 frankenstein?
<qCactus>
also, what's the difference between mainline u-boot and sunxi-uboot anyway?
<qCactus>
i.e. what is in sunxi-uboot that is not present in mainline
lurchi__ is now known as lurchi_
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 272 seconds]
mmarc__ has joined #linux-sunxi
tuxillo has joined #linux-sunxi
chewitt has joined #linux-sunxi
<apritzel>
qCactus: what do you mean with "sunxi-uboot", exactly? The one shipped by the board vendor / Allwinner?
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
pCactus has joined #linux-sunxi
prefixcactus has quit [Read error: Connection reset by peer]
mmarc__ has quit [Ping timeout: 240 seconds]
qCactus is now known as prefixcactus
mmarc__ has joined #linux-sunxi
lurchi_ is now known as lurchi__
elros1 has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
pCactus has quit [Read error: Connection reset by peer]
pCactus has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
mmarc___ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 272 seconds]
JohnDoe_71Rus has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
<smaeul>
apritzel: yes, this was my original code, which prints 33 lines of output to a 115200 baud UART between setting the bit and WFI: https://tpaste.us/kkj7
<smaeul>
so if there is a timeout, it's a rather large one
<smaeul>
because the output was never cut off
<apritzel>
smaeul: oh cool, I tried something quick yesterday from U-Boot, but can't write to the R_CPUCFG registers from EL2
<smaeul>
yep :) to do any exploring, I had to drop ATF and run U-Boot in EL3
<smaeul>
still, I will write some code to record the register changes from the ARISC side over the weekend
<apritzel>
your result sounds good enough, just wanted to make sure that we survive the time between sunxi_pwr_domain_off() and psci_power_down_wfi()
<apritzel>
smaeul: btw, as this just came up internally: do you care about supporting -O0 for the Allwinner TF-A port?
<apritzel>
smaeul: this would break our upcoming nifty conditional compilation tricks, and I argue for -O0 being pointless in any case, so am pushing for making this a per-platform decision (with sunxi opting out)
<smaeul>
I have no use for -O0, though I don't know what it would break except wasting/overflowing SRAM
rzerres has quit [Remote host closed the connection]
<smaeul>
if they want new optimization options, we should instead push for -flto :D
<apritzel>
smaeul: I think it's some 1990's narrative of "-O0 is easier to debug", which I disagree with, especially in 2021
<apritzel>
smaeul: many tricks to avoid those pesky #ifdefs rely on toolchain garbage collection and at least some basic level of optimisation, which is not in effect with -O0
<apritzel>
smaeul: Linux is documenting this explicitly, and only allows to allow -O0 for single file, if *really* needed
<karlp>
-Og ...
<karlp>
-O0 is garbage
<apritzel>
yes, -O0 is *painful* to read, it's a lot of facepalming ...
<apritzel>
I think the killer argument is that -O0 is not the code that actually runs, so you are debugging something else entirely
sunshavi has quit [Ping timeout: 264 seconds]
<karlp>
100% agreed
<apritzel>
and the most interesting bugs are actually happening due to the compiler exercising its freedom to optimise, which is not happening with -O0
<apritzel>
smaeul: btw: with -O the compiler would optimise conditional calls away, if the condition is static: so if (scpi_available) scpi_set_css_power_state(...) will break linking if scpi_set_css_power_state() is not defined
matthias_bgg has quit [Quit: Leaving]
prefixcactus has quit [Remote host closed the connection]
<apritzel>
smaeul: ^^ -Ox will *not* break linking, but -O0 will
cmeerw has joined #linux-sunxi
elros1 has quit [Remote host closed the connection]
mmarc___ has quit [Remote host closed the connection]
rzerres has quit [Read error: Connection reset by peer]
rzerres has joined #linux-sunxi
dddddd__ has joined #linux-sunxi
hlauer has joined #linux-sunxi
dddddd_ has quit [Ping timeout: 256 seconds]
dddddd_ has joined #linux-sunxi
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-sunxi
dddddd__ has quit [Ping timeout: 256 seconds]
mmarc__ has joined #linux-sunxi
dddddd__ has joined #linux-sunxi
dddddd_ has quit [Ping timeout: 256 seconds]
andy25225 has quit [Ping timeout: 240 seconds]
dddddd__ has quit [Ping timeout: 256 seconds]
dddddd has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
andy25225 has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
<karlp>
wat? surely that's a product of -fffunction-sections and -gc-sections, not -Ox?
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #linux-sunxi
cmeerw has quit [Ping timeout: 240 seconds]
lurchi__ is now known as lurchi_
hlauer has quit [Ping timeout: 272 seconds]
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
lurchi_ is now known as lurchi__
mmarc__ has quit [Ping timeout: 265 seconds]
<apritzel>
karlp: with -O0 the compiler won't optimise the if statement (constant in this case) away, so it still retains the reference to the scpi_set_css_power_state symbol (which we don't have)
<apritzel>
karlp: there is a bit more to this than shown in this statement
<apritzel>
karlp: I think this example illustrates it: https://pastebin.com/rAEqBqJ4, try compiling this without -lm, once with -O0, once with -O
gaston1980 has quit [Quit: Konversation terminated!]