Cover Detail
Show a cover letter.
GET /api/covers/51463/?format=api
http://patches.dpdk.org/api/covers/51463/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/cover/1553159608-205213-1-git-send-email-joyce.kong@arm.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": "<1553159608-205213-1-git-send-email-joyce.kong@arm.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1553159608-205213-1-git-send-email-joyce.kong@arm.com", "date": "2019-03-21T09:13:25", "name": "[v7,0/3] ticketlock: implement ticketlock and add test case", "submitter": { "id": 970, "url": "http://patches.dpdk.org/api/people/970/?format=api", "name": "Joyce Kong", "email": "joyce.kong@arm.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/cover/1553159608-205213-1-git-send-email-joyce.kong@arm.com/mbox/", "series": [ { "id": 3844, "url": "http://patches.dpdk.org/api/series/3844/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3844", "date": "2019-03-21T09:13:25", "name": "ticketlock: implement ticketlock and add test case", "version": 7, "mbox": "http://patches.dpdk.org/series/3844/mbox/" } ], "comments": "http://patches.dpdk.org/api/covers/51463/comments/", "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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6F7111B454;\n\tThu, 21 Mar 2019 10:13:50 +0100 (CET)", "from foss.arm.com (foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id D51181B44E\n\tfor <dev@dpdk.org>; Thu, 21 Mar 2019 10:13:49 +0100 (CET)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30153374;\n\tThu, 21 Mar 2019 02:13:49 -0700 (PDT)", "from net-arm-thunderx2.shanghai.arm.com\n\t(net-arm-thunderx2.shanghai.arm.com [10.169.40.112])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\tBA6703F71A; Thu, 21 Mar 2019 02:13:47 -0700 (PDT)" ], "From": "Joyce Kong <joyce.kong@arm.com>", "To": "dev@dpdk.org", "Cc": "nd@arm.com, stephen@networkplumber.org, jerin.jacob@caviumnetworks.com, \n\tkonstantin.ananyev@intel.com, thomas@monjalon.net,\n\thonnappa.nagarahalli@arm.com, gavin.hu@arm.com", "Date": "Thu, 21 Mar 2019 17:13:25 +0800", "Message-Id": "<1553159608-205213-1-git-send-email-joyce.kong@arm.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1547802943-18711-1-git-send-email-joyce.kong@arm.com>", "References": "<1547802943-18711-1-git-send-email-joyce.kong@arm.com>", "Subject": "[dpdk-dev] [PATCH v7 0/3] ticketlock: implement ticketlock and add\n\ttest case", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "v7:\n 1. Modify trylock to compare both current and next fields to gurantee the lock\n being obtained only if tl->current==1(lock is free).\n As within the trylock function, suppose next==curr=1, then this thread will\n experience really long context switch, and next time it continues its\n execution and tl->next wraps around to 1 again and tl_couurent==0(lock\n held by another thread),this trylock will return a success, that means\n two threads holding the lock. (Suggested by Konstantin Ananyev)\n 2. Let all archs use generic ticketlock implementation.\n\nv6:\n Add rte_ticketlock.h in lib/librte_eal/common/include/arch/arm/.\n Sort header inside ticketlock files by alphabetical order.\n\nv5:\n Change the variants inside rte_ticket_lock from unint to uint16_t for binary\n compatibility with the plain spin lock(suggested by Honnappa Nagarahalli)).\n\nv4:\n Change some assignment operation in recursive ticket lock to __atomic.\n\nV3:\n 1.Update ticketlock intrduction(suggested by Honnappa Nagarahalli).\n 2.Change the implementation of rte_ticketlock_trylock to CAS(suggested by Honnappa Nagarahalli).\n\nV2:\n 1.Update commit message(suggested by Jerin Jacob).\n 2.Add ticketlock test cases(suggested by Jerin Jacob).\n\nV1:\n Implement ticket lock to improve lock fairness and prdictability.\n\n As shown on thundex-2 platform:\n *** ticketlock_autotest with this patch ***\n Core [0] count = 496\n Core [1] count = 495\n Core [2] count = 498\n ...\n Core [209] count = 488\n Core [210] count = 490\n Core [211] count = 474\n\nJoyce Kong (3):\n eal/ticketlock: ticket based to improve fairness\n eal/ticketlock: enable generic ticketlock on all arch\n test/ticketlock: add ticket lock test case\n\n MAINTAINERS | 5 +\n app/test/Makefile | 1 +\n app/test/autotest_data.py | 6 +\n app/test/meson.build | 1 +\n app/test/test_ticketlock.c | 311 +++++++++++++++++++++\n doc/api/doxy-api-index.md | 1 +\n lib/librte_eal/common/Makefile | 2 +-\n .../common/include/arch/arm/rte_ticketlock.h | 22 ++\n .../common/include/arch/ppc_64/rte_ticketlock.h | 18 ++\n .../common/include/arch/x86/rte_ticketlock.h | 18 ++\n .../common/include/generic/rte_ticketlock.h | 215 ++++++++++++++\n lib/librte_eal/common/meson.build | 1 +\n 12 files changed, 600 insertions(+), 1 deletion(-)\n create mode 100644 app/test/test_ticketlock.c\n create mode 100644 lib/librte_eal/common/include/arch/arm/rte_ticketlock.h\n create mode 100644 lib/librte_eal/common/include/arch/ppc_64/rte_ticketlock.h\n create mode 100644 lib/librte_eal/common/include/arch/x86/rte_ticketlock.h\n create mode 100644 lib/librte_eal/common/include/generic/rte_ticketlock.h" }{ "id": 51463, "url": "