Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp43726rdb; Mon, 4 Dec 2023 19:48:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBabSObPZLcHwsDKFp+dgR5UhBbRMD09zUzvYS46zxcWdkWLd8TFhAsNhZlvXbVELXbRv8 X-Received: by 2002:a17:902:d48c:b0:1d0:c3ff:6a99 with SMTP id c12-20020a170902d48c00b001d0c3ff6a99mr460322plg.5.1701748102089; Mon, 04 Dec 2023 19:48:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701748102; cv=none; d=google.com; s=arc-20160816; b=pOFvV07gS855gkUtd45x54biv8eDA68m5HaaMrtfA19Ix7+5GqIsMXluw4hsHdPxcN 7f8+serFlfq2WaCE00rBn+pY2xWVM66sNZbMMcDMaCYMiQ4ZJgyQF1sIKoMWFA9rNzMI Zk8aDxgdsu34CBSWfBhlIipOHzDmmYaO+fe3+aVMwNoUPVlJHK33E6s9L6tMKCC1VM+T wQRreWC2T5/OhCKnAodfa3VxQdYk3lWvhJNWbmBkpZwcrY9mtDwUhKShRaIlS6qgu2ah bPCxPpwnKwX8bRoJbBM60O5H6n37pWdneMHrXWryz84gV//nj627xP3aPIcoy+el4c+E CzGQ== 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=PxAWaPMR6lGLU8ygdXxDH9TByfpTWEBj/hBqPOizM/c=; fh=PQ1xlXwj5aQxB7aqIRO9L7JbXbgodP3e+51aVsyLUjw=; b=ljAwoq70FqARpSPH8p4o5vByjbjLaMcnF/rtinI8gl5dGGtI6qIZqdnL+tlQBQcUDk fCWHTn9/rmww+RGbIlU5mjsWtFJTLbfcWY14pnkNGMoppeFe18GgvtUk8Fo+xsfZNCBS 5csHPKkpYk4PpwwjtKSYAYkgWB0DINtkCubCqYiI72r996hn/5b6s2/K9r+qZ4EG2hWu USRBEszp5Um5614TYcb5FuJAfxpdFHeUNqdoyy1lrVI5kAY486kkDtBosMfMLqffOt/b gk0e7udO6Ph8WhYpR6Pa6NkHqljrdYILJyGxUXwD08hzsqodxSNAITbF7KOrokj3XSGa v7CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k1-20020a170902ba8100b001cc3527145bsi6140965pls.29.2023.12.04.19.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 19:48:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id C1B948051909; Mon, 4 Dec 2023 19:48:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231624AbjLEDrx (ORCPT + 99 others); Mon, 4 Dec 2023 22:47:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbjLEDrw (ORCPT ); Mon, 4 Dec 2023 22:47:52 -0500 Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE2CD3 for ; Mon, 4 Dec 2023 19:47:58 -0800 (PST) X-ASG-Debug-ID: 1701748075-086e236ff030ad0001-xx1T2L Received: from ZXSHMBX3.zhaoxin.com (ZXSHMBX3.zhaoxin.com [10.28.252.165]) by mx1.zhaoxin.com with ESMTP id 35nviJm6sEfRPMOJ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 05 Dec 2023 11:47:55 +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; Tue, 5 Dec 2023 11:47:55 +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; Tue, 5 Dec 2023 11:47:53 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Message-ID: X-Barracuda-RBL-Trusted-Forwarder: 192.168.1.204 Date: Tue, 5 Dec 2023 11:47:52 +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> <20231121032939.610048-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: 1701748075 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: 599 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= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.117665 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 19:48:20 -0800 (PST) 在 2023/12/1 17:34, Herbert Xu 写道: > On Tue, Nov 21, 2023 at 11:29:39AM +0800, LeoLiu-oc wrote: >> >> +static const struct x86_cpu_id via_rng_cpu_ids[] = { >> + X86_MATCH_VENDOR_FAM_FEATURE(CENTAUR, 6, X86_FEATURE_XSTORE, NULL), >> + {} >> +}; >> +MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_ids); > > Rather than moving the whole thing, just add this near the start > of the file: > > static const struct x86_cpu_id via_rng_cpu_ids[]; > > Cheers, Thank you for your suggestions. Will make modifications in the next version as suggested. Sincerely, Leoliu-oc