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 4C1F3A0542; Sat, 28 May 2022 17:54:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 371B840F35; Sat, 28 May 2022 17:54:15 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 26AD140041 for ; Sat, 28 May 2022 17:54:14 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id n18so6679435plg.5 for ; Sat, 28 May 2022 08:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=085gi/8YsOQOmDxZPcl03LFEG7g5dPia1r6azYCoe3s=; b=6dzsefhiLfGFwss0uqeDdbIe8cXk7oFscS8kf2R4QrSItTCGIS26vbXEZjql9yxRkX OXazaGHxVxX1c93iYCkvd3fAebjfM4svfubD8swTuJPTgWFO8nLvG30ChKGu6fg0+qPx MJ8hUjJdPHMsLYqSUuUHzdz5ownN+KihyM51q7JCaqlE8qU0EVW3ArwGzcU2Evmxt2A9 POoGycW/0m0pckhQeol2zAhGxQ6gaw1NkM5AMgLBZT+BU8LF7osinWJ9cWrUYSkaACFj kzxpsf8d03N88DyXCtmsbNAYJsS5lR3adQ+yQ3eP+wK/hqgkW2Kw7w54iXG07cMXZiRx MzxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=085gi/8YsOQOmDxZPcl03LFEG7g5dPia1r6azYCoe3s=; b=rV/gN7OsnZ5LBHMBaYakQy7tWLe9k7oylCh6Fr5OlLR94BV6elB410FGsN+w4G651K l/T2Aga/dbbtypdHAUJplqjb6C6z0tu3doU0s4nFNWNIyMtqvSXLJ/qk1yPr1tI5mnD2 ws7iphdoPtr4AcOixKS30REJZlv/H0/M1nocx24DnnxB3CO8bb674mYtcgJqgAYr8uMv mJCW1IwfZ7eDYdVF1sjOFYs5fAr2jrQ/Hkjh3+W988FBZpLhQuliihTT3br0HPJF63qn J7bpecPoCnMJvnWROTJVblOyUif6OBXVxsjH+K52OjZ/RutRH6vAJiYO8RcFncmcUYs7 ikWw== X-Gm-Message-State: AOAM532zAiVFlBF1H2yIxOO7oEJ3+eHYFqGOFZuxQrRHZUcnXHHzK7Pb a/e1UseVm2zr5RmpOy2RsPwuuA== X-Google-Smtp-Source: ABdhPJypJi0p8iSzxpLeIvbQz3J8jvQExwJ6iebmnYG9lpxKQREMHBvJ3RthayjEYtb+D6TACroSqg== X-Received: by 2002:a17:90b:2782:b0:1e2:97d4:53d7 with SMTP id pw2-20020a17090b278200b001e297d453d7mr5065234pjb.53.1653753253358; Sat, 28 May 2022 08:54:13 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id be1-20020a170902aa0100b0015ec71f72d6sm5722250plb.253.2022.05.28.08.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 08:54:13 -0700 (PDT) Date: Sat, 28 May 2022 08:54:10 -0700 From: Stephen Hemminger To: Min Zhou Cc: thomas@monjalon.net, david.marchand@redhat.com, bruce.richardson@intel.com, anatoly.burakov@intel.com, qiming.yang@intel.com, Yuying.Zhang@intel.com, jgrajcia@cisco.com, konstantin.v.ananyev@yandex.ru, dev@dpdk.org, maobibo@loongson.cn Subject: Re: [v1 05/24] eal/loongarch: add spinlock operations for LoongArch Message-ID: <20220528085410.62f27ba2@hermes.local> In-Reply-To: <20220528093311.123946-6-zhoumin@loongson.cn> References: <20220528093311.123946-1-zhoumin@loongson.cn> <20220528093311.123946-6-zhoumin@loongson.cn> 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 Sat, 28 May 2022 17:32:52 +0800 Min Zhou wrote: > This patch adds spinlock operations for LoongArch architecture. > These implementations refer to GLIBC pthread_spin_xxlock(). The > underlying implementation is based on LoongArch atomic > instructions (ie, AMSWAP_DB.W). > > Signed-off-by: Min Zhou If you supported std atomics, then the g eneric code could work here.