sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
bauruine has joined #riscv
elastic_dog has joined #riscv
sjs has quit [Quit: sjs]
sjs has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
<HdkR> pabs3: Still no mention of what GPU is in it?
<pabs3> nope :/
<pabs3> maybe imgtec?
<HdkR> Maybe Vivante
indy has quit [Ping timeout: 272 seconds]
indy has joined #riscv
<smaeul> drewfustini: depending on your implementation, you may be able to write to the PLIC pending bits with devmem or similar
<smaeul> you may also be able to use devmem to trigger the interrupt from the peripheral
indy has quit [Quit: ZNC 1.8.2 - https://znc.in]
crabbedhaloablut has quit [Write error: Broken pipe]
indy has joined #riscv
crabbedhaloablut has joined #riscv
gorgonical has quit [Read error: Connection reset by peer]
gorgonical has joined #riscv
mmind00 has quit [Remote host closed the connection]
mmind00 has joined #riscv
aerkiaga has quit [Remote host closed the connection]
indy has quit [Quit: ZNC 1.8.2 - https://znc.in]
indy has joined #riscv
indy has quit [Client Quit]
indy has joined #riscv
bauruine has quit [Remote host closed the connection]
jacklsw has joined #riscv
esv has joined #riscv
tsraoien has quit [Ping timeout: 245 seconds]
eroux has quit [Ping timeout: 268 seconds]
esv has quit [Ping timeout: 245 seconds]
clandmeter has quit [Remote host closed the connection]
clandmeter has joined #riscv
clandmeter has quit [Remote host closed the connection]
clandmeter has joined #riscv
clandmeter has quit [Read error: Connection reset by peer]
clandmeter has joined #riscv
clandmeter has quit [Remote host closed the connection]
clandmeter has joined #riscv
crabbedhaloablut has quit [Ping timeout: 268 seconds]
crabbedhaloablut has joined #riscv
eroux has joined #riscv
dramforever_ has joined #riscv
dramforever has quit [Ping timeout: 240 seconds]
BootLayer has joined #riscv
BootLayer_ has joined #riscv
BootLayer has quit [Ping timeout: 252 seconds]
raym has joined #riscv
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
AmyMalik is now known as Ellenor
indy has quit [Ping timeout: 252 seconds]
indy has joined #riscv
indy_ has joined #riscv
indy has quit [Read error: Connection reset by peer]
pecastro has joined #riscv
jacklsw has quit [Quit: Back to the real world]
jacklsw has joined #riscv
handsome_feng has joined #riscv
indy_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
indy has joined #riscv
wingsorc__ has quit [Quit: Leaving]
aerkiaga has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
aerkiaga has quit [Remote host closed the connection]
Andre_H has joined #riscv
esv has joined #riscv
conordooley has joined #riscv
<conordooley> It just so happened that I wanted to use that debugfs interface myself, seems like all that's missing to use it is for riscv to enable HARDIRQS_SW_RESEND /shrug
<conordooley> idk if it does what youre looking for drewfustini but I CCed you on the patch anyway. GENERIC_IRQ_DEBUGFS has to be enabled too, but that's exposed
conordooley has quit [Client Quit]
aerkiaga has joined #riscv
crabbedhaloablut has quit [Remote host closed the connection]
aerkiaga has quit [Read error: Connection reset by peer]
aerkiaga has joined #riscv
aerkiaga has quit [Remote host closed the connection]
aerkiaga has joined #riscv
bauruine has joined #riscv
crabbedhaloablut has joined #riscv
aerkiaga has quit [Remote host closed the connection]
aerkiaga has joined #riscv
elastic_dog has quit [Ping timeout: 276 seconds]
elastic_dog has joined #riscv
prabhakarlad has quit [Quit: Client closed]
esv has quit [Ping timeout: 268 seconds]
Gravis has joined #riscv
handsome_feng has quit [Quit: Connection closed for inactivity]
Gravis has quit [Ping timeout: 245 seconds]
drmpeg has quit [Ping timeout: 244 seconds]
drmpeg has joined #riscv
prabhakarlad has joined #riscv
EchelonX has joined #riscv
peeps[zen] has quit [Ping timeout: 252 seconds]
indy has quit [Ping timeout: 268 seconds]
indy has joined #riscv
tsraoien has joined #riscv
esv has joined #riscv
esv has quit [Ping timeout: 268 seconds]
jacklsw has joined #riscv
BootLayer_ has quit [Ping timeout: 272 seconds]
<drewfustini> conchuod: interesting, I had enabled IRQ debugfs and have been using it. For example, the supervisor external interrupt:
<drewfustini> # cat 9
<drewfustini> device: (null)
<drewfustini> istate: 0x00000000
<drewfustini> status: 0x00031e00_IRQ_NOPROBE_IRQ_NOREQUEST_IRQ_NOTHREAD_IRQ_NOAUTOEN_IRQ_PER_CPU_DEVID
<drewfustini> handler: plic_handle_irq
<drewfustini> ddepth: 0
<drewfustini> wdepth: 0
<drewfustini> dstate: 0x02400a00IRQD_ACTIVATEDIRQD_IRQ_STARTEDIRQD_PER_CPUIRQD_DEFAULT_TRIGGER_SET
<drewfustini> node: 0
<drewfustini> affinity: 0
<drewfustini> domain: :cpus:cpu@0:interrupt-controller
<drewfustini> hwirq: 0x9
<drewfustini> chip: RISC-V INTC
<drewfustini> flags: 0x0
<drewfustini> conchuod: I'm reading your email. Do you mean the retriggering could be controlled through debugfs?
<drewfustini> Looking at the code, it seems like the main thing that HARDIRQS_SW_RESEND does is define irq_set_parent() and create a resend_tasklet
<drewfustini> smaeul: unfortunately, the pending bits are read only in the PLIC implementation I'm using. It is essentially just a verilog translation of the sifive chisel for the PLIC. there were not any extra registers added by the RTL to artificially trigger a PLIC source.
<drewfustini> My system I have SMP enabled in kernel config but bootloader is currently only enabling 1 Hart. I think this might be in a corner case as plic_set_affinity() seems to be the problem
<drewfustini> I have noticed that none of the PLIC interrupt sources are ever enabled. In drivers/irqchip/irq-sifive-plic.c, there is plic_set_affinity() which has this line to unmask the interrupt sources that are configured to be active.
<drewfustini> Line 154: plic_irq_toggle(cpumask_of(cpu), d, !irqd_irq_masked(d));
<drewfustini> That third argument is "enabled" and !irqd_irq_masked(d) is always 0. My suspicion is that this may be due to the unusual circumstance of SMP enabled but only one hart being active.
<drewfustini> I've been trying to figure out why my UART (linux interrupt 1) does not have the IRQD_ACTIVATED dstate flag.
BootLayer has joined #riscv
Gravis has joined #riscv
<conchuod> drewfustini: with that flag enabled you can do an "echo -n trigger > 9"
<conchuod> I just get back -EINVAL without enabling HARDIRQS_SW_RESEND b/c the plic has no irq_set_irqchip_state() which the GICv3 etc has
<conchuod> That echo -n trigger calls irq_inject_interrupt() -> check_irq_resend() -> irq_sw_resend() & irq_sw_resend() is gated by HARDIRQS_SW_RESEND
<drewfustini> Ah ok, thanks for the explanation
<conchuod> tbh, I never even tried to do a "cat 9" so I didn't know it had other functionality!
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #riscv
dramforever_ has quit [Ping timeout: 268 seconds]
raym has quit [Ping timeout: 245 seconds]
raym has joined #riscv
Maylay has quit [Ping timeout: 252 seconds]
Maylay has joined #riscv
dramforever has joined #riscv
vagrantc has joined #riscv
bauruine has quit [Remote host closed the connection]
rsalveti has quit [Quit: Connection closed for inactivity]
aerkiaga has quit [Remote host closed the connection]
Maylay has quit [Ping timeout: 252 seconds]
Maylay has joined #riscv
Maylay has quit [Ping timeout: 252 seconds]
Gravis has quit [Ping timeout: 245 seconds]
Maylay has joined #riscv
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
___nick___ has joined #riscv
prabhakarlad has quit [Quit: Client closed]
jacklsw has quit [Quit: Back to the real life]
<drewfustini> Yes, I had seen maz talking about it with regards to /proc/interrupts not matter that much and people should be looking at /sys/kernel/irq and /sys/kernel/debug/irq
Maylay has quit [Ping timeout: 252 seconds]
prabhakarlad has joined #riscv
Maylay has joined #riscv
Finde_ has joined #riscv
Finde has quit [Read error: Connection reset by peer]
BootLayer has quit [Quit: Leaving]
ZipCPU has quit [Ping timeout: 245 seconds]
Maylay has quit [Ping timeout: 252 seconds]
Finde_ is now known as Finde
Finde has quit [Quit: WeeChat 2.3]
Finde has joined #riscv
wingsorc has quit [Quit: Leaving]
ZipCPU has joined #riscv
Maylay has joined #riscv
prabhakarlad has quit [Quit: Client closed]
___nick___ has quit [Ping timeout: 252 seconds]
Maylay has quit [Ping timeout: 268 seconds]
Maylay has joined #riscv
GenTooMan has quit [Ping timeout: 255 seconds]
ldevulder has quit [Quit: Leaving]
wingsorc has joined #riscv
Maylay has quit [Ping timeout: 268 seconds]
GenTooMan has joined #riscv
tsraoien has quit [Ping timeout: 252 seconds]
zjason` has joined #riscv
zjason has quit [Ping timeout: 268 seconds]
Starfoxxes has quit [Ping timeout: 276 seconds]
radu242 has joined #riscv
Starfoxxes has joined #riscv
Maylay has joined #riscv
tsraoien has joined #riscv
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #riscv
radu242 has quit [Read error: Connection reset by peer]
radu2420 has joined #riscv
peepsalot has joined #riscv
radu2420 has quit [Quit: The Lounge - https://thelounge.chat]
compscipunk has quit [Quit: WeeChat 2.8]
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
compscipunk has joined #riscv
Andre_H has quit [Ping timeout: 245 seconds]
cousteau has joined #riscv
pecastro has quit [Ping timeout: 245 seconds]
loki_val has joined #riscv
crabbedhaloablut has quit [Ping timeout: 268 seconds]