ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
rbutler1728 has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 252 seconds]
Pali has quit [Ping timeout: 258 seconds]
nashpa has joined #armlinux
dliviu has quit [Ping timeout: 252 seconds]
iivanov has joined #armlinux
iivanov has quit [Ping timeout: 264 seconds]
amitk has joined #armlinux
Misotauros has quit [Ping timeout: 260 seconds]
guillaume_g has joined #armlinux
monstr has joined #armlinux
ardb has joined #armlinux
iivanov has joined #armlinux
apritzel has joined #armlinux
mrutland- has joined #armlinux
jn_ has joined #armlinux
jn_ has joined #armlinux
jn_ has quit [Changing host]
iokill_ has joined #armlinux
shenki_ has joined #armlinux
y0gurt has joined #armlinux
zkrx has quit [Killed (NickServ (GHOST command used by zkrx_))]
zkrx has joined #armlinux
leming_ has joined #armlinux
mrutland has quit [Ping timeout: 260 seconds]
iokill has quit [Ping timeout: 260 seconds]
shenki has quit [Ping timeout: 260 seconds]
milkylainen has quit [Ping timeout: 260 seconds]
jn has quit [Ping timeout: 260 seconds]
theborger has quit [Ping timeout: 260 seconds]
leming has quit [Ping timeout: 260 seconds]
leming_ is now known as leming
apritzel has quit [Ping timeout: 264 seconds]
matthias_bgg has joined #armlinux
Pali has joined #armlinux
djrscally has joined #armlinux
milkylainen has joined #armlinux
sszy has joined #armlinux
Pali has quit [Ping timeout: 260 seconds]
tre has joined #armlinux
Misotauros has joined #armlinux
jn_ is now known as jn
apritzel has joined #armlinux
tudorel has joined #armlinux
<ukleinek>
broonie: just noticed by chance the link in commit 4ccf359849ce709f4bf0214b4b5b8b6891d38770 yields a 404
<geertu>
ukleinek: works for me?
<geertu>
Something truncated/wrapped the long Link: tag?
<ukleinek>
geertu: indeed, double-checking shows I omitted ".org" from the link, sorry for the noise
robinp_ has joined #armlinux
robinp has quit [Ping timeout: 268 seconds]
Turingtoast has joined #armlinux
Amit_T has joined #armlinux
<arnd>
ardb: on today's linux-next, I get this randconfig link failure: "ld.lld: error: undefined symbol: __aeabi_read_tp".
<arnd>
So far, only one instance out of ~100 builds, but I never saw it with yesterday's linux-next or before
<arnd>
I think it's from __builtin_thread_pointer() in your commit 50596b7559bf ("ARM: smp: Store current pointer in TPIDRURO register if available")
<arnd>
this is a thumb2-enabled kernel
<arnd>
I see it happen with clang-13 and clang-14 but not gcc-11, may be a clang bug
monstr has quit [Ping timeout: 258 seconds]
monstr has joined #armlinux
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
torez has joined #armlinux
ardb has quit [Ping timeout: 264 seconds]
jlinton has joined #armlinux
Turingtoast has joined #armlinux
matthias_bgg has quit [Ping timeout: 260 seconds]
headless has joined #armlinux
tre has quit [Remote host closed the connection]
matthias_bgg has joined #armlinux
matthias_bgg has quit [Ping timeout: 258 seconds]
monstr has quit [Remote host closed the connection]
guillaume_g has quit [Quit: Konversation terminated!]
Nact has joined #armlinux
matthias_bgg has joined #armlinux
tudorel has quit [Remote host closed the connection]
<arnd>
yes, I don't see there is any point expecting the device naming in user space to be correlated with naming in SoC specifications, there are just too many layers between the two, and the aliases to me are just a way for the OS to get stable naming across boots, not necessarily the naming that a hardware person dreamed up
<dianders>
> there are just too many layers between the two
<dianders>
Hrm. I'm just not sure I see all the layers. ...and it seems to work fine so I guess I don't see the things that would make this difficult to keep working?
<dianders>
In any case, would you object to me putting all the exact same aliases in the board .dts file if they are removed from the .dtsi file (ideally, even the "disabled" ones so that the dynamic ones start later?). It will mean a bunch of duplication between dts files but <shrug>. It would really be a pain to go back to do a lookup each time I look at dmesg to figure out what i2c bus it's talking about again.
<arnd>
I'd prefer not to have any aliases for disabled nodes, that just seems silly
<dianders>
...but it has the advantage of forcing the "dynamic" numbering to start later, which is nice.
<arnd>
why not assign an alias for each bus then?
<arnd>
I mean each bus that is in the system, to make sure the off-soc ones also have stable names
<dianders>
LOL, I seem to remember getting yelled at for that type of thing before. Someone saying that the static numbering only made sense for well-defined numbers in the SoC. I'll see if I can dig it up.
<arnd>
that sounds very wrong, the whole point of the stable numbers is to make the naming stable regardless of the probe order or which driver gets loaded first
<ukleinek>
ideally however nothing would depend on the actual numbering
<amstan>
It certainly makes things more complicated if one has to worry about both the alias and enabling of the device. I don't see when it would be ever a good idea to have differing numbers in the dts vs userspace.
<dianders>
> that sounds very wrong, the whole point of the stable numbers is to make the naming stable regardless of the probe order or which driver gets loaded first
<dianders>
I couldn't find anything, so possibly I dreamed it. OK, I'm happy to do it like this if it makes people happy. I still would prefer the approach of it being in the .dtsi file but I agree that it's not too hard to put it in board .dts files and if it makes everyone happy then it's fine.
<dianders>
> ideally however nothing would depend on the actual numbering
<dianders>
Yeah, production code shouldn't deal with it. ...but during bringup / support of hardware, it's handy that when the EE says "OK, the device should be on i2c-4" that I can more easily find i2c-4 and I can easily find error messages in dmesg relating to i2c-4.
* broonie
notes there's a good solid reason why the regulator API allows arbitrary strings for labels that are separate to any object numbering.
torez has quit [Quit: torez]
<amstan>
if i were writing a kernel from scratch that was using a dt, i would prefer if userspace exposed my ports with the exact name the dt used
<amstan>
so this is why this aliases business confused me
<amstan>
but i expect in linux it's due to historical reasons
<arnd>
amstan: I think the unit-names with the hexadecimal addresses would be rather confusing if you try to use them to match the chardev device numbers. Historically those could only be 8-bit numbers, I think we can do 32-bit device nodes now (or close to that), but not 64-bit
<arnd>
so you'd need some form of mapping anyway
<arnd>
and if you are thinking of the labels in the DT, those are not really meant to be interpreted, they are just syntactic sugar to avoid spelling out the whole device path every time you refer to a node in dts
headless has quit [Quit: Konversation terminated!]
amitk has quit [Ping timeout: 258 seconds]
ardb has quit [Ping timeout: 258 seconds]
y0gurt is now known as theborger
iivanov has quit [Remote host closed the connection]
russ has quit [Ping timeout: 258 seconds]
jwerner has quit [Quit: leaving]
jwerner has joined #armlinux
jwerner has quit [Client Quit]
djrscally has quit [Quit: Konversation terminated!]
jwerner has joined #armlinux
russ has joined #armlinux
djrscally has joined #armlinux
djrscally has quit [Ping timeout: 260 seconds]
russ has quit [Ping timeout: 260 seconds]
<mmind00>
arnd: at least for i2c there are things like i2cdetect as well ... as dianders noted having busses that are labeled on the soc-side (i2c2 etc) named completely different in aliases might produce strange effects
<mmind00>
arnd: i.e. amateur developer wants to add a yet unsuported i2c device, finds it on i2c2 without realising that there is that alias in between which actually makes that i2c5 on the soc