Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125838/?format=api
http://patches.dpdk.org/api/patches/125838/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1680741919-22102-6-git-send-email-roretzla@linux.microsoft.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": "<1680741919-22102-6-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1680741919-22102-6-git-send-email-roretzla@linux.microsoft.com", "date": "2023-04-06T00:45:13", "name": "[v3,05/11] eal: use umonitor umwait and tpause intrinsics", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "691fb8bcde8a59f17dd4c2d6a2b27d9f2bf176f0", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.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/project/dpdk/patch/1680741919-22102-6-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 27633, "url": "http://patches.dpdk.org/api/series/27633/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27633", "date": "2023-04-06T00:45:11", "name": "msvc integration changes", "version": 3, "mbox": "http://patches.dpdk.org/series/27633/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/125838/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/125838/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 325A7428D0;\n\tThu, 6 Apr 2023 02:46:31 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0243E42D50;\n\tThu, 6 Apr 2023 02:45:35 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 26CED42C24\n for <dev@dpdk.org>; Thu, 6 Apr 2023 02:45:23 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 5D041210DEFE; Wed, 5 Apr 2023 17:45:21 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 5D041210DEFE", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1680741921;\n bh=PDjk8SRDbcxXAshYSnBumvsB8YTSEyfiWAVBgn8jVHE=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Z/CHmYglhEtR4t4gImDDaCXTfKe5XKguZ4639UswpLtn4QlUO9xHq6qY3qO08FTmD\n WnJ3iD9rs/zKlTCUhkTFB3Nrb7bjudY5W0VIA0iu+ecmg3zNPKNC5uBsobD8XGAbKg\n UxVogkApJR6BOJa+fAfFs+TgOqPasV3WiDx0Rv1M=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, david.marchand@redhat.com,\n thomas@monjalon.net,\n mb@smartsharesystems.com, konstantin.ananyev@huawei.com,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v3 05/11] eal: use umonitor umwait and tpause intrinsics", "Date": "Wed, 5 Apr 2023 17:45:13 -0700", "Message-Id": "<1680741919-22102-6-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1680741919-22102-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1680558751-17931-1-git-send-email-roretzla@linux.microsoft.com>\n <1680741919-22102-1-git-send-email-roretzla@linux.microsoft.com>", "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": "Inline assembly is not supported for msvc x64 instead use _umonitor,\n_umwait and _tpause intrinsics.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/x86/rte_power_intrinsics.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)", "diff": "diff --git a/lib/eal/x86/rte_power_intrinsics.c b/lib/eal/x86/rte_power_intrinsics.c\nindex f749da9..7d83c24 100644\n--- a/lib/eal/x86/rte_power_intrinsics.c\n+++ b/lib/eal/x86/rte_power_intrinsics.c\n@@ -109,9 +109,13 @@\n \t */\n \n \t/* set address for UMONITOR */\n+#ifndef RTE_TOOLCHAIN_MSVC\n \tasm volatile(\".byte 0xf3, 0x0f, 0xae, 0xf7;\"\n \t\t\t:\n \t\t\t: \"D\"(pmc->addr));\n+#else\n+\t_umonitor(pmc->addr);\n+#endif\n \n \t/* now that we've put this address into monitor, we can unlock */\n \trte_spinlock_unlock(&s->lock);\n@@ -123,10 +127,14 @@\n \t\tgoto end;\n \n \t/* execute UMWAIT */\n+#ifndef RTE_TOOLCHAIN_MSVC\n \tasm volatile(\".byte 0xf2, 0x0f, 0xae, 0xf7;\"\n \t\t\t: /* ignore rflags */\n \t\t\t: \"D\"(0), /* enter C0.2 */\n \t\t\t \"a\"(tsc_l), \"d\"(tsc_h));\n+#else\n+\t_umwait(tsc_l, tsc_h);\n+#endif\n \n end:\n \t/* erase sleep address */\n@@ -153,10 +161,14 @@\n \t\treturn -ENOTSUP;\n \n \t/* execute TPAUSE */\n+#ifndef RTE_TOOLCHAIN_MSVC\n \tasm volatile(\".byte 0x66, 0x0f, 0xae, 0xf7;\"\n \t\t\t: /* ignore rflags */\n \t\t\t: \"D\"(0), /* enter C0.2 */\n \t\t\t\"a\"(tsc_l), \"d\"(tsc_h));\n+#else\n+\t_tpause(tsc_l, tsc_h);\n+#endif\n \n \treturn 0;\n }\n", "prefixes": [ "v3", "05/11" ] }{ "id": 125838, "url": "