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
itrsea has quit [Remote host closed the connection]
itrsea has joined #riscv
ttydes_ has joined #riscv
ttydes has quit [Ping timeout: 248 seconds]
ttydes_ is now known as ttydes
prabhakalad has quit [Ping timeout: 260 seconds]
prabhakalad has joined #riscv
itrsea has quit [Quit: leaving]
Abstract-Wizard has quit [Quit: leaving]
leptonix has quit [Server closed connection]
leptonix has joined #riscv
matrixbrain has joined #riscv
alexghiti has quit [Quit: Connection closed for inactivity]
moto-timo has quit [Ping timeout: 245 seconds]
moto-timo has joined #riscv
naoki has joined #riscv
naoki has quit [Client Quit]
itrsea has joined #riscv
BootLayer has joined #riscv
_ghostbyte_ has quit [Remote host closed the connection]
agraf has quit [Server closed connection]
agraf has joined #riscv
_ghostbyte_ has joined #riscv
<shadows> https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/common.yaml lists function:description:$ref: /schemas/types.yaml#/definitions/string but the actual use is uint32?
<shadows> elsewhere "on the internets" are things like function = "heartbeat"; which is a string
<shadows> so which is it?
palle has quit [Remote host closed the connection]
_whitelogger has joined #riscv
BootLayer has quit [Quit: Leaving]
coldfeet has joined #riscv
<drmpeg> shadows: Here's the patch I use for a heartbeat. https://github.com/drmpeg/linux/commit/71d33922ccbe719cf5196c4c948ce58dcdd80d2a
<shadows> drmpeg: thanks, I did send just now https://lore.kernel.org/lkml/20250716040500.178287-1-e@freeshell.de/
<shadows> the LED on Milk-V Mars CM / CM Lite is green, and on Pine64 Star64 it is blue
<drmpeg> It's probably better to be generic in the device tree and then use systemd to enable the heartbeat.
<shadows> also I note that at least the Debian Kconfig for riscv64 has the actual heartbeat trigger compiled as a module which is not loaded by default
<shadows> so on whole by default it does nothing when configured from devicetree as a heartbeat
<shadows> drmpeg: you have VisionFive2 1.3b ? it is green LED ?
<drmpeg> yes
<shadows> great to know that
<shadows> please do feel free to comment on the patch sent to LKML
vagrantc has quit [Quit: leaving]
<shadows> 'label=' is deprecated and in absence of both 'function=' and 'color=' it appears as /sys/class/leds/led-0
<shadows> I would like to know on DeepComputing Framework 13v01 mainboard but that I did not find any schematic for
<shadows> the others in mainline I was able to look up a schematic and all had an LED of some form or other on the PMU GPIO domain as the fourth GPIO there.
aklsh has quit [Quit: ZNC 1.10.1 - https://znc.in]
aklsh has joined #riscv
coldfeet has quit [Remote host closed the connection]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
r6fej has joined #riscv
ldevulder has joined #riscv
jjido has joined #riscv
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
pabs3 has quit [Read error: Connection reset by peer]
pabs3 has joined #riscv
alperak has joined #riscv
alexghiti has joined #riscv
JanC has quit [Killed (erbium.libera.chat (Nickname regained by services))]
JanC has joined #riscv
prabhakalad has quit [Read error: Connection reset by peer]
felixonmars has quit [Remote host closed the connection]
prabhakalad has joined #riscv
felixonmars has joined #riscv
ldevulder has quit [Ping timeout: 252 seconds]
mtoy has quit [Ping timeout: 240 seconds]
Abstract-Wizard has joined #riscv
mtoy has joined #riscv
coldfeet has joined #riscv
coldfeet has quit [Quit: Lost terminal]
ldevulder has joined #riscv
tgamblin has quit [Quit: WeeChat 4.6.3]
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #riscv
tgamblin has joined #riscv
unlit_trophy has joined #riscv
unlit_trophy has quit [Quit: Quit]
jacklsw has joined #riscv
matrixbrain_ has joined #riscv
matrixbrain has quit [Ping timeout: 248 seconds]
Guest9026 has quit [Quit: ""]
JanC is now known as Guest5697
Guest5697 has quit [Killed (iridium.libera.chat (Nickname regained by services))]
JanC has joined #riscv
chripo has joined #riscv
chripo is now known as Guest1160
sgerhold has quit [Quit: :/]
sgerhold has joined #riscv
cousteau has joined #riscv
ruidx has joined #riscv
cousteau has quit [Quit: Client closed]
BootLayer has joined #riscv
JanC is now known as Guest7386
Guest7386 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
JanC has joined #riscv
matrixbrain__ has joined #riscv
matrixbrain_ has quit [Ping timeout: 252 seconds]
<xypron> When going RVA23, should GCC and LLVM -march defaults include Zicfencei or should the default be to disallow the fencei instruction?
matrixbrain has joined #riscv
<alexghiti> @palmer I have the following patches for fixes https://git.kernel.org/pub/scm/linux/kernel/git/alexghiti/linux.git/log/?h=alex-fixes
Armand|5800x has joined #riscv
<alexghiti> It's still running the CI though, should be ok by the evening
<alexghiti> Sorry I did not setup b4 ty or else...
matrixbrain__ has quit [Ping timeout: 265 seconds]
<palmer> alexghiti: OK, I just got three a few minutes ago (also waiting on testing)
<palmer> And looks like the kCFI thing is already in Linus’ tree
<palmer> Oh, that’s OK, though, it’s via the same patch
<palmer> (From the PR)
<alexghiti> Yes we merged it in rc4
<palmer> Ya, sorry, I guess I’m just sort of still asleep
<palmer> Do you want me to just pick these up directly? Then we don’t have to wait on the PR and such
<palmer> (I’m here now, so it’s not like it’s any extra work...)
<palmer> I was just looking at the hwprobe one...
<alexghiti> Yes, let's do that, it's easier if you can, thanks. I'll keep you posted if something goes wrong with the CI
<palmer> Ya, cool
<alexghiti> The hwprobe fix seems to work, but nice to have another pair of eyes on this one
<palmer> Ya, I opened it and then went to get coffee ;)
<alexghiti> Yep, sorry!
<palmer> NP, it’s super easy to forget the b4 options. I’ve been meaning to add some post-commit hook that checks them for me, but I keep forgetting...
jacklsw has quit [Quit: Back to the real life]
JanC is now known as Guest6542
Guest6542 has quit [Killed (lead.libera.chat (Nickname regained by services))]
JanC has joined #riscv
Andre_Z has joined #riscv
cousteau has joined #riscv
<nathanchance> palmer: If it is not too late for this round, could you grab https://lore.kernel.org/20250715-riscv-uaccess-fix-self-init-val-v1-1-82b8e911f120@kernel.org/ if it looks okay to you? I know I just sent it yesterday but I want to make sure it makes 6.16 final so that I have one less patch to worry about backporting :)
<nathanchance> Sorry if that message came through twice, my internet is pretty spotty right now…
<alexghiti> That's weird, it never reached the linux-riscv ML
jjido has joined #riscv
itrsea has quit [Remote host closed the connection]
itrsea has joined #riscv
smaeul_ has joined #riscv
smaeul has quit [Ping timeout: 260 seconds]
<palmer> nathanchance alexghiti: ya, weird. It’s not in patchwork either… I’m going to pick it up, I’m still staring at this hwprobe thing
smaeul_ is now known as smaeul
ldevulder has quit [Ping timeout: 252 seconds]
JanC has quit [Quit: 'k zien d'r mee weh zi]
JanC has joined #riscv
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
matrixbrain has quit [Quit: Leaving]
BootLayer has quit [Quit: Leaving]
JanC has quit [Killed (calcium.libera.chat (Nickname regained by services))]
JanC has joined #riscv
Armand|5800x has quit [Quit: Leaving]
<palmer> xypron: rv23 or not, fence.i is banned by the Linux uABI (unless you make the prctl, but that’s really aimed at JITs). So it shouldn’t get generated in normal binaries.
<xypron> palmer: Thanks for pointing me to prctl(). GCC, LLVM probably never generate fencei by themselves. Having Zicfencei in the defaults is more a question of whether an inline assembly fencei instruction should lead to a build error by default.
peeweep has quit [Server closed connection]
peeweep has joined #riscv
RamonaZero has quit [Ping timeout: 260 seconds]
<palmer> xypron: I guess it’s up to the application, kind of like any other “can I use this instruction in inline asm” type question. If it’s gated with whatever checks need to be there to make the instruction valid then it’s fine, if not it’s a problem. fence.i is just special because it’s in all the HW and is broken for SW reasons, and because you won’t get a trap (just silently corrupt instructions).
<xypron> palmer: thanks
<palmer> Not sure if it’s helpful, it’s kind of a non-answer ;)
<xypron> palmer: __riscv_flush_icache
<xypron> is probably what sane software should use on Linux.
itrsea has quit [Remote host closed the connection]
itrsea has joined #riscv
<palmer> xypron: ya, and the compiler should generate that already (from whatever builtins and generic stuff there is)
<palmer> Yep, looks like it’s hooked to prioritize the libcall (which ends up in the vdso): https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/riscv/riscv.md;h=c3b504d088360f591837c4a0c64cdd10e78f553a;hb=HEAD#l2842
<palmer> So on Linux you should get the same codegen from GCC for yes-zifencei and no-zifencei targets
jrjsmrtn has quit [Quit: ZNC 1.8.2 - https://znc.in]
jjido has joined #riscv
jrjsmrtn has joined #riscv
Guest1160 has quit [Quit: ""]
chripo has joined #riscv
chripo is now known as Guest9882
Andre_Z has quit [Quit: Leaving.]
cousteau has quit [Quit: Client closed]
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
alperak has quit [Quit: Connection closed for inactivity]
edef has joined #riscv
edef has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
eremitah has joined #riscv
eremitah has quit [Changing host]
eremitah has joined #riscv
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv