Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115095/?format=api
http://patches.dpdk.org/api/patches/115095/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220815073206.2917968-68-qi.z.zhang@intel.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": "<20220815073206.2917968-68-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220815073206.2917968-68-qi.z.zhang@intel.com", "date": "2022-08-15T07:32:03", "name": "[v2,67/70] net/ice/base: check for PTP HW lock more frequently", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "61788cc73b8f546e83d8f56b8dd194f833160895", "submitter": { "id": 504, "url": "http://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220815073206.2917968-68-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 24308, "url": "http://patches.dpdk.org/api/series/24308/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24308", "date": "2022-08-15T07:30:56", "name": "ice base code update", "version": 2, "mbox": "http://patches.dpdk.org/series/24308/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/115095/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/115095/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 8BCC6A00C3;\n\tMon, 15 Aug 2022 01:28:01 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C466E42D11;\n\tMon, 15 Aug 2022 01:24:09 +0200 (CEST)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 0B6FF42D29\n for <dev@dpdk.org>; Mon, 15 Aug 2022 01:24:05 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Aug 2022 16:24:05 -0700", "from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4])\n by orsmga008.jf.intel.com with ESMTP; 14 Aug 2022 16:24:04 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1660519446; x=1692055446;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=oFnOBnuHm6++/2jL1puAA9rbQNSlx446jLtwTxnxXto=;\n b=eOxQkVEIYFVskVXfM0eKxIaUMpsY9qgj0sI+l2MYfO6Fi7DrXIZi9Pl3\n 5mmSkms35ea2lWcKBKuPRjptuvJEYiKEbCZLxZvx+1u83eqCSGKYG/dCv\n pOIBwIjh9YXN80qCXkasmLM4Xiapg+H0qnUCwxlk03iyw3PhHdDTqq9Zj\n am7iKNwqsqBTsK9KlRJMqsAwiiKJi/Cf/G08IiR8bQ/V56EX42ZnQqtJb\n EDtniaI/ICU4dlxObseJKiATmF1WKo+wPTlluoQRWEDDsXDAp/ellckp1\n oF5N/m9h9ztRzHWMfdbL4d5XpfK0Ji/jnmeNTTgirQoeBIG6TyAyXE5Tx w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10439\"; a=\"274914527\"", "E=Sophos;i=\"5.93,237,1654585200\"; d=\"scan'208\";a=\"274914527\"", "E=Sophos;i=\"5.93,237,1654585200\"; d=\"scan'208\";a=\"635283380\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Karol Kolacinski <karol.kolacinski@intel.com>", "Subject": "[PATCH v2 67/70] net/ice/base: check for PTP HW lock more frequently", "Date": "Mon, 15 Aug 2022 03:32:03 -0400", "Message-Id": "<20220815073206.2917968-68-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.31.1", "In-Reply-To": "<20220815073206.2917968-1-qi.z.zhang@intel.com>", "References": "<20220815071306.2910599-1-qi.z.zhang@intel.com>\n <20220815073206.2917968-1-qi.z.zhang@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": "PTP HW semaphore can be held for ~50 ms in worst case.\nSW should wait longer and check more frequently if\nthe HW lock is held.\n\nSigned-off-by: Karol Kolacinski <karol.kolacinski@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_ptp_hw.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_ptp_hw.c b/drivers/net/ice/base/ice_ptp_hw.c\nindex f5ebf5f328..974c96f60c 100644\n--- a/drivers/net/ice/base/ice_ptp_hw.c\n+++ b/drivers/net/ice/base/ice_ptp_hw.c\n@@ -4844,18 +4844,18 @@ bool ice_ptp_lock(struct ice_hw *hw)\n \tu32 hw_lock;\n \tint i;\n \n-#define MAX_TRIES 5\n+#define MAX_TRIES 15\n \n \tfor (i = 0; i < MAX_TRIES; i++) {\n \t\thw_lock = rd32(hw, PFTSYN_SEM + (PFTSYN_SEM_BYTES * hw->pf_id));\n \t\thw_lock = hw_lock & PFTSYN_SEM_BUSY_M;\n \t\tif (hw_lock) {\n \t\t\t/* Somebody is holding the lock */\n-\t\t\tice_msec_delay(10, true);\n+\t\t\tice_msec_delay(5, true);\n \t\t\tcontinue;\n-\t\t} else {\n-\t\t\tbreak;\n \t\t}\n+\n+\t\tbreak;\n \t}\n \n \treturn !hw_lock;\n", "prefixes": [ "v2", "67/70" ] }{ "id": 115095, "url": "