Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp276373rdb; Mon, 15 Jan 2024 22:47:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQQiUESNcjCOcwu5iKsdgwg+S7wYVqSGgiAWB43PjPQ7xQCRvKWVA68C9X3VNG4B/LfkLJ X-Received: by 2002:a05:6512:3c96:b0:50e:3db6:2957 with SMTP id h22-20020a0565123c9600b0050e3db62957mr3170385lfv.93.1705387657693; Mon, 15 Jan 2024 22:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705387657; cv=none; d=google.com; s=arc-20160816; b=v8wc65FIJfYM8BaYtUCK6HmoWRvt5TwJfkkUSxOg7EneVlyc2XCp5dHkAHqWd4gKcQ M4KBbAbqEhofyf9NprHsZhI9iIuXzNzTPC+BaT0dFf0CeFzxRX1LxPKmhApe6KBqxbJB J8eW7EoXJVHaVoRbzxnmmmEVwayFyZ/HrVTWHzSjf+nDydEK5ncC8RoV1SpzqxAWC23w pUbc54pzAhlwVVMXPJk70kPPhF5hF1b+HxHCYcxMTYld419iaKVYfsU3qWcWhIN05vPQ /XYGaZTluIhNC+Sr8OeV21yHB+G0m+UoiGcigsPO5QE6YYMwI1lwkj9q/8rnxed/WQzW 3JGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=oLJbIpADNd6D80xidMOJjRhozcLI885kiLYgF7qEU/w=; fh=/DJancj+MVsnzMVCUp2iErr9P0bPMLJHvcEOHip9mxc=; b=Mc8du0KG6P/RcbsW6AVk89Z9/X+LmEE+U8seN03Dwi+uSfkalGV7HxEkOlWj1IvdbD BJ5X/HOADlwG4JjqQiCznY/JZeajhafB/QdwJ9nvvOtzeee2Yk9nzMz0ZN8CyR/VH0LY bbC1vRUGJB+AK8YhdZdlo91Ot5vfsjY7ffEskvB/vdqhkwjrYQoJkJNs6h2zzKt2v/Nq d7hyqdK9vh+EYaV1QCBQuWexo4xbJSKecarskaHG7y2dK4ICgyHg1DmuNxLEchyNfEDn r3gOG/qN0IVjocsNZj0acJDtL+HHD7Sj9l7pT70HO5X7wdF0GS2zjS+DaxAVDTtMT+U1 N7Uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-27045-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27045-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lv3-20020a170906bc8300b00a2c2ea94058si4551819ejb.368.2024.01.15.22.47.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 22:47:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27045-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-27045-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27045-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 61FA01F236E6 for ; Tue, 16 Jan 2024 06:47:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15E4E10A12; Tue, 16 Jan 2024 06:47:26 +0000 (UTC) Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 700FB10A05 for ; Tue, 16 Jan 2024 06:47:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zhaoxin.com X-ASG-Debug-ID: 1705386951-1eb14e0c7f1eda0001-xx1T2L Received: from ZXSHMBX3.zhaoxin.com (ZXSHMBX3.zhaoxin.com [10.28.252.165]) by mx2.zhaoxin.com with ESMTP id 6inuI1kU4kvmppjM (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 16 Jan 2024 14:35:51 +0800 (CST) X-Barracuda-Envelope-From: TonyWWang-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) 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, 16 Jan 2024 14:35:51 +0800 Received: from localhost.localdomain (10.32.65.162) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 16 Jan 2024 14:35:48 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 From: Tony W Wang-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.163 To: <675146817@qq.com>, , , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 1/3] crypto: padlock-sha: Matches CPU with Family with 6 explicitly Date: Tue, 16 Jan 2024 14:35:47 +0800 X-ASG-Orig-Subj: [PATCH 1/3] crypto: padlock-sha: Matches CPU with Family with 6 explicitly Message-ID: <20240116063549.3016-2-TonyWWang-oc@zhaoxin.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240116063549.3016-1-TonyWWang-oc@zhaoxin.com> References: <20240116063549.3016-1-TonyWWang-oc@zhaoxin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To zxbjmbx1.zhaoxin.com (10.29.252.163) X-Barracuda-Connect: ZXSHMBX3.zhaoxin.com[10.28.252.165] X-Barracuda-Start-Time: 1705386951 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: 786 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.119492 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Updates the supporting qualification for packlock-sha driver, making it support CPUs whose vendor ID is Centaur and Famliy is 6. Signed-off-by: Tony W Wang-oc --- drivers/crypto/padlock-sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c index 6865c7f1fc1a..2e82c5e77f7a 100644 --- a/drivers/crypto/padlock-sha.c +++ b/drivers/crypto/padlock-sha.c @@ -491,7 +491,7 @@ static struct shash_alg sha256_alg_nano = { }; static const struct x86_cpu_id padlock_sha_ids[] = { - X86_MATCH_FEATURE(X86_FEATURE_PHE, NULL), + X86_MATCH_VENDOR_FAM_FEATURE(CENTAUR, 6, X86_FEATURE_PHE, NULL), {} }; MODULE_DEVICE_TABLE(x86cpu, padlock_sha_ids); -- 2.25.1