Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/718665/?format=api
{ "id": 718665, "url": "http://patchwork.ozlabs.org/api/patches/718665/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170123165801.13402.24644.stgit@localhost.localdomain/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170123165801.13402.24644.stgit@localhost.localdomain>", "list_archive_url": null, "date": "2017-01-23T16:58:07", "name": "[next,v3,1/9] igb: Add support for DMA_ATTR_WEAK_ORDERING", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "651d981a7349c6193a7a70ed52cd57667525ea1b", "submitter": { "id": 252, "url": "http://patchwork.ozlabs.org/api/people/252/?format=api", "name": "Alexander Duyck", "email": "alexander.duyck@gmail.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170123165801.13402.24644.stgit@localhost.localdomain/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/718665/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/718665/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 3v6cvV1Ft8z9s3T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 24 Jan 2017 03:58:14 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id AA0A787B4B;\n\tMon, 23 Jan 2017 16:58:12 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id jNrHvO0J2lsF; Mon, 23 Jan 2017 16:58:10 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B4CD187B14;\n\tMon, 23 Jan 2017 16:58:10 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 674481C07B7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:09 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 630F2896C2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:09 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id IwCF4rQ9yv34 for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:08 +0000 (UTC)", "from mail-pg0-f66.google.com (mail-pg0-f66.google.com\n\t[74.125.83.66])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id C5BEB896B9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:08 +0000 (UTC)", "by mail-pg0-f66.google.com with SMTP id 204so14156411pge.2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 08:58:08 -0800 (PST)", "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\te90sm38310626pfl.32.2017.01.23.08.58.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 23 Jan 2017 08:58:07 -0800 (PST)" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"nMIIrBgw\"; dkim-atps=neutral", "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:from:to:date:message-id:in-reply-to:references:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=3b1DoeOfJVDzbuCYfTeYhHtW3P0IfsjsTeoeKPMIdi8=;\n\tb=nMIIrBgwFqukg+24pc92+pLDWDigxrV0nQCt8LHc61XN52tn9nO9VB51ykoK27I9QD\n\ts38uRjf3Sgk2G7KDxA5Znd1GepVfHIk4iGbbWmD8FDYsamVNP6UJ1N1C2bePbEFNhja6\n\tcE05ODmb7rH0odBpIMQkfxsiXgMuzRYwAsAwlpW2/IHITjGPZ6eRe2H67Oe3pkPyI8RG\n\tC6lhpGOurlN9R5BGbLUx1t96uUVULjgryGh4ONTUZ3i0E7DjI52DJCT1esMK8Sgxr5J6\n\tEhNtPbgP2V6Ja8lGDSVbp4n3NLWjR46ykGC92kY5an8InOL/joluUtLAl6UImwcpYykS\n\t8Lmw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:from:to:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=3b1DoeOfJVDzbuCYfTeYhHtW3P0IfsjsTeoeKPMIdi8=;\n\tb=umaXwgNuHDtJ4qsFPP2NoAnpnl6R8vtDYuZ4PlMdKQxaqoS46Hkcl3bZx9u1fN69RS\n\tXA+pTITlQa7LSSrnHM62rTLwwUYtlEMy0sZGxF/AyUgKJlB0mFYGUGL4oLPsbb9bxX70\n\tZQDPivMoY2Fvs0HXI93B30K/rPrZmZbgF8tHT869/2EnOxxRttNV/gwQ6GEKfVxodN/M\n\tFnLr2AbnsSL7Cm1t8UYG2/2YOAmZZ5Wdhxhcw4A3QTGmdsGXsOSUYeUFXuif6j3pVnD/\n\tJySmMSyIx/okr+3FevOAswi4UrN2dYkodEGVUe2YwD+Oesz1NPGNnwNvdYdAP9SiyvvW\n\tDL+A==", "X-Gm-Message-State": "AIkVDXLsyQ1kT3OYxvCxevXFUz7sq5yIJXVJ+lIgYPbV7bjX9OA9+x9JhtS+JM+KEFbISw==", "X-Received": "by 10.98.16.201 with SMTP id 70mr33264311pfq.25.1485190688438;\n\tMon, 23 Jan 2017 08:58:08 -0800 (PST)", "From": "Alexander Duyck <alexander.duyck@gmail.com>", "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com", "Date": "Mon, 23 Jan 2017 08:58:07 -0800", "Message-ID": "<20170123165801.13402.24644.stgit@localhost.localdomain>", "In-Reply-To": "<20170123165647.13402.1254.stgit@localhost.localdomain>", "References": "<20170123165647.13402.1254.stgit@localhost.localdomain>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [next PATCH v3 1/9] igb: Add support for\n\tDMA_ATTR_WEAK_ORDERING", "X-BeenThere": "intel-wired-lan@lists.osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "From: Alexander Duyck <alexander.h.duyck@intel.com>\n\nSince we are already using DMA attributes in igb for Rx there is no reason\nwhy we can't also apply DMA_ATTR_WEAK_ORDERING which is needed on some\nplatforms to improve performance.\n\nSigned-off-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n drivers/net/ethernet/intel/igb/igb.h | 3 +++\n drivers/net/ethernet/intel/igb/igb_main.c | 6 +++---\n 2 files changed, 6 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h\nindex acbc3abe2ddd..87c9fe9d6f18 100644\n--- a/drivers/net/ethernet/intel/igb/igb.h\n+++ b/drivers/net/ethernet/intel/igb/igb.h\n@@ -148,6 +148,9 @@ struct vf_data_storage {\n /* How many Rx Buffers do we bundle into one write to the hardware ? */\n #define IGB_RX_BUFFER_WRITE\t16 /* Must be power of 2 */\n \n+#define IGB_RX_DMA_ATTR \\\n+\t(DMA_ATTR_SKIP_CPU_SYNC | DMA_ATTR_WEAK_ORDERING)\n+\n #define AUTO_ALL_MODES\t\t0\n #define IGB_EEPROM_APME\t\t0x0400\n \ndiff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c\nindex cb08900c9cf2..eede6db6037c 100644\n--- a/drivers/net/ethernet/intel/igb/igb_main.c\n+++ b/drivers/net/ethernet/intel/igb/igb_main.c\n@@ -3963,7 +3963,7 @@ static void igb_clean_rx_ring(struct igb_ring *rx_ring)\n \t\t\t\t buffer_info->dma,\n \t\t\t\t PAGE_SIZE,\n \t\t\t\t DMA_FROM_DEVICE,\n-\t\t\t\t DMA_ATTR_SKIP_CPU_SYNC);\n+\t\t\t\t IGB_RX_DMA_ATTR);\n \t\t__page_frag_cache_drain(buffer_info->page,\n \t\t\t\t\tbuffer_info->pagecnt_bias);\n \n@@ -6992,7 +6992,7 @@ static struct sk_buff *igb_fetch_rx_buffer(struct igb_ring *rx_ring,\n \t\t */\n \t\tdma_unmap_page_attrs(rx_ring->dev, rx_buffer->dma,\n \t\t\t\t PAGE_SIZE, DMA_FROM_DEVICE,\n-\t\t\t\t DMA_ATTR_SKIP_CPU_SYNC);\n+\t\t\t\t IGB_RX_DMA_ATTR);\n \t\t__page_frag_cache_drain(page, rx_buffer->pagecnt_bias);\n \t}\n \n@@ -7252,7 +7252,7 @@ static bool igb_alloc_mapped_page(struct igb_ring *rx_ring,\n \n \t/* map page for use */\n \tdma = dma_map_page_attrs(rx_ring->dev, page, 0, PAGE_SIZE,\n-\t\t\t\t DMA_FROM_DEVICE, DMA_ATTR_SKIP_CPU_SYNC);\n+\t\t\t\t DMA_FROM_DEVICE, IGB_RX_DMA_ATTR);\n \n \t/* if mapping failed free memory back to system since\n \t * there isn't much point in holding memory we can't use\n", "prefixes": [ "next", "v3", "1/9" ] }