From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B68941EC3; Fri, 17 Mar 2023 22:42:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3027B42FE8; Fri, 17 Mar 2023 22:42:31 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id B2EC740DF6 for ; Fri, 17 Mar 2023 22:42:29 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id c10so3912043pfv.13 for ; Fri, 17 Mar 2023 14:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1679089348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=rdmsGVp6oJ06e1cxSXTMe5we3EuO/xm2Wefi4MzGuzc=; b=Haai0EhgKaGjDUVvJmQ/efxS47zixfNQSy+H9ifpUfmvsfeY/sHurnFzOUM7OGUTFS nsgGvw8sbTCTlm/ylTTrAi2s0h6RsB42fSZ/QtmbcT206+4cxabPPgRlQe1rtfvzrAaW 3tcCmkG5z5K09xbwcr7fXfo8tFJ0uhRLkCIE/Nd5AoYvJotwbnUYrExQfKv1ahmBsQ9b 0b54Xb85/ZfBTaKyypHA21gbJZYt3uHApD6ImqOFoYn/8UcpkmYuD9QMTcxqDhlJkHeO ppgVZTyIoFyXs0N1IywqiV0RDHS7kdKEtCITT2sP7DMzRCZMSciIvkSekopPfMuCLaeD EL+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679089348; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rdmsGVp6oJ06e1cxSXTMe5we3EuO/xm2Wefi4MzGuzc=; b=qh5OTr7UzI7WSIhKKqG0aNboCn1Ruoo0SeRr91ASR6wL0GxUkoFJTpJJD0INYlC1QW d4LCmqWxMWfAPSDGOXpEUDdThRxR6e9jbG6+B6AW9DNW3oGjAayH+2+qC0CCECdSWjc2 MYmrN7FkAFP3Ew9mbpalNeQNzQJKLmJh/1f/f7+A0jfWTZ5ueNrVhHOqhD8LXWeMK8JU vnmHwJhaglxW1D0a8ed7A5sMm7j/rp3kwoSQ4Hfxq8nTdFJFzdV+3aZJKSaNHwyM1R4s Lx6ylyuI2oo60dyCkZaCtrZ5dPSjly5hlsvnsB857nW/1khonSJtXaIwE62/oHGl+0qF 3lhA== X-Gm-Message-State: AO0yUKWGBlaYem3ozFlTpax+xqcTP9TO7nGIZjVRdIxD5lDnZRAa5a0V 6GG/D2AtXdmrA8FLl57NU4V9wQ== X-Google-Smtp-Source: AK7set+nx5NWjLv9craUxZYRN+mqDA8HoUBbSi2BV/LsVOl7dk0qNPiRB4J/3AaxzQj68Sx0NhPWEQ== X-Received: by 2002:a62:6507:0:b0:5ce:ef1b:a8b with SMTP id z7-20020a626507000000b005ceef1b0a8bmr5906297pfb.30.1679089348670; Fri, 17 Mar 2023 14:42:28 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id k2-20020aa792c2000000b006089fb79f1asm1957613pfa.208.2023.03.17.14.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 14:42:28 -0700 (PDT) Date: Fri, 17 Mar 2023 14:42:26 -0700 From: Stephen Hemminger To: Tyler Retzlaff Cc: dev@dpdk.org, Honnappa.Nagarahalli@arm.com, Ruifeng.Wang@arm.com, thomas@monjalon.net Subject: Re: [PATCH 0/7] replace rte atomics with GCC builtin atomics Message-ID: <20230317144226.2f26bad1@hermes.local> In-Reply-To: <1679084388-19267-1-git-send-email-roretzla@linux.microsoft.com> References: <1679084388-19267-1-git-send-email-roretzla@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 17 Mar 2023 13:19:41 -0700 Tyler Retzlaff wrote: > Replace the use of rte_atomic.h types and functions, instead use GCC > supplied C++11 memory model builtins. > > This series covers the libraries and drivers that are built on Windows. > > The code has be converted to use the __atomic builtins but there are > additional during conversion i notice that there may be some issues > that need to be addressed. I don't think all these cmpset need to use SEQ_CST. Especially for the places where it is used a loop, might be more efficient with some of the other memory models.