get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 591658,
    "url": "http://patchwork.ozlabs.org/api/patches/591658/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1457049194-9281-11-git-send-email-gwshan@linux.vnet.ibm.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": "<1457049194-9281-11-git-send-email-gwshan@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1457049194-9281-11-git-send-email-gwshan@linux.vnet.ibm.com/",
    "date": "2016-03-03T23:53:12",
    "name": "[v15,10/12] powerpc/eeh: Don't propagate error to guest",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a0592010d3acefdd67693abbf9e4bc65f27bd398",
    "submitter": {
        "id": 63923,
        "url": "http://patchwork.ozlabs.org/api/people/63923/?format=api",
        "name": "Gavin Shan",
        "email": "gwshan@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1457049194-9281-11-git-send-email-gwshan@linux.vnet.ibm.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/591658/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/591658/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 AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id BC095140FDF\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  4 Mar 2016 11:09:36 +1100 (AEDT)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id A180B1A0D99\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  4 Mar 2016 11:09:36 +1100 (AEDT)",
            "from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144])\n\t(using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id D65D01A0C0F\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri,  4 Mar 2016 10:54:44 +1100 (AEDT)",
            "from localhost\n\tby e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <gwshan@linux.vnet.ibm.com>; \n\tFri, 4 Mar 2016 09:54:44 +1000",
            "from d23dlp02.au.ibm.com (202.81.31.213)\n\tby e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tFri, 4 Mar 2016 09:54:38 +1000",
            "from d23relay06.au.ibm.com (d23relay06.au.ibm.com [9.185.63.219])\n\tby d23dlp02.au.ibm.com (Postfix) with ESMTP id D2F322BB005B\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri,  4 Mar 2016 10:54:37 +1100 (EST)",
            "from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96])\n\tby d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tu23NsT6O43581602\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 4 Mar 2016 10:54:37 +1100",
            "from d23av01.au.ibm.com (localhost [127.0.0.1])\n\tby d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tu23Ns5ib005203\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 4 Mar 2016 10:54:05 +1100",
            "from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14])\n\tby d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tu23Ns5qs004896; Fri, 4 Mar 2016 10:54:05 +1100",
            "from bran.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114])\n\tby ozlabs.au.ibm.com (Postfix) with ESMTP id 1398BA038D;\n\tFri,  4 Mar 2016 10:53:18 +1100 (AEDT)",
            "from gwshan (shangw.ozlabs.ibm.com [10.61.2.199])\n\tby bran.ozlabs.ibm.com (Postfix) with ESMTP id 0D2A7E39EB;\n\tFri,  4 Mar 2016 10:53:18 +1100 (AEDT)",
            "by gwshan (Postfix, from userid 1000)\n\tid 00C819424AF; Fri,  4 Mar 2016 10:53:17 +1100 (AEDT)"
        ],
        "X-IBM-Helo": "d23dlp02.au.ibm.com",
        "X-IBM-MailFrom": "gwshan@linux.vnet.ibm.com",
        "X-IBM-RcptTo": "linuxppc-dev@lists.ozlabs.org",
        "From": "Gavin Shan <gwshan@linux.vnet.ibm.com>",
        "To": "linuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH v15 10/12] powerpc/eeh: Don't propagate error to guest",
        "Date": "Fri,  4 Mar 2016 10:53:12 +1100",
        "Message-Id": "<1457049194-9281-11-git-send-email-gwshan@linux.vnet.ibm.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1457049194-9281-1-git-send-email-gwshan@linux.vnet.ibm.com>",
        "References": "<1457049194-9281-1-git-send-email-gwshan@linux.vnet.ibm.com>",
        "X-TM-AS-MML": "disable",
        "X-Content-Scanned": "Fidelis XPS MAILER",
        "x-cbid": "16030323-0005-0000-0000-000003708C4A",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.20",
        "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": "Gavin Shan <gwshan@linux.vnet.ibm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "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 EEH error happened to the parent PE of those PEs that have\nbeen passed through to guest, the error is propagated to guest\ndomain and the VFIO driver's error handlers are called. It's not\ncorrect as the error in the host domain shouldn't be propagated\nto guests and affect them.\n\nThis adds one more limitation when calling EEH error handlers.\nIf the PE has been passed through to guest, the error handlers\nwon't be called.\n\nSigned-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>\nReviewed-by: Russell Currey <ruscur@russell.cc>\n---\n arch/powerpc/kernel/eeh_driver.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/arch/powerpc/kernel/eeh_driver.c b/arch/powerpc/kernel/eeh_driver.c\nindex c0fe7a6..6c59de8 100644\n--- a/arch/powerpc/kernel/eeh_driver.c\n+++ b/arch/powerpc/kernel/eeh_driver.c\n@@ -195,7 +195,7 @@ static void *eeh_report_error(void *data, void *userdata)\n \tenum pci_ers_result rc, *res = userdata;\n \tstruct pci_driver *driver;\n \n-\tif (!dev || eeh_dev_removed(edev))\n+\tif (!dev || eeh_dev_removed(edev) || eeh_pe_passed(edev->pe))\n \t\treturn NULL;\n \tdev->error_state = pci_channel_io_frozen;\n \n@@ -237,7 +237,7 @@ static void *eeh_report_mmio_enabled(void *data, void *userdata)\n \tenum pci_ers_result rc, *res = userdata;\n \tstruct pci_driver *driver;\n \n-\tif (!dev || eeh_dev_removed(edev))\n+\tif (!dev || eeh_dev_removed(edev) || eeh_pe_passed(edev->pe))\n \t\treturn NULL;\n \n \tdriver = eeh_pcid_get(dev);\n@@ -277,7 +277,7 @@ static void *eeh_report_reset(void *data, void *userdata)\n \tenum pci_ers_result rc, *res = userdata;\n \tstruct pci_driver *driver;\n \n-\tif (!dev || eeh_dev_removed(edev))\n+\tif (!dev || eeh_dev_removed(edev) || eeh_pe_passed(edev->pe))\n \t\treturn NULL;\n \tdev->error_state = pci_channel_io_normal;\n \n@@ -336,7 +336,7 @@ static void *eeh_report_resume(void *data, void *userdata)\n \tbool was_in_error;\n \tstruct pci_driver *driver;\n \n-\tif (!dev || eeh_dev_removed(edev))\n+\tif (!dev || eeh_dev_removed(edev) || eeh_pe_passed(edev->pe))\n \t\treturn NULL;\n \tdev->error_state = pci_channel_io_normal;\n \n@@ -375,7 +375,7 @@ static void *eeh_report_failure(void *data, void *userdata)\n \tstruct pci_dev *dev = eeh_dev_to_pci_dev(edev);\n \tstruct pci_driver *driver;\n \n-\tif (!dev || eeh_dev_removed(edev))\n+\tif (!dev || eeh_dev_removed(edev) || eeh_pe_passed(edev->pe))\n \t\treturn NULL;\n \tdev->error_state = pci_channel_io_perm_failure;\n \n",
    "prefixes": [
        "v15",
        "10/12"
    ]
}