00:10
u0_a127 has joined #riscv
00:33
naoki has joined #riscv
00:34
<
dh` >
you need the fault address, then compare it to a disassembly of what was running
00:34
<
dh` >
looks like you first need to figure out what was running
00:41
vagrantc has quit [Quit: leaving]
00:43
<
unlord >
dh`: yeah, that is my first problem
00:43
<
unlord >
because I'm running emerge inside that chroot, it is doing all sorts of things
00:43
<
unlord >
unfortunately, it is not deterministic, as in if I run just that command it doesn't error again
00:43
<
dh` >
maybe strace it
00:44
<
unlord >
strace on the chroot command?
00:45
<
unlord >
or inside the vm?
00:45
<
dh` >
you could, or chroot 'strace emerge fail'
00:45
<
dh` >
but it will print tons of useless glop
00:45
<
unlord >
this is using binfmt_misc to use x86_64 /usr/bin/qemu-riscv64 on every binary
00:46
<
unlord >
I am trying to narrow this down but it has been really hard
00:46
Armand has quit [Ping timeout: 260 seconds]
00:48
<
dh` >
write a wrapper around /usr/bin/qemu-riscv64 to log its argumetns
00:48
<
unlord >
I've actually already done that :)
00:48
Armand has joined #riscv
00:48
<
unlord >
is there a way to pass arguments to qemu-riscv64 to tell it to write a log when it encounters an illegal instruction?
00:51
<
dh` >
> /var/tmp/portage/._portage_reinstall_.9v8uz7ol/bin/misc-functions.sh: line 82: 32824 Illegal instruction
00:51
<
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
00:51
<
dh` >
but, if you can get it to
_stop_ you can examine that file
00:51
<
unlord >
yeah, that stuff is all gone
00:52
<
unlord >
I think there is a FEATURE for this
00:56
eshep_ has quit [Ping timeout: 272 seconds]
00:58
fuwei has quit [Ping timeout: 264 seconds]
01:00
eshep has joined #riscv
01:09
heat has joined #riscv
02:16
<
sorear >
there's `-d in` but that logs legal instructions as well
02:16
<
sorear >
useful, but kind of verbose
02:18
heat has quit [Quit: Leaving]
02:23
u0_a127 has quit [Ping timeout: 264 seconds]
02:32
eshep has quit [Read error: Connection reset by peer]
02:32
u0_a127 has joined #riscv
02:32
eshep has joined #riscv
02:33
BootLayer has joined #riscv
03:34
eshep has quit [Ping timeout: 252 seconds]
03:35
eshep has joined #riscv
03:58
TMM has joined #riscv
04:11
tanami has quit [Ping timeout: 272 seconds]
04:11
tanami has joined #riscv
04:12
fabs has quit [Remote host closed the connection]
04:15
jacklsw has joined #riscv
04:16
motherfsck has quit [Quit: quit]
04:32
BootLayer has quit [Quit: Leaving]
04:33
aredridel has quit [Ping timeout: 256 seconds]
04:47
shoragan has joined #riscv
04:56
eshep has quit [Ping timeout: 268 seconds]
05:00
eshep has joined #riscv
06:29
Armand has quit [Killed (NickServ (GHOST command used by Armand11))]
06:30
Armand has joined #riscv
06:31
Armand has quit [Killed (NickServ (GHOST command used by Armand11))]
06:31
armand__ has joined #riscv
06:33
fuwei has joined #riscv
06:34
<
courmisch >
qemu can save logs to file, but I never remember the syntax and it generates A LOT of data
06:48
u0_a127 has quit [Ping timeout: 268 seconds]
06:50
eshep has quit [Ping timeout: 268 seconds]
06:51
eshep has joined #riscv
07:23
prabhakalad has quit [Quit: Konversation terminated!]
07:23
prabhakalad has joined #riscv
07:35
ldevulder has joined #riscv
07:51
u0_a127 has joined #riscv
07:57
motherfsck has joined #riscv
08:44
fuwei has quit [Quit: Konversation terminated!]
08:45
eshep has quit [Ping timeout: 256 seconds]
08:49
eshep has joined #riscv
09:11
raym has joined #riscv
09:17
jacklsw has quit [Quit: Back to the real world]
09:19
eshep_ has joined #riscv
09:21
eshep_ has quit [Read error: Connection reset by peer]
09:21
eshep__ has joined #riscv
09:22
eshep_ has joined #riscv
09:23
eshep has quit [Ping timeout: 268 seconds]
09:24
eshep has joined #riscv
09:24
Noisytoot has quit [Ping timeout: 246 seconds]
09:26
eshep__ has quit [Ping timeout: 255 seconds]
09:29
eshep_ has quit [Ping timeout: 268 seconds]
09:31
knolle has quit [Ping timeout: 255 seconds]
09:32
knolle has joined #riscv
09:38
Noisytoot has joined #riscv
09:51
coldfeet has joined #riscv
09:56
davidlt has joined #riscv
10:01
fuwei has joined #riscv
10:07
Noisytoot has quit [Remote host closed the connection]
10:07
Noisytoot has joined #riscv
10:08
fuwei has quit [Quit: Konversation terminated!]
10:14
Andre_Z has joined #riscv
10:17
knolle has quit [Quit: bye]
10:17
knolle has joined #riscv
10:22
eshep_ has joined #riscv
10:25
eshep has quit [Ping timeout: 255 seconds]
10:36
eshep has joined #riscv
10:37
coldfeet has quit [Remote host closed the connection]
10:37
<
unlord >
Does upstream gcc test building gcc with -march=rv64gcv_zvlXXXb ?
10:41
eshep_ has quit [Ping timeout: 268 seconds]
10:57
Stat_headcrabed has joined #riscv
11:04
<
courmisch >
probably not?
11:07
<
unlord >
because I did emerge -e with COMMON_FLAGS="-O3 -march=rv64gcv_zvl256b -pipe"
11:11
Stat_headcrabed has quit [Quit: Stat_headcrabed]
11:28
davidlt has quit [Ping timeout: 264 seconds]
11:45
davidlt has joined #riscv
12:40
<
unlord >
unaligned memory access strikes again
12:50
davidlt has quit [Ping timeout: 255 seconds]
12:54
u0_a127 has quit [Read error: Connection reset by peer]
12:55
u0_a127 has joined #riscv
12:58
knolle has quit [Ping timeout: 256 seconds]
13:00
knolle has joined #riscv
13:01
u0_a127 has quit [Read error: Connection reset by peer]
13:01
u0_a127 has joined #riscv
13:02
eshep_ has joined #riscv
13:03
eshep has quit [Ping timeout: 256 seconds]
13:06
eshep has joined #riscv
13:10
eshep_ has quit [Ping timeout: 268 seconds]
13:16
eshep has quit [Ping timeout: 268 seconds]
13:17
eshep has joined #riscv
13:21
naoki has quit [Quit: naoki]
13:24
<
unlord >
courmisch: ping
13:43
u0_a1272 has joined #riscv
13:46
u0_a127 has quit [Ping timeout: 252 seconds]
13:51
<
courmisch >
unlord: ICMPv6 Echo Repmy
13:54
<
courmisch >
yes? not sure why I'm pinged
13:54
<
unlord >
oh, I was going to ask you about that instruction, but eventually I figured it out
13:54
<
courmisch >
what's the type of `a1` here?
13:55
<
unlord >
I print the register value, I would need to rebuild gcc with symbols and frame pointers to learn more
13:57
<
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
13:57
<
unlord >
courmisch: so what is weird is that I was running under qemu-user and getting errors too
13:58
<
unlord >
but it was non-deterministic, this command under qemu is fine
14:08
TMM has joined #riscv
14:09
mubluekoor has quit [Quit: mubluekoor]
14:10
mubluekoor has joined #riscv
14:14
eshep_ has joined #riscv
14:17
eshep has quit [Ping timeout: 246 seconds]
14:24
Stat_headcrabed has joined #riscv
14:42
Noisytoot has joined #riscv
14:46
u0_a1272 has quit [Ping timeout: 252 seconds]
14:53
fuwei has joined #riscv
14:57
fuwei has quit [Client Quit]
14:59
fuwei has joined #riscv
15:05
danilogondolfo has quit [Ping timeout: 252 seconds]
15:06
danilogondolfo has joined #riscv
15:21
BootLayer has joined #riscv
15:27
hightower2 has quit [Ping timeout: 255 seconds]
15:38
fuwei has quit [Quit: Konversation terminated!]
15:38
fuwei has joined #riscv
15:58
topodelapradera has joined #riscv
16:09
coldfeet has joined #riscv
16:16
vagrantc has joined #riscv
16:33
fuwei has quit [Quit: Konversation terminated!]
16:48
Noisytoot has joined #riscv
16:51
hightower2 has joined #riscv
17:05
iooi has joined #riscv
17:07
hightower3 has joined #riscv
17:09
danilogondolfo has quit [Remote host closed the connection]
17:09
hightower2 has quit [Ping timeout: 252 seconds]
17:11
aredridel has joined #riscv
17:13
Noisytoot has joined #riscv
17:16
ACG has left #riscv [#riscv]
17:17
gnarchie has joined #riscv
17:29
BootLayer has quit [Quit: Leaving]
17:34
<
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?
17:36
balrog has quit [Quit: Bye]
17:46
coldfeet has quit [Remote host closed the connection]
17:53
<
courmisch >
unlord: not sure why you're highlighting me. I am not a GCC dev
17:53
<
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
17:54
<
courmisch >
there's an arch range in vm_flags, IIRC
17:54
* courmisch
denies having abused it on arm64
18:09
balrog has joined #riscv
18:44
Stat_headcrabed has quit [Quit: Stat_headcrabed]
19:10
<
JohnHenry >
thanks for the pointers, that's helpful
19:11
<
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
19:34
foxbat has quit [Quit: bye]
19:40
Andre_Z has quit [Quit: Leaving.]
19:40
coldfeet has joined #riscv
19:51
foxbat has joined #riscv
19:51
naoki has joined #riscv
20:09
zjason`` has joined #riscv
20:11
zjason` has quit [Ping timeout: 256 seconds]
20:12
sevan has quit [Ping timeout: 264 seconds]
20:23
naoki has quit [Quit: naoki]
20:24
naoki has joined #riscv
20:24
fuel_ has joined #riscv
20:26
fuel has quit [Ping timeout: 255 seconds]
20:34
fuel__ has joined #riscv
20:36
fuel_ has quit [Ping timeout: 240 seconds]
20:43
fuel__ is now known as fuel
20:53
sevan has joined #riscv
21:19
coldfeet has quit [Remote host closed the connection]
21:24
zapb_ has quit [Quit: *]
21:24
zapb_ has joined #riscv
21:24
zapb_ has quit [Remote host closed the connection]
21:25
zapb_ has joined #riscv
22:10
ldevulder has quit [Quit: Leaving]
22:15
chripo has quit [Quit: ""]
22:15
chripo has joined #riscv
22:16
iooi has quit [Remote host closed the connection]
22:16
chripo is now known as Guest225
22:17
iooi has joined #riscv
23:05
DesRoin has quit [Ping timeout: 256 seconds]
23:06
DesRoin has joined #riscv