sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
dlan has quit [Quit: leaving]
dlan has joined #riscv
lemoniter has quit [Ping timeout: 265 seconds]
JanC_ has joined #riscv
JanC_ is now known as JanC
JanC has quit [Excess Flood]
JanC has joined #riscv
JanC_ has joined #riscv
JanC has quit [Read error: Connection reset by peer]
JanC_ is now known as JanC
vagrantc has quit [Quit: leaving]
pecastro has quit [Ping timeout: 240 seconds]
frkazoid333 has joined #riscv
frkazoid333 has quit [Read error: Connection reset by peer]
JanC_ has joined #riscv
JanC has quit [Killed (lead.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
jacklsw has joined #riscv
handsome_feng has joined #riscv
motherfsck has joined #riscv
MaxGanzII has quit [Ping timeout: 240 seconds]
motherfsck has quit [Ping timeout: 268 seconds]
motherfsck has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
JanC has quit [Ping timeout: 264 seconds]
fabs has joined #riscv
BootLayer has joined #riscv
motherfsck has quit [Ping timeout: 240 seconds]
jay321 has quit [Remote host closed the connection]
JanC has joined #riscv
junaid_ has joined #riscv
JanC has quit [Ping timeout: 265 seconds]
JanC has joined #riscv
heat has quit [Ping timeout: 240 seconds]
MaxGanzII has joined #riscv
heat has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
JanC has quit [*.net *.split]
jimbzy has quit [*.net *.split]
Perflosopher has quit [*.net *.split]
h2t has quit [*.net *.split]
crest has quit [*.net *.split]
ln5 has quit [*.net *.split]
paddymahoney has quit [*.net *.split]
shoragan has quit [*.net *.split]
q66 has quit [*.net *.split]
jbowen has quit [*.net *.split]
drewfustini has quit [*.net *.split]
elms has quit [*.net *.split]
seds has quit [*.net *.split]
khilman has quit [*.net *.split]
oaken-source has quit [*.net *.split]
nelnire has quit [*.net *.split]
edef has quit [*.net *.split]
nelnire has joined #riscv
jimbzy has joined #riscv
edef has joined #riscv
drewfustini has joined #riscv
edef has joined #riscv
edef has quit [Changing host]
elms has joined #riscv
khilman has joined #riscv
jbowen has joined #riscv
crest has joined #riscv
paddymahoney has joined #riscv
q66 has joined #riscv
seds has joined #riscv
shoragan has joined #riscv
ln5 has joined #riscv
seds has joined #riscv
seds has quit [Changing host]
shoragan has quit [Changing host]
shoragan has joined #riscv
h2t has joined #riscv
JanC has joined #riscv
oaken-source has joined #riscv
dipankar has quit [Read error: Connection reset by peer]
BootLayer has quit [Read error: Connection reset by peer]
BootLayer_ has joined #riscv
feldzeugmeister has quit [Ping timeout: 240 seconds]
indy has quit [Ping timeout: 240 seconds]
indy has joined #riscv
PobodysNerfect has joined #riscv
handsome_feng has quit [Quit: Connection closed for inactivity]
danilogondolfo has joined #riscv
vigneshr has joined #riscv
pharonix71 has quit [Remote host closed the connection]
pharonix71 has joined #riscv
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
lemoniter has joined #riscv
feldzeugmeister has joined #riscv
jacklsw has quit [Ping timeout: 256 seconds]
pecastro has joined #riscv
___nick___ has joined #riscv
junaid_ has quit [Remote host closed the connection]
aerkiaga has joined #riscv
FL4SHK has quit [Ping timeout: 256 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
___nick___ has joined #riscv
Andre_Z has joined #riscv
Tenkawa has joined #riscv
random-jellyfish has joined #riscv
aerkiaga has quit [Read error: Connection reset by peer]
aerkiaga has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
enoq has joined #riscv
jimbzy has joined #riscv
jimbzy has quit [Changing host]
heat_ has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat_ is now known as heat
FL4SHK has joined #riscv
<palmer> conchuod: maybe it's the mapping symbols?
<conchuod> palmer: re: relocatable?
<palmer> the odd stack trace
<palmer> they shouldn't make something crash, but I bet Linux's stack dumper just doesn't know about them and tries to print them out
<conchuod> Ah right, completely forgot about that!
<conchuod> It was already crashing due to no rootfs, I just never saw it do that before.
<palmer> I haven't either, but if you recently updated a toolchain that might be it
<palmer> IIRC they went into the latest binutils release, not sure about LLVM
<conchuod> Yeah, my vision5v2 stuff config uses 2.40 I think
<conchuod> I guess that means we need to patch the stack dumper then.
<palmer> I'd guess that's it, then. Maybe just send a bug report to LKML? I can probably get someone around here to fix it, Nelson added the mapping symbols
<conchuod> palmer: done ;)
<palmer> thanks
<conchuod> palmer: I hope I didn't ruin poor auld Alex's weekend!
<palmer> was he working over the weekend?
<conchuod> He was emailing me about the relocatable boot failures, yeah
<palmer> thanks for the heads up, I'll tell him thanks ;)
<conchuod> Oh dear, have I ratted him out to his boss for working on a bank holiday weekend?!
<palmer> no worries, I'm not his boss
<conchuod> I have no clue yet why that stuff is failing to boot for me though, I need to try some older compilers or w/e I think.
<palmer> cool. We can always revert/hide it if it's broken, but it'd be best to get to the bottom of it first
<conchuod> Yeah, we still have a good bit of time on it & the hibernation stuff. Although, I do not think the hibernation one is going to be fixed in 3 weeks.
<palmer> ya, I think we can call hibernation CONFIG_NONPORTABLE already -- at a bare minimum we'll need some DT stuff to make it work, and even if we could agree on adding something it's probably too late
<conchuod> Yah, sounds about right to me..
<palmer> cool, I just put the patch in the test queue
ncopa has quit [Quit: Ping timeout (120 seconds)]
dlan has quit [Ping timeout: 265 seconds]
AmyMalik has quit [Read error: Connection reset by peer]
kilobyte_ch has quit [Ping timeout: 265 seconds]
NishanthMenon has quit [Ping timeout: 265 seconds]
englishm has quit [Ping timeout: 265 seconds]
sami has quit [Ping timeout: 265 seconds]
sami_ has joined #riscv
dlan has joined #riscv
enoq has quit [Ping timeout: 265 seconds]
kilobyte_ch has joined #riscv
Ellenor has joined #riscv
ncopa has joined #riscv
aerkiaga2 has joined #riscv
aerkiaga has quit [Read error: Connection reset by peer]
awita has joined #riscv
Andre_Z has quit [Ping timeout: 240 seconds]
englishm has joined #riscv
NishanthMenon has joined #riscv
drewj has joined #riscv
<drewj> conchuod: Hey Conor, what's patchwork's preferred base? Sunil just asked me and I said for-next or -rc1. But then I decided I better double check.
heat has quit [Ping timeout: 248 seconds]
<conchuod> It should be capable of either now
<conchuod> But right now, there's no difference
<drewj> ok, and -rc1 is preferred over a later rc?
<conchuod> Yes
<drewj> ack
heat has joined #riscv
<conchuod> riscv/master usually doesn't leave rc1
jay321 has joined #riscv
jacklsw has joined #riscv
motherfsck has joined #riscv
jay321 has quit [Remote host closed the connection]
jay321 has joined #riscv
jay321 has quit [Ping timeout: 240 seconds]
awita has quit [Ping timeout: 268 seconds]
jbowen has quit []
jbowen has joined #riscv
jay321 has joined #riscv
gurki_ has joined #riscv
gurki_ has quit [Client Quit]
gurki_ has joined #riscv
gurki_ has joined #riscv
gurki_ has quit [Client Quit]
gurki_ has joined #riscv
gurki_ has quit [Client Quit]
gurki_ has joined #riscv
gurki_ has quit [Client Quit]
gurki_ has joined #riscv
gurki has joined #riscv
pedja has joined #riscv
random-jellyfish has quit [Quit: Client closed]
motherfsck has quit [Ping timeout: 240 seconds]
awita has joined #riscv
random-jellyfish has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
___nick___ has quit [Ping timeout: 250 seconds]
Stat_headcrabed has joined #riscv
random-jellyfish has quit [Ping timeout: 245 seconds]
pedja has quit [Quit: Leaving]
billchenchina has joined #riscv
billchenchina has quit [Remote host closed the connection]
<zBeeble42> so I'm teaching some students and we're looking at C and how it compiles to RISCV. In preparation, and put pow(), sin(), cos() and tan() in code and compiled with clang. This got compiled to "call pow@plt", "call sin@plt", "call cos@plt" and "call tan" ... in additon, at the end of the .s file, only tan was listed with addrsig_sym (which I assume is marking tan as external linkage).
<zBeeble42> target here is an unmatched we have for the course.
<zBeeble42> ... so why is tan() the odd one out?
zBeeble42 is now known as zBeeble
<muurkha> interesting!
<zBeeble> I was specificall fishing to see if the processor had sin/cos/etc instructions. Fine that it doesn't. PLT as far as I can google is "Proceedure Linkage Table" ... but why are pow, sin, and cos on it and not tan?
motherfsck has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
heat has quit [Read error: Connection reset by peer]
heat has joined #riscv
<jrtc27> zBeeble: what compiler? I don't see that
<jrtc27> for both GCC and Clang
motherfsck has quit [Ping timeout: 250 seconds]
gurki has quit [Ping timeout: 265 seconds]
<zBeeble> clang in my case
<zBeeble> I don't actually have gcc installed ATM.
<jrtc27> I see clang using @plt for both on godbolt.org
<jrtc27> hm though indeed not locally for a freebsd sysroot
<jrtc27> seems to be some weirdness between how intrinsics are lowered vs normal functions
<jrtc27> sin and cos have intrinsics
motherfsck has joined #riscv
heat has quit [Ping timeout: 250 seconds]
<zBeeble> so... aren't intrinsics for (say) the case where some processors have sin() as an instruction and some don't (68030 w/ mmu, for instance)?
<jrtc27> LLVM aggressively maps to intrinsics
<zBeeble> ... I'm poking around the riscv instruction set manual, and I don't see this difference for tan() --- is this just something the porter did?
<jrtc27> it'll then turn them back into libcalls if needed
<jrtc27> no
heat has joined #riscv
<jrtc27> nothing to do with the ISA
<jrtc27> it's about LLVM's IR
<jrtc27> there's @llvm.sin and @llvm.cos but no @llvm.tan
<zBeeble> odd?
<jrtc27> maybe the theory is it gets canonicalised as sin / cos
<jrtc27> but in practice it's not here
<jrtc27> so *shrug*
<zBeeble> hrm. sqrt does use the instruction.
<zBeeble> sqrt is an intrinsic, tho.
<zBeeble> ... so why do we need intrinsics again?
lemoniter has quit [Quit: Leaving]
<jrtc27> because compilers like to identify common well-known functions for optimisation purposes
<jrtc27> conchuod: re mapping symbols, you probably want to objcopy --wildcard --strip-symbol='$[dx]*' your kernel
<jrtc27> which is what freebsd does (well, tweaked to use the right prefixes) for arm+arm64
<jrtc27> that or teach your debugger to ignore them all
<zBeeble> OK. But shouldn't this just work if these are ... urm opposite of volitile --- isn't that a thing now?
<jrtc27> I don't understand your question
<jrtc27> how it works internally is an implementation choice
<jrtc27> it happens that sin/cos and tan are different internally
<jrtc27> and therefore it's not surprising that there's slightly different behaviour
<jrtc27> it's a bug if they're not consistent wrt relocations
<jrtc27> but not surprising
<zBeeble> so... there's a tag to say that a function is 100% dependant on it's arguments --- so that it can be optimized.
<zBeeble> ... well... sqrt is listed as an intrinsic, but it is also compiled to the sqrt instruction.
<conchuod> jrtc it's not a debugger, it's the backtrace the kernel prints on an oops
<jrtc27> eh, in freebsd land it's the debugger that does the backtrace
awita has quit [Ping timeout: 250 seconds]
<jrtc27> anyway, seems like is_arm_mapping_symbol needs to learn that riscv's mapping symbols aren't just $x and $x.foo but also $xisa and $xisa.foo
<jrtc27> it's checking for \$x(\.|$)
<jrtc27> in effect
<conchuod> you should send a patch ;)
<jrtc27> then I'd have to build test it
<zBeeble> yeah... too much work :).
<jrtc27> LMK when I can cross-build Linux from macOS
<conchuod> But ye, chees Jess. I'll go poke at it unless someone who knows what they're doing beats me to it.
Andre_Z has joined #riscv
<jrtc27> :)
BootLayer_ has quit [Quit: Leaving]
Tenkawa has quit [Quit: Was I really ever here?]
<dh`> cross-build linux? /me chuckles politely :-)
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<pierce> "Due to abuse, the web-based subscription has been disabled."
<pierce> How is this like this for so long?
awita has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
PobodysNerfect has quit [Quit: Gone to sleep. ZZZzzz…]
<conchuod> Infradead pierce ?
motherfsck has quit [Ping timeout: 265 seconds]
Andre_Z has quit [Quit: Leaving.]
motherfsck has joined #riscv
Armand has quit [Remote host closed the connection]
Armand has joined #riscv
vagrantc has joined #riscv
jay321 has quit [Remote host closed the connection]
<muurkha> I think you can cross-build Linux from FreeBSD
jay321 has joined #riscv
awita has quit [Remote host closed the connection]
danilogondolfo has quit [Quit: Leaving]
MaxGanzII has quit [Ping timeout: 240 seconds]
jay321 has quit [Remote host closed the connection]
arkanoid has quit [Ping timeout: 250 seconds]
motherfsck has quit [Ping timeout: 240 seconds]
feldzeugmeister has quit [Remote host closed the connection]
<q66> muurkha: with caveats
<q66> the linux build system makes some heavy assumptions about gnu userland tools with no way to override them
<q66> so you need to set up a directory with symlinks of the gnu tools to their canonical names, then build kernel with that directory early in PATH
jay321 has joined #riscv
motherfsck has joined #riscv
jay321 has quit [Ping timeout: 265 seconds]
<muurkha> oh, sure
arkanoid has joined #riscv
jay321 has joined #riscv
motherfsck has quit [Ping timeout: 240 seconds]
pecastro has quit [Ping timeout: 250 seconds]
motherfsck has joined #riscv