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
u0_a127 has joined #riscv
naoki has joined #riscv
<dh`> you need the fault address, then compare it to a disassembly of what was running
<dh`> looks like you first need to figure out what was running
vagrantc has quit [Quit: leaving]
<unlord> dh`: yeah, that is my first problem
<unlord> because I'm running emerge inside that chroot, it is doing all sorts of things
<dh`> indeed
<unlord> unfortunately, it is not deterministic, as in if I run just that command it doesn't error again
<dh`> maybe strace it
<unlord> strace on the chroot command?
<unlord> or inside the vm?
<dh`> you could, or chroot 'strace emerge fail'
<dh`> but it will print tons of useless glop
<unlord> this is using binfmt_misc to use x86_64 /usr/bin/qemu-riscv64 on every binary
<unlord> I am trying to narrow this down but it has been really hard
Armand has quit [Ping timeout: 260 seconds]
<dh`> hmm
<dh`> write a wrapper around /usr/bin/qemu-riscv64 to log its argumetns
<unlord> I've actually already done that :)
Armand has joined #riscv
<unlord> is there a way to pass arguments to qemu-riscv64 to tell it to write a log when it encounters an illegal instruction?
<dh`> dunno, maybe
<dh`> hmm
<dh`> > /var/tmp/portage/._portage_reinstall_.9v8uz7ol/bin/misc-functions.sh: line 82: 32824 Illegal instruction
<dh`> rude of it to execute from a temp area, which I'm sure it deletes on error so you can't inspect it afterward
<dh`> but, if you can get it to _stop_ you can examine that file
<unlord> yeah, that stuff is all gone
<unlord> I think there is a FEATURE for this
eshep_ has quit [Ping timeout: 272 seconds]
fuwei has quit [Ping timeout: 264 seconds]
eshep has joined #riscv
heat has joined #riscv
<sorear> there's `-d in` but that logs legal instructions as well
<sorear> useful, but kind of verbose
heat has quit [Quit: Leaving]
u0_a127 has quit [Ping timeout: 264 seconds]
eshep has quit [Read error: Connection reset by peer]
u0_a127 has joined #riscv
eshep has joined #riscv
BootLayer has joined #riscv
eshep has quit [Ping timeout: 252 seconds]
eshep has joined #riscv
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
tanami has quit [Ping timeout: 272 seconds]
tanami has joined #riscv
fabs has quit [Remote host closed the connection]
jacklsw has joined #riscv
motherfsck has quit [Quit: quit]
BootLayer has quit [Quit: Leaving]
aredridel has quit [Ping timeout: 256 seconds]
shoragan has joined #riscv
eshep has quit [Ping timeout: 268 seconds]
eshep has joined #riscv
Armand has quit [Killed (NickServ (GHOST command used by Armand11))]
Armand has joined #riscv
Armand has quit [Killed (NickServ (GHOST command used by Armand11))]
armand__ has joined #riscv
fuwei has joined #riscv
<courmisch> qemu can save logs to file, but I never remember the syntax and it generates A LOT of data
u0_a127 has quit [Ping timeout: 268 seconds]
eshep has quit [Ping timeout: 268 seconds]
eshep has joined #riscv
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #riscv
ldevulder has joined #riscv
u0_a127 has joined #riscv
motherfsck has joined #riscv
fuwei has quit [Quit: Konversation terminated!]
eshep has quit [Ping timeout: 256 seconds]
eshep has joined #riscv
raym has joined #riscv
jacklsw has quit [Quit: Back to the real world]
eshep_ has joined #riscv
eshep_ has quit [Read error: Connection reset by peer]
eshep__ has joined #riscv
eshep_ has joined #riscv
eshep has quit [Ping timeout: 268 seconds]
eshep has joined #riscv
Noisytoot has quit [Ping timeout: 246 seconds]
eshep__ has quit [Ping timeout: 255 seconds]
eshep_ has quit [Ping timeout: 268 seconds]
knolle has quit [Ping timeout: 255 seconds]
knolle has joined #riscv
Noisytoot has joined #riscv
coldfeet has joined #riscv
davidlt has joined #riscv
fuwei has joined #riscv
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
fuwei has quit [Quit: Konversation terminated!]
Andre_Z has joined #riscv
knolle has quit [Quit: bye]
knolle has joined #riscv
eshep_ has joined #riscv
eshep has quit [Ping timeout: 255 seconds]
<unlord> heh
eshep has joined #riscv
coldfeet has quit [Remote host closed the connection]
<unlord> Does upstream gcc test building gcc with -march=rv64gcv_zvlXXXb ?
eshep_ has quit [Ping timeout: 268 seconds]
Stat_headcrabed has joined #riscv
<courmisch> probably not?
<unlord> because I did emerge -e with COMMON_FLAGS="-O3 -march=rv64gcv_zvl256b -pipe"
Stat_headcrabed has quit [Quit: Stat_headcrabed]
davidlt has quit [Ping timeout: 264 seconds]
davidlt has joined #riscv
<unlord> unaligned memory access strikes again
davidlt has quit [Ping timeout: 255 seconds]
u0_a127 has quit [Read error: Connection reset by peer]
u0_a127 has joined #riscv
knolle has quit [Ping timeout: 256 seconds]
knolle has joined #riscv
u0_a127 has quit [Read error: Connection reset by peer]
u0_a127 has joined #riscv
eshep_ has joined #riscv
eshep has quit [Ping timeout: 256 seconds]
eshep has joined #riscv
eshep_ has quit [Ping timeout: 268 seconds]
eshep has quit [Ping timeout: 268 seconds]
eshep has joined #riscv
naoki has quit [Quit: naoki]
<unlord> courmisch: ping
u0_a1272 has joined #riscv
u0_a127 has quit [Ping timeout: 252 seconds]
<courmisch> unlord: ICMPv6 Echo Repmy
<unlord> custom building gcc with zvl256b breaks https://pastebin.com/PvjUG86f
<courmisch> yes? not sure why I'm pinged
<unlord> oh, I was going to ask you about that instruction, but eventually I figured it out
<courmisch> what's the type of `a1` here?
<unlord> I print the register value, I would need to rebuild gcc with symbols and frame pointers to learn more
<courmisch> the consensus here seems to be that userspace is allowed to do unaligned vector accesses and it's S or M's job to fix it up
<unlord> courmisch: so what is weird is that I was running under qemu-user and getting errors too
<unlord> but it was non-deterministic, this command under qemu is fine
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
mubluekoor has quit [Quit: mubluekoor]
mubluekoor has joined #riscv
eshep_ has joined #riscv
eshep has quit [Ping timeout: 246 seconds]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Stat_headcrabed has joined #riscv
Noisytoot has joined #riscv
u0_a1272 has quit [Ping timeout: 252 seconds]
fuwei has joined #riscv
fuwei has quit [Client Quit]
fuwei has joined #riscv
danilogondolfo has quit [Ping timeout: 252 seconds]
danilogondolfo has joined #riscv
BootLayer has joined #riscv
hightower2 has quit [Ping timeout: 255 seconds]
fuwei has quit [Quit: Konversation terminated!]
fuwei has joined #riscv
topodelapradera has joined #riscv
coldfeet has joined #riscv
vagrantc has joined #riscv
fuwei has quit [Quit: Konversation terminated!]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #riscv
hightower2 has joined #riscv
iooi has joined #riscv
hightower3 has joined #riscv
danilogondolfo has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 252 seconds]
aredridel has joined #riscv
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #riscv
ACG has left #riscv [#riscv]
gnarchie has joined #riscv
BootLayer has quit [Quit: Leaving]
<JohnHenry> I want to keep a per-PTE (page table entry) cpumask in Linux. I don't have enough spare bits in the PTE itself. Are there any parallel structures I should be looking at using?
<unlord> courmisch: https://pastebin.com/G5dE5FVE <-- more context
balrog has quit [Quit: Bye]
coldfeet has quit [Remote host closed the connection]
<courmisch> unlord: not sure why you're highlighting me. I am not a GCC dev
<sorear> historically there's the vm_area, the struct page, and the address_space for some kinds of mappings, I haven't managed to learn folios yet
<courmisch> there's an arch range in vm_flags, IIRC
* courmisch denies having abused it on arm64
balrog has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<JohnHenry> thanks for the pointers, that's helpful
<JohnHenry> struct page is per-frame and is on my radar but I'd prefer per-virtual-page. I'm not sure that I want to set up a whole parallel page table but it might be the thing to do
foxbat has quit [Quit: bye]
Andre_Z has quit [Quit: Leaving.]
coldfeet has joined #riscv
foxbat has joined #riscv
naoki has joined #riscv
zjason`` has joined #riscv
zjason` has quit [Ping timeout: 256 seconds]
sevan has quit [Ping timeout: 264 seconds]
naoki has quit [Quit: naoki]
naoki has joined #riscv
fuel_ has joined #riscv
fuel has quit [Ping timeout: 255 seconds]
fuel__ has joined #riscv
fuel_ has quit [Ping timeout: 240 seconds]
fuel__ is now known as fuel
sevan has joined #riscv
coldfeet has quit [Remote host closed the connection]
zapb_ has quit [Quit: *]
zapb_ has joined #riscv
zapb_ has quit [Remote host closed the connection]
zapb_ has joined #riscv
<dlan>
ldevulder has quit [Quit: Leaving]
chripo has quit [Quit: ""]
chripo has joined #riscv
iooi has quit [Remote host closed the connection]
chripo is now known as Guest225
iooi has joined #riscv
DesRoin has quit [Ping timeout: 256 seconds]
DesRoin has joined #riscv