Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1468394rwd; Thu, 8 Jun 2023 19:24:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jtWeDCjuua4pKVwWZABFzzQBiQ5hRSoIFv8iRl9q851/qHWIUyRdUepxG+GT5xUSUNFTc X-Received: by 2002:a05:6808:210f:b0:39b:8121:4e32 with SMTP id r15-20020a056808210f00b0039b81214e32mr268006oiw.4.1686277470743; Thu, 08 Jun 2023 19:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686277470; cv=none; d=google.com; s=arc-20160816; b=dnV8lFae5hv2IdYkkUSJTvM48OTDhrzfMW/1Y/7csRxEys9UAimArJdm4ydZrwLh/o Fpj2+T5TjV+xcOKOFR8kluYo2TsMJbkyLxUK4whaoD+D+DdBlitlUqfIjzTEE3VGr1vN H2zy+Z8Lp+HEj/eYsWpHrWl8uep221IRBbStBTRX6Pyd9PyQuKWlD/CSHW1APm83yJR+ 7NI4mYVW6+EglElPKt6pOc1xWfY+I283Fzp1cf4I+FoYXxCSFtYADjq/X2d+ibrxAgXP LhfHYigc832ljF0BAwNE6ktmFV4b8ngqkgzfKhV6k5wDSS6kKgDFokXPdkj8+OFRQ+YE bCjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=z4Rww83Y5WU8P57kHrgCAQBQTewvUV2jO7CJie93+Cc=; b=Wl2QNzNn1IWL4c1uClYYZAY41XOAbJL4njYYzg27WjDQd3sJnQl6xpvESIOAuIdhjL /SgQEU+6Jc/yxrg+X0MNtR+pGvW6ozZUpMOKBHFd9BzBlqpT66+1rSd3pLss3boaRjYm MhOiPxxx+FthZZiq6M1/EhWUbbNqPF84XdSK7U245jjBF/Sj+qvhDFDHYt5nqj0nGMfn fb6wWqVuRW1dJowkdlOusudWD60OJ8ggI+NQggw0Jcf+Ex0L4QjPg8yyNmOTrkOhQwqA h7FJ8tM45hUkhizBcABjHik4aitUgVhs+VTqZctWqQOwuGdnwT5fmayKGVlr1DVxNKuw rGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ocWlxdA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a637506000000b0051322a8d2aesi1888878pgc.110.2023.06.08.19.24.16; Thu, 08 Jun 2023 19:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ocWlxdA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237995AbjFICFP (ORCPT + 99 others); Thu, 8 Jun 2023 22:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjFICFN (ORCPT ); Thu, 8 Jun 2023 22:05:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E58430D2 for ; Thu, 8 Jun 2023 19:05:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C43786521E for ; Fri, 9 Jun 2023 02:05:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35EF9C433EF for ; Fri, 9 Jun 2023 02:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686276312; bh=KXYZnd2Dp+oBXwR3J88fqvQLX/aS78bYiYQ7cL2D2cg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ocWlxdA22HW5Y8nH8e5dpZ5DdeWgU7owemTJsWKdqs5G4xLVQjFrIn+u043uSTGuG rJDAbiNcOb7SI3vZS/CewQ2Qv4dU32P9qMd2LUBvUapaVl5Px+DrX+UVncg5aEiXmU SgIz/vRtWWy/kFdqyfSLq589GPYWQHOA+wuf2rcKw3DBYHYoRxoKSObMom4R37QdtV IGaoyt+REzz3Q+rjg8punU00RDoBuc91eniDEzJ5va2/Y7m2VV+ZJvcZdmmoMPXHkF xtda0mUHwvbdD26Tw8hX87KNImsg1sAybasEpl8K0uabvJEZRF5ZX8QaBdZJ+N5kRd cYIbuBK+CrPVw== Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-977ed383b8aso224605666b.3 for ; Thu, 08 Jun 2023 19:05:12 -0700 (PDT) X-Gm-Message-State: AC+VfDx16vwAN4EpzU97m8+7HJfuhQWVOBuNb+OD8OQrmxFIIas+1lEz vmRhrcTneD1lD6WJqYAymloij9ATS+60WfvqDkc= X-Received: by 2002:a17:907:2d11:b0:96f:905e:6117 with SMTP id gs17-20020a1709072d1100b0096f905e6117mr347987ejc.56.1686276310499; Thu, 08 Jun 2023 19:05:10 -0700 (PDT) MIME-Version: 1.0 References: <20230608022738.1861729-1-huqi@loongson.cn> In-Reply-To: <20230608022738.1861729-1-huqi@loongson.cn> From: Huacai Chen Date: Fri, 9 Jun 2023 10:04:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] LoongArch: Fix function write_fcsr To: Qi Hu Cc: WANG Xuerui , Qing Zhang , Enze Li , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Miao HAO Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Queued, thanks. Huacai On Thu, Jun 8, 2023 at 10:27=E2=80=AFAM Qi Hu wrote: > > Function "write_fcsr" uses wrong asm dest. Fix it! > > Reported-by: Miao HAO > Signed-off-by: Qi Hu > --- > arch/loongarch/include/asm/loongarch.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/incl= ude/asm/loongarch.h > index b3323ab5b78d..35e8a52fea11 100644 > --- a/arch/loongarch/include/asm/loongarch.h > +++ b/arch/loongarch/include/asm/loongarch.h > @@ -1496,7 +1496,7 @@ __BUILD_CSR_OP(tlbidx) > #define write_fcsr(dest, val) \ > do { \ > __asm__ __volatile__( \ > - " movgr2fcsr %0, "__stringify(dest)" \n" \ > + " movgr2fcsr "__stringify(dest)", %0 \n" \ > : : "r" (val)); \ > } while (0) > > -- > 2.40.1 >