From nobody Tue Feb 10 14:33:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.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=1566374248; cv=none; d=zoho.com; s=zohoarc; b=VLboVxgskTZaKgtW1w6hEPt7SsJAsz15PJqdMOMnA7UX9fA48pa+th81ppi/m5OMwAi83TJ/WDTw7hv2eHVSmHdnwoSyf0aNUnmifVDvQRn9aPvt0/B8yW1Gp1YryDaumQ1i84u93bRMPHW7dimYJ77E0G2Nq3TkVN3MxRNRn2A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566374248; 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:ARC-Authentication-Results; bh=L5XR7FW7/P2s4eo4fSL94+xpd9+7cB+TSkFiCHLU3as=; b=Z1mohqxpwXW8kSc9FbuybidnuIf2BlDJMOsg36lE5qqjLzEdkPQOcEIwEB8bM1ihuuStcnemfgfcqccAcLkNrGxhmVFz3VVCRLb2xgVRmfl33fvtweqPE7n+a1o9f2BucYalUgQmYpGVGiwh0LhookB8Nu2y+aMd/LBPMaC7FZ0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.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 1566374248176996.9950265486517; Wed, 21 Aug 2019 00:57:28 -0700 (PDT) Received: from localhost ([::1]:44756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0LUi-00008U-S0 for importer@patchew.org; Wed, 21 Aug 2019 03:57:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42812) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0L1C-0005a3-RG for qemu-devel@nongnu.org; Wed, 21 Aug 2019 03:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0L1B-0000Fz-O2 for qemu-devel@nongnu.org; Wed, 21 Aug 2019 03:26:54 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:58457) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i0L1B-0008SS-6Q; Wed, 21 Aug 2019 03:26:53 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 46CzjG4wxZz9sQx; Wed, 21 Aug 2019 17:25:50 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1566372354; bh=w8jJ4HioXwrN0ISowEXNExCB5N6zlcEr6dihcQPI6D0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rtxyf0s/tsHX4/mTTvBBggoE/aBraVGmqVs81Wl/AMAXuOxrH0zBpbLuM1RA79XuW Em/SomeCtHyFwgPbn/5VJzZhTpjacz+/9dBwyscafe3EGx1AFuosmetbUaG/sFc2jc 6KKE9MS5cv1gq5z5CRVvr4m1wE5ORIbQxNY8TWQ8= From: David Gibson To: peter.maydell@linaro.org Date: Wed, 21 Aug 2019 17:25:27 +1000 Message-Id: <20190821072542.23090-28-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190821072542.23090-1-david@gibson.dropbear.id.au> References: <20190821072542.23090-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 27/42] ppc/xive: Provide silent escalation support 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: lvivier@redhat.com, aik@ozlabs.ru, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: C=C3=A9dric Le Goater When the 's' bit is set the escalation is said to be 'silent' or 'silent/gather'. In such configuration, the notification sequence is skipped and only the escalation sequence is performed. This is used to configure all the EQs of a vCPU to escalate on a single EQ which will then target the hypervisor. Signed-off-by: C=C3=A9dric Le Goater Message-Id: <20190718115420.19919-8-clg@kaod.org> Signed-off-by: David Gibson --- hw/intc/xive.c | 8 ++++++++ include/hw/ppc/xive_regs.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/hw/intc/xive.c b/hw/intc/xive.c index 3fe84f3e76..dd7d02dfdf 100644 --- a/hw/intc/xive.c +++ b/hw/intc/xive.c @@ -1485,6 +1485,13 @@ static void xive_router_end_notify(XiveRouter *xrtr,= uint8_t end_blk, xive_router_write_end(xrtr, end_blk, end_idx, &end, 1); } =20 + /* + * When the END is silent, we skip the notification part. + */ + if (xive_end_is_silent_escalation(&end)) { + goto do_escalation; + } + /* * The W7 format depends on the F bit in W6. It defines the type * of the notification : @@ -1564,6 +1571,7 @@ static void xive_router_end_notify(XiveRouter *xrtr, = uint8_t end_blk, */ } =20 +do_escalation: /* * If activated, escalate notification using the ESe PQ bits and * the EAS in w4-5 diff --git a/include/hw/ppc/xive_regs.h b/include/hw/ppc/xive_regs.h index 4378d7259c..fed019516f 100644 --- a/include/hw/ppc/xive_regs.h +++ b/include/hw/ppc/xive_regs.h @@ -212,6 +212,8 @@ typedef struct XiveEND { #define xive_end_is_escalate(end) (be32_to_cpu((end)->w0) & END_W0_ESCALAT= E_CTL) #define xive_end_is_uncond_escalation(end) \ (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) =20 static inline uint64_t xive_end_qaddr(XiveEND *end) { --=20 2.21.0