From patchwork Wed Jul 12 06:07:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meenakshi Aggarwal X-Patchwork-Id: 13309595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A07F1EB64DD for ; Wed, 12 Jul 2023 06:07:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbjGLGHw (ORCPT ); Wed, 12 Jul 2023 02:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjGLGHv (ORCPT ); Wed, 12 Jul 2023 02:07:51 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2065.outbound.protection.outlook.com [40.107.241.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0A26B0; Tue, 11 Jul 2023 23:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TZBzR8f6bfBYn5hgri6Ftb9E3YPyYFJ/b72eydcFRqDT8FXg5Pmp5BV/gPoPEFLHA2bbBnzPSrfwHNjTSleT7eYW2DXPyxZXSva6J3p/30zN/iJFX4JFbqi8Q3Gq3iEU/UpG+eAXXPfwSbOV4c0SCHv2WI9D/Gx+3MmE+Nru+MYEK6wlBaZjmw3F1C9otOSaVtHXQNZO7ISEY5oECP5H5PwJ+EGs17j8hsgOAXzlvKSehMdlR2Ynv26A3Dr5b1KdsU5arbPeaBafoUEKObCX5rCwntVb0/FVbJebwg2BiPaTeklY8v9RszK8paxzXDajiDE3Um1gKZq5CsQ+JD1hcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PcKi9gNgyMAdxOHCDNDy5HYHgaPQZN/5zT8iPysfUWk=; b=SBxpugB49exRqKbqKI6cG+cCOTgwJnt7+NPGwFh9FyOr8m1NDYsUGd4X8tIvNP2QIg0FH8HsbGBGCbr6PZYU092P+J71UyqDww93kbaX0SHEKbXjB4NCIqoztpCjfqVh4znKzbdjK9l1wBn9Dq66qEYOOjY8pVRMdW11eW89Mw07eF0BlnNTeFm7cpd4fcohWgjcQllO1mfcMgS2g/KvmObARDlqVEfRT1Ur93EY97sU7tMo9pP2VsrUAl0yo6tIq9qYNZZkhPzu+l5fAW0MVLZhE1cqNcHh0XgzEUW0DMPXHPLvsRIsIwJRGkfxodfV/w/Z4XuGXQraEdq4cHaj9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PcKi9gNgyMAdxOHCDNDy5HYHgaPQZN/5zT8iPysfUWk=; b=TmcwagYpEYiM86UuvPHjxmWtfsWd7LdOceNtPTdt9484A1ljNo2KOoXkdfwnnwzJXxTIFwkLFao6Qz3d5ncVPCC6KL/G4dr2cHy3lz8656U9l008/rxAtXITXZrk8xNo0Mo2uFCYVqKR4u0TwQ2CSk4S59VRDnR0WU8CFsuoDVg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU0PR04MB9563.eurprd04.prod.outlook.com (2603:10a6:10:314::7) by AM8PR04MB8018.eurprd04.prod.outlook.com (2603:10a6:20b:236::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.32; Wed, 12 Jul 2023 06:07:47 +0000 Received: from DU0PR04MB9563.eurprd04.prod.outlook.com ([fe80::adc3:90c7:4b37:392c]) by DU0PR04MB9563.eurprd04.prod.outlook.com ([fe80::adc3:90c7:4b37:392c%5]) with mapi id 15.20.6588.017; Wed, 12 Jul 2023 06:07:47 +0000 From: meenakshi.aggarwal@nxp.com To: horia.geanta@nxp.com, V.sethi@nxp.com, pankaj.gupta@nxp.com, gaurav.jain@nxp.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Meenakshi Aggarwal Subject: [PATCH 0/2] Add power management support in CAAM driver Date: Wed, 12 Jul 2023 08:07:26 +0200 Message-Id: <20230712060728.3562376-1-meenakshi.aggarwal@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: AM0PR03CA0075.eurprd03.prod.outlook.com (2603:10a6:208:69::16) To DU0PR04MB9563.eurprd04.prod.outlook.com (2603:10a6:10:314::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9563:EE_|AM8PR04MB8018:EE_ X-MS-Office365-Filtering-Correlation-Id: 91299352-dadf-4f9e-1ae6-08db829e508a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9S7EcVHgYcqB4fN0FpU/0v+oG9m7LL6wWd8Ry++L6O+j607owukTE0GrqFjd+4tgRuQOeMcY/k1bsf1/HCRIXoxkW0ndjspUQrNPegLJTO4wea4TVoMiAYGTl05/YfM2Oub7BfMRDz4RYNo2D3RCpOHf8LixKCzjep3sEyLoGBp3nhqLift0PImep0wFycC90zVNQvDH38W/q+tA2kHhTrk6sD28OfPKGZtFgZBlCtVGzAAy05vsDu5zcpXZD2Psy1+Le8JLRbE9J9zUKoYT7qRE3le2GuKIis5G89Mtg+slCBEQVZIJnD4r4ta6EPozvtzZjJSc7lh1eA9YDDrJIjlFsUQiK8GuQq6AFzV2ib9xS/cqoMiHChmKJuQSJ0kmWnmHjEfoF2dDU523Nxw6QWgP6aDB7X8PH+nCC5AsVnEPJ+vcXojjdqd/fg2HL3UKi2pxBxfaGUb+hgQ01ET03/HS86yD27nns2aguSI/IH8NUfXLOLYQFEpWYxjWbaas1Xbi6lh63/prEbLikwQmiWiqPawWO8ltMg4rqhaYAaLnid55QIT6/4HhRGhzwpjZDCSOwjaUs4lvA3P5P+q64IrAagMXDKFHLsBxEqiDru+HkHr++SSvELfu4xOiGUP9 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9563.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(366004)(39860400002)(136003)(346002)(451199021)(83380400001)(4744005)(2906002)(2616005)(36756003)(86362001)(38350700002)(38100700002)(41300700001)(52116002)(4326008)(6486002)(6512007)(316002)(5660300002)(8936002)(8676002)(478600001)(66476007)(66946007)(66556008)(6666004)(26005)(186003)(4743002)(6506007)(1076003)(9686003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?XM1iYyI9ORsnq0IDaxPuk1jZN+1t?= =?utf-8?q?/nW+GMfeuXqNTLGWDjadXzlH7ZS0Vt0Bx2PRaNqgy6+0FZwVH1g/Ixkqwqu07NCsz?= =?utf-8?q?e6tERgyZGeXD9OVAZvm4M/zO0mcyP3iQVW4IMsFZVJLZBlswaLCdFA4+ORSfu8lQR?= =?utf-8?q?YPYySi55VS45NFmgPxSUEjVCjfE/wMlLDyIQTjRhvEG7WQb0104pB6/aVsX9fUQg1?= =?utf-8?q?KedEHcj/aDNtDv8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Ijr1yvvShBIRDlhemfvv1jyd90865GqjlRl3/DB2?= =?utf-8?q?eVT/iJUXVcxqX+ifNDwQtK9WbjmPiaxQAP0+H85yp1d4aSQtf6RMzSmIm9ZJxCod7?= =?utf-8?q?JtNbL//vxlJ3TBATLD5vtdoJw1wJarpov/Awh+sjZP/wTRLhoFshseccF9hMt5G4c?= =?utf-8?q?4wtC32y+tZhZtG4b47aKJFRUIA3MOsq2EFbeLB4yXbWWS8yQIX7pWVTw7g4tEA6da?= =?utf-8?q?/qG29cwcVcdEjjmVQB48uva91glUIZr0tDsbh7wwKB+S+z3v9oJnZs8Q5jsai4KO/?= =?utf-8?q?V4gZil4V5yYykAvqEhZieVnLUUAUTaMDpOxPE6rP+fuLQIwg7cK4tPfRJ6as/xqUM?= =?utf-8?q?y6kOpB8du3Zf4TXLUL2co8HsFo/SNQhGcj3U09TUS5cI/pC1haXJDLr9okzAv8n6b?= =?utf-8?q?M4pPfgVJZj2LacBZRhAExhom0BOpeCN+wg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91299352-dadf-4f9e-1ae6-08db829e508a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9563.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 06:07:47.2872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: J6+OCXYQuH+nyHatHUBH3LqxiwpbNtLhzewl5BwictWN1k9koFI7ABL2Vnzx7q7Ivq2CG47J084KQKD0EyaQu8w6206DXbCis+NFBAUHKG0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB8018 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Meenakshi Aggarwal This patch set add support of Power Management in CAAM driver We are saving the state of the CAAM: - JRs MID - Address of input and output rings in suspend function and getting same state in resume function on platforms where power of CAAM is turned off. Franck LENORMAND (1): crypto: caam - Change structure type representing DECO MID Horia Geanta (1): crypto: caam - add power management support drivers/crypto/caam/ctrl.c | 114 ++++++++++++++++++++ drivers/crypto/caam/intern.h | 33 +++++- drivers/crypto/caam/jr.c | 199 +++++++++++++++++++++++++++++++---- drivers/crypto/caam/regs.h | 9 +- 4 files changed, 328 insertions(+), 27 deletions(-) Reviewed-by: Gaurav Jain