alexxy has quit [Read error: Connection reset by peer]
alexxy has joined #u-boot
KREYREN has quit [Ping timeout: 264 seconds]
xroumegue has quit [Ping timeout: 252 seconds]
KREYREN has joined #u-boot
mmu_man has joined #u-boot
Stat_headcrabbed has quit [Remote host closed the connection]
zsoltiv_ has quit [Ping timeout: 276 seconds]
zsoltiv_ has joined #u-boot
jfsimon has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
persmule has joined #u-boot
dsimic has quit [Ping timeout: 276 seconds]
dsimic has joined #u-boot
goliath has joined #u-boot
clamor has quit [Ping timeout: 252 seconds]
clamor has joined #u-boot
mrnuke has quit [Ping timeout: 248 seconds]
KREYREN has quit [Remote host closed the connection]
mrnuke has joined #u-boot
ja_02 has quit [Remote host closed the connection]
ja_02 has joined #u-boot
Stat_headcrabbed has joined #u-boot
clamor has quit [Ping timeout: 244 seconds]
Stat_headcrabbed has quit [Client Quit]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Client Quit]
Stat_headcrabbed has joined #u-boot
Stat_headcrabbed has quit [Client Quit]
dhruvag2000 has joined #u-boot
ldevulder has joined #u-boot
cambrian_invader has quit [Ping timeout: 260 seconds]
cambrian_invader has joined #u-boot
mrnuke has quit [Ping timeout: 252 seconds]
ldevulder has quit [Ping timeout: 252 seconds]
mrnuke has joined #u-boot
dhruvag2000 has quit [Quit: Connection closed for inactivity]
ldevulder has joined #u-boot
d3thbird has quit [Ping timeout: 245 seconds]
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #u-boot
ldevulder has quit [Ping timeout: 268 seconds]
mrnuke has quit [Ping timeout: 276 seconds]
mrnuke has joined #u-boot
jclsn has quit [Quit: WeeChat 4.6.1]
niska has quit [Ping timeout: 252 seconds]
niska has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
<kcxt>
hmm, so i'm poking around board_f, and I notice that for initf_dm we are walking the entire FDT with dcache disabled to bind/probe pre-reloc drivers
<kcxt>
this takes an entire second on qc6490 qcom platforms (probably similar for all qcom platforms) since we have a HUGE DT
<kcxt>
post-reloc we enable dcache and build the livetree before initr_dm
<kcxt>
since we almost always already have UART configured, it's not necessary to have a device-model pre-reloc
<kcxt>
if you disable SYS_MALLOC_F then initf_dm is skipped, but this configuration doesn't actually work since log_init calls calloc() unconditionally .... so unless you have no log drivers you always need some heap memory pre reloc
<kcxt>
I tried simply calling dm_init(false) instead of the whole dm_init_and_scan(), this takes the time-to-uboot-shell from ~3100ms to ~2100ms on QCS6490
<kcxt>
a bunch of qcom devices skip enabling UART in sbl1 unless you pull the rx pin up, so having u-boot init unconditionally pre-reloc is helpful for some bringup
<kcxt>
I guess we could introduce a config option to skip setting up the device model pre-reloc and enable it by default in qcom_defconfig, but this feels non-ideal
<kcxt>
better would be to enable dcache and build the livetree pre-reloc, but that populates a bunch of global variables which won't get copied during relocation
<kcxt>
buuut we don't actually /need/ to relocate u-boot at all on qcom anyways (it seems this isn't even needed for efi runtime)