Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.04, v2023.07-rc2 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2023.07 is scheduled for 03 July 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
mmu_man has quit [Ping timeout: 256 seconds]
goliath has quit [Quit: SIGSEGV]
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot
thopiekar has quit [Ping timeout: 264 seconds]
thopiekar_ has joined #u-boot
stefanro has joined #u-boot
ikarso has joined #u-boot
persmule has quit [Remote host closed the connection]
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
persmule has joined #u-boot
naoki has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
apritzel_ has joined #u-boot
matthias_bgg has joined #u-boot
monstr has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
leohoo_sdu[m] has joined #u-boot
leohoo_sdu[m] has left #u-boot [#u-boot]
hanetzer has quit [Ping timeout: 264 seconds]
apritzel_ has quit [Ping timeout: 240 seconds]
hanetzer has joined #u-boot
mncheck has joined #u-boot
ikarso has joined #u-boot
niska has quit [Quit: Leaving]
niska has joined #u-boot
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot
ldevulder has joined #u-boot
mmu_man has joined #u-boot
apritzel_ has joined #u-boot
guillaume_g has joined #u-boot
sszy has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
apritzel_ has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
runcom has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
teejay_ has quit [Ping timeout: 265 seconds]
teejay has joined #u-boot
runcom has quit [Ping timeout: 240 seconds]
camus has quit [Ping timeout: 240 seconds]
camus has joined #u-boot
goliath has joined #u-boot
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
runcom has joined #u-boot
naoki has quit [Quit: naoki]
camus has quit [Quit: camus]
rvalue has quit [Ping timeout: 265 seconds]
rvalue has joined #u-boot
runcom has quit [Ping timeout: 240 seconds]
stipa_ has joined #u-boot
stipa has quit [Ping timeout: 240 seconds]
stipa_ is now known as stipa
antaresgades has joined #u-boot
runcom has joined #u-boot
runcom has quit [Ping timeout: 248 seconds]
monstr has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
matthias_bgg has quit [Ping timeout: 264 seconds]
matthias_bgg has joined #u-boot
camus has joined #u-boot
antaresgades has quit [Quit: Client closed]
runcom has joined #u-boot
runcom has quit [Ping timeout: 240 seconds]
guillaume_g has quit [Quit: Konversation terminated!]
mmu_man has joined #u-boot
runcom has joined #u-boot
runcom has quit [Remote host closed the connection]
runcom has joined #u-boot
mmu_man has quit [Ping timeout: 248 seconds]
runcom has quit [Client Quit]
runcom has joined #u-boot
runcom has quit [Ping timeout: 240 seconds]
stefanro has quit [Quit: Leaving.]
mmu_man has joined #u-boot
goliath has quit [Quit: SIGSEGV]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
runcom has joined #u-boot
runcom has quit [Ping timeout: 240 seconds]
goliath has joined #u-boot
matthias_bgg has quit [Ping timeout: 264 seconds]
Leopold has quit [Ping timeout: 240 seconds]
Leopold has joined #u-boot
rfs613 has quit [Ping timeout: 264 seconds]
rfs613 has joined #u-boot
matthias_bgg has joined #u-boot
Leopold has quit [Remote host closed the connection]
<rfs613> marex: for the rzn1 work, are you okay with leaving ddr_async.c under boards/ for the time being?
Leopold has joined #u-boot
<marex> rfs613: I would really much rather see it in drivers/soc/ if possible
<rfs613> marex: to put it there, I would need to add more kconfig symbols and whatnot, I'm a bit concerned about how long it will take to reach agreement on all that
<rfs613> eg. should be it drivers/soc/renesas or schneider or rzn1 or...
<marex> rfs613: drivers/soc/renesas/rzn1
<marex> rfs613: that seems like the best option
<rfs613> marex: okay. And the other topic is the free() of dynamica memory in mkimage. I did take a look at doing that properly, but it gets ugly very fast.
<marex> rfs613: how big are the data ? can you allocate them on stack instead ?
<rfs613> marex: not that big, but they are needed across multiple calls. Originally I had the as static globals, but you objected to that ;-0
<rfs613> s/the/them/
mmu_man has quit [Ping timeout: 265 seconds]
<marex> rfs613: isnt there some sort of structure to hold pointer to them that is passed around ?
<rfs613> marex: the structure that gets passed around has a spot for the image header (which we use), but nothing for configuration file.
<rfs613> many exisitng tools/*_image.c also use a config file, some are dynamically allocated (and they leak), some are static.
<marex> rfs613: just a moment
runcom has joined #u-boot
runcom has quit [Read error: Connection reset by peer]
runcom has joined #u-boot
runcom has quit [Ping timeout: 240 seconds]
ldevulder has quit [Ping timeout: 264 seconds]
<marex> rfs613: OK, I am here
<rfs613> marex: me too (although my DSL has been quite unstable lately)
<rfs613> (it seems I might have to upgrade to fiber as the local telco's don't want to fix their copper anymore)
<marex> rfs613: OK, I am looking at the remaining stuff
<marex> rfs613: so we have uh 5/10 which is the cadence driver, but that's trivial fixes ?
<marex> rfs613: then 7/10 which is also trivial fix
<rfs613> marex: yes I did the trivial fixes, and only replied to the two threads which we are discussing here also.
<marex> rfs613: board/schneider/rzn1-snarc/ddr_async.c could be moved to drivers/soc/renesas/rzn1/ easily, no ?
<marex> just add Makefile + Kconfig, you want to include this if ARCH_RZN1 is selected in any case, so no need for Kconfig syms
<marex> the Kconfig file might not even be needed, or would just contain some 'source' statement
<rfs613> marex: I was just trying that in fact, but it's not calling the probe() function in ddr_async anymore, causing dram_init() to fail. Debugging that now.
<marex> hold on
<rfs613> oh i forgot to add it to recurse into the drivers/soc/rzn1 makefile, whops
<rfs613> so it does in fact work
<marex> like that ?
<rfs613> pretty much, except I added more kconfig symbols, as done in drivers/soc/ti/Kconfig for example.
<rfs613> let me switch it over to your simpler method ( I like simple.. )
<marex> rfs613: I dont mind either way
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
<marex> rfs613: but then I wonder, whether we shouldn't use drivers/ram/renesas/ instead of drivers/soc/renesas/
<marex> like this
<marex> err
<rfs613> hey you are now almost going in circles ;-)
<marex> rfs613: I am ?
<rfs613> ddr_async.c was originally in drivers/ram/cadence/
<rfs613> it didn't reall belong there, because it contains board/SoC specific setup logic
<marex> rfs613: I mean, this is renesas specific glue, so drivers/ram/renesas/rzn1 seems OK
<marex> rfs613: and drivers/ram/cadence is the generic DRAM code which can be shared by other SoCs
<rfs613> marex: okay, i'll put it in drivers/ram/renesas/rzn1 then
<marex> rfs613: as for the mkimage ... sigh ... we might have to go with static global struct config_file, because we just cannot do any better
<marex> sigh
<rfs613> marex: what is wrong with letting the OS free the memory at program exit? It's not like this is a long-running daemon process..
<marex> rfs613: valgrind will complain about it for example
<rfs613> marex: I had it as static global originally
<marex> rfs613: so will lsan
<marex> rfs613: yeah, I hoped there would be a better way than that, I was wrong, sorry
<rfs613> marex: indeed valgrind complains. It likewise complains for severla other image formats which also have leaks.
<rfs613> if we want to fix those, we will need to add a callback to perform image-specific deallocation. I have done that, I can post it for RFC, but if you go down to implement those functions for existing image formats, it quickly becomes quite messy.
<marex> rfs613: separate patchset please, lets wrap this one up first
<rfs613> marex: yes for sure!
Laurence_b has joined #u-boot
<marex> rfs613: sorry for the abysmal delays
___nick___ has quit [Ping timeout: 240 seconds]
vagrantc has joined #u-boot
<rfs613> marex: oops, i just posted an updated series, but forgot to increase from v5 to v6
<rfs613> shall I post it again?
Laurence_b has quit [Quit: Client closed]
<rfs613> (what i posted contains all the changes, i just forgot to set the right subject line)
<marex> rfs613: no
apritzel_ has joined #u-boot
<marex> rfs613: that at least doesnt leak
<marex> (I hope)
<rfs613> marex: oh you want to go back to static allocation? I thought we'd keep it dynamic and try to fix free() for all images in a later patch.
<rfs613> s/later/separate/
<rfs613> i'm just off to pick up the kids now, will take which ever action you prefer later tonight...
<rfs613> (fixing it for renesas_spkgimage.c is relatively easy... it's fixing leaks in the othe tools/*image.c that gets messy...)
mmu_man has joined #u-boot
<marex> rfs613: lets use the static alloc , do a v7, lemme apply it and then send Tartarus a PR
vagrantc has quit [Quit: leaving]
matthias_bgg has quit [Ping timeout: 240 seconds]
goliath has quit [Quit: SIGSEGV]
<rfs613> marex: okay, will do after kids are asleep.
<marex> rfs613: I might still be around by then ;/
<rfs613> marex: you seem to be in every time zone and every IRC channel :-)
<marex> /builds/u-boot/custodians/u-boot-sh/doc/board/renesas/rzn1.rst:34:unknown document: ../../../tools/binman/binman.rst`
<marex> rfs613: good bye circadian rythm
<marex> ValueError: Error 1 running 'dumpimage -l /tmp/binmant.zxqd880s/fit_data.fit': Error: Load Address must be set.
<marex> seems like these two need fixing
vagrantc has joined #u-boot
mncheck has quit [Ping timeout: 240 seconds]
mmu_man has quit [Ping timeout: 256 seconds]