Show a patch.

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

{
    "id": 41934,
    "url": "http://patches.dpdk.org/api/patches/41934/?format=api",
    "web_url": "http://patches.dpdk.org/patch/41934/",
    "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"
    },
    "msgid": "<1530267873-7236-2-git-send-email-rk@semihalf.com>",
    "date": "2018-06-29T10:24:30",
    "name": "[v3,1/4] igb_uio: add wc option",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fee802b10994dc178ddd39cac2690264caaa2b35",
    "submitter": {
        "id": 951,
        "url": "http://patches.dpdk.org/api/people/951/?format=api",
        "name": "Rafal Kozik",
        "email": "rk@semihalf.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/patch/41934/mbox/",
    "series": [
        {
            "id": 313,
            "url": "http://patches.dpdk.org/api/series/313/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=313",
            "date": "2018-06-29T10:24:29",
            "name": "support for write combining",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/313/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41934/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41934/checks/",
    "tags": {},
    "headers": {
        "X-Mailer": "git-send-email 2.7.4",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "From": "Rafal Kozik <rk@semihalf.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=+fL6fuPc8F52ludMma2sKMyIvFsnG1EOxbLEAP6gj/k=;\n\tb=foO+W7icu6cAZG0Y6VkWYEkSA3SEQfgMMXgIcPuWYZzYWNw1jRP+ZWvF0N8kJ1IuO5\n\t6dR/4kXkPOn8uOLeLENsq+0PwtzN6l+l2s/SJ8/VejgJUILNo5GRT9QVw8ZEuLcuiD/o\n\teOfcIDtFVgWM6JKSlkJwx9W3M4YmTwNeE8njEdVfmb4+nP74a/jlwcG6ApkfGdMqScC6\n\tYh4bbn5hb65k/3Nv9KzFXas8+14pYD0R5WVWD2CeloS206NzqQvMCqdPtS0g/quSCQMF\n\to9L2AeRdyD1YcnSYVkVguhCEoXM9a68HFAn2jVkhKG4/aQ8DJhg/Z/IptbUtk/ousTk9\n\t8z/g==",
        "X-Mailman-Version": "2.1.15",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Gm-Message-State": "APt69E3MN85nLgQVv0R60AxVzc9GO1x04YxclYNJW5wMJW4j22X1YnvW\n\tue0G6E6JCaq8iaScMJ0OrIHJAvoerCIWag==",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com,\n\tmatua@amazon.com, igorch@amazon.com, thomas@monjalon.net,\n\tferruh.yigit@intel.com, Rafal Kozik <rk@semihalf.com>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<1530191753-18689-2-git-send-email-rk@semihalf.com>\n\t<1530267873-7236-1-git-send-email-rk@semihalf.com>",
        "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=+fL6fuPc8F52ludMma2sKMyIvFsnG1EOxbLEAP6gj/k=;\n\tb=NOsbvVLKEvH0i+m5rZ96cCLmKTQkKng7CdBh6lwSQWkFZ4JeTn2OBF2e/YtiPLaXf2\n\tihSXO0eFVt/E8/NE0Knd3oMjzJdvxvNPaBe3W+VDLdCdchF6U6CgFEuamzpu3aZpuSw+\n\tVl6Osdog+sXgONd9HBj+g7Pb2bNbBbi9H0shhAHoFECgTp1SwbOfYa5t4skkWXBaM94g\n\t0h9LtUM0f7xTYuXacAhXBN5HLnG613IJ66z8N/3y0tnuBHcQvvUK9FjD6bYBbIkV/k6F\n\tZ35lTtnwdUalUQUJN3N+l2MHB3MZF9cAqz1vupPy2wFtfOHWsUFsMY4n67CrfOpZdnEv\n\tKN/w==",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5864E2D13;\n\tFri, 29 Jun 2018 12:24:42 +0200 (CEST)",
            "from mail-lj1-f196.google.com (mail-lj1-f196.google.com\n\t[209.85.208.196]) by dpdk.org (Postfix) with ESMTP id 2414D1B4CC\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 12:24:40 +0200 (CEST)",
            "by mail-lj1-f196.google.com with SMTP id l12-v6so6915383lja.1\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 03:24:39 -0700 (PDT)",
            "from rafalkozik.semihalf.local\n\t(31-172-191-173.noc.fibertech.net.pl. [31.172.191.173])\n\tby smtp.gmail.com with ESMTPSA id\n\td79-v6sm745514ljd.50.2018.06.29.03.24.38\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 29 Jun 2018 03:24:38 -0700 (PDT)"
        ],
        "Date": "Fri, 29 Jun 2018 12:24:30 +0200",
        "X-Received": "by 2002:a2e:259:: with SMTP id\n\t86-v6mr849014ljc.107.1530267879370; \n\tFri, 29 Jun 2018 03:24:39 -0700 (PDT)",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH v3 1/4] igb_uio: add wc option",
        "In-Reply-To": "<1530267873-7236-1-git-send-email-rk@semihalf.com>",
        "Message-Id": "<1530267873-7236-2-git-send-email-rk@semihalf.com>",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "X-Original-To": "patchwork@dpdk.org",
        "X-Google-Smtp-Source": "AAOMgpd+C5jkRdEJugE/FyZ1cJlWVJttCdyPrKctS4Fgz5s/rcSmf2ou21DMyDu5+9bpOMqKwZWtyw=="
    },
    "content": "Write combining (WC) increases NIC performance by making better\nutilization of PCI bus, but cannot be use by all PMDs.\n\nTo get internal_addr memory need to be mapped. But as memory could not be\nmapped twice: with and without WC, it should be skipped for WC. [1]\n\nTo do not spoil other drivers that potentially could use internal_addr,\nparameter wc_activate adds possibility to skip it for those PMDs,\nthat do not use it.\n\n[1] https://www.kernel.org/doc/ols/2008/ols2008v2-pages-135-144.pdf\n\tsection 5.3 and 5.4\n\nSigned-off-by: Rafal Kozik <rk@semihalf.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n kernel/linux/igb_uio/igb_uio.c | 17 ++++++++++++++---\n 1 file changed, 14 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/kernel/linux/igb_uio/igb_uio.c b/kernel/linux/igb_uio/igb_uio.c\nindex b3233f1..3382fb1 100644\n--- a/kernel/linux/igb_uio/igb_uio.c\n+++ b/kernel/linux/igb_uio/igb_uio.c\n@@ -30,6 +30,7 @@ struct rte_uio_pci_dev {\n \tint refcnt;\n };\n \n+static int wc_activate;\n static char *intr_mode;\n static enum rte_intr_mode igbuio_intr_mode_preferred = RTE_INTR_MODE_MSIX;\n /* sriov sysfs */\n@@ -375,9 +376,13 @@ igbuio_pci_setup_iomem(struct pci_dev *dev, struct uio_info *info,\n \tlen = pci_resource_len(dev, pci_bar);\n \tif (addr == 0 || len == 0)\n \t\treturn -1;\n-\tinternal_addr = ioremap(addr, len);\n-\tif (internal_addr == NULL)\n-\t\treturn -1;\n+\tif (wc_activate == 0) {\n+\t\tinternal_addr = ioremap(addr, len);\n+\t\tif (internal_addr == NULL)\n+\t\t\treturn -1;\n+\t} else {\n+\t\tinternal_addr = NULL;\n+\t}\n \tinfo->mem[n].name = name;\n \tinfo->mem[n].addr = addr;\n \tinfo->mem[n].internal_addr = internal_addr;\n@@ -650,6 +655,12 @@ MODULE_PARM_DESC(intr_mode,\n \"    \" RTE_INTR_MODE_LEGACY_NAME \"     Use Legacy interrupt\\n\"\n \"\\n\");\n \n+module_param(wc_activate, int, 0);\n+MODULE_PARM_DESC(wc_activate,\n+\"Activate support for write combining (WC) (default=0)\\n\"\n+\"    0 - disable\\n\"\n+\"    other - enable\\n\");\n+\n MODULE_DESCRIPTION(\"UIO driver for Intel IGB PCI cards\");\n MODULE_LICENSE(\"GPL\");\n MODULE_AUTHOR(\"Intel Corporation\");\n",
    "prefixes": [
        "v3",
        "1/4"
    ]
}