Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp223710rdb; Mon, 22 Jan 2024 18:43:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhxu0ks6faFIzvskHX+o04uW1fAJvl8lp9vedrKYyFiTSiNXaEZIP0Kb/zXGQeB7mwT/EY X-Received: by 2002:a05:6808:14c4:b0:3bd:b922:dbcb with SMTP id f4-20020a05680814c400b003bdb922dbcbmr3305510oiw.9.1705977783554; Mon, 22 Jan 2024 18:43:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705977783; cv=pass; d=google.com; s=arc-20160816; b=qjIMAivfXqmem4H+ov+VdmiLC3Jw/92G8jupcwvzXCRaParkjlJq//4S/SYocrpSY9 hfcXozl6zNE4Lr/ykyDuAnVb5FGeRUs0aYF/1cpXAkEDrtKBiQKzfj5ngNQmVeL4U2xM pwAjZZRU8H+Xsrj7CG2tbwp0nN+3cQSILVCElPyGegNIIOiIVOeH9CIEdo53mM7yHVg1 fhY1Bx4Id+C5/qw7DlcaCB4IsUxnrnI4d/ML+gOsIJrrlqYyfj04RecdVbQpKXyh3kYl Dh4pxNIC0RJGU/cy+A2Ijbxu1vsYZ6QrNiIS0qE1rZlMRHMxI4OzODOAspQyoSDmJxVF nGsA== ARC-Message-Signature: i=2; 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=yMYn5hXX5rf03P9T0ztrpP9dXlJ2aHKtm4twulcMDMw=; b=Dr+97Zg9zTaVTkhOz/pJQY3/AtdH/xngToQIVzdyym5l4OJZCzik0RiR0fYTmsvqL0 fHB6BHZMs8R5rTLQFBc1Q/PraIQXI5apQgUQQqvLtL5NNDWKLveJP+fAh2cHBjnzosTl Wf+lH/Xcdm+8fwdzz9+UC2Xsrk7hG44KupiEg+uVRYtb/Blvr593jP25jjb1jFFu84Ij 056/yp/W8Whuowx/sn0xYJ531/COn3mvFbbjjmFcGeCla2+NNFEtEXrBbMsMSb+NHtjG yJFoqI1vF/Zx570uYCfBXO7W3fZlyv6DGbiqUqybyPsTgbpx6tkNyxVLtZmNHbXXLV+i 7HMg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-crypto+bounces-1542-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1542-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w9-20020ac857c9000000b0042a476cb71fsi2103176qta.800.2024.01.22.18.43.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 18:43:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1542-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-crypto+bounces-1542-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1542-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 509DF1C2A811 for ; Tue, 23 Jan 2024 02:43:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3E154EB29; Tue, 23 Jan 2024 02:29:09 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) (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 A455C481A8 for ; Tue, 23 Jan 2024 02:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.0.225.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705976949; cv=none; b=Im7kC0mo4mRDMpUp/DNP+MndoOjejJz9YE0B7pHtiaBza8JzzfuI8bc22Nrd/eTKsb7F1yl/vSfrd3WLEWZkZVrxNZbVaJ3ZFiIravnmDOL4Btowf+yX6q7peGwrm/gDr9z+z2dggbMVxGwYQ1CwMyhBcPvOb+qqZn5H3tlZAfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705976949; c=relaxed/simple; bh=8jR/wyg20Cbwp1wNyTE4dL3FSTw1OLFz7/S0CpcZm/0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jRxBCv0ArYTc9hgBZKAot7TrGWX9/A1szIxuiRaqkt+rEJTv6+5oRaqRcQfCNKCgW2BHg8L52N5w4bWW7uTdGCi4XExr9kvU3s4cOnWCAHXL4AeVUn86YNX6BtDLlKFafXTu4crY2KvwpDUvpKpkvkIQEqMFdpqN3y/cH329s1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com; spf=pass smtp.mailfrom=zhaoxin.com; arc=none smtp.client-ip=210.0.225.12 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: 1705976937-086e230f27288d0001-Xm9f1P Received: from ZXSHMBX1.zhaoxin.com (ZXSHMBX1.zhaoxin.com [10.28.252.163]) by mx1.zhaoxin.com with ESMTP id qsqivOYb0MXRPciq (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 23 Jan 2024 10:28:57 +0800 (CST) X-Barracuda-Envelope-From: TonyWWang-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHMBX1.zhaoxin.com (10.28.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 23 Jan 2024 10:28:56 +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, 23 Jan 2024 10:28:54 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 From: Tony W Wang-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.163 To: , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH v2 1/3] crypto: padlock-sha: Matches CPU with Family with 6 explicitly Date: Tue, 23 Jan 2024 10:28:50 +0800 X-ASG-Orig-Subj: [PATCH v2 1/3] crypto: padlock-sha: Matches CPU with Family with 6 explicitly Message-ID: <20240123022852.2475-2-TonyWWang-oc@zhaoxin.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240123022852.2475-1-TonyWWang-oc@zhaoxin.com> References: <20240123022852.2475-1-TonyWWang-oc@zhaoxin.com> Precedence: bulk X-Mailing-List: linux-crypto@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: ZXSHMBX1.zhaoxin.com[10.28.252.163] X-Barracuda-Start-Time: 1705976937 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: 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.119808 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