Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp417549rdb; Fri, 17 Nov 2023 02:36:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxkpjplt7Q5EEnSu1/u+YCOTDcNXov6eQUmJFgwuwQOf089+TAvzSNDWKHxjXUZBzyspDj X-Received: by 2002:a17:902:e892:b0:1c6:21b4:30bb with SMTP id w18-20020a170902e89200b001c621b430bbmr13374269plg.15.1700217385295; Fri, 17 Nov 2023 02:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700217385; cv=none; d=google.com; s=arc-20160816; b=VG3LNK/ceQ62aNWj8r2IxC9tOV4yuNuJXSab2AbiedPOVncP8WVmuc7FJaesysT9jq d4aQSJ60LxZf9kZ7ATHZQl4ur2lHZ28BZEpqMrxhzLIVs/x8ALmnxeiyjHmQfpHu5Hij EsjKDaWV4y7m6yWe/2AqiAMIaS8IxR3Wqlz560NeuwTstepqpRQhg6Wis7/0WQN/GuYj qkzw9r7ITuu66A6QzrEroa+pHV+xbVO4dVZTppZ3c1WZBq4wl3XSFmCVfF/poPuphuXk mCzhjYwvk2+R/uG04IgqJ39xN9W7lUxvB5JIsYllUbRRIrsJm7kqt6dckrVBKGCVh99Y LEog== 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=SbDMOmCn0ugUuGYWZGUKi00w8Mngj3zgXCrzew0SSbo=; fh=qqSvaNZCc3mFSj3YvqzkUmoSnOAuCflGu4hnqXKHsSA=; b=MxhBdEc0e5NF+ZUhSZNlbHdIJR8TGO/fB1KNMb1n3YPa4mrQwSq8bvaE+h6hg9668O VmbMGssvnfiluqba1C42O4QTQg1hYLs1xMyKlNEszY1XR5FAuoRmEmQRwtMjc/jSiEvP GZQx4RG18i/MrMxu6vp64cy0G9tzumtQxNNFc2CYjqMzPm4IZVr9787DQtmKTKch0ZXK OZbcU1hpz1xQlfECHoDBj8POTQJn/sCaehetv+IF6jlFsBrzuCVge8SiHnQ7JQpAlZF0 A7BBPZBVutyQqm7TkgQ+vsIeYasHpyUMqYgyJMppJSbiH5Ew9WEYK6qPhgB5JTopHBH4 vyvQ== 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 jc5-20020a17090325c500b001c62ca6d540si1513198plb.77.2023.11.17.02.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:36:25 -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 2CD1B8051A31; Fri, 17 Nov 2023 02:36:00 -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 S1345804AbjKQKfr (ORCPT + 99 others); Fri, 17 Nov 2023 05:35:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345745AbjKQKfp (ORCPT ); Fri, 17 Nov 2023 05:35:45 -0500 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C7218B; Fri, 17 Nov 2023 02:35:42 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1r3wBy-000cFS-4p; Fri, 17 Nov 2023 18:35:19 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 17 Nov 2023 18:35:26 +0800 Date: Fri, 17 Nov 2023 18:35:25 +0800 From: Herbert Xu To: LeoLiu-oc Cc: olivia@selenic.com, martin@kaiser.cx, jiajie.ho@starfivetech.com, jenny.zhang@starfivetech.com, mmyangfl@gmail.com, robh@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, CobeChen@zhaoxin.com, TonyWWang@zhaoxin.com, YunShen@zhaoxin.com, LeoLiu@zhaoxin.com Subject: Re: [PATCH v2] hwrng: add Zhaoxin rng driver base on rep_xstore instruction Message-ID: References: <20231107070900.496827-1-LeoLiu-oc@zhaoxin.com> <20231108073454.521726-1-LeoLiu-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231108073454.521726-1-LeoLiu-oc@zhaoxin.com> 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]); Fri, 17 Nov 2023 02:36:00 -0800 (PST) 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, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt