get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66058,
    "url": "https://patches.dpdk.org/api/patches/66058/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200226195033.33877-1-drc@linux.vnet.ibm.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200226195033.33877-1-drc@linux.vnet.ibm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200226195033.33877-1-drc@linux.vnet.ibm.com",
    "date": "2020-02-26T19:50:33",
    "name": "bus/pci: support iova=va on PowerNV systems",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4201122773967c2096c38f084d04dc4e54c66722",
    "submitter": {
        "id": 1256,
        "url": "https://patches.dpdk.org/api/people/1256/?format=api",
        "name": "David Christensen",
        "email": "drc@linux.vnet.ibm.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200226195033.33877-1-drc@linux.vnet.ibm.com/mbox/",
    "series": [
        {
            "id": 8701,
            "url": "https://patches.dpdk.org/api/series/8701/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8701",
            "date": "2020-02-26T19:50:33",
            "name": "bus/pci: support iova=va on PowerNV systems",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/8701/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/66058/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/66058/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4F9D7A055A;\n\tWed, 26 Feb 2020 20:50:43 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1F0BB1BFAB;\n\tWed, 26 Feb 2020 20:50:42 +0100 (CET)",
            "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id 0E40D2C02\n for <dev@dpdk.org>; Wed, 26 Feb 2020 20:50:40 +0100 (CET)",
            "from pps.filterd (m0098413.ppops.net [127.0.0.1])\n by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 01QJoOIu145660 for <dev@dpdk.org>; Wed, 26 Feb 2020 14:50:40 -0500",
            "from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com\n [169.55.85.253])\n by mx0b-001b2d01.pphosted.com with ESMTP id 2ydq601rae-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Wed, 26 Feb 2020 14:50:39 -0500",
            "from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1])\n by ppma01wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01QJmOKU018102\n for <dev@dpdk.org>; Wed, 26 Feb 2020 19:50:39 GMT",
            "from b03cxnp08028.gho.boulder.ibm.com\n (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20])\n by ppma01wdc.us.ibm.com with ESMTP id 2ydcmkfpx4-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Wed, 26 Feb 2020 19:50:39 +0000",
            "from b03ledav006.gho.boulder.ibm.com\n (b03ledav006.gho.boulder.ibm.com [9.17.130.237])\n by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 01QJocp359441656\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Wed, 26 Feb 2020 19:50:38 GMT",
            "from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 78037C6057;\n Wed, 26 Feb 2020 19:50:38 +0000 (GMT)",
            "from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 46149C605A;\n Wed, 26 Feb 2020 19:50:38 +0000 (GMT)",
            "from localhost.localdomain (unknown [9.114.224.51])\n by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP;\n Wed, 26 Feb 2020 19:50:38 +0000 (GMT)"
        ],
        "From": "David Christensen <drc@linux.vnet.ibm.com>",
        "To": "dev@dpdk.org",
        "Cc": "David Christensen <drc@linux.vnet.ibm.com>",
        "Date": "Wed, 26 Feb 2020 11:50:33 -0800",
        "Message-Id": "<20200226195033.33877-1-drc@linux.vnet.ibm.com>",
        "X-Mailer": "git-send-email 2.18.1",
        "X-TM-AS-GCONF": "00",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-02-26_07:2020-02-26,\n 2020-02-26 signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n spamscore=0\n lowpriorityscore=0 adultscore=0 malwarescore=0 mlxlogscore=999\n clxscore=1015 bulkscore=0 suspectscore=1 mlxscore=0 phishscore=0\n priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx\n scancount=1 engine=8.12.0-2001150001 definitions=main-2002260120",
        "Subject": "[dpdk-dev] [PATCH] bus/pci: support iova=va on PowerNV systems",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Bare metal PowerNV systems include a DPDK supported IOMMU that allows\nIOVA=VA support. Test for the platform type and report virtual address\nsupport if running on a PowerNV system.\n\nSigned-off-by: David Christensen <drc@linux.vnet.ibm.com>\n---\n drivers/bus/pci/linux/pci.c | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)",
    "diff": "diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c\nindex 740a2cdad..696dc177e 100644\n--- a/drivers/bus/pci/linux/pci.c\n+++ b/drivers/bus/pci/linux/pci.c\n@@ -549,6 +549,35 @@ pci_device_iommu_support_va(const struct rte_pci_device *dev)\n bool\n pci_device_iommu_support_va(__rte_unused const struct rte_pci_device *dev)\n {\n+\t/*\n+\t * IOMMU is always present on a PowerNV host (IOMMUv2).\n+\t * IOMMU is also present in a KVM/QEMU VM (IOMMUv1) but is not\n+\t * currently supported by DPDK. Test for our current environment\n+\t * and report VA support as appropriate.\n+\t */\n+\n+\tchar *line = 0;\n+\tsize_t len = 0;\n+\tchar filename[PATH_MAX] = \"/proc/cpuinfo\";\n+\tFILE *fp = fopen(filename, \"r\");\n+\n+\tif (fp == NULL) {\n+\t\tRTE_LOG(ERR, EAL, \"%s(): can't open %s: %s\\n\",\n+\t\t\t__func__, filename, strerror(errno));\n+\t\treturn false;\n+\t}\n+\n+\t/* Check for a PowerNV platform */\n+\twhile (getline(&line, &len, fp) != -1) {\n+\t\tif (strstr(line, \"platform\") != NULL)\n+\t\t\tif (strstr(line, \"PowerNV\") != NULL) {\n+\t\t\t\tRTE_LOG(DEBUG, EAL, \"Running on a PowerNV system\\n\");\n+\t\t\t\tfclose(fp);\n+\t\t\t\treturn true;\n+\t\t\t}\n+\t}\n+\tfclose(fp);\n+\n \treturn false;\n }\n #else\n",
    "prefixes": []
}