get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43977,
    "url": "http://patches.dpdk.org/api/patches/43977/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1535558289-10336-1-git-send-email-eric.zhang@windriver.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1535558289-10336-1-git-send-email-eric.zhang@windriver.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1535558289-10336-1-git-send-email-eric.zhang@windriver.com",
    "date": "2018-08-29T15:58:09",
    "name": "eal: force IOVA mode to physical",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4a36fa511a7ff947996a01382d93a87eeb83e2db",
    "submitter": {
        "id": 1087,
        "url": "http://patches.dpdk.org/api/people/1087/?format=api",
        "name": "eric zhang",
        "email": "eric.zhang@windriver.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1535558289-10336-1-git-send-email-eric.zhang@windriver.com/mbox/",
    "series": [
        {
            "id": 1095,
            "url": "http://patches.dpdk.org/api/series/1095/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1095",
            "date": "2018-08-29T15:58:09",
            "name": "eal: force IOVA mode to physical",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1095/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43977/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/43977/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BBE632B92;\n\tWed, 29 Aug 2018 17:58:19 +0200 (CEST)",
            "from mail.windriver.com (mail.windriver.com [147.11.1.11])\n\tby dpdk.org (Postfix) with ESMTP id 7FD2B5A\n\tfor <dev@dpdk.org>; Wed, 29 Aug 2018 17:58:18 +0200 (CEST)",
            "from ALA-HCA.corp.ad.wrs.com ([147.11.189.40])\n\tby mail.windriver.com (8.15.2/8.15.1) with ESMTPS id w7TFwH42011565\n\t(version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL);\n\tWed, 29 Aug 2018 08:58:17 -0700 (PDT)",
            "from yow-ezhang-lx.wrs.com (128.224.56.213) by\n\tALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server\n\t(TLS) id 14.3.408.0; Wed, 29 Aug 2018 08:58:16 -0700"
        ],
        "From": "eric zhang <eric.zhang@windriver.com>",
        "To": "<anatoly.burakov@intel.com>, <bruce.richardson@intel.com>",
        "CC": "<dev@dpdk.org>, <Allain.Legacy@windriver.com>,\n\t<Matt.Peters@windriver.com>",
        "Date": "Wed, 29 Aug 2018 11:58:09 -0400",
        "Message-ID": "<1535558289-10336-1-git-send-email-eric.zhang@windriver.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[128.224.56.213]",
        "Subject": "[dpdk-dev] [PATCH] eal: force IOVA mode to physical",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch adds a configuration option to force the IOVA mode to\nphysical address (PA). There exists virtual devices that are not\ndirectly attached to the PCI bus, and therefore the auto detection\nof the IOVA mode based on probing the PCI bus and IOMMU configuration\nmay not report the required addressing mode. Having the configuration\noption permits the mode to be explicitly configured in this scenario.\n\nSigned-off-by: eric zhang <eric.zhang@windriver.com>\n---\n lib/librte_eal/linuxapp/eal/eal.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex e0b5ae1..bee4aed 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -805,6 +805,7 @@ static void rte_eal_init_alert(const char *msg)\n \t\treturn -1;\n \t}\n \n+#ifndef RTE_EAL_IOVA_MODE_PA\n \t/* autodetect the iova mapping mode (default is iova_pa) */\n \trte_eal_get_configuration()->iova_mode = rte_bus_get_iommu_class();\n \n@@ -816,6 +817,12 @@ static void rte_eal_init_alert(const char *msg)\n \t\t\t\"Some devices want IOVA as VA but PA will be used because.. \"\n \t\t\t\"KNI module inserted\\n\");\n \t}\n+#else\n+\t/* Force iova mapping mode to be physical address */\n+\trte_eal_get_configuration()->iova_mode = RTE_IOVA_PA;\n+\tRTE_LOG(WARNING, EAL,\n+\t\t\"Force the iova mapping mode to be physical address\\n\");\n+#endif\n \n \tif (internal_config.no_hugetlbfs == 0 &&\n \t\t\tinternal_config.process_type != RTE_PROC_SECONDARY &&\n",
    "prefixes": []
}