From patchwork Fri Oct 20 02:33:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 10018747 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 178DF60234 for ; Fri, 20 Oct 2017 02:45:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04B5B28DD9 for ; Fri, 20 Oct 2017 02:45:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC76928E8C; Fri, 20 Oct 2017 02:45:08 +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 9F48228DD9 for ; Fri, 20 Oct 2017 02:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751549AbdJTCpD (ORCPT ); Thu, 19 Oct 2017 22:45:03 -0400 Received: from mail-bl2nam02on0081.outbound.protection.outlook.com ([104.47.38.81]:36505 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751935AbdJTCe4 (ORCPT ); Thu, 19 Oct 2017 22:34:56 -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=C8/thPw3j93E3FkfTNQm7V1ZioDwTN114r2XrKIAJac=; b=YW3MbIudlMcktqaRbOcdyh+8PgXOF1nZdKWHLgPcrGkqBIVsCvBK6f4kpikYHByQyXBSMQjU2j/mFOCPxSEahr/qyi3QfVy4orDCxA5+tQ8/AZ4JGNqI4WOpQ92VU62d/MsKqoWmKFnO3Wg4Pel2hIummz9azDdakpU5imUVbtE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from ubuntu-010236106000.amd.com (165.204.78.1) by SN1PR12MB0157.namprd12.prod.outlook.com (10.162.3.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Fri, 20 Oct 2017 02:34:49 +0000 From: Brijesh Singh To: kvm@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 v6 09/38] crypto: ccp: Build the AMD secure processor driver only with AMD CPU support Date: Thu, 19 Oct 2017 21:33:44 -0500 Message-Id: <20171020023413.122280-10-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171020023413.122280-1-brijesh.singh@amd.com> References: <20171020023413.122280-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: MWHPR1701CA0020.namprd17.prod.outlook.com (10.172.58.30) To SN1PR12MB0157.namprd12.prod.outlook.com (10.162.3.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 476a2314-5eb5-4e6e-d037-08d51763238f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:SN1PR12MB0157; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 3:45OkmPe2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AaYTEhAulVkT+66IT+L07ipaivQaz699s6kTv1EgOwpmgRp8JJ+9S3ToqvYk6VMLyEqbBRvH9GH8g7IlJDHFJUuNEMP2IRA/7+wX6a+YiNkb73mFliIOX8d8Xuej4D4uT9XpZYEFhC+C4Dx+pbgyWEfndRcuraC2MEjVN0dY+93qoMnvFh2O6O0VILkVMDsi/NmUaqpUd1lAmpeDX72q0RA5FN8XrVZc6jV7AnB/kw5D9nZQNLpKUKX2IOco28kdVNh/0uv80SweG5zoVfqiBklj+/OrJN4Wr9ohalLyKo7dV1JZjb13ZmPG0+dppRUscu5kEXICty/2zDKtw/4A; 4:nghDKCgMHDZhUxTgeBz+LzGLMy1XQXwo90s+qtdFP8/9aq9z7sX4PnkpBAe3gpC//PHTGWAp66ANqSCEQeyHSDKlEa0e6e3j8icR3SGaDuW7Ay8IdWHtKXat4AoKPws6lhX7n0VwkoeAmE1wW7fZOIrw223KSMocyPg8itAiSto3HDQMIqlqRpw52NHH6tPfI2DY0rkHUnykL13DN4m+pH+x/KGqxJxWDRYXSdMTH4EN8MIZUroZQwinMHQgs1YcAGzl/WAktvYrerEfXtJFdj2wVP1bEEszyGAdXpSq3AgK90GicFeAbQCnKY+YFD9U 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)(3231020)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR12MB0157; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR12MB0157; X-Forefront-PRVS: 0466CA5A45 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(39860400002)(199003)(189002)(48376002)(16586007)(36756003)(7736002)(68736007)(50466002)(1076002)(478600001)(4326008)(16526018)(316002)(53936002)(6486002)(86362001)(305945005)(53416004)(5003940100001)(54906003)(50226002)(2351001)(106356001)(101416001)(81166006)(105586002)(8676002)(2361001)(76176999)(2906002)(50986999)(6916009)(66066001)(47776003)(6666003)(97736004)(6116002)(2950100002)(189998001)(8936002)(3846002)(33646002)(81156014)(5660300001)(25786009)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0157; 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) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0157; 23:bw+pZ4mneKZ18F4HHeH7JuLaGvPRqrriI3tzZbq+F?= =?us-ascii?Q?bqhDarKMxUgIVeHlyCjYjDr9F7uL2mXipg2szlK9yH0oKlAnGnpBQZlRjL5O?= =?us-ascii?Q?gD4iurKhqJohBL3IC7eELLUunkWMgPJagG6Ljd0+Ip/JtARLtFU7hxC+aXC+?= =?us-ascii?Q?FneJz8+pmf8Bh8AnReaSI85esVgU5lzLKU4WAdr916yla/RLyTXGTiqYQhQM?= =?us-ascii?Q?IN+A10M4il4KAU7YILa7RQ3XtMM9kuP9/RceK1ZQtsFGFxpNZvcIKpA1lPtr?= =?us-ascii?Q?GoymHvIBhnohncwhugKhi6vKqEUirkK0Ki37AFc+mrGsTCXWdIgSL3+aTOhb?= =?us-ascii?Q?Ld68xTV4+9PoaEkuiLwJRyquqs4jIiN4pbdaFc0q36C5Kdhi2vcNV+lCh5Lp?= =?us-ascii?Q?VJwPWCN1FecFJcVbuaLWjcJWDBdHNxENsWf6UQD/rA2x0QWtQtCYCV2P4n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kT1UmK3DAYV2dXUQ8q7ccIa+HBZcuVvIj6rYnJnkbQutMmcj3QLLh1oEjxmjxgKUqZwL/9SIrqnWJBlBpzTdxZy9I3uzbm7Ix7FOvAoehlL21w16eLeTQ18z4QOOkhh0U3RTynd6sPfvsA6G8Q16yaVfJ9KwURmgOTCNGN4YSTraANcsIZ0FPJm5bvLMef8PJjA==; 5:yceCOQLCb9NDkXN+GCzh5lsQN/WI+pflwR+xB+zSkOB64g50J2XxEsmgIyXtnMqyE7Xt/7AvFRabu143ZdDzF81Fr9rtyTnKnIFJoUNaqdIS57JlLC3Dg3xCIB/2PdjeZJYOxUQS12oeFxrQY7+bJQ==; 24:362jA3fl/xsMksbVobMC24O4STYuk8fbxgWfaaUaeERhUXN0jisVxwHRJY4gfnDyZHaUuR+zmlWd7fHlnmLDHOAD2Eiqt86tQsBWRCTvpaI=; 7:UDgNxMGwjyiemsiXx6HCbx+K80GmYttjh3XQhR1FcARPSabltUFDdip2mK8JBgJ5/GkQwlZFV3YFXgnBXR5i7ZGo8BW5SRvIab6blJkLlCMMUbzElgKMmYHYbkwDZZqu4mRXpBnWxXvp0IDJa/oqjo5I5O6EKFEQ8oYWQaVggRui2e3nYI8CZ69pzKJl4gbO3KOeXujDdcFdL8OUtE0T4UBrvIC97HfYnCb0/IpTBvY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 20:9037xOYMnyiun9TlDGYVrUbtkhwAwMaj+vQ7v01T1e4nUNVeBQDowdkVUHV5ppzdcn2KECL026KFmESLl423JEpmcpHzyK08n1OmPYPFsKd68eW3KsBFcOQQ695P1YalNWt5ny/SReVkgdNdPUzGo4V8ef2SdI5q8HE/DS2K4H5RVb8BjlCUh5DCJJ0k03BmU4wRmazpOPSkSXvKcsTWqDdhpP5wPkniSxH2mJYXTSMKf2UavBHPpMp1pa/eYTUv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2017 02:34:49.6121 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 476a2314-5eb5-4e6e-d037-08d51763238f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0157 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 Cc: Brijesh Singh Cc: Tom Lendacky Cc: Gary Hook Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Reviewed-by: Gary R Hook --- 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.