get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 591647,
    "url": "http://patchwork.ozlabs.org/api/patches/591647/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1457049194-9281-5-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-5-git-send-email-gwshan@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1457049194-9281-5-git-send-email-gwshan@linux.vnet.ibm.com/",
    "date": "2016-03-03T23:53:06",
    "name": "[v15,04/12] powerpc/eeh: Cache normal BARs, not windows or IOV BARs",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c62576481f027f5f9abbb7d20da8e0fb9662a8b1",
    "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-5-git-send-email-gwshan@linux.vnet.ibm.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/591647/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/591647/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 [IPv6:2401:3900:2:1::3])\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 D376E141B2C\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  4 Mar 2016 10:55:22 +1100 (AEDT)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id A9F841A0C89\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  4 Mar 2016 10:55:22 +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 906281A005D\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri,  4 Mar 2016 10:54:19 +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:18 +1000",
            "from d23dlp03.au.ibm.com (202.81.31.214)\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:16 +1000",
            "from d23relay08.au.ibm.com (d23relay08.au.ibm.com [9.185.71.33])\n\tby d23dlp03.au.ibm.com (Postfix) with ESMTP id C91363578058\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri,  4 Mar 2016 10:54:13 +1100 (EST)",
            "from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96])\n\tby d23relay08.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tu23Ns5f962128354\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 4 Mar 2016 10:54:13 +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\tu23NrfUJ004890\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 4 Mar 2016 10:53:41 +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\tu23NrfPp004555; Fri, 4 Mar 2016 10:53:41 +1100",
            "from bran.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114])\n\tby ozlabs.au.ibm.com (Postfix) with ESMTP id D52F2A0248;\n\tFri,  4 Mar 2016 10:53:16 +1100 (AEDT)",
            "from gwshan (shangw.ozlabs.ibm.com [10.61.2.199])\n\tby bran.ozlabs.ibm.com (Postfix) with ESMTP id CE87CE39EB;\n\tFri,  4 Mar 2016 10:53:16 +1100 (AEDT)",
            "by gwshan (Postfix, from userid 1000)\n\tid BDFAF9424AF; Fri,  4 Mar 2016 10:53:16 +1100 (AEDT)"
        ],
        "X-IBM-Helo": "d23dlp03.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 04/12] powerpc/eeh: Cache normal BARs,\n\tnot windows or IOV BARs",
        "Date": "Fri,  4 Mar 2016 10:53:06 +1100",
        "Message-Id": "<1457049194-9281-5-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-000003708C31",
        "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": "Wei Yang <weiyang@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": "From: Wei Yang <weiyang@linux.vnet.ibm.com>\n\nThis restricts the EEH address cache to use only the first 7 BARs. This\nmakes __eeh_addr_cache_insert_dev() ignore PCI bridge window and IOV BARs.\nAs the result of this change, eeh_addr_cache_get_dev() will return VFs from\nVF's resource addresses instead of parent PFs.\n\nThis also removes PCI bridge check as we limit __eeh_addr_cache_insert_dev()\nto 7 BARs and this effectively excludes PCI bridges from being cached.\n\nSigned-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>\nAcked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>\n---\n arch/powerpc/kernel/eeh_cache.c | 11 +++++------\n 1 file changed, 5 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/arch/powerpc/kernel/eeh_cache.c b/arch/powerpc/kernel/eeh_cache.c\nindex a1e86e1..ddbcfab 100644\n--- a/arch/powerpc/kernel/eeh_cache.c\n+++ b/arch/powerpc/kernel/eeh_cache.c\n@@ -195,8 +195,11 @@ static void __eeh_addr_cache_insert_dev(struct pci_dev *dev)\n \t\treturn;\n \t}\n \n-\t/* Walk resources on this device, poke them into the tree */\n-\tfor (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {\n+\t/*\n+\t * Walk resources on this device, poke the first 7 (6 normal BAR and 1\n+\t * ROM BAR) into the tree.\n+\t */\n+\tfor (i = 0; i <= PCI_ROM_RESOURCE; i++) {\n \t\tresource_size_t start = pci_resource_start(dev,i);\n \t\tresource_size_t end = pci_resource_end(dev,i);\n \t\tunsigned long flags = pci_resource_flags(dev,i);\n@@ -222,10 +225,6 @@ void eeh_addr_cache_insert_dev(struct pci_dev *dev)\n {\n \tunsigned long flags;\n \n-\t/* Ignore PCI bridges */\n-\tif ((dev->class >> 16) == PCI_BASE_CLASS_BRIDGE)\n-\t\treturn;\n-\n \tspin_lock_irqsave(&pci_io_addr_cache_root.piar_lock, flags);\n \t__eeh_addr_cache_insert_dev(dev);\n \tspin_unlock_irqrestore(&pci_io_addr_cache_root.piar_lock, flags);\n",
    "prefixes": [
        "v15",
        "04/12"
    ]
}