From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: "Oleksii Kurochko" <oleksii.kurochko@gmail.com>,
"Alistair Francis" <alistair.francis@wdc.com>,
"Bob Eshleman" <bobbyeshleman@gmail.com>,
"Connor Davis" <connojdavis@gmail.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Julien Grall" <julien@xen.org>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Doug Goldstein" <cardoe@cardoe.com>,
"Bertrand Marquis" <bertrand.marquis@arm.com>,
"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>
Subject: [PATCH v2 00/16] riscv: introduce basic UART support and interrupts for hypervisor mode
Date: Tue, 6 May 2025 18:51:30 +0200 [thread overview]
Message-ID: <cover.1746530883.git.oleksii.kurochko@gmail.com> (raw)
The patch series introduces basic UART support (in interrupt mode) and support of
interrupts for hypervisor mode.
To implement this the following has been added:
- APLIC and IMISC initialization.
- Introduce of intc_hw_operations abstraction.
- Introduce some APLIC and IMSIC operations.
- Introduce init_IRQ(), platform_get_irq() and setup_irq() functions.
- Update do_trap() handler to handle IRQ_S_EXT.
- Introduce some other functions such as: get_s_time(), smp_clear_cpu_maps(),
ioremap().
- Enable UART.
CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1802596163
---
Changes in v2:
- Split patch [PATCH v1 07/14] xen/riscv: Introduce intc_hw_operations abstraction
into two:
- xen/riscv: introduce register_intc_ops() and intc_hw_ops
- xen/riscv: introduce intc_init() and helpers
It was needed to be able to merge [PATCH v1 13/14] xen/riscv: initialize interrupt controller
into the patch where intc_init() is introduced.
- Merge [PATCH v1 13/14] xen/riscv: initialize interrupt controller to
xen/riscv: introduce intc_init() and helpers.
- xen/riscv: implement get_s_time() has been merged to staging.
- All other changes please look in specific patch.
---
Oleksii Kurochko (16):
xen/riscv: initialize bitmap to zero in
riscv_fill_hwcap_from_isa_string()
xen/riscv: introduce smp_prepare_boot_cpu()
xen/riscv: introduce support of Svpbmt extension
xen/riscv: add ioremap_*() variants using ioremap_attr()
xen/asm-generic: introduce asm-generic/irq-dt.h
xen/riscv: introduce init_IRQ()
xen/riscv: introduce platform_get_irq()
xen/riscv: dt_processor_cpuid() implementation
xen/riscv: introduce register_intc_ops() and intc_hw_ops.
xen/riscv: imsic_init() implementation
xen/riscv: aplic_init() implementation
xen/riscv: introduce intc_init() and helpers
xen/riscv: implementation of aplic and imsic operations
xen/riscv: add external interrupt handling for hypervisor mode
xen/riscv: implement setup_irq()
xen/riscv: add basic UART support
automation/scripts/qemu-smoke-riscv64.sh | 1 +
docs/misc/riscv/booting.txt | 4 +
xen/arch/arm/include/asm/Makefile | 1 +
xen/arch/arm/include/asm/irq.h | 15 +-
xen/arch/riscv/Kconfig | 15 +
xen/arch/riscv/Makefile | 3 +
xen/arch/riscv/aplic-priv.h | 38 +++
xen/arch/riscv/aplic.c | 309 ++++++++++++++++++
xen/arch/riscv/cpufeature.c | 4 +
xen/arch/riscv/imsic.c | 390 +++++++++++++++++++++++
xen/arch/riscv/include/asm/Makefile | 1 +
xen/arch/riscv/include/asm/aplic.h | 73 +++++
xen/arch/riscv/include/asm/cpufeature.h | 1 +
xen/arch/riscv/include/asm/fixmap.h | 2 +-
xen/arch/riscv/include/asm/imsic.h | 84 +++++
xen/arch/riscv/include/asm/intc.h | 34 ++
xen/arch/riscv/include/asm/io.h | 11 +-
xen/arch/riscv/include/asm/irq.h | 16 +
xen/arch/riscv/include/asm/mm-types.h | 8 +
xen/arch/riscv/include/asm/page.h | 17 +-
xen/arch/riscv/include/asm/smp.h | 3 +
xen/arch/riscv/intc.c | 59 ++++
xen/arch/riscv/irq.c | 218 +++++++++++++
xen/arch/riscv/mm.c | 34 ++
xen/arch/riscv/pt.c | 20 +-
xen/arch/riscv/setup.c | 22 +-
xen/arch/riscv/smpboot.c | 78 +++++
xen/arch/riscv/stubs.c | 11 -
xen/arch/riscv/traps.c | 19 ++
xen/arch/riscv/xen.lds.S | 2 +
xen/drivers/char/Kconfig | 3 +-
xen/include/asm-generic/irq-dt.h | 21 ++
32 files changed, 1470 insertions(+), 47 deletions(-)
create mode 100644 xen/arch/riscv/aplic-priv.h
create mode 100644 xen/arch/riscv/imsic.c
create mode 100644 xen/arch/riscv/include/asm/aplic.h
create mode 100644 xen/arch/riscv/include/asm/imsic.h
create mode 100644 xen/arch/riscv/include/asm/mm-types.h
create mode 100644 xen/arch/riscv/irq.c
create mode 100644 xen/arch/riscv/smpboot.c
create mode 100644 xen/include/asm-generic/irq-dt.h
--
2.49.0
next reply other threads:[~2025-05-06 16:52 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 16:51 Oleksii Kurochko [this message]
2025-05-06 16:51 ` [PATCH v2 01/16] xen/riscv: initialize bitmap to zero in riscv_fill_hwcap_from_isa_string() Oleksii Kurochko
2025-05-13 15:44 ` Jan Beulich
2025-05-06 16:51 ` [PATCH v2 02/16] xen/riscv: introduce smp_prepare_boot_cpu() Oleksii Kurochko
2025-05-13 15:48 ` Jan Beulich
2025-05-16 8:24 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 03/16] xen/riscv: introduce support of Svpbmt extension Oleksii Kurochko
2025-05-13 16:00 ` Jan Beulich
2025-05-16 9:35 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 04/16] xen/riscv: add ioremap_*() variants using ioremap_attr() Oleksii Kurochko
2025-05-14 14:32 ` Jan Beulich
2025-05-16 10:30 ` Oleksii Kurochko
2025-05-19 16:23 ` Teddy Astie
2025-05-06 16:51 ` [PATCH v2 05/16] xen/asm-generic: introduce asm-generic/irq-dt.h Oleksii Kurochko
2025-05-14 14:36 ` Jan Beulich
2025-05-14 21:17 ` Stefano Stabellini
2025-05-16 10:45 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 06/16] xen/riscv: introduce init_IRQ() Oleksii Kurochko
2025-05-14 14:49 ` Jan Beulich
2025-05-16 11:53 ` Oleksii Kurochko
2025-05-16 11:59 ` Jan Beulich
2025-05-06 16:51 ` [PATCH v2 07/16] xen/riscv: introduce platform_get_irq() Oleksii Kurochko
2025-05-15 7:33 ` Jan Beulich
2025-05-16 14:04 ` Oleksii Kurochko
2025-05-18 8:23 ` Jan Beulich
2025-05-06 16:51 ` [PATCH v2 08/16] xen/riscv: dt_processor_cpuid() implementation Oleksii Kurochko
2025-05-15 7:56 ` Jan Beulich
2025-05-16 16:02 ` Oleksii Kurochko
2025-05-18 8:30 ` Jan Beulich
2025-05-06 16:51 ` [PATCH v2 09/16] xen/riscv: introduce register_intc_ops() and intc_hw_ops Oleksii Kurochko
2025-05-15 8:06 ` Jan Beulich
2025-05-19 9:16 ` Oleksii Kurochko
2025-05-19 13:16 ` Jan Beulich
2025-05-20 14:04 ` Oleksii Kurochko
2025-05-20 14:18 ` Jan Beulich
2025-05-06 16:51 ` [PATCH v2 10/16] xen/riscv: imsic_init() implementation Oleksii Kurochko
2025-05-15 8:42 ` Jan Beulich
2025-05-19 15:19 ` Oleksii Kurochko
2025-05-19 18:32 ` Jan Beulich
2025-05-20 14:47 ` Oleksii Kurochko
2025-05-19 15:26 ` Oleksii Kurochko
2025-05-19 18:33 ` Jan Beulich
2025-05-20 14:53 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 11/16] xen/riscv: aplic_init() implementation Oleksii Kurochko
2025-05-15 9:06 ` Jan Beulich
2025-05-19 16:09 ` Oleksii Kurochko
2025-05-19 18:40 ` Jan Beulich
2025-05-06 16:51 ` [PATCH v2 12/16] xen/riscv: introduce intc_init() and helpers Oleksii Kurochko
2025-05-15 9:29 ` Jan Beulich
2025-05-20 8:42 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 13/16] xen/riscv: implementation of aplic and imsic operations Oleksii Kurochko
2025-05-15 9:44 ` Jan Beulich
2025-05-20 11:24 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 14/16] xen/riscv: add external interrupt handling for hypervisor mode Oleksii Kurochko
2025-05-15 9:54 ` Jan Beulich
2025-05-20 11:37 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 15/16] xen/riscv: implement setup_irq() Oleksii Kurochko
2025-05-15 9:57 ` Jan Beulich
2025-05-20 11:53 ` Oleksii Kurochko
2025-05-06 16:51 ` [PATCH v2 16/16] xen/riscv: add basic UART support Oleksii Kurochko
2025-05-15 9:59 ` Jan Beulich
2025-05-20 11:57 ` Oleksii Kurochko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1746530883.git.oleksii.kurochko@gmail.com \
--to=oleksii.kurochko@gmail.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=alistair.francis@wdc.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=bertrand.marquis@arm.com \
--cc=bobbyeshleman@gmail.com \
--cc=cardoe@cardoe.com \
--cc=connojdavis@gmail.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.