Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp989180iob; Fri, 13 May 2022 18:46:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEPsVUdY/D6DqchbLccEjbcuPMqvbcC2UDNLYhu5Gyk9wx5BRBvv1obyH8embImU3UuMfw X-Received: by 2002:a1c:770b:0:b0:394:3fae:ab79 with SMTP id t11-20020a1c770b000000b003943faeab79mr6813289wmi.200.1652492774991; Fri, 13 May 2022 18:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652492774; cv=none; d=google.com; s=arc-20160816; b=DlnAIF0KDKc8LgAfir+VyL6K6bzWrYs9IEcS6KO6a01a8x7Bac198wu7U9AkKI7/8u sUt3F6LVnbaj46cGcHIa0SYh8Eg0GNi6Yzn7xzvCUyUeDuHPaqkwnHFlMEtYAlZxhThg n2aRhNR+6LTuvxyPg+Hi4y3mjPZ3WZJW7dLn12pvhCfW1lG1t0i1j3LeI1uVzHRUG4dE ZJ/SS6bWMLe8cqc4abHqPGX05pt+OI7gEFcgVYN2VQZ4udp3JWdJwAXMgVWta2Zeet2Y acz067XH5gmNLyY9ks6TAJu7KNjk1BA3FM9vtazAjg/SBEtcFQxSZAYgmw/oqBnD6LZd Gv1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=T0Xgte/0EVWH+Dm1S38b2quxPy8vxFwF2+tX+OmTiGU=; b=OuENeSE60faTIDrkXxgskn3s/yGybA9G7CTN7GWIjMErRGFvCh/axg4lRy227jgjuH yoz21CbHkqZtPCHIrc3GOe9W6rO0gdfaqCJzYFRRqW7fv3Ot1XGYYFSFq/jr+Sf0vdLI 3m5mVXLm3+dJAxmB9tS8lbYX9yJZSXwtpmKN8RIRHrFersXPTMWTnubcYXc38sHxLzRN /Dg9bB40LOzTy+I8KKeQQqr6wh1AxcKS0s5v84BHyqpmvftsEhKk/WUJ15cJMzjRK6DS v5pWO137bao44c6oj2Ip2vIDM5blqtJJNqKBxgSWeolHfG/S9mqFFA3z7bBHiJ/M5LdD a6Zw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l19-20020a056000023300b0020cdb2ff8f8si3206858wrz.795.2022.05.13.18.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:46:14 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1E694390A5; Fri, 13 May 2022 17:11:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382114AbiEMPhk (ORCPT + 99 others); Fri, 13 May 2022 11:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382238AbiEMPhX (ORCPT ); Fri, 13 May 2022 11:37:23 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C089092D2A for ; Fri, 13 May 2022 08:36:58 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A06B113E; Fri, 13 May 2022 08:36:58 -0700 (PDT) Received: from lakrids (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE3C83F73D; Fri, 13 May 2022 08:36:55 -0700 (PDT) Date: Fri, 13 May 2022 16:36:53 +0100 From: Mark Rutland To: Tong Tiangen , Catalin Marinas Cc: James Morse , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Robin Murphy , Dave Hansen , Will Deacon , Alexander Viro , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , x86@kernel.org, "H . Peter Anvin" , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Kefeng Wang , Xie XiuQi , Guohanjun Subject: Re: [PATCH -next v4 5/7] arm64: mte: Clean up user tag accessors Message-ID: References: <20220420030418.3189040-1-tongtiangen@huawei.com> <20220420030418.3189040-6-tongtiangen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420030418.3189040-6-tongtiangen@huawei.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Apr 20, 2022 at 03:04:16AM +0000, Tong Tiangen wrote: > From: Robin Murphy > > Invoking user_ldst to explicitly add a post-increment of 0 is silly. > Just use a normal USER() annotation and save the redundant instruction. > > Signed-off-by: Robin Murphy > Reviewed-by: Tong Tiangen When posting someone else's patch, you need to add your own Signed-off-by tag. Please see: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin That said, the patch itself looks sane, and matches its original posting at: https://lore.kernel.org/linux-arm-kernel/38c6d4b5-a3db-5c3e-02e7-39875edb3476@arm.com/ So: Acked-by: Mark Rutland Catalin, are you happy to pick up this patch as a cleanup? Thanks, Mark. > --- > arch/arm64/lib/mte.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/lib/mte.S b/arch/arm64/lib/mte.S > index 8590af3c98c0..eeb9e45bcce8 100644 > --- a/arch/arm64/lib/mte.S > +++ b/arch/arm64/lib/mte.S > @@ -93,7 +93,7 @@ SYM_FUNC_START(mte_copy_tags_from_user) > mov x3, x1 > cbz x2, 2f > 1: > - user_ldst 2f, ldtrb, w4, x1, 0 > +USER(2f, ldtrb w4, [x1]) > lsl x4, x4, #MTE_TAG_SHIFT > stg x4, [x0], #MTE_GRANULE_SIZE > add x1, x1, #1 > @@ -120,7 +120,7 @@ SYM_FUNC_START(mte_copy_tags_to_user) > 1: > ldg x4, [x1] > ubfx x4, x4, #MTE_TAG_SHIFT, #MTE_TAG_SIZE > - user_ldst 2f, sttrb, w4, x0, 0 > +USER(2f, sttrb w4, [x0]) > add x0, x0, #1 > add x1, x1, #MTE_GRANULE_SIZE > subs x2, x2, #1 > -- > 2.25.1 >