xypron changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot 2023.01 / Merge Window is OPEN / Release v2023.04 is scheduled for 2023-04-03 / Channel archives at https://libera.irclog.whitequark.org/u-boot
sakman has joined #u-boot
<kallisti5[m]> xypron: that's the rub though.. they're all 8250 compatible. Having cases for each individual uart implementation seems like overkill. The fdt is literally right there
<kallisti5[m]> The only difference is the reg-shift
hanetzer has joined #u-boot
<Tartarus> kallisti5: I think in sum, getting someone from another OS to speak up about the oddity of this binding might be helpful
<Tartarus> I swore that initially reg-shift was if not required heavily used
<Tartarus> and then it got changed
<kallisti5[m]> Tom Rini: What gets me is the reg-shift concept is really clear
<kallisti5[m]> this "on some architectures with this uart compat string, you need to blah blah blah"
<kallisti5[m]> is weird
<kallisti5[m]> Tom Rini: where would I speak up about that stuff? It's such a wide-reaching thing
<kallisti5[m]> oh hell LOL
<marex> kallisti5[m]: but you can derive the reg-shift from compatible string :)
<kallisti5[m]> "If unspecified, the default value is 0."
<kallisti5[m]> for reg-shift.
<kallisti5[m]> It's even in the spec
<Tartarus> Yeah
<Tartarus> And looking at the linux drivers
<Tartarus> many sub-drivers hard code the right value
<kallisti5[m]> hell. I'm going to follow the spec. That means the SiFive unmatched and a bunch of other boards need the reg-shift
<kallisti5[m]> Tom Rini: so. what's the best central location to submit dtb fixes? linux or u-boot?
<Tartarus> devicetree-spec
<Tartarus> well, and linnux
* marex grabs popcorn
* kallisti5[m] grabs a hammer
thopiekar has quit [Ping timeout: 260 seconds]
thopiekar has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
vagrantc has joined #u-boot
sugarbeet has joined #u-boot
sugarbeet has left #u-boot [#u-boot]
PhoenixMage has quit [Ping timeout: 256 seconds]
PhoenixMage has joined #u-boot
mmu_man has quit [Ping timeout: 255 seconds]
Wouter0100670 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670 has joined #u-boot
vagrantc has quit [Quit: leaving]
ikarso has joined #u-boot
mwalle has quit [Quit: WeeChat 3.0]
goliath has joined #u-boot
monstr has joined #u-boot
frieder has joined #u-boot
goliath has quit [Quit: SIGSEGV]
mwalle has joined #u-boot
sszy has joined #u-boot
mckoan|away is now known as mckoan
prabhakarlad has joined #u-boot
goliath has joined #u-boot
apritzel_ has joined #u-boot
apritzel_ is now known as apritzel
hanetzer has quit [Ping timeout: 265 seconds]
hanetzer has joined #u-boot
Wouter0100670 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670 has joined #u-boot
zibolo has joined #u-boot
hanetzer has quit [Ping timeout: 256 seconds]
hanetzer has joined #u-boot
mmu_man has joined #u-boot
macromorgan has quit [Killed (silver.libera.chat (Nickname regained by services))]
macromorgan has joined #u-boot
Wouter01006704 has joined #u-boot
shyeline_ has joined #u-boot
Patater has joined #u-boot
jamestperk_ has joined #u-boot
pavelow_ has joined #u-boot
marex_ has joined #u-boot
uzix has joined #u-boot
uzix has joined #u-boot
uzix has quit [Changing host]
mckoan_ has joined #u-boot
teejay_ has joined #u-boot
qschulz_ has joined #u-boot
alpernebbi_ has joined #u-boot
mwalle has quit [*.net *.split]
Wouter0100670 has quit [*.net *.split]
DrPatater has quit [*.net *.split]
teejay has quit [*.net *.split]
qschulz has quit [*.net *.split]
mckoan has quit [*.net *.split]
flyback has quit [*.net *.split]
shyeline has quit [*.net *.split]
alpernebbi has quit [*.net *.split]
mahk has quit [*.net *.split]
pavelow has quit [*.net *.split]
jamestperk has quit [*.net *.split]
marex has quit [*.net *.split]
Wouter01006704 is now known as Wouter0100670
shyeline_ is now known as shyeline
jamestperk_ is now known as jamestperk
flyback has joined #u-boot
mwalle has joined #u-boot
alpernebbi_ is now known as alpernebbi
torez has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
qschulz_ is now known as qschulz
uzix is now known as mahk
marex_ is now known as marex
monstr has quit [Remote host closed the connection]
goliath has quit [Quit: SIGSEGV]
Wouter0100670 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter01006704 has joined #u-boot
mmu_man has quit [Quit: reboot]
mmu_man has joined #u-boot
<apalos> sjg1: on that TPM fails
<apalos> So the problem with u-boot right now is that we rely on the *command* line to activate the device
<apalos> Since we expect the device to be up and running once the dm probe is done, I'll change that part and issue an auto start of the tpm
<apalos> iow run tpm-selftests and tpm startup on probe,
<apalos> because right now we have that initialization in the efi libraries, which is only fixing the problem for EFI
<apalos> but really we cant probe a device and say "OK" and t he expect commands from the console to have it up and running
<apalos> probe = not on DM probe, but the first time the device is opened
guillaume_g has quit [Quit: Konversation terminated!]
mmu_man has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
goliath has joined #u-boot
naoki has quit [Quit: naoki]
___nick___ has joined #u-boot
mckoan_ is now known as mckoan|away
teejay_ is now known as teejay
frieder has quit [Remote host closed the connection]
PhoenixMage has quit [Ping timeout: 252 seconds]
PhoenixMage has joined #u-boot
PhoenixMage has quit [Ping timeout: 264 seconds]
PhoenixMage has joined #u-boot
PhoenixMage has quit [Ping timeout: 248 seconds]
PhoenixMage has joined #u-boot
vagrantc has joined #u-boot
PhoenixMage has quit [Ping timeout: 252 seconds]
PhoenixMage has joined #u-boot
ikarso has joined #u-boot
PhoenixMage has quit [Ping timeout: 255 seconds]
PhoenixMage has joined #u-boot
apritzel has quit [Ping timeout: 246 seconds]
ldevulder has quit [Quit: Leaving]
PhoenixMage has quit [Ping timeout: 246 seconds]
PhoenixMage has joined #u-boot
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<sjg1> apalos: Not on probe, needs to be on 'init'. Also remember that each firmware phase needs to be aware of what has happened before (maybe not for your use case, but is needed for Chrome OS)
<sjg1> Tartarus: I see the DM tag series is assigned to me. I plan to send a v2 to add the schema. But any thoughts on when it should be applied? I worry that if we do it soon it might interfere with pending patches (i.e. people need to rework them)
prabhakarlad has quit [Quit: Client closed]
<sjg1> Tartarus: So, perhaps either do it at rc2, if we are in a hurry, or -next when it opens?
<sjg1> Tartarus: (hmmm, perhaps they are the same thing)
<apalos> sjg1: what do you mean 'init
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<apalos> 'apalos | probe = not on DM probe, but the first time the device is opened
<apalos> that's what I was planning to do, the only init call I can find on DM, is the uclass init
___nick___ has joined #u-boot
<apalos> and I am not sure what exactly you need on Chrome OS, but if the TPM is already started properly, there's a distinct return code from the hardware
<apalos> So all we have to do, is run the startup and if the hardware returns "I already did that", don't treat it as an error
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
<Tartarus> sjg1: I think the hard part of the transition is going to be platforms that are in the middle of merging, yes, and don't get changed, and it's not obvious. Can you add a CI test to catch instances of the old nodes?
goliath has quit [Quit: SIGSEGV]
___nick___ has quit [Ping timeout: 252 seconds]
sakman has quit [Remote host closed the connection]
sakman has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
<sjg1> Tartarus: ah yes good idea, will do
<sjg1> apalos: Yes, understood, but we cannot have complex setup in the probe() method. I think it is tpm_open() that should do this. There is a parameter to be passed as well
prabhakarlad has joined #u-boot
vagrantc has quit [Quit: leaving]
vagrantc has joined #u-boot
sakman has quit [Quit: Leaving]
sakman has joined #u-boot
Wouter01006704 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter01006704 has joined #u-boot
Leopold has joined #u-boot
naoki has joined #u-boot
alpernebbi has quit [Read error: Connection reset by peer]
alpernebbi has joined #u-boot
hanetzer has quit [Read error: Connection reset by peer]
hanetzer has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
<sjg1> Tartarus: Speaking of transition, I'd quite like to get rid of the difference between CONFIG_IS_ENABLED() / IS_ENABLED() as well as drop the SPL_TPL_ macros, etc. I had a crack a year ago and spent a bit of time recently looking at it. Quite tricky but it would be a big clean-up
mmu_man has joined #u-boot
<Tartarus> Yeah, I'm not sure on the right order to do some of that in
<Tartarus> esp given some of the other messes that've been introduced by favoring if(CONFIG_IS_ENABLED(..)) over #ifdef
<Tartarus> (When CONFIG_B logically only makes sense with CONFIG_A enabled, we cannot do if(CONFIG_IS_ENABLED(CONFIG_A)) {int foo = CONFIG_B;} and so have run in to various wrong work-arounds for that problem)
<sjg1> Tartarus: I favour doing a reasonable first-pass conversion so that everything builds, then dealing with the run-time breakages. That in itself is a big undertaking. If we do it at the start of -next it provides a lot of time to fix things
<sjg1> Tartarus: Honestly it is borderlnie infeasible :-(
<Tartarus> Which?
<Tartarus> I think my biggest feedback / issue with dropping SPL_/TPL_/VPL_ is how do we configure and build things?
<sjg1> Basically we have separate autoconf for each phase, but generated from the same Kconfig
<sjg1> The ~infeasible bit is dealing with the conflicting use of the macros. E.g. if we use IS_ENABLED() in one place and CONFIG_IS_ENABLED() in another, is the option SPL-dependent, or not?
<sjg1> But when we get there is will be very nice and easy
<Tartarus> Ah. Yeah, I just worry how we
<Tartarus> 'll deal with the legitimate differences cases
<Tartarus> I don't know off-hand that the mmc quirks one is right
vagrantc has quit [Quit: leaving]
<sjg1> Tartarus: Neither do I. Once we get over the hump we will select the setting for each option in SPL, TPL, Proper, etc., with suitable defaults so that it mostly works (e.g. some we will enable by default in SPL if enabled in Proper)
<sjg1> One question is whether we want to update the Kconfig language to support this better!!
<Tartarus> I think this gets back to Yamada-san being right, way back when. We kinda-sorta need fooboard_defconfig, fooboard_spl_defconfig, etc, and then build + combine things