From patchwork Wed Oct 4 13:13:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 9984681 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 EF87060365 for ; Wed, 4 Oct 2017 13:23:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0DDD28961 for ; Wed, 4 Oct 2017 13:23:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5B2D28AFA; Wed, 4 Oct 2017 13:23:03 +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 6267928961 for ; Wed, 4 Oct 2017 13:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752289AbdJDNPI (ORCPT ); Wed, 4 Oct 2017 09:15:08 -0400 Received: from mail-cys01nam02on0084.outbound.protection.outlook.com ([104.47.37.84]:31550 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752270AbdJDNPF (ORCPT ); Wed, 4 Oct 2017 09:15:05 -0400 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=j8jrSRO+P0jBiKblHpYahYamYpIf7WMjHvi3LJ/Ho9E=; b=Zsk6HtvSNmzHEx9zQjQkztXqw/bE+6m8tmsq2+I8hkV6JDX4hLNS+lZ8vwl80NfuxxbzEBMl7499WxctgWEGg1mia4Pku2yMkuHvlKW3kfAjEOsRkHIO1IEjkpg6QYz/UXcGsC/SNEmNvWs0IXkJtMuOgMGhYKHa/33cXNHLeGs= Received: from ubuntu-010236106000.amd.com (165.204.78.1) by SN1PR12MB0160.namprd12.prod.outlook.com (10.162.3.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 4 Oct 2017 13:14:54 +0000 From: Brijesh Singh To: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Borislav Petkov , brijesh.singh@amd.com, Tom Lendacky , Gary Hook , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Subject: [Part2 PATCH v5 09/31] crypto: ccp: Build the AMD secure processor driver only with AMD CPU support Date: Wed, 4 Oct 2017 08:13:50 -0500 Message-Id: <20171004131412.13038-10-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171004131412.13038-1-brijesh.singh@amd.com> References: <20171004131412.13038-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: MWHPR2201CA0056.namprd22.prod.outlook.com (10.172.59.30) To SN1PR12MB0160.namprd12.prod.outlook.com (10.162.3.147) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0d17b5fa-3886-4b6a-80e8-08d50b29e7cf X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:SN1PR12MB0160; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0160; 3:BrXKgfYTm9uMUdiSiHOgHzo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BWmtb6v3VGk/3rO+XWUO7r8TtuyA3l5AyfJjo06rt4SXiVWdCJ6N6KilOwInflRuvi3zILzXIdzbApFodluNJynSwNVXKZfsp60gXJw+2fT56UcOlGh/wufR9KYkhN0F/Q+oX/NyEKmp8JhuN73CtXQCCm/fEj0eghuQ6WztDAoniHLSDlnGk4nr4wM8YsoE0oFNzawvwdIu0AchEWznjFf23q4U1gzeKHwoxAnE++n7bypd1Sab256rVmW76VL6bkCeqeIdfECUocNKUskQMaZK9acEwi9pjJ38Sv1DGoLsZsm+Ggj7cMOpOGjfKGwlAi; 4:2GhidjJighQbnDrbs6ACCVTRVaoTJ4wYJiwEs3uY5l87it5TlKOJayQaZqCzxRdnVZ88t3vOG1y9cVfjGJwkWwLHDLtEV7q1l3DjaBojnLgxAfQanNV+o6jhcVxd3AWGqbsKBil+ErxrPkOyxBTzZHwJCCut406VUW/1GlSfDFgn8jXli2EK49+lCvuxqvmdy2cv3zw7Px7WmF0sOKHnykmGt59A90c24kEAHTg5qBZ0LEcmyzn1WLo8SaRuBt+FzIaVf8VAYOU3aWo5iXK5ViLd1DDfeCSjz75NZLcBsT1sR4HboxzdDeRdMUc3n5fV 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)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR12MB0160; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR12MB0160; X-Forefront-PRVS: 0450A714CB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(346002)(376002)(199003)(189002)(97736004)(86362001)(76176999)(53936002)(50986999)(1076002)(6116002)(3846002)(478600001)(36756003)(47776003)(101416001)(33646002)(6486002)(66066001)(189998001)(68736007)(105586002)(5003940100001)(48376002)(53416004)(50466002)(4326008)(54906003)(8936002)(305945005)(6666003)(81166006)(5660300001)(81156014)(25786009)(2906002)(8676002)(7736002)(16586007)(2950100002)(50226002)(106356001)(316002)(16526018)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0160; H:ubuntu-010236106000.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0160; 23:G3qPayZKJtjzW73bYlKuAOq3ePPRVjAc/hAUli4zj?= =?us-ascii?Q?AUbvLaYCPx1MJSVJ3zGRrqWbLQ+nrB2EAU++fZdQtjS27vDChYXSGUF0wjr7?= =?us-ascii?Q?0xTgDRDWH1rLJXgRnuJ0UaW2vnznU4C3RqxpyXBWvuSxqO/VfHciMeRhQ09l?= =?us-ascii?Q?r9iCQ/6pyjjjnsiTj+FDriPeTI7qfy3fuH3pjn7YkjdO1W0juHcAnyfpkJTc?= =?us-ascii?Q?+Los6a7G4CZU7eQY4+DQhKbE0vepeWmuAxabpTHuCj+uPt74aiRvRkx1hcf1?= =?us-ascii?Q?GqJIGoZ7Rb4GspW3Ho65+n6fwxxVf+AGlNTsljXJbFDTVGHcx+36G5CyGMJE?= =?us-ascii?Q?gfDxacOY2VtP2DD1MJL5W6SoMV5OFySOibUDxp3GvO2sSEpr7QQSn+07Mpvg?= =?us-ascii?Q?pBpeAfpVGDebLJYmCUw3gIeBhdE+dHIuA+BPcVEowm50Drl5vE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iT1jyxbtEuRp3iu9va0g4DIdtCsra0m90KJEY6r35yh78Ns3ohqHgJoscqM5Xg7L4cPpoZI2HVk0dK5SxQRtldS+nnJBnhOmNy1v0TAtqxz3IWF77kno4MhAjJs8lgxdTAotubNvIWOYdEl+Hu18SVwvOJpo9Axh5qIjS226g==; 5:1IpmOh9HXqFBI5rbPZdh4Z/20KL+tZn4mFQSvSdrOzlHG9CKLuhAAQ1BnQkYyJJcxCJHg9JHgbyhNP+cpIVerlwroWE2/rSzc2Zl4kwmp3+zyzA8VfncFPkq2CWLyhJAajmlfcygmT/g2Gth11M3Zg==; 24:3g5KjC7c1bhbip6h9/nu75ip5W2UTXro6i6LncjLQNyrdHhqNrmpxRtELT6H2ILcnVa+LpXnwCsKM95rPgM/X02F/CmZ3PXD+qPYS460fxY=; 7:HFtcAN81snr2Wgku9hT+u2Lf9I0Adz3NB+vFQjx4RJy8TbBzaqoeB49DZSg1bWePw+rV/UIZJj3zB0pRhlU9KHapbgVaHEkKlsij9iaKYK/7G3p6Pc0hWydCcczw5fJscu8lCky/qtALe3mxcApic/w5aVMW1hdsPFKC0JTdQVsh4029KvlIXr3UH7jvqzq7Tl/xyUM7IzSVeCQGpTOKJmob/j1XQPPfqEz5qkTzJh0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0160; 20:u6mYRSzVvxepPgb77pWdvdsRD7a2dZPYsmTmo6z3hL0zuHsGX6BnmUIr8yeAJUW+o9qdYlmRXh+cU2b3DgnGvKW5QjqrgmW2EiFSu+ZtN1QdgPMTLjSbdr9hc+gLaJVDgZEB7QaHLsVskCjcXo5yMMqV2ksj33H3RO19KIfAIITka8uYr3rrFKlw5tRM9LNuWHoE3MGKzBLIf4XxGSzL3bgfdXZXSV+ayIxN7INfY9jgDSfGL3uuMz/9f8BSMKFk X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2017 13:14:54.0056 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0160 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: Signed-off-by: Borislav Petkov Cc: Brijesh Singh Cc: Tom Lendacky Cc: Gary Hook Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Signed-off-by: Borislav Petkov Signed-off-by: Brijesh Singh --- 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.