Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2127138yba; Mon, 15 Apr 2019 05:36:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMHdXmsWJIwNUVI0R5goWn3SFFqc+YTEr4Mor3eqg5zxCahBO6znmZS7/H9sJ5AULZh1SO X-Received: by 2002:a62:6807:: with SMTP id d7mr73379801pfc.75.1555331806566; Mon, 15 Apr 2019 05:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555331806; cv=none; d=google.com; s=arc-20160816; b=HjljOVemNHMW8fIOoubsk9IAhDnEUoDGTlJONBmJD44mOJi7vJRtqthY2ESnozoCPJ 6TNmJEj9eAoJkUiASv0Yu57KjAsEUt1yHlbdmK1aQxgp3trbFpmo0yf2+9tpTk9aouya dfD3hhFnEqIkoI2sdsCPSd4J3yBBNrtAGkNoadBn5fj4uNGBdWjIoAdpECq9L/e1Z886 5/HZG713zAZCTHKHLgemz776OyFScLdO7dqu6LeBS0e+jybdqN9VE9AWEO+YbdGUJz38 VLYaCnRoyF6OrgfCw3kwyQrHrtwz9serA5+7/q3nQUeoWFBj63xA6UtJlEP6OI/mjw+e TLsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=cM5vM/gzUuv1ONGgkBufjx+z1OY6CgeMPrAWoEUpGhg=; b=m5OvH2PWfyHYDXZW83B+ZIEpBiBr/cYgva/4PUsmwWU1QvUuNTSV1oi4Oz+70IpGgg Fiqw2kaZq6s1jHUYZ4wrtMg+BOmMjiw68/3+JoUe2UxSQsL8S3UvMZhQ3U7lrWE8DOUo nmj0X19yBqrU6Hv6HFIZzvz6POUmE/+bv84CWRNUTqRwAZ4wIxgjhlIEVU/pb8uECRTp FjLTpcBLhJhRkTlidIHF0g0buwF/XnMVqicSRhvCap2WmLjnUS74RGDGmpn8Pi0YV5vc gHM72vGsUMtEV4/8YZEA2rmvBiqfSC+fIonxZXsLCxZHEYzALi2HfHwPSaIUn1W2QXQr nwyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hygon.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si43234821pgi.60.2019.04.15.05.36.30; Mon, 15 Apr 2019 05:36:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hygon.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727412AbfDOMff (ORCPT + 99 others); Mon, 15 Apr 2019 08:35:35 -0400 Received: from [110.188.70.11] ([110.188.70.11]:52202 "EHLO spam2.hygon.cn" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726094AbfDOMff (ORCPT ); Mon, 15 Apr 2019 08:35:35 -0400 X-Greylist: delayed 1573 seconds by postgrey-1.27 at vger.kernel.org; Mon, 15 Apr 2019 08:35:34 EDT Received: from spam2.hygon.cn (localhost [127.0.0.2] (may be forged)) by spam2.hygon.cn with ESMTP id x3FC9LMa059344; Mon, 15 Apr 2019 20:09:21 +0800 (GMT-8) (envelope-from fenghao@hygon.cn) Received: from MK-FE.hygon.cn ([172.23.18.61]) by spam2.hygon.cn with ESMTP id x3FC6sjp059172; Mon, 15 Apr 2019 20:06:54 +0800 (GMT-8) (envelope-from fenghao@hygon.cn) Received: from cncheex02.Hygon.cn ([172.23.18.12]) by MK-FE.hygon.cn with ESMTP id x3FC6Kds022099; Mon, 15 Apr 2019 20:06:20 +0800 (GMT-8) (envelope-from fenghao@hygon.cn) Received: from harry-Inspiron-5675.higon.com (172.23.18.44) by cncheex02.Hygon.cn (172.23.18.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Mon, 15 Apr 2019 20:06:50 +0800 From: Hao Feng To: "'Tom Lendacky '" , "'Gary Hook '" , "'Herbert Xu '" , "' David S. Miller '" CC: "'Zhaohui Du '" , "'Zhiwei Ying '" , "'Wen Pu '" , Hao Feng , , Subject: [PATCH 1/6] crypto: ccp: Add Hygon Dhyana support Date: Mon, 15 Apr 2019 20:04:23 +0800 Message-ID: <1555329868-17895-2-git-send-email-fenghao@hygon.cn> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555329868-17895-1-git-send-email-fenghao@hygon.cn> References: <1555329868-17895-1-git-send-email-fenghao@hygon.cn> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.23.18.44] X-ClientProxiedBy: cncheex02.Hygon.cn (172.23.18.12) To cncheex02.Hygon.cn (172.23.18.12) X-MAIL: spam2.hygon.cn x3FC6sjp059172 X-DNSRBL: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Hygon Dhyana CPU has 2 CCP devices, the device IDs are 0x1456 and 0x1468, Hygon uses the same device interface as AMD, so enable the CCP driver to support Hygon CCP devices. Signed-off-by: Hao Feng --- drivers/crypto/ccp/sp-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/sp-pci.c index 41bce0a..363ad9f 100644 --- a/drivers/crypto/ccp/sp-pci.c +++ b/drivers/crypto/ccp/sp-pci.c @@ -321,6 +321,8 @@ static const struct pci_device_id sp_pci_table[] = { { PCI_VDEVICE(AMD, 0x1456), (kernel_ulong_t)&dev_vdata[1] }, { PCI_VDEVICE(AMD, 0x1468), (kernel_ulong_t)&dev_vdata[2] }, { PCI_VDEVICE(AMD, 0x1486), (kernel_ulong_t)&dev_vdata[3] }, + { PCI_VDEVICE(HYGON, 0x1456), (kernel_ulong_t)&dev_vdata[1] }, + { PCI_VDEVICE(HYGON, 0x1468), (kernel_ulong_t)&dev_vdata[2] }, /* Last entry must be zero */ { 0, } }; -- 2.7.4