From: Nicholas Piggin <npiggin@gmail.com>
To: qemu-ppc@nongnu.org
Cc: "Nicholas Piggin" <npiggin@gmail.com>,
qemu-devel@nongnu.org,
"Daniel Henrique Barboza" <danielhb413@gmail.com>,
"Cédric Le Goater" <clg@kaod.org>,
"Frédéric Barrat" <fbarrat@linux.ibm.com>
Subject: [PATCH v2 0/2] ppc/pnv: ADU model for POWER9/10
Date: Sat, 11 May 2024 00:14:43 +1000 [thread overview]
Message-ID: <20240510141446.108360-1-npiggin@gmail.com> (raw)
These patches adds the framework for a proper ADU model rather than
putting registers into the xscom default ops, and implements ADU's
indirect LPC access functionality which IBM's proprietary firmware
uses to provide consoles on UARTs.
Patch 1 should be quite a simple hooking up the xscom address space.
Patch 2 implements one of the memory access functions of the ADU that
drives access to LPC address space from XSCOM register operations which
is non-trivial but there are similar examples already in tree.
Since v1:
- Changed to GPL-2.0-or-later
- Added an assertion for adu-lpc link
- Renamed funcions to pnv_lpc_opb_ prefix rather than pnv_opb_lpc_
- Removed the unnecessary ADU class
Thanks,
Nick
Nicholas Piggin (2):
ppc/pnv: Begin a more complete ADU LPC model for POWER9/10
ppc/pnv: Implement ADU access to LPC space
include/hw/ppc/pnv_adu.h | 32 ++++++
include/hw/ppc/pnv_chip.h | 3 +
include/hw/ppc/pnv_lpc.h | 5 +
include/hw/ppc/pnv_xscom.h | 6 ++
hw/ppc/pnv.c | 20 ++++
hw/ppc/pnv_adu.c | 206 +++++++++++++++++++++++++++++++++++++
hw/ppc/pnv_lpc.c | 12 +--
hw/ppc/pnv_xscom.c | 9 --
hw/ppc/meson.build | 1 +
hw/ppc/trace-events | 4 +
10 files changed, 283 insertions(+), 15 deletions(-)
create mode 100644 include/hw/ppc/pnv_adu.h
create mode 100644 hw/ppc/pnv_adu.c
--
2.43.0
next reply other threads:[~2024-05-10 14:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-10 14:14 Nicholas Piggin [this message]
2024-05-10 14:14 ` [PATCH v2 1/2] ppc/pnv: Begin a more complete ADU LPC model for POWER9/10 Nicholas Piggin
2024-05-13 6:09 ` Cédric Le Goater
2024-05-10 14:14 ` [PATCH v2 2/2] ppc/pnv: Implement ADU access to LPC space Nicholas Piggin
2024-05-13 6:10 ` Cédric Le Goater
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=20240510141446.108360-1-npiggin@gmail.com \
--to=npiggin@gmail.com \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=fbarrat@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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;
as well as URLs for NNTP newsgroup(s).