From patchwork Mon Nov 6 18:11:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10044131 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6761460247 for ; Mon, 6 Nov 2017 18:24:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CD2529D98 for ; Mon, 6 Nov 2017 18:24:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50F4029E00; Mon, 6 Nov 2017 18:24:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D094629D96 for ; Mon, 6 Nov 2017 18:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933132AbdKFSYO (ORCPT ); Mon, 6 Nov 2017 13:24:14 -0500 Received: from mail-by2nam03on0078.outbound.protection.outlook.com ([104.47.42.78]:49424 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932606AbdKFSMQ (ORCPT ); Mon, 6 Nov 2017 13:12:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OOhNt13AVZYVeD99maJiF4QASyMPUjCsyv7a/3aBRbU=; b=zWXD9bflfg7fdl4DcgPxe+HyiVOA+GhdFz0aX8v8zUPgZnxmG9+7Q1nuL3VsanWAPO1RIhif4fGNCBn6eLB4fmpwEzTh72U1wfyFcTMyyEfEXKyfHpKXSJeiT+aoiub82tWFinxBVwhxQSBXreAQkx/pIRKlZNX7zNKmNAZnlK8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by SN1PR12MB0159.namprd12.prod.outlook.com (10.162.3.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Mon, 6 Nov 2017 18:12:06 +0000 From: Brijesh Singh To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bp@alien8.de, Borislav Petkov , Brijesh Singh , Tom Lendacky , Gary Hook , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Subject: [Part2 PATCH v8 09/38] crypto: ccp: Build the AMD secure processor driver only with AMD CPU support Date: Mon, 6 Nov 2017 12:11:01 -0600 Message-Id: <20171106181130.68491-10-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171106181130.68491-1-brijesh.singh@amd.com> References: <20171106181130.68491-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR10CA0031.namprd10.prod.outlook.com (10.175.102.145) To SN1PR12MB0159.namprd12.prod.outlook.com (10.162.3.146) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b149d48-5d3f-4406-9c99-08d52541e426 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603199); SRVR:SN1PR12MB0159; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0159; 3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RJFJTd4BmAsfGDytM9NFSU3Dc89rJhBelYWUHf7rZJM5LFOU3KZoEdC6hqvKjXoxMtgkJZqR6PmbJ9OMUzekup+ahyKpMVNZgRGEjovN6cXcwOmgkUoeQQ+ovEZvj/EtUVace+WwoA5lsaChj2glP0Yv3wiYqdgCa4jMwZ5hycN8FutPtKLRGeMP3QJGqpkQxM4ROOyrLxPrr6QO5FzntFr9jNnUFO0Fu0JavEJg1oCHpKHSMxO1fsWvKxPiwCIN9Y5neCmppangqX18+IlItrrdzMVGQ6sc6cepU+dqbn3T5fuf3kE1/e3m9OE0mXHj/zuBvSaBGIBNSBsOvoKyhz; 4:civl5DricD8kuZRkUSLTmKXGiOkXWLeuocMagzaPBwEAfr7t4sktlkzY3uCRBvGGXZmSLw+JIUzoR+Han1gg7oCFSX4rPehxSomz1Ua9q5TstHV5x/Y05ur1ntBCWWbVz8KdJgtydvAo7mC9/1ghNY06EPPtFKvPg6j0YEl3jrJ4FbTYit5hrywKI/WG8k9R2UhyAGP1Gb+RQVTYW4ftpx8T9V7CRIXICCUK+paQWg8VcKH3uZvX/yoAMSb8WwEA/wgozEQe/2lPkqcYEZMfSLTvmVwkV4DEuaco3Fgclct4+Xax3Kttyw1X1og8tDi3aYywS1IblgHZdkkS4KpVzg== X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3231021)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR12MB0159; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR12MB0159; X-Forefront-PRVS: 048396AFA0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(346002)(376002)(39860400002)(189002)(199003)(68736007)(97736004)(4326008)(316002)(16526018)(54906003)(7736002)(8936002)(2906002)(81166006)(81156014)(25786009)(53936002)(8676002)(1076002)(6116002)(50226002)(189998001)(305945005)(86362001)(3846002)(16586007)(5003940100001)(50466002)(48376002)(33646002)(66066001)(36756003)(53416004)(47776003)(5660300001)(76176999)(478600001)(6486002)(105586002)(50986999)(2950100002)(101416001)(106356001)(6666003)(217873001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0159; H:wsp141597wss.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0159; 23:Vg2pFTAMXidiMBRygX36+5xIrF0AenlDrCV11SIdR?= =?us-ascii?Q?E3k8IdvR6GJ9XsRpp5OnsJaqbfOS33hcdNm//2EFdZyj7M+gHKeW2vhi2+5H?= =?us-ascii?Q?UbIwusw5P6szdRIJ/7LOHjZ7z3Yff+lc49w7jVvzCrwYGLoDDffly0wHAIEM?= =?us-ascii?Q?IIFB7WnoXlzY0YupDl7xrqKOQN1vN4MtxI5no1sGZ25QGqRIhhCdzP+T/uYk?= =?us-ascii?Q?4NKZzFvxk5cInieEUtWGUvY3/RTvy+wMP/l4DvzI5/ot3V9PRwva4UaZXxRF?= =?us-ascii?Q?Kp+b/u/2pTjKNz31i53YZQxS3+oj31mZt25WxUuKGxY9EoaLamaTl/vhOSId?= =?us-ascii?Q?uWoOWjN3x13OqYCUlcb1ROVgN3EBMgMfK8+xFHGU4JLc3mUdiyaPkEmXN1kv?= =?us-ascii?Q?B7MLQcA11ghmHKH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3pd7NIDqJaDBeTgycOc+NY1nsSG2d/brRyrjB5cJQuwymA/Z30pXPN/qTDbo4raKcmu4YvUBZ6NcoqotJIuALLpCRy5whAbwrlhuksWhepzD+7IOx7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2017 18:12:06.5505 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b149d48-5d3f-4406-9c99-08d52541e426 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0159 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Borislav Petkov This is AMD-specific hardware so present it in Kconfig only when AMD CPU support is enabled or on ARM64 where it is also used. Signed-off-by: Borislav Petkov Signed-off-by: Brijesh Singh Reviewed-by: Gary R Hook Cc: Brijesh Singh Cc: Tom Lendacky Cc: Gary Hook Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org --- drivers/crypto/ccp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig index 6d626606b9c5..9c84f9838931 100644 --- a/drivers/crypto/ccp/Kconfig +++ b/drivers/crypto/ccp/Kconfig @@ -1,5 +1,6 @@ config CRYPTO_DEV_CCP_DD tristate "Secure Processor device driver" + depends on CPU_SUP_AMD || ARM64 default m help Provides AMD Secure Processor device driver.