From patchwork Sat Jul 18 20:08:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 6821441 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0863F9F38B for ; Sat, 18 Jul 2015 21:43:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 267172055C for ; Sat, 18 Jul 2015 21:43:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC4B12055B for ; Sat, 18 Jul 2015 21:43:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbbGRVn0 (ORCPT ); Sat, 18 Jul 2015 17:43:26 -0400 Received: from mail-by2on0129.outbound.protection.outlook.com ([207.46.100.129]:10213 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751917AbbGRVnZ (ORCPT ); Sat, 18 Jul 2015 17:43:25 -0400 Authentication-Results: lists.ozlabs.org; dkim=none (message not signed) header.d=none; Received: from snotra.am.freescale.net (192.88.168.49) by CY1PR03MB1486.namprd03.prod.outlook.com (10.163.17.16) with Microsoft SMTP Server (TLS) id 15.1.213.14; Sat, 18 Jul 2015 20:09:15 +0000 From: Scott Wood To: CC: Tiejun Chen , , "Scott Wood" , Cristian Stoica , Horia Geanta , Herbert Xu , Subject: [RFC PATCH 03/17] crypto: caam: Blacklist CAAM when kexec is enabled Date: Sat, 18 Jul 2015 15:08:40 -0500 Message-ID: <1437250134-307-4-git-send-email-scottwood@freescale.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437250134-307-1-git-send-email-scottwood@freescale.com> References: <1437250134-307-1-git-send-email-scottwood@freescale.com> MIME-Version: 1.0 X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: BY2PR21CA0002.namprd21.prod.outlook.com (25.162.74.140) To CY1PR03MB1486.namprd03.prod.outlook.com (25.163.17.16) X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1486; 2:RltBOUaxFZTawWk6XB7w+qKKNJL1Wj/p7tmhyl4/DCAzmKXullo+hohBXMFNGf0J; 3:c3+kA++ubq4JZ5bewZFUk9s1WSM+fgLjmLH9+5YcqCwRlzmw0PB1612/ZSQ61Hz0yxQ55oz8l0wiyJYjBS1a6EKbUmqhZoT7lEr/9E7v8scejlx8AWVi9Thh3k6Cx+m61W8qInvKdSx78f/ZSkaOKg==; 25:iWqG0edi3spFj20wbtOUU3GEGa0PnLzwmi6mJ8ueltWiSIkd5+52o85FWWEvqEpHQ09aGRqp5UwgxmabLgpYtgqsbs+aTsY7I0soKlKWanJ7J+xVXb0J2QJdghDtZBf5Sicx5d48LKgFpLg5oj6Igj1+4wv5z7Jqmwiog5fp1IONnc93HtdQxjqPzB9yRoSrvqCSYnK+1nN1K4aRYBUen1UCFb5tzflmv/W3pMV1u5uoCH1WO2CG89Parjv40edvReiqM3THa5mzuaja5s63aw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1486; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1486; 20:yQRXZS7/2YoFI+sHvHcolkgW0Ja6zSlPFSvjLyfvjakVnxwk1JSadlsZ4Hu6grzlWTng6Bdx6aKw016tEQefvxoQmXyn5C8z+drvb9le/5+8dvIIWohvMPRfIhiI6jtxs7gGJScDzI7EjnCi1nbzwa6is+Rv8Kpedse1N5nAyDLGKpab6XzRPhAeV1SO8a1heP6KXshcqueZVBvoll6m7C/HNA2yMT5Ghvl8t7NqmkZ1hYCdq9lPB1sfDKtgUQCmY73R/EAFSAnwrJEetsC4GVZI5BGo7lEvDtHnpjvGHnPE5Vq5kTfwq7ixb3w1/zGYBV7IxFOv0toRziZgVf0EFbXjvq+9A7RNwhqHFaTWueUoJqFj6x+e9zn3wscAAY4YaK7ZTUrB/2vj02GG3/0/r/qNRmw2pEIjzoosMZmvug1LmknLIQjBLYSssOZ5oSPpJTAzA+wCMVbbzWyJa1UBty8c44CSB5x+aQ1SrcSWYH/VTUt155svl2W8LSqmPG5O; 4:/vksnTHxai7JUaXax4wQrA7g7fCPCPYSRMhQlTJlq5ImiZpKuKPJFJu7aExTWd0QAwrvMIzOg44TInkVSANgRE80qdQUclknoVxwVnKbc30KLncFI0QRmjZEoxz2aovnUcCwqFLrCzY7ApRgGh4Ulc5/JdTsfNLJ2ueu5cBe2pPtuYDdxkE7jjyU7tahuLhTOSBP0CsdN5AO7zPBuee7v86zEcBTpix1yQT4ra2dwitaPfeHkm75LSryWwwXmWmfR8MPJ/JH92zaC+b/leIZ1kbfOsCD2bE/RZiv8JqSSew= CY1PR03MB1486: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR03MB1486; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1486; X-Forefront-PRVS: 0641678E68 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(19580395003)(50466002)(19580405001)(229853001)(36756003)(46102003)(2351001)(42186005)(40100003)(87976001)(122386002)(33646002)(86362001)(62966003)(5001960100002)(5001920100001)(92566002)(2950100001)(110136002)(77096005)(48376002)(77156002)(50986999)(76176999)(66066001)(47776003)(50226001)(5003940100001)(189998001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB1486; H:snotra.am.freescale.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB1486; 23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ew/KYg==; 24:DU3ImGf3pHbCCS5IFGsXSdPwZy7FfDVAeFOtUbGuDVlJMvXeqWb7jDETsrd+TYhvEMTMjf9lsj6SO5C9fBnCxbUp5fiV+13fbhmynrZ00rc=; 20:IhWLY3rifdJphdeeEUcmLw8UfCd+NlfFwic0BEWUlqS8i40fjbaSsNJQ+336rgBq7ZjBUOmsEQGVBbQf5lQ/dg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2015 20:09:15.5401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1486 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This driver hangs the kernel on boot when loaded via kexec. To make this driver kexec-safe, add a suspend or freeze hook, and when probing, don't make any assumptions about the existing hardware state (e.g. don't request_irq before quiescing the device). Signed-off-by: Scott Wood Cc: Cristian Stoica Cc: Horia Geanta Cc: Herbert Xu Cc: linux-crypto@vger.kernel.org --- drivers/crypto/caam/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam/Kconfig b/drivers/crypto/caam/Kconfig index e286e28..310e9e0 100644 --- a/drivers/crypto/caam/Kconfig +++ b/drivers/crypto/caam/Kconfig @@ -1,6 +1,6 @@ config CRYPTO_DEV_FSL_CAAM tristate "Freescale CAAM-Multicore driver backend" - depends on FSL_SOC + depends on FSL_SOC && !KEXEC help Enables the driver module for Freescale's Cryptographic Accelerator and Assurance Module (CAAM), also known as the SEC version 4 (SEC4).