Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp438455rdb; Fri, 17 Nov 2023 03:19:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+2QcCsB8N8w1K3WAZzU69aONRmy8QkAqLwLsZt8PLAOc2qCNDcCCMRSQJ+jIo0XIIUDKE X-Received: by 2002:a17:902:c943:b0:1cc:23ea:47b2 with SMTP id i3-20020a170902c94300b001cc23ea47b2mr12872813pla.37.1700219974101; Fri, 17 Nov 2023 03:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700219974; cv=none; d=google.com; s=arc-20160816; b=RuU5otgH2OfdJNt2SQTh6uhlRoO8QRpsKtTb8+IbqlUmtQ8m6x65V/aPvXBXNS1f0L a3wxCgFY2gTInQShBh/1DSQCQjQfKTSZtyR/AcnwPF8zspa6FHG+gnSStkkAlAyzqQ7k Ni/DRUQHjfNtAePONR8UBlGH5MCm+oUkkT/LOESUBohI6Gl5vEXoX3SynHrLjx3b8haU pBX47HOKdH67gvk3WOLsmUCR8LGrHGAbtCGo2R1gNSYlA46uCMVw7AJl/dA8YK+vzKU+ 5Thty7CgC8TWe5PvUtAR6c+rqfhHZkV1upetpW6/b6TZ8XhM15Mpxg3vEPY829Ex7iD5 kxTw== 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=d+zOrIKixZEKl836N0f0QcWrU7j4YWvp74ji5z6JGUY=; fh=OryCMFWug7RQoHyC5EvFXGRJxKYk8uTtaoo+bqvAo3g=; b=ptnPKyYDosslQRBdLDl5Zb93Q5QsvRztFF66abP2c3nk12KlYn5QLk5aEm54pRfh3Z xInabLweh6++wbLCJh/SvkVDNQkRyK7bsngP2bkxKCHKsLjCNKxPF5HcyiRCwDmlvgju yNg/HN4UFOa9rtCrbFupYIRlwuU3PFa6ty+d3vz1aK7NEnnZK0sg0mdMWCLv5NUx1mYA 1Zy9rpZLOd6f9mqnmZ3VB7r4rh94WspRDlM1y0Y2cGXu9fKyYmonSn8CicKsvZrjeEtn iQKGNdCPAhQfv3LxSsAlB4iAsphabbqyiwQ31VUDOIKNQRLXqpyKblPzUOZ56ojEZJly MvXQ== 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:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t6-20020a1709027fc600b001cc23d2bb92si1527313plb.650.2023.11.17.03.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 03:19:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C7DC28072148; Fri, 17 Nov 2023 03:19:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbjKQLTb (ORCPT + 99 others); Fri, 17 Nov 2023 06:19:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKQLTb (ORCPT ); Fri, 17 Nov 2023 06:19:31 -0500 Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D781111F for ; Fri, 17 Nov 2023 03:19:26 -0800 (PST) X-ASG-Debug-ID: 1700219962-086e236ff01f4d0001-xx1T2L Received: from ZXSHMBX3.zhaoxin.com (ZXSHMBX3.zhaoxin.com [10.28.252.165]) by mx1.zhaoxin.com with ESMTP id lmhIwENaRer50217 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 17 Nov 2023 19:19:22 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX3.zhaoxin.com (10.28.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 17 Nov 2023 19:19:21 +0800 Received: from [192.168.1.204] (125.76.214.122) by ZXBJMBX03.zhaoxin.com (10.29.252.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 17 Nov 2023 19:19:20 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Message-ID: <88075c49-8118-4c4b-a2ce-e460180fa30c@zhaoxin.com> X-Barracuda-RBL-Trusted-Forwarder: 192.168.1.204 Date: Fri, 17 Nov 2023 19:19:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] hwrng: add Zhaoxin rng driver base on rep_xstore instruction To: Herbert Xu X-ASG-Orig-Subj: Re: [PATCH v2] hwrng: add Zhaoxin rng driver base on rep_xstore instruction CC: , , , , , , , , , , , References: <20231107070900.496827-1-LeoLiu-oc@zhaoxin.com> <20231108073454.521726-1-LeoLiu-oc@zhaoxin.com> From: LeoLiu-oc In-Reply-To: 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 ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX3.zhaoxin.com[10.28.252.165] X-Barracuda-Start-Time: 1700219962 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 1222 X-Barracuda-BRTS-Status: 0 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=MAILTO_TO_SPAM_ADDR X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.116869 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 MAILTO_TO_SPAM_ADDR Includes a link to a likely spammer email X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 03:19:32 -0800 (PST) 在 2023/11/17 18:35, Herbert Xu 写道: > On Wed, Nov 08, 2023 at 03:34:54PM +0800, LeoLiu-oc wrote: >> From: LeoLiuoc >> >> Add support for Zhaoxin hardware random number generator. >> This driver base on rep_xstore instruction and uses the same >> X86_FEATURE_XSTORE as via-rng driver. Therefore, modify the x86_cpu_id >> array in the via-rng driver, so that the corresponding driver can be >> correctly loader on respective platforms. >> >> --- >> >> v1 -> v2: >> 1. Fix assembler code errors >> 2. Remove redundant CPU model check codes >> >> Signed-off-by: LeoLiuoc >> --- >> drivers/char/hw_random/Kconfig | 13 ++++ >> drivers/char/hw_random/Makefile | 1 + >> drivers/char/hw_random/via-rng.c | 23 +++---- >> drivers/char/hw_random/zhaoxin-rng.c | 95 ++++++++++++++++++++++++++++ >> 4 files changed, 119 insertions(+), 13 deletions(-) >> create mode 100644 drivers/char/hw_random/zhaoxin-rng.c > > Please cc x86@vger.kernel.org as the same comments to the other > zhaoxin driver seems to be applicable here. > > Thanks, Okay, Will re-send v2 add cc x86@vger.kernel.org. Best Regards Leoliu-oc