Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp218985rdf; Tue, 21 Nov 2023 00:04:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoqL2zixqtZkrPs0FQUzMElkCon2DntwmeewenIG9KEaYvZv6Yf9SiCY+DSqlaSuLvPECX X-Received: by 2002:a17:902:ab93:b0:1b5:561a:5ca9 with SMTP id f19-20020a170902ab9300b001b5561a5ca9mr7526685plr.50.1700553883630; Tue, 21 Nov 2023 00:04:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700553883; cv=none; d=google.com; s=arc-20160816; b=fq/yU4obay1Z9VHIxKzhOlmMeKkiK6BTBIdNB47rKA1bY5VqH3yaLnnfXSf9Tn7pMI a9g19aOaBZRkQVAP5pi9AFbbEYhvJn4V7sASPpGhUsj03uR0sJtKE98zSR9b24vfZ6pb rjWvCD3pSJ2z8KqoWrlYN0pEwiCy3tcmbl8MX9wv0WMyun/DSVxZg3xaVHLQHn7AVDoa rj3SQsH3qV+TQFg1Yw/074QyDoiGWhyh6z+/R4pKJ9Saw5g+BFjlvXeHWx4kPcXND+xn czi+JQvHwJZxdXgtY9lqZuGQRnFUTJPOpu/uDCG+o9eKYB3vV9+3i9sZzXJPFzNj0uCk 9daw== 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:subject:user-agent:mime-version:date:message-id; bh=1ijtP3dTnukRnUJTWtBwyjkURX62AyiVqjby9NpaQKQ=; fh=FFlA9u4ZtnQGtp3Y1LClykYmgJkIs8V+R/I1UV+NPQI=; b=yMzcPRo8PyOaryqImr9CsEsLGirCIaYDVYAdnAtW1zmt9g2osj4xbiFBxkTd5eSZTP VDNyHJPUgIuJW2+GfySi+nV6u5gbRBtjXZtYchMscHE65UKx1/5ythZTxfvMTLLxCaDm tjAmymyQrphz6Pvjj7edpO3RkXdL87MRUA6qXs+eVk53pgkWPYj+YPlr6g1pzmqKMgyl XGRfPH3XkxHgtsqF7yLFb5ZUSmXzo7oJh52p9wCudyP72YHU5wQ11Le7IsXKkCuCsvov 5pMUbOWxvI9+wnMjijIgjgjzhX8Roe1tUxzptFPCgCw0QGY8zRj0zcLZNVOqtOUzZ0my i9Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n13-20020a170902e54d00b001c71eb782c0si1764463plf.464.2023.11.21.00.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:04:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 70E95802F08E; Tue, 21 Nov 2023 00:04:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbjKUIEd (ORCPT + 99 others); Tue, 21 Nov 2023 03:04:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKUIEb (ORCPT ); Tue, 21 Nov 2023 03:04:31 -0500 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98368D9 for ; Tue, 21 Nov 2023 00:04:26 -0800 (PST) X-ASG-Debug-ID: 1700553863-1eb14e538c1b410001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx2.zhaoxin.com with ESMTP id mfwIhfALunJr26Ki (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 21 Nov 2023 16:04:23 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Received: from ZXBJMBX02.zhaoxin.com (10.29.252.6) by ZXSHMBX2.zhaoxin.com (10.28.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 21 Nov 2023 16:04:22 +0800 Received: from [192.168.1.204] (125.76.214.122) by ZXBJMBX02.zhaoxin.com (10.29.252.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 21 Nov 2023 16:04:20 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Message-ID: <49da551d-a43c-48b8-af31-965103a390ec@zhaoxin.com> X-Barracuda-RBL-Trusted-Forwarder: 192.168.1.204 Date: Tue, 21 Nov 2023 16:04:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] crypto: x86/sm2 -add Zhaoxin SM2 algorithm implementation To: Dave Hansen , kernel test robot , , , , , , , , , , , , , , , , , X-ASG-Orig-Subj: Re: [PATCH v2] crypto: x86/sm2 -add Zhaoxin SM2 algorithm implementation CC: , , , , References: <20231115071724.575356-1-LeoLiu-oc@zhaoxin.com> <202311160022.csCILGmA-lkp@intel.com> <541fff8a-ad8f-43f5-9a44-c64302698029@intel.com> From: LeoLiu-oc In-Reply-To: <541fff8a-ad8f-43f5-9a44-c64302698029@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [125.76.214.122] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To ZXBJMBX02.zhaoxin.com (10.29.252.6) X-Barracuda-Connect: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1700553863 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.36:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 973 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.117045 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 00:04:41 -0800 (PST) 在 2023/11/16 3:21, Dave Hansen 写道: > >> vim +/asm +43 arch/x86/crypto/sm2-zhaoxin-gmi_glue.c >> >> 35 >> 36 /* Zhaoxin sm2 verify function */ >> 37 static inline int zhaoxin_gmi_sm2_verify(unsigned char *key, unsigned char *hash, unsigned char *sig, >> 38 unsigned char *scratch) >> 39 { >> 40 uint64_t cword, f_ok; >> 41 cword = (uint64_t)0x8; >> 42 >> > 43 asm(".byte 0xf2, 0x0f, 0xa6, 0xc0" >> 44 :"=c"(f_ok), "+a"(hash), "+b"(key), "+d"(cword), "+S"(scratch), "+D"(sig)); >> 45 >> 46 return f_ok; >> 47 } >> 48 > > When you go fix your compile error, can you please look around the tree > and see what folks do for replacing .byte? AS_SHA1_NI, for example. Thank you for your advice. We have found the root cause of the compile error and conducted detailed testing again. A corrected version will be released soon. Sincerely. Leoliu-oc