Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2493/?format=api
https://patches.dpdk.org/api/patches/2493/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421991340-21960-4-git-send-email-jijiang.liu@intel.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": "<1421991340-21960-4-git-send-email-jijiang.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1421991340-21960-4-git-send-email-jijiang.liu@intel.com", "date": "2015-01-23T05:35:40", "name": "[dpdk-dev,3/3] lib/eal:igb_uio driver change", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "34232e9f75c496206e17119bedb2229788ea58bc", "submitter": { "id": 52, "url": "https://patches.dpdk.org/api/people/52/?format=api", "name": "Jijiang Liu", "email": "jijiang.liu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1421991340-21960-4-git-send-email-jijiang.liu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/2493/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/2493/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id B1D275AE0;\n\tFri, 23 Jan 2015 06:36:02 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 852A65ACD\n\tfor <dev@dpdk.org>; Fri, 23 Jan 2015 06:35:58 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga103.jf.intel.com with ESMTP; 22 Jan 2015 21:31:51 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 22 Jan 2015 21:35:55 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t0N5ZqI8003731;\n\tFri, 23 Jan 2015 13:35:52 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t0N5ZoW7022016; Fri, 23 Jan 2015 13:35:52 +0800", "(from jijiangl@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0N5ZnG5022012; \n\tFri, 23 Jan 2015 13:35:49 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.09,453,1418112000\"; d=\"scan'208\";a=\"674595595\"", "From": "Jijiang Liu <jijiang.liu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 23 Jan 2015 13:35:40 +0800", "Message-Id": "<1421991340-21960-4-git-send-email-jijiang.liu@intel.com>", "X-Mailer": "git-send-email 1.7.12.2", "In-Reply-To": "<1421991340-21960-1-git-send-email-jijiang.liu@intel.com>", "References": "<1421991340-21960-1-git-send-email-jijiang.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH 3/3] lib/eal:igb_uio driver change", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Replace the CONFIG_XEN_DOM0 with the CONFIG_XEN and RTE_LIBRTE_XEN_DOM0 in the driver in order to mmap IO memory correctly.\n\nSigned-off-by: Jijiang Liu <jijiang.liu@intel.com>\n---\n lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 8 +++-----\n 1 files changed, 3 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c\nindex ba1364b..7f643be 100644\n--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c\n+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c\n@@ -32,7 +32,7 @@\n #include <linux/msi.h>\n #include <linux/version.h>\n \n-#ifdef CONFIG_XEN_DOM0\n+#ifdef CONFIG_XEN\n #include <xen/xen.h>\n #endif\n #include <rte_pci_dev_features.h>\n@@ -279,7 +279,7 @@ igbuio_pci_irqhandler(int irq, struct uio_info *info)\n \treturn IRQ_HANDLED;\n }\n \n-#ifdef CONFIG_XEN_DOM0\n+#ifdef RTE_LIBRTE_XEN_DOM0 \n static int\n igbuio_dom0_mmap_phys(struct uio_info *info, struct vm_area_struct *vma)\n {\n@@ -287,9 +287,7 @@ igbuio_dom0_mmap_phys(struct uio_info *info, struct vm_area_struct *vma)\n \n \tidx = (int)vma->vm_pgoff;\n \tvma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);\n-#ifdef HAVE_PTE_MASK_PAGE_IOMAP\n \tvma->vm_page_prot.pgprot |= _PAGE_IOMAP;\n-#endif\n \n \treturn remap_pfn_range(vma,\n \t\t\tvma->vm_start,\n@@ -487,7 +485,7 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)\n \tudev->info.version = \"0.1\";\n \tudev->info.handler = igbuio_pci_irqhandler;\n \tudev->info.irqcontrol = igbuio_pci_irqcontrol;\n-#ifdef CONFIG_XEN_DOM0\n+#ifdef RTE_LIBRTE_XEN_DOM0\n \t/* check if the driver run on Xen Dom0 */\n \tif (xen_initial_domain())\n \t\tudev->info.mmap = igbuio_dom0_pci_mmap;\n", "prefixes": [ "dpdk-dev", "3/3" ] }{ "id": 2493, "url": "