Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/811641/?format=api
{ "id": 811641, "url": "http://patchwork.ozlabs.org/api/patches/811641/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170908143344.12960-2-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": "<20170908143344.12960-2-clg@kaod.org>", "list_archive_url": null, "date": "2017-09-08T14:33:42", "name": "[1/3] ppc/xive: fix OV5_XIVE_EXPLOIT bits", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "93ce9649de0d1ca69d00932692e2b922a0567748", "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/20170908143344.12960-2-clg@kaod.org/mbox/", "series": [ { "id": 2230, "url": "http://patchwork.ozlabs.org/api/series/2230/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2230", "date": "2017-09-08T14:33:43", "name": "spapr: XIVE and CAS fixes", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2230/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811641/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811641/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 3xpg0w6k36z9s7G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 9 Sep 2017 00:38:23 +1000 (AEST)", "from localhost ([::1]:45768 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 1dqKQH-00078Y-BY\n\tfor incoming@patchwork.ozlabs.org; Fri, 08 Sep 2017 10:38:21 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:54577)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <clg@kaod.org>) id 1dqKMT-0004Gw-Ja\n\tfor qemu-devel@nongnu.org; Fri, 08 Sep 2017 10:34:26 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <clg@kaod.org>) id 1dqKMN-0001Lv-Gc\n\tfor qemu-devel@nongnu.org; Fri, 08 Sep 2017 10:34:25 -0400", "from 15.mo4.mail-out.ovh.net ([91.121.62.11]:43875)\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 1dqKMN-0001Ks-BH\n\tfor qemu-devel@nongnu.org; Fri, 08 Sep 2017 10:34:19 -0400", "from player159.ha.ovh.net (b9.ovh.net [213.186.33.59])\n\tby mo4.mail-out.ovh.net (Postfix) with ESMTP id 1C8539564A\n\tfor <qemu-devel@nongnu.org>; Fri, 8 Sep 2017 16:34:18 +0200 (CEST)", "from zorba.kaod.org.com\n\t(i15-les03-th2-31-37-69-229.sfr.lns.abo.bbox.fr [31.37.69.229])\n\t(Authenticated sender: clg@kaod.org)\n\tby player159.ha.ovh.net (Postfix) with ESMTPSA id B733E48009C;\n\tFri, 8 Sep 2017 16:34:12 +0200 (CEST)" ], "From": "=?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@kaod.org>", "To": "qemu-ppc@nongnu.org,\n\tqemu-devel@nongnu.org", "Date": "Fri, 8 Sep 2017 16:33:42 +0200", "Message-Id": "<20170908143344.12960-2-clg@kaod.org>", "X-Mailer": "git-send-email 2.13.5", "In-Reply-To": "<20170908143344.12960-1-clg@kaod.org>", "References": "<20170908143344.12960-1-clg@kaod.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "X-Ovh-Tracer-Id": "12279627336593607507", "X-VR-SPAMSTATE": "OK", "X-VR-SPAMSCORE": "-100", "X-VR-SPAMCAUSE": "gggruggvucftvghtrhhoucdtuddrfeelledrfeeggdejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd", "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": "91.121.62.11", "Subject": "[Qemu-devel] [PATCH 1/3] ppc/xive: fix OV5_XIVE_EXPLOIT bits", "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>,\n\tMichael Roth <mdroth@linux.vnet.ibm.com>, David Gibson\n\t<david@gibson.dropbear.id.au>", "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": "On POWER9, the Client Architecture Support (CAS) negotiation process\ndetermines whether the guest operates in XIVE Legacy compatibility or\nin XIVE exploitation mode. Now that we have initial guest support for\nthe XIVE interrupt controller, let's fix the bits definition which have\nevolved in the latest specs.\n\nThe platform advertises the XIVE Exploitation Mode support using the\nproperty \"ibm,arch-vec-5-platform-support-vec-5\", byte 23 bits 0-1 :\n\n - 0b00 XIVE legacy mode Only\n - 0b01 XIVE exploitation mode Only\n - 0b10 XIVE legacy or exploitation mode\n\nThe OS asks for XIVE Exploitation Mode support using the property\n\"ibm,architecture-vec-5\", byte 23 bits 0-1:\n\n - 0b00 XIVE legacy mode Only\n - 0b01 XIVE exploitation mode Only\n\nSigned-off-by: Cédric Le Goater <clg@kaod.org>\n---\n hw/ppc/spapr.c | 2 +-\n include/hw/ppc/spapr_ovec.h | 3 ++-\n 2 files changed, 3 insertions(+), 2 deletions(-)", "diff": "diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c\nindex cec441cbf48d..3e3ff1fbc988 100644\n--- a/hw/ppc/spapr.c\n+++ b/hw/ppc/spapr.c\n@@ -914,7 +914,7 @@ static void spapr_dt_ov5_platform_support(void *fdt, int chosen)\n PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu);\n \n char val[2 * 4] = {\n- 23, 0x00, /* Xive mode: 0 = legacy (as in ISA 2.7), 1 = Exploitation */\n+ 23, 0x00, /* Xive mode, filled in below. */\n 24, 0x00, /* Hash/Radix, filled in below. */\n 25, 0x00, /* Hash options: Segment Tables == no, GTSE == no. */\n 26, 0x40, /* Radix options: GTSE == yes. */\ndiff --git a/include/hw/ppc/spapr_ovec.h b/include/hw/ppc/spapr_ovec.h\nindex 9edfa5ff7530..bf25e5d954a1 100644\n--- a/include/hw/ppc/spapr_ovec.h\n+++ b/include/hw/ppc/spapr_ovec.h\n@@ -51,7 +51,8 @@ typedef struct sPAPROptionVector sPAPROptionVector;\n #define OV5_FORM1_AFFINITY OV_BIT(5, 0)\n #define OV5_HP_EVT OV_BIT(6, 5)\n #define OV5_HPT_RESIZE OV_BIT(6, 7)\n-#define OV5_XIVE_EXPLOIT OV_BIT(23, 7)\n+#define OV5_XIVE_BOTH OV_BIT(23, 0)\n+#define OV5_XIVE_EXPLOIT OV_BIT(23, 1) /* 1=exploitation 0=legacy */\n \n /* ISA 3.00 MMU features: */\n #define OV5_MMU_BOTH OV_BIT(24, 0) /* Radix and hash */\n", "prefixes": [ "1/3" ] }