Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/122104/?format=api
http://patchwork.dpdk.org/api/patches/122104/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230116153714.554470-3-bruce.richardson@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230116153714.554470-3-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230116153714.554470-3-bruce.richardson@intel.com", "date": "2023-01-16T15:37:11", "name": "[2/5] dma/ioat: fix incorrectly set indexes after restart", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "742b431f39998919435e2f32a9ba004e4f7750f9", "submitter": { "id": 20, "url": "http://patchwork.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230116153714.554470-3-bruce.richardson@intel.com/mbox/", "series": [ { "id": 26562, "url": "http://patchwork.dpdk.org/api/series/26562/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=26562", "date": "2023-01-16T15:37:09", "name": "dma/ioat: fix issues with stopping and restarting device", "version": 1, "mbox": "http://patchwork.dpdk.org/series/26562/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/122104/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/122104/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7E64F423F1;\n\tMon, 16 Jan 2023 16:37:49 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0867C42D21;\n\tMon, 16 Jan 2023 16:37:42 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id A9D1C40F18;\n Mon, 16 Jan 2023 16:37:40 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jan 2023 07:37:40 -0800", "from silpixa00401385.ir.intel.com ([10.237.214.55])\n by fmsmga004.fm.intel.com with ESMTP; 16 Jan 2023 07:37:39 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1673883461; x=1705419461;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=mbIx9zd3vsxExwZmUhZ4YT8HslOf+mQIXJW29tDJsFs=;\n b=CfRq06VXHwN2NibAPU4j2n+jgJLdUXWROc5a4WFyayHNrGThpMuXneVA\n bA/I1bfZRdW7iUEMEkg5Ou3xEJJ4kD00SfQjVmzgqZnzG17jTsEIn3dj5\n 1sW6JoqkwOP0iH6gK7vKmVH/cjShRDul/JX5LXH025+Nb7rELopRUWCFF\n lPnOQx9K5bxndTjaSrm5YdUkfhhB1+oCsW2shw9w7qx7ctt5pM8DYpfsu\n YMLbVskX5YpiKVYJKnFsCEgzAlXHJCi0iEzK7nAbtpDFFLU7nUkaOO5jQ\n 9kDAJ/t4x/IaW8VoAiuJcSsJGxb/yqvXKB/5ZzzDWV2ApdaJYxti3te5b Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10592\"; a=\"351735360\"", "E=Sophos;i=\"5.97,221,1669104000\"; d=\"scan'208\";a=\"351735360\"", "E=McAfee;i=\"6500,9779,10592\"; a=\"727505469\"", "E=Sophos;i=\"5.97,221,1669104000\"; d=\"scan'208\";a=\"727505469\"" ], "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>, conor.walsh@intel.com,\n stable@dpdk.org, Kevin Laatz <kevin.laatz@intel.com>", "Subject": "[PATCH 2/5] dma/ioat: fix incorrectly set indexes after restart", "Date": "Mon, 16 Jan 2023 15:37:11 +0000", "Message-Id": "<20230116153714.554470-3-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.37.2", "In-Reply-To": "<20230116153714.554470-1-bruce.richardson@intel.com>", "References": "<20230116153714.554470-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "As part of the process of restarting a dma instance, the IOAT driver\nwill reset the HW addresses and state values. The read and write\nindexes for SW use need to be similarly reset to keep HW and SW in\nsync.\n\nFixes: 583f046dd404 (\"dma/ioat: add start and stop\")\nCc: conor.walsh@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/dma/ioat/ioat_dmadev.c | 7 +++++++\n 1 file changed, 7 insertions(+)\n\n--\n2.37.2", "diff": "diff --git a/drivers/dma/ioat/ioat_dmadev.c b/drivers/dma/ioat/ioat_dmadev.c\nindex aff7bbbfde..072eb17cd9 100644\n--- a/drivers/dma/ioat/ioat_dmadev.c\n+++ b/drivers/dma/ioat/ioat_dmadev.c\n@@ -146,6 +146,13 @@ ioat_dev_start(struct rte_dma_dev *dev)\n \t/* Prime the status register to be set to the last element. */\n \tioat->status = ioat->ring_addr + ((ioat->qcfg.nb_desc - 1) * DESC_SZ);\n\n+\t/* reset all counters */\n+\tioat->next_read = 0;\n+\tioat->next_write = 0;\n+\tioat->last_write = 0;\n+\tioat->offset = 0;\n+\tioat->failure = 0;\n+\n \tprintf(\"IOAT.status: %s [0x%\"PRIx64\"]\\n\",\n \t\t\tchansts_readable[ioat->status & IOAT_CHANSTS_STATUS],\n \t\t\tioat->status);\n", "prefixes": [ "2/5" ] }{ "id": 122104, "url": "