get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/737840/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 737840,
    "url": "http://patchwork.ozlabs.org/api/patches/737840/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170312170349.20323-2-npiggin@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<20170312170349.20323-2-npiggin@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170312170349.20323-2-npiggin@gmail.com/",
    "date": "2017-03-12T17:03:49",
    "name": "KVM: PPC: Book3S HV: Use msgsync for hypervisor doorbells on POWER9",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "1738fda7fac0aebfd13b56491801dc91b176496a",
    "submitter": {
        "id": 69518,
        "url": "http://patchwork.ozlabs.org/api/people/69518/?format=api",
        "name": "Nicholas Piggin",
        "email": "npiggin@gmail.com"
    },
    "delegate": {
        "id": 13,
        "url": "http://patchwork.ozlabs.org/api/users/13/?format=api",
        "username": "paulus",
        "first_name": "Paul",
        "last_name": "Mackerras",
        "email": "paulus@samba.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170312170349.20323-2-npiggin@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/737840/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/737840/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3vh6sG5PqZz9s7K\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 13 Mar 2017 04:08:34 +1100 (AEDT)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3vh6sG2n2LzDqYd\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 13 Mar 2017 04:08:34 +1100 (AEDT)",
            "from mail-pg0-x243.google.com (mail-pg0-x243.google.com\n\t[IPv6:2607:f8b0:400e:c05::243])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3vh6mJ0Z2VzDqYB\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 13 Mar 2017 04:04:16 +1100 (AEDT)",
            "by mail-pg0-x243.google.com with SMTP id g2so11195925pge.2\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSun, 12 Mar 2017 10:04:15 -0700 (PDT)",
            "from roar.au.ibm.com ([203.221.48.234])\n\tby smtp.gmail.com with ESMTPSA id\n\t73sm29194691pfh.56.2017.03.12.10.04.10\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 12 Mar 2017 10:04:13 -0700 (PDT)"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"C9vbTWWZ\"; dkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"C9vbTWWZ\"; dkim-atps=neutral",
            "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"C9vbTWWZ\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=BfCU6AMmKFkSNkXovv6vZ579YwuiV5uu++s1MPtNJIg=;\n\tb=C9vbTWWZev9NDU9DPGbL0nbNgtG7GYvE8W55fQwhQOoLMk32mriejLCL1PYH0KoZVa\n\t20bcu3WBN0MhjNHPOZIdB892S2pZi+B737nhPN3rlPr9ooq1zYwinJrVUXHH/NvsQir9\n\tdw3tevOZCcnCT8ANtBuBBvzEGkzac1JqLCb1q2IJmAlh67a7BOfy7zmjbVsd2H4/V5D8\n\tfB3pDnqA0tbBR3YoC9QAJ8LlF6KRqI+sXj6lCa5XfTVg/6T8pHxB+SWkBHUFN7CeiWz1\n\t2J+4EepalZXMGG5EScbcJV5BYjNYj0p8peV4fVC9Jw6wq9IJCzPVfAgfr4iViOorhoFp\n\tkrbQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=BfCU6AMmKFkSNkXovv6vZ579YwuiV5uu++s1MPtNJIg=;\n\tb=W7MPWWv7+Tl8g2VyIgqfs34Hobub+4jWuY7VyqSPCSQGYKqYe84ADeOdQcwmflHlwd\n\tY1OeNeqz0v5X3TAlV5YTi5QHwW/QaG8OLXB7fMmepcplQcuiau79U2WdMRSxW3JD26kt\n\t4ZiSrdOKUZImFV0t3ay0QFGyvPYsxX1uvUeFVwjH+ZvNrtGmG3lQ35zezaqct8I3EL+4\n\tg0CQkex+nGKcV1/NQ2kNoYrFILTLn6D0QbybMqqBIQYGtmZGgg2nBn1qy+fGts9vzfo7\n\tpYLbPpiix7JpaqFdnI6kkCFJ1Wm0TAHNyEDzxN7VQCatzg3v5ROvm5uUtk8K97W9HM2K\n\ttS4A==",
        "X-Gm-Message-State": "AMke39nLLieUmXzOaXDuQgODx6GjkA+8zF2b0CIhBzHP3Lmhvjb/xbK0XI5iwhdD1JASzg==",
        "X-Received": "by 10.84.129.195 with SMTP id b61mr41230924plb.83.1489338254460; \n\tSun, 12 Mar 2017 10:04:14 -0700 (PDT)",
        "From": "Nicholas Piggin <npiggin@gmail.com>",
        "To": "kvm-ppc@vger.kernel.org",
        "Subject": "[PATCH] KVM: PPC: Book3S HV: Use msgsync for hypervisor doorbells on\n\tPOWER9",
        "Date": "Mon, 13 Mar 2017 03:03:49 +1000",
        "Message-Id": "<20170312170349.20323-2-npiggin@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170312170349.20323-1-npiggin@gmail.com>",
        "References": "<20170312170349.20323-1-npiggin@gmail.com>",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "Paul Mackerras <paulus@samba.org>, linuxppc-dev@lists.ozlabs.org,\n\tNicholas Piggin <npiggin@gmail.com>",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "When msgsnd is used for IPIs to other cores, msgsync must be executed by\nthe target to order stores performed on the source before its msgsnd\n(provided the source executes the appropriate sync).\n\nFixes: 1704a81ccebc (\"KVM: PPC: Book3S HV: Use msgsnd for IPIs to other cores on POWER9\")\nSigned-off-by: Nicholas Piggin <npiggin@gmail.com>\n\n---\nHi,\n\nI found this by inspection only and don't have a way to test it\n(I have no POWER9 KVM set up yet). I don't know the KVM interrupt\ncode very well, so it might not be the right way to fix it. Flames\nwelcome.\n\nThanks,\nNick\n\n\n arch/powerpc/include/asm/ppc-opcode.h   | 2 ++\n arch/powerpc/kvm/book3s_hv_rmhandlers.S | 3 +++\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h\nindex e7d6d86563ee..142d78d645f4 100644\n--- a/arch/powerpc/include/asm/ppc-opcode.h\n+++ b/arch/powerpc/include/asm/ppc-opcode.h\n@@ -161,6 +161,7 @@\n #define PPC_INST_MFTMR\t\t\t0x7c0002dc\n #define PPC_INST_MSGSND\t\t\t0x7c00019c\n #define PPC_INST_MSGCLR\t\t\t0x7c0001dc\n+#define PPC_INST_MSGSYNC\t\t0x7c0006ec\n #define PPC_INST_MSGSNDP\t\t0x7c00011c\n #define PPC_INST_MTTMR\t\t\t0x7c0003dc\n #define PPC_INST_NOP\t\t\t0x60000000\n@@ -345,6 +346,7 @@\n \t\t\t\t\t___PPC_RB(b) | __PPC_EH(eh))\n #define PPC_MSGSND(b)\t\tstringify_in_c(.long PPC_INST_MSGSND | \\\n \t\t\t\t\t___PPC_RB(b))\n+#define PPC_MSGSYNC\t\tstringify_in_c(.long PPC_INST_MSGSYNC)\n #define PPC_MSGCLR(b)\t\tstringify_in_c(.long PPC_INST_MSGCLR | \\\n \t\t\t\t\t___PPC_RB(b))\n #define PPC_MSGSNDP(b)\t\tstringify_in_c(.long PPC_INST_MSGSNDP | \\\ndiff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S\nindex 7c6477d1840a..caba3afe787d 100644\n--- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S\n+++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S\n@@ -1239,6 +1239,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR)\n \t/* Hypervisor doorbell - exit only if host IPI flag set */\n \tcmpwi\tr12, BOOK3S_INTERRUPT_H_DOORBELL\n \tbne\t3f\n+BEGIN_FTR_SECTION\n+\tPPC_MSGSYNC\n+END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300)\n \tlbz\tr0, HSTATE_HOST_IPI(r13)\n \tcmpwi\tr0, 0\n \tbeq\t4f\n",
    "prefixes": []
}