From patchwork Fri Mar 3 14:52:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Horia Geanta X-Patchwork-Id: 9602989 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 1E84A6016C for ; Fri, 3 Mar 2017 14:54:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FD1728511 for ; Fri, 3 Mar 2017 14:54:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 040A528591; Fri, 3 Mar 2017 14:54:19 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2D8E28511 for ; Fri, 3 Mar 2017 14:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=75zEpMIofEwj8I+aUbWnsFxCoaiNI2QqYPBtEfD59dc=; b=KHMqrWfBAIVj7U FPYFpEdy73hNPDxW4hCqicF3CyxwyRPeSRJJ7KFpzAccwJKMI2BYRrHb/y3+8o2e6rBV4gfqlKwjA 18UkOxLLNt++JWTJAco0JuFZWQS+pR5FmaNEzTeYOF5UBwxXdSSnnHoHjdaVPsDTfE/PrnZABbvya 3/nbhiKjRow+qIzNcsJUrTdlkYBq0yckWaM/kAmhNjPWg2PFKJG1f9OU39a+lF53B1v/rQfmeK0v4 K8Ihi3n+MEy80tDHQt8rkBNWyMv7VT70yrmYpEWMQZn3YS1OoHp4QA9PaWTvkLysDTjI3IbSwloXk ShbhxzUT501Z8iw1VkEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cjoay-0000cR-SR; Fri, 03 Mar 2017 14:54:12 +0000 Received: from mail-cys01nam02on0050.outbound.protection.outlook.com ([104.47.37.50] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjoa1-0008PO-Av for linux-arm-kernel@lists.infradead.org; Fri, 03 Mar 2017 14:53:15 +0000 Received: from DM5PR03CA0048.namprd03.prod.outlook.com (10.174.189.165) by CY4PR03MB2952.namprd03.prod.outlook.com (10.175.116.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Fri, 3 Mar 2017 14:52:52 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::112) by DM5PR03CA0048.outlook.office365.com (2603:10b6:4:3b::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.3 via Frontend Transport; Fri, 3 Mar 2017 14:52:51 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.947.7 via Frontend Transport; Fri, 3 Mar 2017 14:52:51 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v23EqdQR018743; Fri, 3 Mar 2017 07:52:48 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , Scott Wood , Roy Pledge Subject: [RFC 2/7] soc/qman: add dedicated channel ID for CAAM Date: Fri, 3 Mar 2017 16:52:08 +0200 Message-ID: <1488552733-20806-3-git-send-email-horia.geanta@nxp.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1488552733-20806-1-git-send-email-horia.geanta@nxp.com> References: <1488552733-20806-1-git-send-email-horia.geanta@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131330263717997339; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39410400002)(39860400002)(39840400002)(39450400003)(39850400002)(39380400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(104016004)(7416002)(626004)(50466002)(4326008)(105606002)(53936002)(86362001)(54906002)(38730400002)(85426001)(106466001)(8676002)(81166006)(33646002)(92566002)(2950100002)(8656002)(189998001)(36756003)(76176999)(50986999)(23676002)(77096006)(2870700001)(2906002)(6666003)(5820100001)(356003)(6636002)(50226002)(305945005)(8936002)(5660300001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2952; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:TzfRmX/h1T1HKXfshJXaWNHcPRTjwneQBPFPSTGuelncCXN+9S1aRzUiABvIg1z72ZKI5OxLu/vzt+RA1g5AnJa0u3HvXbHJ6mOHCl1ea33JkeOYUm988vHxNtO4+GjfQ16ewXBCnShyCGX95eThZhXzdaVwP0gslz9YAk+sfpDg12sQnLsNzoQfjhWz430oBesTXSdAUI1oc5SYN0c9k1aKqb95nmvNNWoqp6NUZsCfFY6rpSD6WqxLCoLhAdygtNscrRn5jMAJpvv8GTegd2bKF53jIwwJK7ap7AcibzEJR3oA2a+suHFCz9ZsriE9v1i/9ViIpp/h0ZVw4Hbw6uB+ufczFX2cqNHOktE/aHfQsrKc028CzvPKzuBPZzQO8IRByzQadWN+Ua99/cdExTrqUtxOAff+pkRdRLZzQ6aiTGtKMeWkyZkCFeXv6zLKid/gJlvHTWI3b8tQcvpSHlgVoJaIkT7LMVLSxhgG8zLuvm7zxMvbc9vxcih/3rToIhUm54s5t4jDStXMlawYm+Pua5AnLsrAzlxweRewmYoymn2TVK+quEQGtf6yZrqaMTUkGx7ClzGPlwNP/zPxvHPDiLCsHMFzgptVtPxHv3dtWacsFnf6kDi0q1tRLldtuvk97HBvawbTde9DreWnIgCnQitwGHedha6Kr9fyMvCAJ3dxcUdvbk4+5S1WofEs7wx7qMDY0p+TxMhmKTPNbw== X-MS-Office365-Filtering-Correlation-Id: 64681247-9928-4d4b-6b1b-08d46244f7a2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR03MB2952; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 3:5xtyrPuUN02Y7N09vGNZ5JlYOYfBbs3mmhLJ3aTjSJC5DjGUskwvADGqVBF9+in3vSK035S6Hjb/P8B6t6UPWYGPi+kXEW4h2rdevqks+PaU9j0n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Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(8121501046)(13017025)(13015025)(13023025)(13024025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123556025)(20161123563025)(20161123559025)(20161123561025); SRVR:CY4PR03MB2952; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2952; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 4:AheCc/Qhx2GMvr2iJinHuuCjak/xat65zv3oo3DeemswJu/yYcB3nvgtoIma78/qZyqCicP8ZPbAF1Nqgbk3nKS9gsTolzWUit78G+hBKN4KUriJ/hbZLsXAmyPY9R5UetuHdYAB8RiN3VgTaJWo1KGzvvUy/0pDXbrb3n9sNe3U8FbAsKjdHvpP2uCC7Ev+cmLC4r+YaiqqkVmJ1Oq3POtX8VDCsMH/b6sZCLkNipbZuLDiPgyIWIctLpUyfNUKe5Aa9jEBfGaITWGYumpvENzAje2VLQzoFAni6VvXjRyXbP60YDdFHRFJuBNOZ4mk77wZaNOnnGHHS/yVsnI35Y+bI9rYmNwHdbDrE8Y74AWpviRQ6c/3BEi0uk3FVQlxwd8xFD9UuDS52ZkAbpLEys2/QoRONVueTnHjx8HTYkr4Cz19Dr1lr0taJxyMC80j0f9D/QIPknGZxfTk7ndkjRwWUVpm/mowXOQ0FuLUq5JTetacRJF58qrlTIrTd08KovpApk13oA602b+duTQQlf/5xYc3HNK4lGttV0UxLIw3A5/feJqW80yjhoOsThQnkGW4YbEoegGvyop/TJczrRufbDpow+JRPcpfVe2aaTMD/IEFaTgiARJfnObAAVCNGDIUUo/pogTECIW7xQyy4QbIzujqkEsTX0WHyu51i9UCY3d7uKCSUDxq95Jg8MxP/imrUe37G9OOnR6mdcOdlgoY6ZfUbVlmM2GZLspdU63s+gdJ1ppkQudvj1lNccKjqaKdiIl9ao3UOAgOSp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IXl20i6XargoEcUVZihEhSH5DTK5bgo+GyGDPkyTr97uqzCzqRpkeWSbUp8Nua8d1IJcnxKcFHsOmvQVHMYqgqVowNCnb2F1AZB+sA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:52:51.5501 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2952 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_065313_470845_D119FBF4 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Claudiu Manoil , Cristian Stoica , Dan Douglass , linux-crypto@vger.kernel.org, Vakul Garg , Alexandru Porosanu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add and export the ID of the channel serviced by the CAAM (Cryptographic Acceleration and Assurance Module) DCP. Signed-off-by: Horia Geantă --- drivers/soc/fsl/qbman/qman_ccsr.c | 6 +++++- include/soc/fsl/qman.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qbman/qman_ccsr.c b/drivers/soc/fsl/qbman/qman_ccsr.c index f4e6e70de259..90bc40c48675 100644 --- a/drivers/soc/fsl/qbman/qman_ccsr.c +++ b/drivers/soc/fsl/qbman/qman_ccsr.c @@ -34,6 +34,8 @@ u16 qman_ip_rev; EXPORT_SYMBOL(qman_ip_rev); u16 qm_channel_pool1 = QMAN_CHANNEL_POOL1; EXPORT_SYMBOL(qm_channel_pool1); +u16 qm_channel_caam = QMAN_CHANNEL_CAAM; +EXPORT_SYMBOL(qm_channel_caam); /* Register offsets */ #define REG_QCSP_LIO_CFG(n) (0x0000 + ((n) * 0x10)) @@ -720,8 +722,10 @@ static int fsl_qman_probe(struct platform_device *pdev) return -ENODEV; } - if ((qman_ip_rev & 0xff00) >= QMAN_REV30) + if ((qman_ip_rev & 0xff00) >= QMAN_REV30) { qm_channel_pool1 = QMAN_CHANNEL_POOL1_REV3; + qm_channel_caam = QMAN_CHANNEL_CAAM_REV3; + } ret = zero_priv_mem(dev, node, fqd_a, fqd_sz); WARN_ON(ret); diff --git a/include/soc/fsl/qman.h b/include/soc/fsl/qman.h index 4de1ffcc8982..10b549783ec5 100644 --- a/include/soc/fsl/qman.h +++ b/include/soc/fsl/qman.h @@ -36,8 +36,11 @@ /* Hardware constants */ #define QM_CHANNEL_SWPORTAL0 0 #define QMAN_CHANNEL_POOL1 0x21 +#define QMAN_CHANNEL_CAAM 0x80 #define QMAN_CHANNEL_POOL1_REV3 0x401 +#define QMAN_CHANNEL_CAAM_REV3 0x840 extern u16 qm_channel_pool1; +extern u16 qm_channel_caam; /* Portal processing (interrupt) sources */ #define QM_PIRQ_CSCI 0x00100000 /* Congestion State Change */