From patchwork Tue Dec 5 01:04:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10091907 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 C1C3F60327 for ; Tue, 5 Dec 2017 01:12:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B69CA29506 for ; Tue, 5 Dec 2017 01:12:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B526A2950B; Tue, 5 Dec 2017 01:12:37 +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 352A129506 for ; Tue, 5 Dec 2017 01:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474AbdLEBFj (ORCPT ); Mon, 4 Dec 2017 20:05:39 -0500 Received: from mail-by2nam03on0083.outbound.protection.outlook.com ([104.47.42.83]:22016 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752310AbdLEBFR (ORCPT ); Mon, 4 Dec 2017 20:05:17 -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=Z+rFXKSf6xVEf3DAQX13Cx6FSQfDY8IDEw1ynoBN0GcSuXb9kVLFeMTORRm/n+Fu1Ql6AFINkCleyphZqg84QG99gcBD8u5uTx5efen2zn3csuHGYHCc0N51Tu3XFE5nse6rhd6vUKqEylRDF3XRobyO8FlsHEHE1myg9iNmtz0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from wsp141597wss.amd.com (165.204.78.1) by CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Tue, 5 Dec 2017 01:05:02 +0000 From: Brijesh Singh To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@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 v9 09/38] crypto: ccp: Build the AMD secure processor driver only with AMD CPU support Date: Mon, 4 Dec 2017 19:04:09 -0600 Message-Id: <20171205010438.5773-10-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171205010438.5773-1-brijesh.singh@amd.com> References: <20171205010438.5773-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: CY4PR0601CA0087.namprd06.prod.outlook.com (52.132.96.156) To CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3507706d-8127-41da-6034-08d53b7c36ec X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603286); SRVR:CY1PR12MB0149; X-Microsoft-Exchange-Diagnostics: 1; CY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a4Y3GVvzTBTtfX6wOvMiw208oj9zf03LPBc1CMOobDKrNYdwkGUGJfTRJXZUv8KK11rxX/o7/Ji2e9W4jmwdSE1iYngfd1wjqpQ812B/Ofz5fYhyJraXTTbA1HgnYdOKBCqY75p41xFk2Cqut64tqq9uk2JdaROSS7CVci+ZefidSg78nkJIbMdqjerjtXfEkW/HgF5kmwIdqOEv4Me0C8x0fl0PBdLUQcROBTlIxNa4SS23dclGOfxCCCMTu8eY0+6qiijvSlR6622gLLhvngRj/9DBm4mZOBhhHEqsHicXrpNzq4EbHj1BbdF4guj5Lp3DVshezPNyxTvK+q8QMCD/GT+wZCC0fGS0NTw398ElPbx5f+gQLIMSNkk2YCIScT; 4:pm/U23y5EXLjDoBoYmQdfDKO2tW6RcV/wcHCqjFgbmzGqLX/hl8G7KRNubTsyXhdQasFNesl2ZzCM6OrsE5ilSU2bohlfSnIDEUpS87UKEMwe0J60ZKYYXHOw9M746F17qnXlQI8ftR9ZYeQnQNzUxzkBht5JB1fL5P73vshyozEZXWtQzfu/EJ38QzGsa1VC5KRstfDKJPWnCfCQ1qB5S+IJHxqh56uq2mWK3awZrzoP//plJUN06q9/zquWhnkN3pT+QReCLE89Rb64N5I2idHiZS35lOnleU2nVQQ9ayUdg0uGzDZdjD9bxJprw6covmmLmI354STjn8ney7sGg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231022)(6055026)(6041248)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011); SRVR:CY1PR12MB0149; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR12MB0149; X-Forefront-PRVS: 0512CC5201 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(39860400002)(346002)(376002)(189002)(199003)(16526018)(189998001)(106356001)(51416003)(478600001)(101416001)(52116002)(97736004)(86362001)(7696005)(33646002)(54906003)(25786009)(105586002)(76176011)(316002)(16586007)(2950100002)(7736002)(2906002)(6486002)(50226002)(81166006)(81156014)(8936002)(53936002)(8676002)(4326008)(1076002)(305945005)(66066001)(6116002)(53416004)(5660300001)(47776003)(68736007)(3846002)(50466002)(48376002)(36756003)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0149; 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; CY1PR12MB0149; 23:pWQAYqMVQgi22Wb4de7tSZEG+DxsImJzsrtqEajmS?= =?us-ascii?Q?drKPrLRjaxwj8c98AWyIjGl2YPMKCCbFsI6GMWzFczvAi4vSDuOAzt8SV4uR?= =?us-ascii?Q?kNXvYykJaSnzahhbSXgWMi1DNUB0TKHw/40ZuTZ7q1Zq1QiGHgzLtCxVJwl4?= =?us-ascii?Q?e+JgqnnIre3HO5aRJDnwwc5HYBMB35s1rMA5GlMt7KZH/KD7ZjX+HQtynfji?= =?us-ascii?Q?eH5DJ783iV2hhFp93NCip/UkScucdUlnOhPyueW+p07XEg9vLCQAnEkB14p0?= =?us-ascii?Q?PC49P/CpAdD1XroipbAkOjqqNrzUS1IXA0RAi34JwhikaNm+oXMgwaDikPAA?= =?us-ascii?Q?+hrZUaa6UmYAmpa/bkGriyiNAXAzPH1j7uKpwDHLkhON9PooIK7L8E+a4s2U?= =?us-ascii?Q?runKR4iJTiU6+PLpvzo0DDHqrum4FnPB284IvfIU5YfCpqv+N6+4xWO6gAFE?= =?us-ascii?Q?GES+4yaTL6GaK2g/6NoF9vRRi8+0wNW1rGrwXNhgdmHc4tpSGboQaRu5UU2o?= =?us-ascii?Q?p7BvG5O7ZuQzYd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I0fd9n1ZidBdyGuRV2yW6zDcRq0M3PQbtZsbG5BydL9kvHFuIad99M=; 5:FlpXs+23vonggI+z2UbZ1NTYYM2/TcohR8jtAAhK9a/n03Hrb55o4SSIAxQ0mtuUC3lBS7iuqvSyZz3MkwCvpg+YO2nwaXblHyoRAZfPxBuc8KQ3q6PyXJ16GPOqEka1kBjszJrTM+E9tip8dAA9Ei8Upm0c1y8GukFpGFHHu6k=; 24:YhbQqJBDQwFI5WwUwXD/kcNsLkGIrFmYAedLBXOLZglfP+bun1O3Co5cUhWotpRFzR4QXQvhaa2dAcaJU90CzajaZ1/WMwmnnJHZMBFTeTE=; 7:ffxjzUwc+90CqMsHYtEpwj94kNtYJ8RKW253DujP05qtObGL5qTr0XskKkwd+zIeSv9vfTR0+0oiCZT4NOWxw1mJIh6UjdxtnXQCCAVT25SFMCuPnXjA/2LLIY+MTu+kFn5eGcj6dqkU8NIqskYaz9/kfn+rpCAQESVYKfx3Btf1mBK65zWhV1jOqPQHfEPY0s6gfJXqNmru7Zj9UFHtd169lFmFW8juEWsiX8kMPs4EGWnAMz+UN0P7rpXauLaO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 20:6VEBtzUSrmM6s+I8kyMkWyKxjcMfVuI9OVm2aUJ7RbFGDgNyd5FOIH3GRzER2KCSO/1e0DuCyf9JVcs7tNZaHqC3XJpxUwO3xZk7cGcdZhUS0S8d8GB0FNT7Tqzy9jzJxvZfv154dSwBF3lFogk2898qx10j3HJePURaO0eFKD81PnxQYLDQ4gCTkN1o20nZcCqmVanXZrKx8+F1E6wLMK1pHcMSdyuQWC9A1djfmtNubbh/UalIGo5hBxDNRohY X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2017 01:05:02.0925 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3507706d-8127-41da-6034-08d53b7c36ec X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0149 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.