Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2025.01 is OUT / Merge Window is OPEN, next branch is CLOSED / Release v2025.04 is scheduled for 07 April 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
joeskb7 has quit [Quit: Lost terminal]
rvalue has quit [Ping timeout: 260 seconds]
rvalue has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
zibolo has quit [Ping timeout: 245 seconds]
zibolo has joined #u-boot
frytaped has joined #u-boot
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #u-boot
ALTracer has joined #u-boot
naoki has quit [Quit: naoki]
naoki has joined #u-boot
GNUtoo has quit [Ping timeout: 248 seconds]
GNUtoo has joined #u-boot
jfsimon1981 has quit [Ping timeout: 244 seconds]
ALTracer has quit [Read error: Connection reset by peer]
ALTracer has joined #u-boot
goliath has joined #u-boot
<marex> Kwiboo: sdmmc command is 6 bit , why should it be uint ?
<marex> Kwiboo: could it be some sdmmc driver bug ?
haritz has quit [Ping timeout: 248 seconds]
<f_> marex: Compiler bug (?)
ALTracer has quit [Ping timeout: 252 seconds]
ALTracer has joined #u-boot
ALTracer has quit [Remote host closed the connection]
ALTracer has joined #u-boot
ALTracer has quit [Client Quit]
monstr has joined #u-boot
monstr has quit [Ping timeout: 252 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
wooosaiiii has joined #u-boot
sally has quit [Quit: sally]
sally has joined #u-boot
<marex> f_: smells very much like it, yes
eballetbo has joined #u-boot
Peng_Fan has quit [Quit: Connection closed for inactivity]
ikarso has joined #u-boot
monstr has joined #u-boot
jfsimon1981 has joined #u-boot
mckoan|away is now known as mckoan
ALTracer has joined #u-boot
<pivi> Current U-Boot master has issues on TI AM62, https://gist.github.com/dolcini/f2bc7d6703a60bb828839b9f1da73168
frieder has joined #u-boot
<pivi> `ERROR: Failed to allocate 0x1000 bytes below 0x0.`
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
frieder has quit [Ping timeout: 264 seconds]
gsz has joined #u-boot
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
prabhakalad has joined #u-boot
frieder has joined #u-boot
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #u-boot
totkeks has joined #u-boot
<marex> pivi: can git bisect narrow it to something ?
frieder has quit [Ping timeout: 248 seconds]
ALTracer has quit [Quit: Quit]
frieder has joined #u-boot
sszy has joined #u-boot
<pivi> marex: yes, at some point I could, lately I have very little time available :-( and I though it was better to report it than ignore
<pivi> imx8m plus/mini is not even building for me, but there it seems some integration issue with OE that needs adjustement (I am mentioning this because the issue might be more generic, and I just have more limited coverage than usual)
<Kwiboo> marex: yes it is possible an cpu errata or compiler bug, as mentioned in the patch, the gcc peephole2 optimization seem to generate code that do not work on affected platform, i.e. a printf of cmd.cmdidx=51 just before calling mmc_send_cmd_retry() turns into printf cmd.cmdidx=8 inside that function
<Kwiboo> https://lore.kernel.org/u-boot/550d1f16-b788-d2b5-c2d9-fe5d199e63e1@kwiboo.se/ has some assembly of the non-working code vs working code, use of -fno-peephole2 or changing from ushort to uint generate working code, tested with gcc 8.x to 13.x all produce non-working code
<Kwiboo> the change from ushort to uint is just a workaround to remove the memory hole of struct mmc_cmd that seem to cause this very strange issue
<marex> Kwiboo: are you able to reproduce it with some simple assembler code too ?
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
teejay has quit [Quit: leaving]
<Kwiboo> marex: unfortunately not, it was ~1.5 years ago and I can only remember that changing the ushort to uint or disable the peephole2 optimization solved the issue (cmdidx being changed to something unexpected)
<Kwiboo> I can only find https://gist.github.com/Kwiboo/713703809ce19b34d7458fe0f21f846b that contains some decompiled assembly from non-working, working and some unknown "patched gcc"
<Kwiboo> use of stp op instead of str ops and re-ordering of ops seem to be the only pattern I could find, without digging to deep into the unknown
rvalue- has joined #u-boot
rvalue has quit [Ping timeout: 264 seconds]
rvalue- is now known as rvalue
<Kwiboo> looking back at irc logs from 2023 I could find https://libera.irclog.whitequark.org/linux-amlogic/2023-09-04#34870460; "Only thing that have helped so far, is 1. ushort -> uint, 2. mb() between cmd. and data. assignments, 3. set data. values before cmd. values"
naoki has quit [Quit: naoki]
totkeks has quit [Ping timeout: 248 seconds]
frytaped has quit [Ping timeout: 252 seconds]
<Kwiboo> marex: found some old logs of sd_get_capabilities() that set cmd.cmdidx=51, calls mmc_send_cmd_retry(&cmd, &data) that instead see cmd.cmdidx=8 (value of data.blocksize), how the issue was discovered, https://gist.github.com/Kwiboo/6abb989715be5745b6cbfb78d6fb1cc1
bwani54 has joined #u-boot
BuildBackBetter2 has joined #u-boot
BuildBackBetter2 has quit [Remote host closed the connection]
OFJoeBiden299623 has joined #u-boot
<OFJoeBiden299623> Hey guys... Joe Biden here. I've decided to step down from the White House to focus on other projects. Billionaires are a threat to democracy, so check out https://BidenCash.st to put them in the bullseye. Keep an eye on the CNN inauguration for a promo code!
yann-kaelig has joined #u-boot
OFJoeBiden299623 has quit [Remote host closed the connection]
<LeSpocky> what possibilities do I have in u-boot to have different dt nodes for the builtin dt depending on some u-boot env variable?
<LeSpocky> rather different properties of _one_ node, not different nodes actually
<LeSpocky> would this be a usecase for devicetree overlays?
<LeSpocky> speaking of control fdt, need this in u-boot already, not for the system loaded by u-boot
flokli has quit [Ping timeout: 260 seconds]
goliath has quit [Quit: SIGSEGV]
flokli has joined #u-boot
frieder has quit [Remote host closed the connection]
pgreco_ has quit [Ping timeout: 252 seconds]
pgreco has joined #u-boot
goliath has joined #u-boot
monstr has quit [Remote host closed the connection]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
redbrain has quit [Ping timeout: 252 seconds]
mckoan is now known as mckoan|away
redbrain has joined #u-boot
ldevulder has joined #u-boot
ldevulder has quit [Remote host closed the connection]
vagrantc has joined #u-boot
mmu_man has joined #u-boot
naoki has joined #u-boot
bwani54 has quit [Ping timeout: 264 seconds]
SlimeyX_ has joined #u-boot
SlimeyX has quit [Ping timeout: 248 seconds]
SlimeyX_ is now known as SlimeyX
yann-kaelig has quit []
gsz has quit [Ping timeout: 265 seconds]
<sjg1> Tartarus: Re the time with for not building dtc each time, it was close to a second for me. But that was a while back
<sjg1> Tartarus: Also I got stuck on enabling the network in my lab, or at least on getting it to pass. I replied on the ML
<sjg1> Tartarus: Also I am wondering how to configure the network in a common way for all boards...at present it seems I need to create 30 Python scripts? Perhaps I should try to do the same thing as with the lab, i.e. add things into Labgrid?
goliath has quit [Quit: SIGSEGV]
<Tartarus> sjg1: Do you mean the stuff in py/<board>/ ?
<sjg1> Tartarus: Ues
<sjg1> er, Yes
<Tartarus> sjg1: I think it's a reasonable amount of per-board setup in general, but some tests could probably be reworked a little bit
<sjg1> Tartarus: OK, well I haven't really got into enough to have an opinion yet. Once I can get a few boards fully working on network I might form one
<Tartarus> I don't have more than 1 line for network itself, just dhcp
mmu_man has quit [Ping timeout: 245 seconds]
prabhakalad has quit [Ping timeout: 252 seconds]
prabhakalad has joined #u-boot
<sjg1> OK