From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50062.outbound.protection.outlook.com [40.107.5.62]) by dpdk.org (Postfix) with ESMTP id 4D75F1D90 for ; Mon, 4 Dec 2017 09:07:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+SVPaYKgz/hqneqS13rIerCfS4tN/kXFnqFlvL+8Ae8=; b=hT6GHNqrgFOpp4i8km10w7mshI/CIhiLR7PdQBAsNXZTK16KM2EQKDc4dEsxK0Pt3HZuBH6zfCQfvc7Jwl+q3FuNvZCVlMMSIukPsqnz7a4NB7khAcCr8TEmCUJUhaakhrrdrqpF3oe9kPa6rvG8bzrQm7X3LdbrGohcFY7zqFw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jianbo.Liu@arm.com; Received: from arm.com (113.29.88.7) by VI1PR0801MB1360.eurprd08.prod.outlook.com (2603:10a6:800:3b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 4 Dec 2017 08:07:18 +0000 Date: Mon, 4 Dec 2017 16:05:57 +0800 From: Jianbo Liu To: Jia He Cc: dev@dpdk.org, Jerin Jacob , Jan Viktorin , Olivier Matz , Thomas Monjalon , konstantin.ananyev@intel.com, hemant.agrawal@nxp.com, Jia He Message-ID: <20171204080556.GC28917@arm.com> References: <1511748024-7245-1-git-send-email-hejianet@gmail.com> <1512352212-7191-1-git-send-email-hejianet@gmail.com> <1512352212-7191-4-git-send-email-hejianet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1512352212-7191-4-git-send-email-hejianet@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [113.29.88.7] X-ClientProxiedBy: PS1PR0601CA0103.apcprd06.prod.outlook.com (2603:1096:803:1::29) To VI1PR0801MB1360.eurprd08.prod.outlook.com (2603:10a6:800:3b::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fdea9bd1-010f-4f27-f6ca-08d53aee0cc1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603286); SRVR:VI1PR0801MB1360; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1360; 3:Vwn3+/g0Ytluw1bQNz+GnSBUbxHMoKdHOVevxDa0F9UQuKD/T2Pq7/IniSCzjSwPua+YTY8sqsehtI2huSvrMJasNJICsTdyn42gRAARIgXwCjdvhgXf82UBxXLxRXky5BqAhcRofpzFmBbJI567yYT8rAA/5pHyLED8DbzxT9BB2yP9jH5xMHOqzOirw+ds9TjkOxlHt1d+QpheT0s+9h+JsKKITq268nr9fRgWs+65p/M3lG9caqbPTBt7Rfub; 25:MsnO5jsNiw26PjU1bpoR3rHdJ+RqyYjz3VKS2fKNcFwVmyHbCsLHXyMgQkpiJgASYYEgBr735ragSeNIGDGcTiCtmxPkZ287HtBseDKNCm/b8NLXCdMMM+NPcRWoS/2kPkvjq/v9h14LV86sMfJYidy+WD7hfAfeq4DK/hCovDwetk561fr+3LXUqwPfjNUuJbon6HrKTw7fuq2MA15Jj7811LJ6e/5jI5wTb8ZKLj3tYkTl+OI0VgvSDNZ7g2YJnGraegxfYBuxBgdEnuKU473+ZbRZzerYWSS0WvBzgehwxKNgxA4HBi8Y7+rJmrZTrVeV+9thmF83L7H4jQuczQ==; 31:iUqK70rAKKfMuDIlHSenIgyJDB92kkuGFdIiPMq76pA4knaJFx9pFXFMyy2pMHBOLLe/GcF1GiCEdFJkpW/aZ9gOtLeJwChF9Rqv/pLGjlFz2TWZ3EYgg6C4oFkH+AuILVYyP2VBJ9Bjka9ExWPWW50bPEId214M9VZH6xjlQM3x1Ae4TEQEELaH+1DaCadhT13mr71J+utPutbQKuFKMl2FuKTssTV7BH+JLyymlhQ= X-MS-TrafficTypeDiagnostic: VI1PR0801MB1360: Content-Transfer-Encoding: quoted-printable X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1360; 20:KeEot/Num8A9X988m/MRDm2ZS+fPNy31ShWlz4UQlSYjtnCc3wAdXrsxX7xzL15hnrAjXzDO6hrY+RzYUSUl5QYVRh3iCSweSOnSV6Q++ObCNZOReLbtF3FZpHV8Zp/wZPxy/QBhyTw+iT++UpQK/0JICQm8o+9VuEdzO9QD4oUBtCjdg4Qa14fJc1unAcpTdFHNqkUyZHtNdmpamvawM5kJNVxe1z8ADrB12JcDtfgKPshzrr80dfCa447qBHLsAkIDgv2e9OFr/VPQuKyxNNi1iuq+shg5DK8f+jUBgAgmOh2A51WjnNBO/f5NUHwGyujVGHLWNSILZqZnA0o/PDNNBRLucJUWPOb6RvGD3b5y/4DRjWlQE9CaudB1gfZu7cmN9/6Dl/GftLDtl360bXYdp0pHfnQ/SIa6Z43Sg0CcXveGhey4aS74mR/ZgImedbKI3BaSVwqxpWj5EMeVi5uGjdE/l2YGoM0VOxaQMD/Lu1PtWDRWudjML0cZZLEQ; 4:SnGIvCjImJhy8s5272SQm9GWzT0pZqraF4yhR6TcOScohdwFak5ALfFX1UhxF0E5xfGYXS66CdCN9Ccc3P2Y70pvlxFLKhHv4wQD4SL7PmHwryQdj1K99Dol+02wEfkM0NnjomIz/iaeqenmOcylIoSs8oywIviQuAFu4en4BPREhVFxpLH+OLIIWZ+MCM2Fl0ei310BtZg6bP487IPsV1BTqCdFo36PNbG5cQj7jKQQg0lDLXu9vr+3vKOrOA4J7aOvlj8X23zHxiOOeGiMgy1wePJ/tfwlnf+kgGHaC+twT1PH7jhrS9gFOABUsRY62PDtgkhKP1FKqfZzprT5QZN6auo5ks6UkfCuRwchSxE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(166708455590820); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148)(201708071742011); SRVR:VI1PR0801MB1360; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0801MB1360; X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(376002)(39860400002)(346002)(40434004)(199003)(189002)(24454002)(7736002)(305945005)(5890100001)(101416001)(6246003)(229853002)(53376002)(68736007)(21086003)(4326008)(81166006)(8936002)(8746002)(8676002)(81156014)(54906003)(105586002)(36756003)(53936002)(316002)(39060400002)(8656006)(25786009)(23676004)(47776003)(72206003)(54356011)(58126008)(83506002)(106356001)(6306002)(76176011)(50466002)(2486003)(55236003)(478600001)(7696005)(52116002)(97736004)(966005)(55016002)(66066001)(52146003)(5660300001)(33656002)(6666003)(2950100002)(6916009)(86362001)(1076002)(189998001)(16526018)(6116002)(3846002)(2906002)(1411001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0801MB1360; H:arm.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDFNQjEzNjA7MjM6ZFgybjgxanhML0E0dXB0YnRLWkVsVEc3?= =?utf-8?B?aGszd2VYMmcwVEZyNWtkTTZ1TUsxc1g3c1BrS3NXcTJFS0RzOEJRRlBOSmZV?= =?utf-8?B?ajdLUWxuaytYd0ZiK2lUbGpmajZ4TXRPM1M0QXBQUTZJQkZHVndNSlR1bDVJ?= =?utf-8?B?cFhtVWk0blhYYmF2Sm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 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 08:07:18.8925 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fdea9bd1-010f-4f27-f6ca-08d53aee0cc1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1360 Subject: Re: [dpdk-dev] [PATCH V7 3/3] ring: introduce new header file to support C11 memory model X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 08:07:25 -0000 The 12/03/2017 17:50, Jia He wrote: > To support C11 memory model barrier, 2 options are suggested by Jerin: > 1. use rte_smp_rmb > 2. use load_acquire/store_release(refer to [1]). > CONFIG_RTE_RING_USE_C11_MEM_MODEL is provided, and by default it is "y" > only on arm64 so far. > > The reason why providing 2 options is due to the performance benchmark > difference in different arm machines, refer to [2]. > > We haven't tested on ppc64. If anyone verifies it, he can add > CONFIG_RTE_RING_USE_C11_MEM_MODEL=3Dy to ppc64 config files. > > [1] https://github.com/freebsd/freebsd/blob/master/sys/sys/buf_ring.h#L17= 0 > [2] http://dpdk.org/ml/archives/dev/2017-October/080861.html > > Signed-off-by: Jia He > Suggested-by: Jerin Jacob > Acked-by: Jerin Jacob Acked-by: Jianbo Liu > --- > config/common_armv8a_linuxapp | 2 + > lib/librte_ring/Makefile | 3 +- > lib/librte_ring/rte_ring.h | 14 ++- > lib/librte_ring/rte_ring_c11_mem.h | 186 +++++++++++++++++++++++++++++++= ++++++ > 4 files changed, 203 insertions(+), 2 deletions(-) > create mode 100644 lib/librte_ring/rte_ring_c11_mem.h > IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.