Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp600691iob; Wed, 18 May 2022 08:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcYLYRzYjfT6ANzbPu9JRiZU7HFQ9DOSrjnCdnziGhsP5oskZQ9YhH2mBZ2MQWj+zgX6Ee X-Received: by 2002:a63:1358:0:b0:3f5:f2ee:fe89 with SMTP id 24-20020a631358000000b003f5f2eefe89mr125734pgt.57.1652889343022; Wed, 18 May 2022 08:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652889343; cv=none; d=google.com; s=arc-20160816; b=tGq9/1uET6gpUPiff+iXrZGOx+DiXV8z2EuOVCwGTSSbcHq2yCdr9qzTKZT3wDyJfr xqFRCy8OOZRKckHJdkeC6Hp3GSevsePujvRH9vRs20fjVUbGwqJTwngqywnXC98yRIXb sGSfuWpuZ6aOubZKR9Y/S7jU/xVhHxilymVGvvVbNBIRtoudYaKe7loKXynq6c1LMh+q QjmaIjNo0QB4v6LPblni13UurttXsIqbFmvJeuxXJ894sSm0zPjqHqBflCc4+YrZ2t6U HNcecOyZF+iFsWZbUjhuc6r4Kvju5LwjKXt2sNeTAXgLvKcmmGElQLNIF1LWQH62uh5O vj7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TkYfo6YJsLCh8gtw0uv510lZeSioMj+dK+9rZF73Cvo=; b=NNCppnpAA4AWPg3o6UWs6WmvgFvVJOfLt6AyfzPkbMAxafk8QXFiFyEeQNZ2ctvE8V gMSgReqso4q/PuwO4rw3ngvtzjphK2eFpdmeAvRZt9/lPmF9dTHLrOwVOSuVZlL1tA5l Ei0IAMxvxe6ba8PIYTsWK1xkqzKw5ASIDabJEwMMYEOtUQUf3NbSYcaLVVCozC+iDezl opZ/byxDz9TLR+I8H3PB7/KjJChq/6acKZ2UEd0YhUKYSTeoEarzFL91qf1YDaLKDo40 1d/YsFoOQF59kv8DliX65oeolkbxfn2N1asXiDP/70kGhojc1EfGkCOyFHaaiByOZHfn NzfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=SxZy8PzQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d8-20020a056a0010c800b0050a73a14910si3765947pfu.218.2022.05.18.08.55.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 08:55:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=SxZy8PzQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F133D1CA079; Wed, 18 May 2022 08:54:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239616AbiERPyO (ORCPT + 99 others); Wed, 18 May 2022 11:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239636AbiERPyK (ORCPT ); Wed, 18 May 2022 11:54:10 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D11011CC98B; Wed, 18 May 2022 08:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1652889244; bh=hMCggXS20k24Moq7wq290Pu/SOhpPn396QOC64WwdqI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SxZy8PzQ4+GMVnv56cYEsr8OB28rSz1WUAyequjrtQxAxAS6S2JnqeJ3DjfEjgtVm LbAUe5iS3Z521gk53GogRUthr83+fJdQTXzPHiGy9XlK5wv5f7KUfmZo4P0iKma3in OCN6PtCsAhh3SVmDN3a2MF0wFbpLCZS8HG5d/U+c= Received: from [192.168.9.172] (unknown [101.88.28.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 5709F60691; Wed, 18 May 2022 23:54:04 +0800 (CST) Message-ID: <9b9df6a3-099f-4368-207f-5fe330e7f166@xen0n.name> Date: Wed, 18 May 2022 23:54:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.0a1 Subject: Re: [PATCH V11 07/22] LoongArch: Add atomic/locking headers Content-Language: en-US To: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds Cc: linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Yanteng Si , Huacai Chen , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell References: <20220518092619.1269111-1-chenhuacai@loongson.cn> <20220518092619.1269111-8-chenhuacai@loongson.cn> From: WANG Xuerui In-Reply-To: <20220518092619.1269111-8-chenhuacai@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/18/22 17:26, Huacai Chen wrote: > Add common headers (atomic, bitops, barrier and locking) for basic > LoongArch support. > > Signed-off-by: Huacai Chen > --- > arch/loongarch/include/asm/atomic.h | 358 +++++++++++++++++++++++++++ > arch/loongarch/include/asm/barrier.h | 51 ++++ > arch/loongarch/include/asm/bitops.h | 33 +++ > arch/loongarch/include/asm/bitrev.h | 34 +++ > arch/loongarch/include/asm/cmpxchg.h | 121 +++++++++ > arch/loongarch/include/asm/local.h | 138 +++++++++++ > arch/loongarch/include/asm/percpu.h | 20 ++ > 7 files changed, 755 insertions(+) > create mode 100644 arch/loongarch/include/asm/atomic.h > create mode 100644 arch/loongarch/include/asm/barrier.h > create mode 100644 arch/loongarch/include/asm/bitops.h > create mode 100644 arch/loongarch/include/asm/bitrev.h > create mode 100644 arch/loongarch/include/asm/cmpxchg.h > create mode 100644 arch/loongarch/include/asm/local.h > create mode 100644 arch/loongarch/include/asm/percpu.h No major problems here so: Reviewed-by: WANG Xuerui