Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S947142AbdDTTfZ (ORCPT ); Thu, 20 Apr 2017 15:35:25 -0400 Received: from mail-sn1nam01on0051.outbound.protection.outlook.com ([104.47.32.51]:36419 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S947020AbdDTTfT (ORCPT ); Thu, 20 Apr 2017 15:35:19 -0400 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; From: Haiying Wang To: , , CC: , , Haiying Wang Subject: [PATCH 3/3] bus: fsl-mc: dpio: change CENA regs to be cacheable Date: Thu, 20 Apr 2017 15:34:18 -0400 Message-ID: <1492716858-24509-4-git-send-email-Haiying.Wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492716858-24509-1-git-send-email-Haiying.Wang@nxp.com> References: <1492716858-24509-1-git-send-email-Haiying.Wang@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131371905168673956;(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)(39860400002)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(36756003)(8656002)(8676002)(2950100002)(54906002)(104016004)(48376002)(2906002)(50466002)(38730400002)(77096006)(39060400002)(53936002)(4326008)(81166006)(8936002)(50226002)(356003)(85426001)(76176999)(5003940100001)(47776003)(50986999)(2201001)(86362001)(5660300001)(106466001)(105606002)(189998001)(551934003)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0301MB1186;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11OLC015;1:EtLJhdo3K5W8Fm8yVI9y+Y2oEFY4nqkcR+7qgdMJO1cLqtLZHRFBIOJElV/SjzGqZmXPFGcclgcMN8OjzB+8NjnOr+YAL2EmqeDLLEcmHN0LVAekM5VjulAHhwaJAkknYZKX3yggmsCCKQ/IL3RZA2udjWayW1voJnPJUYjV6/k8Pm8K2Z1p9nym8h/MccDxzgkEReYk5d2mE8U2foybrH7kEYJlEkrFoVS23ySHL0Np5SSyddB1GXAPa3V8Pl5QVEk2PjLIS3dMfQ/3TdVOX2IWBecdewOnQeA7irVLkbHrbAeFI8Sfg9PIFkN0chAj5A4y6OZIP5r7BPs6HjecbazexTuvD2ydC3AQdvUqrwfVmlm/if4vh2LVkmgKYMTo43yIvNF490y7CV/rgZ7k9SD9wqFQ/yMjBrJS3nYYl53+93XddGE1Ax6JyNn/G7qyaA8LroT+EeZZ9huD3fJf4EW9ixLl2vF8avrH/BocKd4vJ0raudzzflFfWRlHYLUSLaQAY1vCn7E4lXRNWXkkvWSxFkzGJKZOTNegaE+WNOLiUT+BnIHQ67rvEwb2NBU7VylPme5pqLd95ifPRKxgstwWIASIDLHqKKmXvaPVaCjxWjW3CwfS7JsRnozs4SunScDQEA8vrkxsV2rD+5szIpLumKpSvJxatuSAFHpRn4QpY+pNxnZmkilSh81GC0m1VGXBp1BB3OVZg1MRuqTyHTQROCAhMbJPGAelgD7ppCI= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3a1c586b-6dfe-4072-2b46-08d488245f80 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN3PR0301MB1186; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1186;3:MdUGCgtPRSUDEM4JP5q2NCv0+KuXTmHembVVIXXwnF68oDhiKx9cTzcuKjwnpVSnNsAR8J+Niv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GS8ieU79gqXa9m/WKSrJISM/nLgTIlk25WWEkjTkPUKtNGea24B4/w62 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(601004)(2401047)(13015025)(5005006)(8121501046)(13017025)(13018025)(13024025)(13023025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123563025)(20161123556025);SRVR:BN3PR0301MB1186;BCL:0;PCL:0;RULEID:(400006);SRVR:BN3PR0301MB1186; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1186;4:hWyLrP7I16Jq2x7LOsFEf/yRPZlQczt0CYHbRltw?= =?us-ascii?Q?garoVCMyX27UODs1hR/RTPwAu5P3n8rEQUsVGTB7XqZICNo7veXCJ8kJsvV2?= =?us-ascii?Q?pDt3vgROj5GfF4DkDUYPHzdJHHIYzzAZWlQoX+lQrhU5WH4ZSG4/v6tJtg6U?= =?us-ascii?Q?NX1tLdtK/n2QCF91lM6GgUdQ3W5BtT0uD7947zOOPm3rOZSAUdvWTW9iF1nU?= =?us-ascii?Q?WSNXAY3XjskMLQreKblbODkwUtpuz+G37uZdmuqAF3So8LtRdMF+E+d4aQNz?= =?us-ascii?Q?f4FQBYLe3KkRU6/3dzu1O+/FGyf+RoVqtOuWVd+MWtlnv7+LiCDT4DdWnCQ+?= =?us-ascii?Q?q4TZHpx9CQPMJLrRLDxFdtSkC46QYOwHCcFLErbqbmNWeQ+yQ5ZcTwKGsFol?= =?us-ascii?Q?6swylxJKthETdSliF9Qwx/HWarXqzRPH00diGti4oQKk3r9ZHSnEAPdjtZh/?= =?us-ascii?Q?CwQY6uP21aII0CnO7E+9cUTIyq6Giei90Z3V4a+noOqALtcunjVtcFHE4MMX?= =?us-ascii?Q?U6PQ/qCYpZup868J0FLCOhWdFNRRjlkvL1DI39+f7+eKnbCRTFm2yvZ/cisH?= =?us-ascii?Q?eQL1FR/bslZzWpBoviad0Vgub+ziVg1KMnwNsbTrhsD/sGSYVRZMw5Zdv2Hb?= =?us-ascii?Q?pMEJiCr9A4kc2xHhecCxA8MX1NvMns99H9g4buN3iWrRnAZytX4+cnBQVewq?= =?us-ascii?Q?7YVHM/h7Gnxta8zXZFZt35Md7IC7A8ffyl+a8D79y8wJA8GnUoyMkVOUZucY?= =?us-ascii?Q?FQgkFnJ2z9eZusjUqWMjr0EFcSyYOyYuUN0n1H3UxcEIM0w2bcHBEwMmQo2o?= =?us-ascii?Q?tjfuehZzrQlX0MHEhQWwNGBQyOUKR9//sYP1znIllJSVwoLIRUy4E/ZGIOXA?= =?us-ascii?Q?XOx0pHqcr+liL5v2eElT+TnTTnO4GM68HUFi7hTimpmWLdQSAv5uUjwSTVdn?= =?us-ascii?Q?wjLTojYtnOKzfwycL5vPAHHs9lS39fdDVT64N8RLfg=3D=3D?= X-Forefront-PRVS: 02830F0362 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1186;23:mzmRDKd25Ju6MNQ6wGYGKZ/nLrcTgpcJi2428AA?= =?us-ascii?Q?5mB2zTTaQ4rdI4yfWgcqByeCPQ+8uJTnfagt6+8HoOnqYGFBub413d4Oslw8?= =?us-ascii?Q?jqXxhUZqf8/ERlu4k6eJTvjgpOdqotBVhpmQYZfiNKclSfDLDrdWORXod0Cd?= =?us-ascii?Q?Nteyf5RvPiECanDBWRsVlGFv93u7WkG664y5mo74L5dMqqURBBQtXCal/HyT?= =?us-ascii?Q?Rrkh//4x3/HC1QYPjzn9CdsltnG+/+sz1bBNSyiU4KA5ojC7ppzfAU8l2E6i?= =?us-ascii?Q?pkRGiOq62k3i+9X39/5WzE02DSI0dTfit0zBiJcHjHkyXajXcy+VnPEZ9GM3?= =?us-ascii?Q?CZY4TbTSz86CqNqNPTgmVQB7z9rI7wv22XL9KrqlXm+bBfe2mhz1XReJYYaL?= =?us-ascii?Q?X3UTr8jnazPo1qLsjRvZZoEv6UoZZd2IHEoDm/pdl7n4s670ET4AXfzVZvi0?= =?us-ascii?Q?WpiPRVJxzAB0MrLRusXEuc2nJRwLX1W+lCfpefgvvu6cHkvotTZhsk8FPxyX?= =?us-ascii?Q?agIuWlxsgtCxCzeHLl3s7tBXSM17FgCfz9OGN+EkxL+6SHG1jt9vgG9ze1/W?= =?us-ascii?Q?2EpGliqJ9SQJC278UzbBJSXqdFrXpH8hJ3Mi/9YU7aAAB6lZD9GV6R7iad2c?= =?us-ascii?Q?Lt0gUKzTMC5v+Um8363x2cYpq4cBvDzZLtVuIWoyMsFSE6H6TCBOgmB25ygU?= =?us-ascii?Q?xn45L8kvzOmIbvB3lrNcXp3h6KY5674Y+jxJxTZn9QQQNylFSg4Fwa6dZxOT?= =?us-ascii?Q?ydiLf5jiNJyDOcOWQDfOISnBIB6q+eohwcXBak/dUMkZo7funxqPl7qMH6T1?= =?us-ascii?Q?4h46locg5T0T3J5SCce3uImuN3FUn3ttPhaM2fUocktQPYjFPPLZTe2qkvGP?= =?us-ascii?Q?iZj3wKQHMy3pt9gHWpukP2Tbllsg7NVVh31FeRlMKHYsxSI97brz4d4eW2/b?= =?us-ascii?Q?wJeCBaL73d6wHjJwuMZPxb7L1LC12YD8h9+WzuGYrzilIm3JTCymoNEWSgCs?= =?us-ascii?Q?fg/86pLVgpZti3CB3gvhEJRieu0PiLeU0UyJKyI0Q220PNyTrgInnMl8boVx?= =?us-ascii?Q?Mo/sCcXHGFAquBtxI6w8eVFns8wUXlApItO6MEgpkvYpa3K7A7NvIFheISfb?= =?us-ascii?Q?BnvggODPudw42r5hA1SJA0+F3ZwOxKX9vxZk0UV1W2G2kPaiX6csXV8BGSkK?= =?us-ascii?Q?+H8y9RbsIlVcIOho=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1186;6:caqkDgna3t0Hf9BKJSw7z8K656ssflw8fgv0QI6F+RYmmv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9DKZe3kFu5YUZQvZa44Y3Ut5iv64O+dsGoeMFAvg45nI0IbpPChQFWg8CnwfjvNiOpMF8pAFq0KcGPtfXpm8802RU0rEm9qb268YCydFqLw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2017 19:35:16.7425 (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: BN3PR0301MB1186 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1483 Lines: 34 plus non-shareable to meet the performance requirement. QMan's CENA region contains registers and structures that are 64byte in size and are inteneded to be accessed using a single 64 byte bus transaction, therefore this portal memory should be configured as cache-enabled. Also because the write allocate stash transcations of QBMan should be issued as cachable and non-coherent(non-sharable), we need to configure this region to be non-shareable. Signed-off-by: Haiying Wang --- drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c b/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c index e36da20..97f909c 100644 --- a/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c +++ b/drivers/staging/fsl-mc/bus/dpio/dpio-driver.c @@ -168,10 +168,10 @@ static int dpaa2_dpio_probe(struct fsl_mc_device *dpio_dev) desc.cpu = next_cpu; /* - * Set the CENA regs to be the cache inhibited area of the portal to - * avoid coherency issues if a user migrates to another core. + * Set the CENA regs to be the cache enalbed area of the portal to + * archieve the best performance. */ - desc.regs_cena = ioremap_wc(dpio_dev->regions[1].start, + desc.regs_cena = ioremap_cache_ns(dpio_dev->regions[1].start, resource_size(&dpio_dev->regions[1])); desc.regs_cinh = ioremap(dpio_dev->regions[1].start, resource_size(&dpio_dev->regions[1])); -- 2.7.4