qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] riscv: hw/intc: Fixes for standard conformance
@ 2024-09-18 14:02 Sergey Makarov
  2024-09-18 14:02 ` [PATCH 1/2] hw/intc: Make zeroth priority register read-only Sergey Makarov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sergey Makarov @ 2024-09-18 14:02 UTC (permalink / raw)
  To: Alistar.Francis; +Cc: s.makarov, bmeng.cn, palmer, qemu-riscv, qemu-devel

*** Patchset goal ***

This patchset aims to improve standard conformance for SiFive PLIC
implementation.

*** Testing cases ***

Currently there are no automated tests for these changes, but there
are several test cases, with which these changes may be checked:
1. Zeroth priority register can be checked by reading it after
   writing to it. Without patch its value would be the same which
   is written there, but with it it would be zero;
2. Trigger call of `sifive_plic_irq_request` with level 0.
   Without second patch it will clear pending bit, but with it
   pending bit won't be cleared.
If anyone knows how this can be turned into automated test, help
would be appreciated.

Sergey Makarov (2):
  hw/intc: Make zeroth priority register read-only
  hw/intc: Don't clear pending bits on IRQ lowering

 hw/intc/sifive_plic.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/2] Fixes for standard conformance
@ 2024-09-11 13:18 Sergey Makarov
  2024-09-11 13:19 ` [PATCH 2/2] hw/intc: Don't clear pending bits on IRQ lowering Sergey Makarov
  0 siblings, 1 reply; 7+ messages in thread
From: Sergey Makarov @ 2024-09-11 13:18 UTC (permalink / raw)
  To: Alistar.Francis; +Cc: s.makarov, bmeng, palmer, qemu-riscv, qemu-devel

*** Patchset goal ***

This patchset aims to improve standard conformance for SiFive PLIC
implementation.

*** Testing cases ***

Currently there are no automated tests for these changes, but there
are several test cases, with which these changes may be checked:
1. Zeroth priority register can be checked by reading it after
   writing to it. Without patch its value would be the same which
   is written there, but with it it would be zero;
2. Trigger call of `sifive_plic_irq_request` with level 0.
   Without second patch it will clear pending bit, but with it
   pending bit won't be cleared.
If anyone knows how this can be turned into automated test, help
would be appreciated.

Sergey Makarov (2):
  hw/intc: Make zeroth priority register read-only
  hw/intc: Don't clear pending bits on IRQ lowering

 hw/intc/sifive_plic.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-08  1:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 14:02 [PATCH 0/2] riscv: hw/intc: Fixes for standard conformance Sergey Makarov
2024-09-18 14:02 ` [PATCH 1/2] hw/intc: Make zeroth priority register read-only Sergey Makarov
2024-10-08  1:19   ` Alistair Francis
2024-09-18 14:02 ` [PATCH 2/2] hw/intc: Don't clear pending bits on IRQ lowering Sergey Makarov
2024-10-08  1:25   ` Alistair Francis
2024-10-08  1:28 ` [PATCH 0/2] riscv: hw/intc: Fixes for standard conformance Alistair Francis
  -- strict thread matches above, loose matches on Subject: below --
2024-09-11 13:18 [PATCH 0/2] " Sergey Makarov
2024-09-11 13:19 ` [PATCH 2/2] hw/intc: Don't clear pending bits on IRQ lowering Sergey Makarov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).