Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/812477/?format=api
{ "id": 812477, "url": "http://patchwork.ozlabs.org/api/patches/812477/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170911171235.29331-14-clg@kaod.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170911171235.29331-14-clg@kaod.org>", "list_archive_url": null, "date": "2017-09-11T17:12:27", "name": "[RFC,v2,13/21] ppc/xive: handle interrupt acknowledgment by the O/S", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "184f47269de58f49c62b71e32bb21077ba6687a0", "submitter": { "id": 68548, "url": "http://patchwork.ozlabs.org/api/people/68548/?format=api", "name": "Cédric Le Goater", "email": "clg@kaod.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170911171235.29331-14-clg@kaod.org/mbox/", "series": [ { "id": 2526, "url": "http://patchwork.ozlabs.org/api/series/2526/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2526", "date": "2017-09-11T17:12:14", "name": "Guest exploitation of the XIVE interrupt controller (POWER9)", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/2526/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/812477/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/812477/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrZfC4vM8z9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 03:28:51 +1000 (AEST)", "from localhost ([::1]:59353 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1drSVt-00061G-M9\n\tfor incoming@patchwork.ozlabs.org; Mon, 11 Sep 2017 13:28:49 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:35469)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <clg@kaod.org>) id 1drSI0-0001X4-Br\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 13:14:32 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <clg@kaod.org>) id 1drSHv-0004ZV-RH\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 13:14:28 -0400", "from 2.mo2.mail-out.ovh.net ([188.165.53.149]:39178)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <clg@kaod.org>) id 1drSHv-0004Xq-LX\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 13:14:23 -0400", "from player770.ha.ovh.net (b6.ovh.net [213.186.33.56])\n\tby mo2.mail-out.ovh.net (Postfix) with ESMTP id 79984AB24B\n\tfor <qemu-devel@nongnu.org>; Mon, 11 Sep 2017 19:14:22 +0200 (CEST)", "from zorba.kaod.org.com (LFbn-1-2231-173.w90-76.abo.wanadoo.fr\n\t[90.76.52.173]) (Authenticated sender: clg@kaod.org)\n\tby player770.ha.ovh.net (Postfix) with ESMTPSA id 4B7CF3C0073;\n\tMon, 11 Sep 2017 19:14:15 +0200 (CEST)" ], "From": "=?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>", "To": "qemu-ppc@nongnu.org, qemu-devel@nongnu.org,\n\tDavid Gibson <david@gibson.dropbear.id.au>,\n\tBenjamin Herrenschmidt <benh@kernel.crashing.org>,\n\tAlexey Kardashevskiy <aik@ozlabs.ru>, Alexander Graf <agraf@suse.de>", "Date": "Mon, 11 Sep 2017 19:12:27 +0200", "Message-Id": "<20170911171235.29331-14-clg@kaod.org>", "X-Mailer": "git-send-email 2.13.5", "In-Reply-To": "<20170911171235.29331-1-clg@kaod.org>", "References": "<20170911171235.29331-1-clg@kaod.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "X-Ovh-Tracer-Id": "14154250680636050259", "X-VR-SPAMSTATE": "OK", "X-VR-SPAMSCORE": "-100", "X-VR-SPAMCAUSE": "gggruggvucftvghtrhhoucdtuddrfeelledrgedtgdduudehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm", "Content-Transfer-Encoding": "quoted-printable", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]", "X-Received-From": "188.165.53.149", "Subject": "[Qemu-devel] [RFC PATCH v2 13/21] ppc/xive: handle interrupt\n\tacknowledgment by the O/S", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "=?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "When an O/S Exception is raised, the O/S acknowledges the interrupt\nwith a special read in the TIMA. If the EO bit of the Notification\nSource Register (NSR) is set (and it should), the Current Processor\nPriority Register (CPPR) takes the value of the Pending Interrupt\nPriority Register (PIPR), which contains the priority of the most\nfavored pending notification. The bit number corresponding to the\npriority of the pending interrupt is reseted in the Interrupt Pending\nBuffer (IPB) and so is the EO bit of the NSR.\n\nSigned-off-by: Cédric Le Goater <clg@kaod.org>\n---\n hw/intc/spapr_xive.c | 19 ++++++++++++++++++-\n 1 file changed, 18 insertions(+), 1 deletion(-)", "diff": "diff --git a/hw/intc/spapr_xive.c b/hw/intc/spapr_xive.c\nindex e5d4b723b7e0..ad3ff91b13ea 100644\n--- a/hw/intc/spapr_xive.c\n+++ b/hw/intc/spapr_xive.c\n@@ -50,7 +50,24 @@ static uint8_t ipb_to_pipr(uint8_t ibp)\n \n static uint64_t spapr_xive_icp_accept(ICPState *icp)\n {\n- return 0;\n+ uint8_t nsr = icp->tima_os[TM_NSR];\n+\n+ qemu_irq_lower(icp->output);\n+\n+ if (icp->tima_os[TM_NSR] & TM_QW1_NSR_EO) {\n+ uint8_t cppr = icp->tima_os[TM_PIPR];\n+\n+ icp->tima_os[TM_CPPR] = cppr;\n+\n+ /* Reset the pending buffer bit */\n+ icp->tima_os[TM_IPB] &= ~priority_to_ipb(cppr);\n+ icp->tima_os[TM_PIPR] = ipb_to_pipr(icp->tima_os[TM_IPB]);\n+\n+ /* Drop Exception bit for OS */\n+ icp->tima_os[TM_NSR] &= ~TM_QW1_NSR_EO;\n+ }\n+\n+ return (nsr << 8) | icp->tima_os[TM_CPPR];\n }\n \n static void spapr_xive_icp_notify(ICPState *icp)\n", "prefixes": [ "RFC", "v2", "13/21" ] }