From patchwork Wed Jan 18 22:39:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Pledge X-Patchwork-Id: 9524867 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 EA8986020B for ; Wed, 18 Jan 2017 22:41:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAF6826419 for ; Wed, 18 Jan 2017 22:41:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF8B4283CB; Wed, 18 Jan 2017 22:41:25 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 791E326419 for ; Wed, 18 Jan 2017 22:41:25 +0000 (UTC) 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 1cTyuy-0007Ey-GX; Wed, 18 Jan 2017 22:41:24 +0000 Received: from mail-dm3nam03on0065.outbound.protection.outlook.com ([104.47.41.65] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTytn-0004A2-KO for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 22:40:15 +0000 Received: from BN3PR0301CA0013.namprd03.prod.outlook.com (10.160.180.151) by MWHPR03MB2480.namprd03.prod.outlook.com (10.169.200.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 22:39:49 +0000 Received: from BY2FFO11OLC007.protection.gbl (2a01:111:f400:7c0c::107) by BN3PR0301CA0013.outlook.office365.com (2a01:111:e400:4000::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Wed, 18 Jan 2017 22:39:48 +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; nxp.com; dkim=none (message not signed) header.d=none; 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 BY2FFO11OLC007.mail.protection.outlook.com (10.1.14.254) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Wed, 18 Jan 2017 22:39:47 +0000 Received: from otc-sw1.am.freescale.net (otc-sw1.am.freescale.net [10.29.200.182]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v0IMdhen000989; Wed, 18 Jan 2017 15:39:47 -0700 From: Roy Pledge To: Subject: [PATCH 06/10] soc/qbman: Add ARM equivalent for flush_dcache_range() Date: Wed, 18 Jan 2017 17:39:36 -0500 Message-ID: <1484779180-1344-7-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1484779180-1344-1-git-send-email-roy.pledge@nxp.com> References: <1484779180-1344-1-git-send-email-roy.pledge@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131292527881606655; (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)(7916002)(336005)(39860400002)(39380400002)(39450400003)(39840400002)(39850400002)(39410400002)(39400400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(36756003)(69596002)(85426001)(38730400001)(356003)(76176999)(2351001)(33646002)(50986999)(305945005)(43066003)(8656002)(5003940100001)(97736004)(47776003)(50226002)(8936002)(8676002)(105606002)(106466001)(104016004)(77096006)(81166006)(81156014)(189998001)(5660300001)(110136003)(54906002)(3450700001)(4720700003)(4326007)(50466002)(6666003)(2950100002)(6916009)(626004)(2906002)(48376002)(68736007)(53936002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2480; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC007; 1:ToLUUrw4E9U28SFEo/GA8JAMhOqQIsedOs1nwBAdSjGatIDROJO/hvsHlN3OdubufK7v3NkibJ/7Se2/OmWi0nQ0cSJPCigRgj9V/Etmku1MQ5dRlCWKVPQDqigrtw4WusS2Tz4TC5GpKlC8rF/i2eXbTtb+ZeuJF23ofDnhFl3xx5NixNx/Tp2e2TO6QF1+KMvRvtHCbRnz0rGTblVROH2sbxLEXekZ/67+tm/FQHaoOVhTxHj3cAOZ+zw8wdZYUMj5y/PDVAZ6faGqDOBOM9sFu5BIo0fyLsssQvyl9nYeozNqCkpGCC0koQ8FFTZVB2nAPuq/e6fxsWgspAVCBcfohS21H2CsyoA0Y8r4cajPQME/V2+rW6PPzo9o/qd81YZSdlibMCRZYO7KGv3VauPQWtrcUmEmOeQjTx0mUAB9x9EEWRk0PB2HniK51s2OpJAf31WgRsBunGfihvVtsKA/YoBUlAURDEEghNyoIjPdvOKApYCVM8gtTzlrVr0LGQ0NT+Yh51ZcqAj1rzj3NGMrGPr4IsnoS3ZNknpQNm/kapmmZ3D8mO+GZDsTg7rHP7FTGgv0AG2Gwusot4Nzf77Je2mhSXJnB4pECbN4QarGL9AERQi+kxAU3gkjjAttGMJ1qJpy3Ntqj36KjCQVs1Ov8tlgGNtUJfE8ziZAL5YLO708U+c9QfVehYnyEJz2tqm93ISJ/e4BIgRcDG0ltA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 72870922-c9d3-431e-69d5-08d43ff2e86d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2480; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 3:MaUcF3n15TMp0xxJxsk9SlzBHHY8FD9IIu0vXwnERa99iI27PGRMZpORcd+yxrF0t8zXRMUonUbTEGqX5oepWWYZ5f3H1uL4UFNyZgD7XSoBhKy/2dqEiDPppQxDN31Uw3tBqI95r8Q/RMzyFSOUpa9U2/rUVwLa7lp24iwmNslLzBCfj7g1RL3g7WtBGJEIiSKrjhHIN+q9+81GQJZWcR5QVxEFEk93Is9c7QVKzqq0OlqmxHssg3zlpres3WpiOGFnLdIxajQ3e+ipZ4+8gPQvRBSBCCLcbZniG2YUIKoGNg2MKSCz75yEgjggT2EOhg3ybJoBU33mr6dsTWFeB/ogK+KAU4Xd6M5GFJu6wZIV53eU05Y2weIqILwFz5x0 X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 25:nnFEhq+vTuWsWcpGsT6TDJBozKJHRmjewEBu5rUVsQs7X3emlcC3UcsL6G47KDWMSmaNlOJQFGWHIB4bi/xhU9W+o/CdoQYndcHj3/CD9pPNziQ0xWgzs4cg4/ak79Pe+A59jh+O4W0zyi8jmP0QaRIWmpZiYa2f2nSjCOxb32KGeBXNDpJPDeM9bReXUdXKCURXVwd5840/QdHRwwJcxlWbPXaTRK0Xfsp1atPOZEK2cCyPw/6ujrgtOLkRndpAFR55yDEvEGntXrsuXOONS1ola/LpMb9n8C9XPGJCig7DRMDaUYtRTb/mzZLjjcJpKICA7WUT0OoU+9LrFWWRXXzIhZQ6Y8pU6XQA0jXrgTKPg4g/UQLq4VY5h9RDQs74D+W2hN64ynsAzxqZMR+5o31F1nxz2BZvAXO61daQYU+AIuWdSl2/m4DKEfYMg3getQyH95/qUYnTs/Ehvpm53QmU4IeSbUmTjG3Qydytej3VFd28rIfG8W7YkQ6DqA5SfsSGyunxccR7MjqJO88rzMTtbhc3kKKG+rJNoSn3l5XQqOc4FYeoAN32jl/VteJxvGs/59CIN+xkdDABVFPLWVy0hRGq9bRv3EiMHL/HNsz9mGBkoXDF8Ku374zYhmeZ4q4TM65cK7LDbpyVKl7cmAq5kSDvNWWjG1H/wUy+8h03A89ZZXZvLljkMiEilKfS36ZUOCg2WGvpQOUXKcHllCXzuIFOY1Z7rP8tIrDqjBdr4666WFo8NmZUJShw+tPEmZZ8dyjh56yQxcV0DNl2+A== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 31:V0cu/boyh3EzlcHvelkVuAYX/I7sNwKVK+JeId1Aq3dE9dTsvHKbpJ7rKlv3JcRZZzvp3v7ODoe6gORM3o1icMK0W342kNyVOYBd1NE3WeVBVL1HynAX9X5s2TTwTzFc/z1PrGlyiqaUdM+DABFTRh5bgakQpj4LCAQiqbmhrTHUO+Wcz4nQiPzCHzXYSMQ19TqcA7pdWbdFiVAUErOOPJ2yHdmC4vSI6lfXOXVsMplZV90orzMiwrwGkisRV5i2JvHa+28vjPt50uehmx4Q4g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(8121501046)(13017025)(13024025)(13023025)(13015025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123565025)(20161123563025)(20161123556025)(20161123561025); SRVR:MWHPR03MB2480; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2480; X-Microsoft-Exchange-Diagnost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0TkPG23lA0wgctJOfnLsuK3W2aPyzSCb; 24:lKp/36H2sjegUcwezfLCQGyj9Gv9CdWHUzmfGlOatbewKlvnFMKyvMEccSDko5+hnB4Qq3Ns8xGzq8RMrvKGufPB+nhwiylaPw+Phjq0SYU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2480; 7:zOxNoNvnMHcKlUL5aw78K94YVztNBnefuqTu2poOsQcpJoknpSSnd6BQ0tELOl9mztYJp1VyVctQAv+lBZ479Ccxg54dApnX7MzTx7IIzPQuaqUKO1GnK1ECuF7jONKORjXPeeSVLWggDcnyxXftYNxFwymqPvxiO0SfEvRiPKgx1BP++qog0dY/1DlyqxSLPJUuO+H1Iw0BU9A9grfQztLm1rq4nNcEqwj0wSNej9YS9W1bVwz3rQHmUt930OkB7IchSPwF+vGbpbqsyxgcSjoIAXyAo3xzqr4Sxd/Nu/soPC2wNi7IiF/hGzAPsQBvFztDaqWby+wYCMF74ERc+NhY/mYT1V4W9hrFrHkykzE/ukMPL+LOztKzQYs/dvZmreR0q7/0ErrzfNaWQmOcrOtDfA28X0DoFZYe6oVMO0SFMB/xwWE9IdXWK5XeP+ZGEn9oveWSlNW1EY0FzEXtWw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 22:39:47.9110 (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: MWHPR03MB2480 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170118_144011_876788_E40F0BA7 X-CRM114-Status: UNSURE ( 7.30 ) 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: , Reply-To: roy.pledge@nxp.com Cc: Claudiu Manoil , madalin.bucur@nxp.com, Roy Pledge , scott.wood@nxp.com 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: Claudiu Manoil Signed-off-by: Madalin Bucur Signed-off-by: Claudiu Manoil Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman_ccsr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/soc/fsl/qbman/qman_ccsr.c b/drivers/soc/fsl/qbman/qman_ccsr.c index 43feaa9..67ae073 100644 --- a/drivers/soc/fsl/qbman/qman_ccsr.c +++ b/drivers/soc/fsl/qbman/qman_ccsr.c @@ -446,8 +446,14 @@ static int zero_priv_mem(struct device *dev, struct device_node *node, return -ENOMEM; memset(tmpp, 0, sz); +#ifdef CONFIG_PPC flush_dcache_range((unsigned long)tmpp, (unsigned long)tmpp + sz); +#elif defined(CONFIG_ARM) + __cpuc_flush_dcache_area(tmpp, sz); +#elif defined(CONFIG_ARM64) + __flush_dcache_area(tmpp, sz); +#endif memunmap(tmpp); return 0;