Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S947107AbdDTTfH (ORCPT ); Thu, 20 Apr 2017 15:35:07 -0400 Received: from mail-by2nam03on0046.outbound.protection.outlook.com ([104.47.42.46]:35280 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S947073AbdDTTfD (ORCPT ); Thu, 20 Apr 2017 15:35:03 -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 0/3] bus: fsl-mc: dpio: udpate QMan CENA region Date: Thu, 20 Apr 2017 15:34:15 -0400 Message-ID: <1492716858-24509-1-git-send-email-Haiying.Wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131371905008590049;(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)(39410400002)(39860400002)(39850400002)(39840400002)(39380400002)(39400400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(2906002)(8936002)(36756003)(2201001)(81166006)(50986999)(8676002)(50466002)(48376002)(6666003)(50226002)(86362001)(105606002)(356003)(106466001)(39060400002)(38730400002)(85426001)(77096006)(189998001)(8656002)(53936002)(54906002)(5003940100001)(4326008)(5660300001)(104016004)(305945005)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0301MB1188;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD037;1:Y7maf2sMrthK7hJuYEyRsZJpgDv3pxC7GnFeBcZqLNqo6JJNIF2kGnRkwXEf8Nu+agF0juxOIvfV0piVPCEh+8T0H3XkwxGVdWg/CyjWvYOatx8WHuKfsJLzg9/t8UkTZf3A684AIxs9mqpuOW0osb6nXzo9qzVhQgZ+rFLfVBGBGghis9hVtaOCffnqaaJjQsUCcb58FouNu5bVrIdK0MDWo3jlyjkwDFP0z/KPppzdaI6thYp/gaPz/i9Py644gaPmRzQZ/arjuj3OZM+5Sm/EIHr6DYwkO/aiBn8OKodCv4/4V8CJbbbLrgtf1Yh9GgqlTTOUCQxPvruuym5qRTNmFMbX5MJa0tm8lEUWIsSHRQ4RUo8aCgbOnSaK+ARDgpVs86pGjcIWRTk29ASFmPH7RQP9mZrw9Dry9Nc7rhholWqozPn3DbW0/Iz0Xf93uGsVXcQJ0PJXmzjQfpyp45NHXtqmZlhupCYqY4z9DWI3gPedtusX/96/p2PsgWRyRb+k9ZGPSaXxvRUkG3GRa+TrS6l/6or7BQ3p9vBjsqqcJAp0I7yftCMbXPiO2uaAWl8+Lnk6qagX751JK6k++MV8ou/JcKUn9MWjR+b2fs6GxN+enYjSfhrh/xZk1AdS1ZVBeMpHNCgEgEKSjKcxQM/gK0oizt8to1AY4RAGKMxeGiJJ2uUbfpAEgABKaeljoEgTunzFtKrGHLI/eznixad5ZQKdwritsJ3cl1GEjcE= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd22a59d-160e-46f4-7b80-08d4882455f5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN3PR0301MB1188; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1188;3:viqrI5ftpV859FfJ8WPBQSou7zdbM+h+0J6dUkcjAo4FavK6A1zlxbFsipcbNlK5o2iIOziwXjZvPMLEiR/XzF7rKZeo4IoNJkRdZXFxNB1v0uDuWL9ZbSGBxOsOcQ7T1Z0pA1bB7jijZbd9FLAuwiSRWH/5H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0/s651Y1IpJkvi2dgZMg2T1GTV2fx8RZosQeY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(5005006)(13017025)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(20161123556025)(20161123565025)(20161123561025);SRVR:BN3PR0301MB1188;BCL:0;PCL:0;RULEID:(400006);SRVR:BN3PR0301MB1188; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1188;4:NbuiROaBhMi7hR5gF6D7Jqji0qB32GquP8LBUbUOHhWpEVz6h2SdxRbinLhabwh2H3IRLewbsXVsQF7kpN+Sc+3OSP0rrF82JgtsiXGDOJtOTCc4xLWA165ITJnXmwnfugEUuETeAuKWatts1VtBmynuhfjXc0Mh2NFurY3JBnpf1k6Xq13jzWlvxXTGXDELWellXMGO6qsLYIzYDi/npaN2SoS5ubT3vKdVvU0opMc5g223QelxJrpgbu94NNJiuZCaeVZJimID19w6wMedSdpQoYpisZEM91WTkTMTiGT0phZMf/xJN6JBWs4NsikxyWiUkYEM4V3sPsB6UvwQSVD7rfsD0tno9+dXPmdJ46jTAr4uYvOMbn2WkSdhd0DM6Nkas6x5oXg04bIIvnI0MNIt6QCUKtg2EoJU9abl7B+0ELytMg0pvhI4kQ31NE9aiag/uxKGoXwduSZVMP4YYEMfwU9bK7KeZl3MSZxHBIkDxewbXuE7AUX9lhjRfiUwmRkGfXFyhR4KXVCyunKnS7LT4F/Px1Fu7QKh896i5xdrTYu3FII2UGKqq+nIeb0FBVBho7YkJDSUS8e1XMPXMg54XANG0W+wfAphfLN2jnT7BCWvU2b/zTCVKcc2miFyrrbKXbOD2aYZ4LRUdVbZMx7/Ttqcfu5nwxkbdc++8muoKW5gZ8eDH+sBZqhIwlLAez7dntixRMmS0cuvlFSQOA6o6sWOHuEJLpZrmhniIOA4bcMzgvoDH5dFRbgDvKbLwp2I8JZqOX137Ug7fIteKcEqnGsjYXrdlDlHOC4ssvtMDh2n9hMesmIKxN79O0aDc0J6M9WU3WvdP/69TfH5VJV7kgZ9xnyzUX6AVBgEdAu+xlbtzB+W/Je1kcFj8BUNEayo7Zrym4oy6TgAKI/dxg== X-Forefront-PRVS: 02830F0362 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1188;23:UG5nLZkOVaR0gANaMcxDaRczMg8FiqMatFzRxjz?= =?us-ascii?Q?bpYo0DCnkB+JUlBZ5l8S5c4iq4cEUb7Jzz5Sa64jVQj+QV8Dn+XyJmhXksvr?= =?us-ascii?Q?/+rkObBG9pJhHlLtvUSly9dfWSrpmDVeE/2my4ZyBxT9GzSKDEj7eGJy1nAf?= =?us-ascii?Q?zhjcZiULBtzJfEOj6LctsAZolc2a0Anch4so7ihhxKvIpFkGXeqh5hQhoscQ?= =?us-ascii?Q?nb9loXO417YRRpEdCmVLibiQRGFsObLQCUSlLqc30rSBHORbdlEr2G3x+6Lq?= =?us-ascii?Q?YXdZUP2MCnXFmKzlqAbUVaGVRKBsRBaf31uU2Sded/0fDAtfXahqTRJubydk?= =?us-ascii?Q?bWhRkCPV9J8Pt3sfaTzu1xG+A2HWv4Wi46coFf83l4vR/VDv99EmkUQw83gj?= =?us-ascii?Q?ZeX/DXHA4ecq85s17Mcb6clYJigRSaKLoVKOSEmKm1+pvetSk5mVy0MpxHx9?= =?us-ascii?Q?Jz1qL1b2xTlju9Pv8TBFRrK35HKTjcRGPo6dc2lNtaKaOdI2SI+9efM3LK1l?= =?us-ascii?Q?QiMZuItCFHpaPYBUMdqa6rRXLKN7HrOv+bt9CLcvErEo3DKXOKtVAPxXnvYg?= =?us-ascii?Q?GRMlpxBJcxoupXnysh/yflVlhM2UxKlW0VXLTJ1Qa9TvvzNlOmRR+RhWqtez?= =?us-ascii?Q?kreTI7WVULXt72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+ta8iGbS/k/KXRy3I7Hg0ow//0ZdNevIVsEJ1kjsDzJnIkifThGOoXnhGs+Sye2ZYwpOH8KTUEd8gi4SY9oKA+nO/8/j7ePQ+DIwqnV00uWNMNWMDg==;5:FP3mb8ClgEhDMiWmH6VU2K00Xh2F3Gos+KVM5YAsh39QnpNnyJCysmAMsZ6h8d7/GF31yTfMEvEtjhuOMvh8UDMmrDzY53W3MclpwdEUDy0m5L/eqJWAjNHpbJMihptGXLHQFXFUsit18oWktVI8BtJQMT3hXb1WeD/lbn+EWli99a5wxpUzzj2W3WoEWU4C;24:8tiBrpEMJ/xUbBI1YhTOv4SHQ8N9RK7EviKplpsb+U8a0IBGnXkgcObzednPGyFUUJJwNm2hrYxt1jZ8SINn1V3F3b3lyF7Mx7HV05nSwMk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1188;7:vHsBcwPgAVkGiHCnBNT9xrIzrlmp08zkffJ70r/RWUNnHHzEtyeYwgyKcu9gJxScA2/PbW8m4Brt7grG3halErrO52WZwfj9kCWBFjzpgELIbBp5hoLu33g2Z7mbFhZfL+J9O8BkN3GcJtYhgwj0Jl+SuVZB2AHHCn1MY44lDXVFzds0Xj0M8GE5p9hXAIAJVf1OFyMKVxiVAwl3AqzH5bf1Uo18AckppqVyFzYlbe+DVPs2WV6I4WDgXRE4HT4yHJMTg1m9/hG24yl+aYurysWVGSnw719MGHv8qgfkd3dPWbCXaQA2RlOsc+aMPiA+FyS3KVPFgWoqZCH71UOplQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2017 19:35:00.6250 (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: BN3PR0301MB1188 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1017 Lines: 24 This patchset allows the NXP's DPAA2 QMan Software portal CENA region to be cacheable as designed for the performance goal. Besides, the write allocate stash feature of the QMan requires the non-shareable attribute for this cache-enabled memory. So this patchset extends the arm64 ioremap with cache-enable and non-shareable first, then enables the CENA portal memory access in the QBMan driver, at last changes the ioremap call in dpio driver where the software portal CENA memory is mapped to be the correct one. Haiying Wang (3): arm64: extend ioremap for cacheable non-shareable memory bus: fsl-mc: dpio: enable qbman CENA portal memory access bus: fsl-mc: dpio: change CENA regs to be cacheable arch/arm64/include/asm/io.h | 1 + arch/arm64/include/asm/pgtable-prot.h | 1 + drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 6 +++--- drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 23 +++++++++++++++++------ 4 files changed, 22 insertions(+), 9 deletions(-) -- 2.7.4