From nobody Mon Feb 9 19:37:38 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1612938360; cv=none; d=zohomail.com; s=zohoarc; b=RZUuToT1OONj0aRCkFuSfv0vhY57h/O8jm9x1Z0tSmtKbPKmzihgQZVZQG9Nbf34rRW00LNZE9WlonT0hFINZGVAhRGA183/fTfUZWfP0so94wSsRulwFr9OMpcIzXr3onZfZxl3Urooi/bLqLF636BZvzOCbTLB3rVDkABBt6s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612938360; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6Z0TNVMDRy9OPjoMvQs5nF9mk6dQbsvEjtWTZozl+Ts=; b=lyVoqbo6pUbar+SRmEKDGCadot85JQbbFKNUr3WJc1te1fmfv2irhvp25GClV5LffZ4M/WYyxP4MdNbaW+IEIgjBTZyWzWvy0GVq0FGI+EfdItaC9y19e3yuFBQ9bk+4lxpFn6My7EWXA1eXufDlUIOuCq/dfPFQvy/isb2pols= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612938360111548.845468954432; Tue, 9 Feb 2021 22:26:00 -0800 (PST) Received: from localhost ([::1]:58726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9iwo-0002NW-OM for importer@patchew.org; Wed, 10 Feb 2021 01:25:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ip3-0001Xp-Ua; Wed, 10 Feb 2021 01:17:57 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:37781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ip1-0000Lp-4K; Wed, 10 Feb 2021 01:17:57 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 4Db8gk5lTxz9sVt; Wed, 10 Feb 2021 17:17:38 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1612937858; bh=83YeZAyc50Th6MLx6RcCaZYesjOAWiu3g1qKdt728AI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GCDnEh5LsPPSgUoHhMTekQo49Zj/B0aL7h+s78qJKJX2Tag/Kfl7gG/XdN/cQo9eU vc5MfYoijGtmBN1khxUEg0qyMcUdNTgbltv+qGvcFwa+kTclI8YuLht/WwH+ONRDkE np0BzWZfN+394f8eHKimjae+hAuCqbuzr24qVIic= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 06/19] ppc/xive: Add firmware bit when dumping the ENDs Date: Wed, 10 Feb 2021 17:17:22 +1100 Message-Id: <20210210061735.304384-7-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210210061735.304384-1-david@gibson.dropbear.id.au> References: <20210210061735.304384-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gibson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: C=C3=A9dric Le Goater ENDs allocated by OPAL for the HW thread VPs are tagged as owned by FW. Dump the state in 'info pic'. Signed-off-by: C=C3=A9dric Le Goater Message-Id: <20210126171059.307867-3-clg@kaod.org> Signed-off-by: David Gibson --- hw/intc/xive.c | 3 ++- include/hw/ppc/xive_regs.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/intc/xive.c b/hw/intc/xive.c index fa8c3d8287..eeb4e62ba9 100644 --- a/hw/intc/xive.c +++ b/hw/intc/xive.c @@ -1294,7 +1294,7 @@ void xive_end_pic_print_info(XiveEND *end, uint32_t e= nd_idx, Monitor *mon) =20 pq =3D xive_get_field32(END_W1_ESn, end->w1); =20 - monitor_printf(mon, " %08x %c%c %c%c%c%c%c%c%c prio:%d nvt:%02x/%04x", + monitor_printf(mon, " %08x %c%c %c%c%c%c%c%c%c%c prio:%d nvt:%02x/%04= x", end_idx, pq & XIVE_ESB_VAL_P ? 'P' : '-', pq & XIVE_ESB_VAL_Q ? 'Q' : '-', @@ -1305,6 +1305,7 @@ void xive_end_pic_print_info(XiveEND *end, uint32_t e= nd_idx, Monitor *mon) xive_end_is_escalate(end) ? 'e' : '-', xive_end_is_uncond_escalation(end) ? 'u' : '-', xive_end_is_silent_escalation(end) ? 's' : '-', + xive_end_is_firmware(end) ? 'f' : '-', priority, nvt_blk, nvt_idx); =20 if (qaddr_base) { diff --git a/include/hw/ppc/xive_regs.h b/include/hw/ppc/xive_regs.h index 7879692825..b7fde2354e 100644 --- a/include/hw/ppc/xive_regs.h +++ b/include/hw/ppc/xive_regs.h @@ -236,6 +236,8 @@ typedef struct XiveEND { (be32_to_cpu((end)->w0) & END_W0_UNCOND_ESCALATE) #define xive_end_is_silent_escalation(end) \ (be32_to_cpu((end)->w0) & END_W0_SILENT_ESCALATE) +#define xive_end_is_firmware(end) \ + (be32_to_cpu((end)->w0) & END_W0_FIRMWARE) =20 static inline uint64_t xive_end_qaddr(XiveEND *end) { --=20 2.29.2