From patchwork Mon Jul 17 13:26:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9845033 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 F00A060392 for ; Mon, 17 Jul 2017 13:29:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE8EF26E97 for ; Mon, 17 Jul 2017 13:29:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D226927F60; Mon, 17 Jul 2017 13:29:54 +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=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=unavailable 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 67C9A26E97 for ; Mon, 17 Jul 2017 13:29:54 +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=zK812SRBANTNXFOuOX7H8x7t9v4zIhAzeZyjAYrHfAM=; b=M4juZi/MJ5W2uM 3kryaiEMKt5Sig01ONsXXetHkeWSDeGMXZ9pZQJxdJfihXfhijq7JEg5dXA63WSWfBNSDHsFgnJNL 9FFhkmxvJaSKbr2MJ+zv/QEuVmBirtL+l+5Yur3kVZJsoxk/jH4gDsD6O7Dyb4PfWf38BIhrXjK08 jnd7WOjcQM/c9BxylVAxu3kbVMpe2vlqbWQ7/L1vcZ+5ny7Z5v8ivTR2Md8r3Dz/vX3UK+SDdrM1A YRA5oZ4kRHtQVPdiTwJVqRgpPVUwxWO2aIxLhCvmI60VovgDn2RAMwkjWyo8jCvv2VGpxLSB0onZB 7oDAKNdwlfwC20uYNz+g==; 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 1dX65v-000778-SD; Mon, 17 Jul 2017 13:29:51 +0000 Received: from mail-sn1nam01on0614.outbound.protection.outlook.com ([2a01:111:f400:fe40::614] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dX63v-0005Ly-R3 for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2017 13:27:54 +0000 Received: from BN6PR03CA0088.namprd03.prod.outlook.com (10.164.122.154) by BLUPR03MB471.namprd03.prod.outlook.com (10.141.78.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Mon, 17 Jul 2017 13:27:31 +0000 Received: from BN1BFFO11FD025.protection.gbl (2a01:111:f400:7c10::1:115) by BN6PR03CA0088.outlook.office365.com (2603:10b6:405:6f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13 via Frontend Transport; Mon, 17 Jul 2017 13:27:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD025.mail.protection.outlook.com (10.58.144.88) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1240.9 via Frontend Transport; Mon, 17 Jul 2017 13:27:30 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.86]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v6HDQr69015464; Mon, 17 Jul 2017 06:27:25 -0700 From: To: , Subject: [PATCH 6/7] staging: fsl-mc: rewrite mc command send/receive to work on 32-bits Date: Mon, 17 Jul 2017 16:26:45 +0300 Message-ID: <20170717132646.3020-7-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170717132646.3020-1-laurentiu.tudor@nxp.com> References: <20170717132646.3020-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131447716511495618; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39450400003)(39860400002)(39410400002)(39850400002)(39840400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(33646002)(77096006)(104016004)(8676002)(53936002)(39060400002)(85426001)(8656002)(7416002)(626005)(50986999)(50226002)(76176999)(81166006)(8936002)(86362001)(5003940100001)(86152003)(54906002)(36756003)(1076002)(38730400002)(105606002)(498600001)(47776003)(305945005)(106466001)(356003)(2906002)(2876002)(189998001)(2950100002)(6666003)(4326008)(5660300001)(69596002)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB471; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11FD025; 1:qhUN9hnMo9hxiiil1vCQmiDN41BAV+bqWGhhObekK?= =?us-ascii?Q?OL3qhlLPPlipsHxz/r9ibYILXAOMyugz+rwr5sBdZ+e5bAVgZAD3BPc+oQIs?= =?us-ascii?Q?jE+v2TI5BvNmrFwrBGSidb3ooI4xZtj96nQfEN9frUSoFJGxJ2DQcoZ9vSOd?= =?us-ascii?Q?ngUwmCX0ME/8GqtfkSz8/zGVpngu2gnUkMdHpoG3eccBr+r8tEFIc0TG0O/3?= =?us-ascii?Q?vizrBi5Y4Ygx7MdqK8NWxFbDTjHQx+QXc8GKusXOt84ZrYKqn8UJVbXeELoZ?= =?us-ascii?Q?CdUtq6XNe26E8gGey9SBsPm+Q/CTOoFgFRepNCYagv3q3CI9yC0QtcJfl5O+?= =?us-ascii?Q?djRwpJ1JHnblzWYiIM3rtlK5CnmHEGM8I9h83RSQgbeeTDrGt+NqcCTLrLXA?= =?us-ascii?Q?lZpRx2jrqevVkVMi+YlJeKXmY6IwfpdjbGEvWSPDpnht6T1iWFJdtazxSmA4?= =?us-ascii?Q?y5ETLp7MvnDxdAWELCsayzoUFlG2WzTxmn/THZi17+eyl40zahm9EfZEl68B?= =?us-ascii?Q?0OvG6UXUSJZVbL9WSemtvnUxAndCU5/wTVUn8a9wsUMQNhN4D6vU11eUckSf?= =?us-ascii?Q?mNFWs1Z5FlyO8Kis7j1bYQfParlgW2z7T5D56IV3fnGelkxXzLfaNnvcKkZV?= =?us-ascii?Q?g7CwhI0w0dmGntkJTl4ulU4V0OjsrNTjk1UMlqqcNKKXub34MtLGTD+Yuol1?= =?us-ascii?Q?DUaiTuEubm2ag5b23db79uOhxvioRZQUD20efz64DmlSPwHlzLB5o+nU2jhE?= =?us-ascii?Q?4R/od9cj5S308yKOYchGYndQoqDYZ6gKg3ZP+bieOJWzXgk8z3b6fLFIFDW2?= =?us-ascii?Q?Y7a9svRuY2pL1fn+X9RDwRxDfVR4bNuws5ybDNulxZ1NRhCtvCtvAyC1qebY?= =?us-ascii?Q?/KNZaJ4ZspVInQZVE5d4Bau3v7MVFk/+4R3NyUJ8Voh++vmiaI+F1v6WC/25?= =?us-ascii?Q?wcDmn6tFRJ84NHvp29eHQxeMV5L6zo2GJCizV9YZaruRgUFVo4nEVnjVghf1?= =?us-ascii?Q?FZ5VnaDY3IuiHbqXErbn71Mk/n4Td3VoiaFOEtkbviVe+4XPM8HSPnyfnFzw?= =?us-ascii?Q?K3sqq8=3D?= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 31655380-d986-49c2-d463-08d4cd1793a8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR03MB471; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB471; 3:EqZWQ7WPAHZGaBDY/cBd+6+OZExr4w7zhfLJkrfQEQ3MThf1K88sflVWhTUugtUE1UPUe0W8MIGWTnLZuz6oUulT8hvBDwMVHuY7xGg74eBbHrc5ku/LYGpIqyXFLGBS6LbrEdIk/Ice5LKzvajbXH4CjvWlGbdAcXDd5flRwl6iJ02SXx11mn9oo83lWFQGTYB0z2B0fGGY6Qr1MPoSr1y2A5S6Y48fdKB3qjgFrGiwlT3wAk/Y9+naZEF9oGqKOT7Z4xYdusX6xgbLm1GDqg3/N4yDYjA7goGUpbzsYT13f4VAajN0os0P7M3SUUTx461bWOLiH77teMxOIuj6OgzWu5RiyKYoPQmvvykOuuvN7l4UtGT5XdPTd7iqEbe0K4eXic2t/Cob1zwQOI86iKsRh1QmHKFoE5KPGoiC31YQo1bsF+Y76Gj7YnVKiZ68U9UlNGYfX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gSKaX/7CIaY9bzIDBcpsrKbjvbQ52qFgwx X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(275809806118684)(247924648384137); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(2017060910075)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123559100)(20161123556025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR03MB471; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR03MB471; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB471; 4:Mcy46UktgNX4MABKeS71aulKLIq9KgS/x1pPtXz0LSV?= =?us-ascii?Q?5dvSzihXaV3HpJKDiv4OYlBDl68eO5up1y97cP9crn01bHcQ8mkdj9X1bnZo?= =?us-ascii?Q?rmvV9Am0eKqtKgvJNyc50O7zE4wA++/vhEPMhbJII3gcaHlcloPvPCoJ9vUV?= =?us-ascii?Q?UFH2g6MgAFVszxzeeclR0XgsmW6cI+8QqREUPgAF/OHGLIyiQb0gswq4dE86?= =?us-ascii?Q?8IDzXBltnKJ+ItcykAtzKGMihU2K+fEtwa1gNla45qTiXZTfcregp7wAdXvb?= =?us-ascii?Q?oxD8hSUroAf4vahjK8uHr9WjFt82sDBlKHjV/Xy2Y+gDAgV/jl9gy08XcDYi?= =?us-ascii?Q?AhycrlG9sExP/d6uku8QaSSF2Cb8SSYmPh90jfOs3yRLv/QUWWRJBJT/X2ZN?= =?us-ascii?Q?dvuK0+VVzqJs2bkdR4z+4hcmyLNBrEyDt3IRvf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ascii?Q?0gF2S0yBrf8D9PvgXbpzTrHRBMhRDmXGS0szR2Ie0bF4jyJbD9pGbVfITUm4?= =?us-ascii?Q?UO8anazifbYWB5e5VZxBcfJOJpvcQ8Zjb+brZ/2pPYfftxz0XUPnffw0gun8?= =?us-ascii?Q?BBWbH3D72iZjl2pdL1KtX2s5wALBTfkvxvefC3ZBVlkJxuXnkmSVL+E+wWYq?= =?us-ascii?Q?zOSoAqtAPTvB/VXesm6+QCBfMUoFaAcUlzSeZpSAHinIxfHpW2qzCM7GEoUY?= =?us-ascii?Q?sVZ73uKCnZeklTEnZy7p244B0vlXz+ABpa4uxQmJNDNXGf72XBtq7DiBsqhY?= =?us-ascii?Q?Jr8aL7GSK0w1gOjzy4OBELwHnArK41Mg3KPNRWRB4QzFxVlMThKHmvt84WgO?= =?us-ascii?Q?o5/Df5ooXaGiBfT41XiesbGnVa3DI2Vftv+DwVp0pQubK6n2FT/QzIn+H5NY?= =?us-ascii?Q?JgsYxf3UJN/ZOkB+jPcTRMu2gob35t/IyprPnLXBk9DaOXd/5zsBekuDPUXD?= =?us-ascii?Q?pdrKrtLwLFlX9I96lKJxQeqSEtBJgbN8UzzDv5?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB471; 6:yl4zf/8DBspRcsxLjS0WRXepg0UEDVsU2rZEuT5GTry?= =?us-ascii?Q?Nkcpmj+4d1oJorsObxHin4ppW4bxNq/hIIwLHpL7lb3zGPYfPn6LNgJXHRKN?= =?us-ascii?Q?96c9BmkeGRzASvqMYp72c2K/iJlhIdb5zTQfyRLMt4SgwKTt/96NR4WLZAav?= =?us-ascii?Q?5eLCmDMu6euIxbZOJ4246pLdHc7p3k4Oc/qlDVPY0D4jask7hWZNk2zWKM5G?= =?us-ascii?Q?n5fLldFvX+r6ZAz59hYlXmpFVy333mVFsjpprb8ofr1jDLxMjrozVHmGtdv8?= =?us-ascii?Q?7o1C3EgKYguZ7TEipoVDc/e9YPrzJn2tRZMIESP6l3b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D2kLV+ffQT/7X7iS9GHZpRQf4sbsDzPdJBI5ahmM63pANcm472mMEggJWADp7uAlGrw/BxfB56wIqUCUlLPjzmq5+ME2l4bSZWP4vEg6rDCx86mV0uOxFP49vzdnq669XV5ixyhcG9J0b6PLbno09Ch1HbE6eX4xbX6iPtewSOX64nm5HsXmT7UPw2oJq2baM4s3pzp01Dy8nxdNvavEiGDy3LdDKdzOILq2qbT6wEL70wPvmxNuB1curYDCjbx6bvQI= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2017 13:27:30.8531 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB471 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170717_062748_744593_FA8CB2FD X-CRM114-Status: UNSURE ( 3.66 ) X-CRM114-Notice: Please train this message. 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: devel@driverdev.osuosl.org, ruxandra.radulescu@nxp.com, arnd@arndb.de, marc.zyngier@arm.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, linux-arm-kernel@lists.infradead.org, Laurentiu Tudor 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 From: Laurentiu Tudor Split the 64-bit accesses in 32-bit accesses because there's no real constrain in MC to do only atomic 64-bit. There's only one place where ordering is important: when writing the MC command header the first 32-bit part of the header must be written last. We do this switch in order to allow compiling the driver on 32-bit. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/mc-sys.c | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-sys.c b/drivers/staging/fsl-mc/bus/mc-sys.c index 195d9f3..dd2828e 100644 --- a/drivers/staging/fsl-mc/bus/mc-sys.c +++ b/drivers/staging/fsl-mc/bus/mc-sys.c @@ -124,14 +124,15 @@ static inline void mc_write_command(struct mc_command __iomem *portal, { int i; - /* copy command parameters into the portal */ - for (i = 0; i < MC_CMD_NUM_OF_PARAMS; i++) - __raw_writeq(cmd->params[i], &portal->params[i]); - /* ensure command params are committed before submitting it */ - wmb(); - - /* submit the command by writing the header */ - __raw_writeq(cmd->header, &portal->header); + /* + * copy command parameters into the portal. Final write + * triggers the submission of the command. + */ + for (i = sizeof(struct mc_command) / sizeof(u32) - 1; i >= 0; i--) { + __raw_writel(((u32 *)cmd)[i], &((u32 *)portal)[i]); + /* ensure command params are committed before submitting it */ + wmb(); + } } /** @@ -148,19 +149,11 @@ static inline enum mc_cmd_status mc_read_response(struct mc_command __iomem * struct mc_command *resp) { int i; - enum mc_cmd_status status; - - /* Copy command response header from MC portal: */ - resp->header = __raw_readq(&portal->header); - status = mc_cmd_hdr_read_status(resp); - if (status != MC_CMD_STATUS_OK) - return status; - /* Copy command response data from MC portal: */ - for (i = 0; i < MC_CMD_NUM_OF_PARAMS; i++) - resp->params[i] = __raw_readq(&portal->params[i]); + for (i = 0; i < sizeof(struct mc_command) / sizeof(u32); i++) + ((u32 *)resp)[i] = __raw_readl(&((u32 *)portal)[i]); - return status; + return mc_cmd_hdr_read_status(resp); } /**