From 6f12ec6372ed6ac6682b0a59d53d465538cf3cf2 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 5 Sep 2024 07:41:32 +0200 Subject: [PATCH] Add more PLIC results to the journal --- JOURNAL.md | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/JOURNAL.md b/JOURNAL.md index 76dbaea..7cd6c1e 100644 --- a/JOURNAL.md +++ b/JOURNAL.md @@ -4035,3 +4035,75 @@ at 0x40a01000. Clearly something is not working well in the PLIC. +Let's try to dump the pending and priority registers of the PLIC with devmem, +just to check that the plictool is not doing something wrong. + + devmem 0x40801000 # Dump pending bits of sources 0-31 + devmem 0x40801004 # Dump pending bits of sources 32-63 + devmem 0x40a01000 # Dump priority threshold of context 1 + devmem 0x40a00000 # Dump priority threshold of context 0 + +Interesting output: + + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=0 prio=1 + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=0 prio=1 + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=0 prio=1 + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=0 prio=1 + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + ~ # dd if=/dev/ttyS1 bs=1 count=1 of=/dev/null & + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=1 prio=1 + ctx=1 thre=0 unmasked + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + src=33 pend=0 prio=0 + ctx=1 thre=1 masked + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=1 prio=1 + ctx=1 thre=1 masked + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + src=33 pend=0 prio=0 + ctx=1 thre=1 masked + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=1 prio=1 + ctx=1 thre=1 masked + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + src=33 pend=0 prio=0 + ctx=1 thre=1 masked + ~ # plictool -c2 + plictool v0.0.3 addr=0x40800000 nsrc=1024 nctx=2 + src=1 pend=1 prio=1 + ctx=1 thre=1 masked + src=2 pend=0 prio=1 + src=3 pend=0 prio=1 + src=4 pend=1 prio=1 + src=33 pend=0 prio=0 + ctx=1 thre=1 masked +