All of lore.kernel.org
 help / color / mirror / Atom feed
From: Caleb Schlossin <calebs@linux.ibm.com>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, npiggin@gmail.com, adityag@linux.ibm.com,
	milesg@linux.ibm.com, chalapathi.v@linux.ibm.com,
	harshpb@linux.ibm.com, calebs@linux.ibm.com
Subject: [PATCH v2 1/3] ppc/pnv: Support for SECURITY_SWITCH XSCOM register access
Date: Tue, 10 Feb 2026 07:46:45 -0600	[thread overview]
Message-ID: <20260210134647.2050821-2-calebs@linux.ibm.com> (raw)
In-Reply-To: <20260210134647.2050821-1-calebs@linux.ibm.com>

Power Hypervisor code requires access to the SECURITY_SWITCH
XSCOM register at MMIO address 0x80028 (scom address 0x10005).
Adding basic read support for now so that is doesn't cause
error messages to be posted.

Reviewed-by: Chalapathi V <chalapathi.v@linux.ibm.com>
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Reviewed-by: Aditya Gupta <adityag@linux.ibm.com>
Signed-off-by: Glenn Miles <milesg@linux.ibm.com>
Signed-off-by: Caleb Schlossin <calebs@linux.ibm.com>
---
 hw/ppc/pnv_xscom.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/ppc/pnv_xscom.c b/hw/ppc/pnv_xscom.c
index 8557b560ae..dc1ffc6c01 100644
--- a/hw/ppc/pnv_xscom.c
+++ b/hw/ppc/pnv_xscom.c
@@ -61,6 +61,8 @@ static uint32_t pnv_xscom_pcba(PnvChip *chip, uint64_t addr)
 static uint64_t xscom_read_default(PnvChip *chip, uint32_t pcba)
 {
     switch (pcba) {
+    case 0x10005:       /* SECURITY SWITCH */
+        return 0;
     case 0xf000f:
         return PNV_CHIP_GET_CLASS(chip)->chip_cfam_id;
     case 0x18002:       /* ECID2 */
-- 
2.47.3



  reply	other threads:[~2026-02-10 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-10 13:46 [PATCH v2 0/3] Power10 PowerVM bringup fixes Caleb Schlossin
2026-02-10 13:46 ` Caleb Schlossin [this message]
2026-02-10 13:46 ` [PATCH v2 2/3] ppc/pnv: Add unimplemented quad and core regs Caleb Schlossin
2026-02-25  5:59   ` Harsh Prateek Bora
2026-02-10 13:46 ` [PATCH v2 3/3] ppc/pnv: Add OCC FLAG registers Caleb Schlossin
2026-03-02  6:12   ` Harsh Prateek Bora
  -- strict thread matches above, loose matches on Subject: below --
2026-01-26 13:55 [PATCH v2 0/3] Power10 PowerVM bringup fixes Caleb Schlossin
2026-01-26 13:55 ` [PATCH v2 1/3] ppc/pnv: Support for SECURITY_SWITCH XSCOM register access Caleb Schlossin

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=20260210134647.2050821-2-calebs@linux.ibm.com \
    --to=calebs@linux.ibm.com \
    --cc=adityag@linux.ibm.com \
    --cc=chalapathi.v@linux.ibm.com \
    --cc=harshpb@linux.ibm.com \
    --cc=milesg@linux.ibm.com \
    --cc=npiggin@gmail.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 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.