public inbox for opensbi@lists.infradead.org
 help / color / mirror / Atom feed
From: "David E. Garcia Porras" <david.garcia@aheadcomputing.com>
To: opensbi@lists.infradead.org
Cc: "David E. Garcia Porras" <david.garcia@aheadcomputing.com>
Subject: [PATCH 0/4] irqchip/rpmi: Expose APLIC/IMSIC interfaces for platform use
Date: Fri, 27 Mar 2026 23:43:43 -0600	[thread overview]
Message-ID: <20260328054347.3706029-1-david.garcia@aheadcomputing.com> (raw)

This series exposes existing APLIC and IMSIC internal definitions and
adds minimal extension points so that platform code can perform custom
interrupt configuration without modifying the generic irqchip drivers.

The motivation is that a platform which uses AIA may need to:
 - Configure APLIC source/target registers directly for M-mode
   interrupt routing
 - Iterate registered APLIC devices for platform-specific
   initialization
 - Handle M-mode external interrupts beyond IPI in the IMSIC driver
Furthermore, a platform using RPMI PERFORMANCE service group may
need to:
 - Use RPMI performance domain attribute flags for RPMI PERFORMANCE
   PERF_DOMAIN and FAST_CHANNEL attribute control

Patch 1 moves APLIC register defines from aplic.c to the public
aplic.h header (pure move, no functional change).
Patch 2 adds aplic_get_list() to allow platform code to iterate
registered APLIC devices.
Patch 3 routes non-IPI IMSIC interrupts through the sbi_irqchip
handler framework and adds hwirq_unmask/hwirq_mask callbacks so
that sbi_irqchip_register_handler() works end-to-end with IMSIC.
Patch 4 adds missing RPMI performance flag defines and a struct field.

All changes are additive and preserve existing behavior for platforms
that do not use the new interfaces.

David E. Garcia Porras (4):
  lib: utils: irqchip: aplic: Move register defines to public header
  lib: utils: irqchip: aplic: Add aplic_get_list() accessor
  lib: utils: irqchip: imsic: Dispatch non-IPI interrupts via irqchip
    framework
  include: mailbox: rpmi_msgprot: Add RPMI performance domain flag
    defines

 include/sbi_utils/irqchip/aplic.h        | 103 ++++++++++++++++++++++
 include/sbi_utils/mailbox/rpmi_msgprot.h |  18 ++++
 lib/utils/irqchip/aplic.c                | 106 ++---------------------
 lib/utils/irqchip/imsic.c                |  15 +++-
 4 files changed, 139 insertions(+), 103 deletions(-)

--
2.43.0


-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

             reply	other threads:[~2026-03-28  5:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-28  5:43 David E. Garcia Porras [this message]
2026-03-28  5:43 ` [PATCH 1/4] lib: utils: irqchip: aplic: Move register defines to public header David E. Garcia Porras
2026-03-28  5:43 ` [PATCH 2/4] lib: utils: irqchip: aplic: Add aplic_get_list() accessor David E. Garcia Porras
2026-03-28  5:43 ` [PATCH 3/4] lib: utils: irqchip: imsic: Dispatch non-IPI interrupts via irqchip framework David E. Garcia Porras
2026-03-28  5:43 ` [PATCH 4/4] include: mailbox: rpmi_msgprot: Add RPMI performance domain flag defines David E. Garcia Porras

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=20260328054347.3706029-1-david.garcia@aheadcomputing.com \
    --to=david.garcia@aheadcomputing.com \
    --cc=opensbi@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox