sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Matrix: #riscv:catircservices.org
Armand has quit [Remote host closed the connection]
Armand has joined #riscv
Noisytoot has quit [Excess Flood]
Noisytoot has joined #riscv
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
Noisytoot has quit [Excess Flood]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
jacklsw has joined #riscv
Noisytoot has joined #riscv
DesRoin has quit [Ping timeout: 248 seconds]
DesRoin has joined #riscv
Noisytoot has quit [Ping timeout: 276 seconds]
aredridel has joined #riscv
Noisytoot has joined #riscv
Maylay has quit [Ping timeout: 264 seconds]
Maylay has joined #riscv
BootLayer has joined #riscv
memset has quit [Remote host closed the connection]
memset has joined #riscv
jacklsw has quit [Quit: Back to the real world]
khem has quit [Quit: WeeChat 4.3.5]
memset has quit [Remote host closed the connection]
memset has joined #riscv
alexghiti has joined #riscv
khem has joined #riscv
prabhakalad has quit [Ping timeout: 255 seconds]
prabhakalad has joined #riscv
memset has quit [Remote host closed the connection]
memset has joined #riscv
prabhakalad has quit [Ping timeout: 248 seconds]
prabhakalad has joined #riscv
heat has quit [Ping timeout: 252 seconds]
alexghiti has quit [Ping timeout: 252 seconds]
test924 has quit [Ping timeout: 252 seconds]
BootLayer has quit [Quit: Leaving]
prabhakalad has quit [Ping timeout: 252 seconds]
test924 has joined #riscv
alexghiti has joined #riscv
pecastro has joined #riscv
vgtw has quit [Quit: ZNC - https://znc.in]
ldevulder has joined #riscv
ema has quit [Quit: leaving]
ema has joined #riscv
xypron has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Noisytoot has quit [Ping timeout: 248 seconds]
Noisytoot has joined #riscv
Noisytoot has quit [Ping timeout: 276 seconds]
xypron has joined #riscv
xypron has joined #riscv
xypron has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xypron has joined #riscv
prabhakalad has joined #riscv
Noisytoot has joined #riscv
cleger has joined #riscv
crabbedhaloablut has quit []
memset has quit [Remote host closed the connection]
memset has joined #riscv
crabbedhaloablut has joined #riscv
zjason`` is now known as zjason
naoki has quit [Quit: naoki]
Andre_Z has joined #riscv
Tenkawa has joined #riscv
q66 has quit [Quit: WeeChat 4.3.5]
q66 has joined #riscv
cousteau has joined #riscv
<cousteau> I just ran `riscv32-unknown-elf-size main.elf` and got "text: 14403". How can the size of the instructions be an odd number?
<cousteau> Or does `text` include something other than instructions?
<sorear> it's not forbidden
<sorear> use objdump to see the breakdown per section?
<cousteau> I just ran readelf on the same file and I'm having a hard time interpreting the output. It ends in "section to segment mapping", with segment 00 (which I understand is "text") consisting of .vectors + .init + .text, which amounts to 12530, not 14403
<sorear> https://sourceware.org/binutils/docs/binutils/size.html says it defaults to including rodata in the text number
<cousteau> Oh
<cousteau> That's odd (no pun intended)
<sorear> "text" in `size` output is not a physical section or segment unless you're using a.out executables
<sorear> the elf data model is richer than what size can express
<cousteau> Well yeah, it's got sections
<sorear> it's useful for quick comparisons but not much beyond that
<sorear> I suspect it's adding together all sections (not segments) after grouping them by permissions
<cousteau> I kinda assumed it was something like that. text = the program, data = the constants and variables (with an initial value) that are not hard-coded into instructions, bss = zero-initialized variables that get zeroed out at program startup
<sorear> until well into this century "is this writable?" was considered more important than "is this executable?" so rodata is grouped with text by traditional executable formats
<cousteau> sorear: well, the only three sections with AX flag according to readelf (or with X in general) are .vectors, .init, and .text
<sorear> i686 and most other architectures from that era don't even distinguish between r-- and r-x permissions in hardware
coldfeet has joined #riscv
<cousteau> But yeah, closer inspection of the section to segment mapping in readelf makes it obvious that the segments are unrelated to text/data/bss
* cousteau checks the linker script
<sorear> QMAGIC, etc
<cousteau> Since it crams both .[s]data and .[s]bss into segment 02
<sorear> segment numbers don't mean anything
<sorear> you can reorder them without changing the meaning of an executable
<sorear> the permissions, flags, and vaddr/size matter
<cousteau> OK, so .vectors + .init + .text + .rodata = 14343. I'm still missing 60.
<cousteau> Must be .eh_frame (that one's exactly 60)
<cousteau> So basically all sections not marked as W
eightthree has quit [Ping timeout: 252 seconds]
eightthree has joined #riscv
JanC is now known as Guest6880
Guest6880 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
JanC has joined #riscv
<palmer> conchuod: I'm getting some sophgo clkgen DTS header error, same as here: https://lore.kernel.org/all/6699f5d6.170a0220.2cfbd1.1498@mx.google.com/
<conchuod> palmer: Not my fault, so nothing I can do about it!
<palmer> OK, so I'll just ignore it until they sort it out?
<conchuod> The header is in the clk tree
<conchuod> The sophgo lads just didn't realise the sequencing
<palmer> ya, makes sense
<conchuod> They probably never built their branch - I should tell them to get onto the linux test robot auto builder stuff.
heat has joined #riscv
jfsimon1981 has joined #riscv
<palmer> or maybe I'm just asleep...
Stat_headcrabed has joined #riscv
Andre_Z has quit [Quit: Leaving.]
cousteau has quit [Read error: Connection reset by peer]
cousteau has joined #riscv
cousteau has left #riscv [Leaving]
psydroid2 has joined #riscv
<conchuod> palmer: Yea, I think they did.
frkzoid has joined #riscv
freakazoid332 has joined #riscv
frkazoid333 has quit [Ping timeout: 252 seconds]
frkzoid has quit [Ping timeout: 276 seconds]
freakazoid332 has quit [Ping timeout: 276 seconds]
coldfeet has quit [Remote host closed the connection]
jfsimon1981 has quit [Read error: Connection reset by peer]
jfsimon1981 has joined #riscv
BootLayer has joined #riscv
ldevulder has quit [Quit: Leaving]
frkazoid333 has joined #riscv
frkazoid333 has quit [Read error: Connection reset by peer]
frkazoid333 has joined #riscv
vgtw has joined #riscv
dramforever has joined #riscv
<drewfustini> palmer: sorry about [PATCH] clk: T-Head: Disable on 32-bit Targets
<drewfustini> I had thought because the patchwork was clean it was okay
<drewfustini> I'll start doing 32bit too. What other tests should I run locally in the future?
<drewfustini> conchuod: is the solution for the sophgo problem to just wait a cycle between the bindings and the dts patches that reference them?
<conchuod> Only if you're TI and like delaying.
<conchuod> Otherwise, if you're sending PRs to both Arnd and Stephen, as was the case here IIRC, you can just put the binding headers on top of a -rc and use that as the base for your dts and driver patches.
<conchuod> That's what I've done whenever I've been in that position.
<drewfustini> But wouldn't it break if Linus pulls Arnd before Stephen?
<conchuod> How?
<drewfustini> If the dtsi references bindings header ?
<arnd> drewfustini: the way conchuod described, the bindings are on both branches, so they each build correct
<drewfustini> I assumed the bindings header would go through clk?
<conchuod> Maybe my wording was not clear, the binding headers are in both branches.
<conchuod> If you look at the thread palmer linked, there's an example in my mail.
<arnd> drewfustini: it might break at runtime if the dt changes add a clock that becomes mandatory and the driver isn't there yet. Ideally any change to the dts should be backward-compatible and only add new functionality but for a brand new chip it does happen that the kernel no longer boots if you are missing an essential driver that wasn't needed before
memset has quit [Remote host closed the connection]
memset has joined #riscv
<conchuod> Which will often happen when the first clock controller driver gets added - but I've completely soured on adding anything with only stub fixed-clocks that will be replaced later.
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #riscv
<drewfustini> Thanks arnd and conchuod
<drewfustini> I suppose one solution is to use integers in the clock properties until the next cycle?
<drewfustini> I'm just worried about being a similar offender and want to make sure I do best practices
<conchuod> Just build your own branch before sending a PR (or get lkp to build it for you) and it won't happen.
<arnd> right, and try to use an early -rc as a base, not the latest at the time: if I have the soc/dt branch e.g. based on -rc2 but you send a PR based on -rc3, that creates an ugly back-merge. For normal branches I would just ask you to rebase and resend if that happens, but you can't rebase if the branch is shared with another tree
<palmer> ya, just push stuff to next and it'll sort itself out ;)
<conchuod> In this case, linux-next hid it cos it had both branches ;)
<drewfustini> Okay, I'll be sure to look at the base of soc/dt
<drewfustini> I did get my tree added to next for thead-dt-fixes and thead-dt-for-next.
<drewfustini> I have not yet added anything to them yet. The SPI controller dts patch would be the first
<drewfustini> Thanks for all the explanation
<drewfustini> conchuod: is lkp the Intel bot?
dramforever has quit [Ping timeout: 248 seconds]
<drewfustini> Ah so it can be run locally
<drewfustini> I always thought of it as something Intel runs and not something that individuals can run
<drewfustini> Thanks
cleger has quit [Remote host closed the connection]
Andre_Z has joined #riscv
fuwei has quit [Quit: Konversation terminated!]
fuwei has joined #riscv
coldfeet has joined #riscv
mlw has joined #riscv
<conchuod> I've never run it locally, but they build my branches with their bots.
<drewfustini> Ah, is that because it's on kernel.org or did you have to ask?
dobson has quit [Quit: Leaving]
dobson has joined #riscv
vagrantc has joined #riscv
Andre_Z has quit [Quit: Leaving.]
crabbedhaloablut has quit []
crabbedhaloablut has joined #riscv
sajattack has quit [Ping timeout: 255 seconds]
<conchuod> Auto cos kernel.org, but you can send them PRs for that repo.
sajattack has joined #riscv
memset has quit [Remote host closed the connection]
memset has joined #riscv
BootLayer has quit [Quit: Leaving]
alexghiti has quit [Ping timeout: 252 seconds]
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Client Quit]
<drewfustini> thanks, do you PR on the lkp-tests repo like https://github.com/intel/lkp-tests/pulls ?
<drewfustini> i mean
mlw has quit [Quit: leaving]
<drewfustini> going back to the 32-bit failure on the T-Head clk driver, shouldn't this have failed too?
<drewfustini> conchuod/patch-2-test-1success.github/scripts/patches/tests/build_rv32_defconfig.sh
<conchuod> Might not build it
<vagrantc> /9/9
<drewfustini> ah because of the defconfig?
<conchuod> Ye, defconfig might not include the driver
<conchuod> we only do allmodconfig for 64 bit iirc
<drewfustini> ok, thanks
arcade_droid has quit [Quit: Quit]
arcade_droid has joined #riscv
vagrantc has quit [Quit: leaving]
memset has quit [Remote host closed the connection]
memset has joined #riscv
SpaceCoaster has quit [Quit: Bye]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
SpaceCoaster has joined #riscv
arcade_droid has quit [Quit: Quit]
arcade_droid has joined #riscv
SpaceCoaster has quit [Client Quit]
SpaceCoaster has joined #riscv
psydroid2 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
impomatic has joined #riscv
coldfeet has quit [Remote host closed the connection]
tec has quit [Quit: bye!]
tec has joined #riscv
arcade_droid has quit [Quit: Quit]
arcade_droid has joined #riscv
arcade_droid has quit [Quit: Quit]
arcade_droid has joined #riscv
beber_ has quit [Quit: Gateway shutdown]
beber_ has joined #riscv
beber_ has quit [Quit: Gateway shutdown]
beber_ has joined #riscv
DesRoin has quit [Ping timeout: 276 seconds]
DesRoin has joined #riscv
impomatic has quit [Quit: Client closed]
dramforever has joined #riscv
bugwhisperer has joined #riscv
bugwhisperer is now known as Guest9126
Guest9126 has quit [Client Quit]