Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751396AbdIRUkA (ORCPT ); Mon, 18 Sep 2017 16:40:00 -0400 Received: from mail-cys01nam02on0067.outbound.protection.outlook.com ([104.47.37.67]:51776 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750813AbdIRUjy (ORCPT ); Mon, 18 Sep 2017 16:39:54 -0400 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; From: Roy Pledge To: , , , , CC: , , , , , , Roy Pledge Subject: [v5 00/12] soc/fsl/qbman: Enable QBMan on ARM Platforms Date: Mon, 18 Sep 2017 16:39:35 -0400 Message-ID: <1505767187-4596-1-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 Reply-To: X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502407911943759;(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)(336005)(376002)(346002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(8676002)(85426001)(16586007)(189998001)(8936002)(86362001)(68736007)(97736004)(36756003)(33646002)(106466001)(316002)(81166006)(104016004)(81156014)(7416002)(5003940100001)(6666003)(105606002)(2201001)(53936002)(305945005)(47776003)(498600001)(43066003)(54906002)(4326008)(77096006)(2906002)(50226002)(50986999)(48376002)(50466002)(3450700001)(8656003)(5660300001)(110136005)(356003)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2691;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD040;1:xpXegmTxgJl5a4SZlZWGhw8VNh8h4zv3aWOWID2AVzPuU6mul8SKV6aqlyngKfljs52duph9DHlgBeqKFjjm/Mw/y6gfvC0TjJ5Wgp0hBl4gcDVox/j0DGKrGfksLh60 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 350028ff-b6e9-406b-233f-08d4fed56917 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR03MB2691; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2691;3:NtK+0RXgwqazLNIHLz0oep1GcqARg1p4NYrd1BlAPmLVJ8bIqNAM0ZctDTA4J5kslOQrd7Eg65W8RyKmB547DUQn7mZMRZfZ2c6gg0lqX33o6J6pl9ef+LBp2mH7TDNFup/+bIhWR/ClwnHvbHepLt7Zi5/yKbAzNiGGSfPkwUWMEa582vvsLF5jF1uQ/my547RR4jfW8+8PMMs3mhvJmMSE1zVvqQZSwdPo2wOWsFeP7jIQTiB6qlCcO258yUqwEQhY1LT4LmfbVjmCsbYCB6uYvlWWXHv3UoWWajzPoFMcEhwKgQxak1I8mK4erUKrVs0jS5MaGc/CqC8A/tvsI9XpnbdrcYAR+/qzOjJIg34=;25:k4TNk1cAxheaneRBhVXIofBSbE/284nOQbPpfD+vrHYZJN9zu48G74fjOryNOnR9H6g64PMHPQ4VOoc6ccZHB+Ph5H8bNssuLb4dSAnzzQQglU8nMfNnk9S9dMwh+qF8rHmHbKsNYkID4aXL4E/v/sq7GUhaoI167Ort/RQPRAD/Vv2IblepUbCTFkRh3tN+Vxq2OAuECGCOo60h5b+kZme7QehWd2r/meegnb98qCl76nJjtVIn6WciFla+TjHJuo3JiTQB2gI9Wrhuq05BSuFCngr7wlUw3scsD1Tj514PGWZQ/ZxenZp5Vq27+QuewnMNgDaduNvDiqAAZ+VR4g== X-MS-TrafficTypeDiagnostic: BN6PR03MB2691: X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2691;31:CG3JL3gD47NPkIt0vfonZjYwR/wmK76r4QyDNgvm6FGPim4jFN94h+7ahlx9palFfhG0dzgDFZNPf5euCPV0+Zi0oipdha8s8J3tNAlSRISvZ89FfLGfX1IM9l87JHix2qMSRv829Xe9PaAjD365QAHc9YgVR4He8m9WPyqtNt36j0w0hkxHDlLiPBCN6IXhhF4GhuvbJtN/W6G+Fh9LxBr55nI6H3TGUOhjsBVMpCo=;4:ds2tcj7YiCeDKqQc4YmZ2wK1SQcAzEzyaEW0CGsUjPeqU+uwN8M9BpFCPwu+WfsHeMdH/l7F7ivihMD9mvk/FVomoyYJBAqisD86i0Z/HOMQ6mdCZePMTaRoBMtkax9NmDCxMBkGpDrKyiJhj8UQPQDF/h0GffdamqsUWYpUogpjLkaq25O0fp8GWIYwXwzFbV5nYbPdfR/QpSP60+/aCluRibTVJgTdT/EUiFs+tQuu3otfrXoVwkUBAWVQKjrVEjv2+BJHJ25gwlbiNnamiw/0NvkPrQqzpL7K0lIykFg= X-Exchange-Antispam-Report-Test: UriScan:(275809806118684); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123565025)(20161123556025)(20161123561025)(20161123559100)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR03MB2691;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR03MB2691; X-Forefront-PRVS: 04347F8039 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR03MB2691;23:+KqzneRT4m94rLdxcGgry93kF9mUHUw7pePxbzy4a?= =?us-ascii?Q?JT+AwIM+wu857/CtQR3veP5X39d7vN+rQDfbFKF8qTmf1C+Wfa5A/EfkOJzP?= =?us-ascii?Q?c++kKWPMxY6vjNKHp+kPEqDlVGMynS0/FoTsro9ZQWjP7rKhXaUY5NfhjfR8?= =?us-ascii?Q?vs3K+xuX2ZvJcoAhJUHqFz9u/XFmNfOGiv/bdcXundA9HbiN9qGEFzWQ2cBV?= =?us-ascii?Q?vuMz1zQ3iJXhTodVMV69cdwF/OtoSsJdrH3oYAVJki5QRLIxDseoowDzON/N?= =?us-ascii?Q?LOpDP/3oC4CzSsQbO1T2mE88a76LJOiBQgpZvYy2f83W56au5y9hGp/gc27M?= =?us-ascii?Q?Nb9s8NL9jTvTqaedpHiy8bA48muVzppXP6ke8GRVxjl3S5QRFSk7iox/fFLq?= =?us-ascii?Q?sFS6b/e6IwtueOtjakP5ejoEGUUcOU/UxVuaBhrTJvoyL9u8LBXdIVgfW8GP?= =?us-ascii?Q?3Oq+qzeoTSrI1QHg6RMc8lHOyFK0Ujku8dE2xf5C9lR2qP9NP0X1cogrux+b?= =?us-ascii?Q?oAOH/qqOCGcLnceFwE2HulcW5NihpuZ7W8WDHpFQg8Cg/+zp2hVX9iYjTZpW?= =?us-ascii?Q?0SU9brUFPNJQbWwWJcSImkPMSrxBPu7J1GzU/rKSM3/NrxsbPtzloJE8pa8e?= =?us-ascii?Q?UPW6FSl7Zs75KoU3l5qwta6VU13Adcc7mmUPo804I2XRIJW7dG6dElAdEBqL?= =?us-ascii?Q?ZuhqzvFVUhmxDrz2X3NaJC7pK8xSSIxIFEpv4l5glzz1iKNPhzKoF05H/4pF?= =?us-ascii?Q?FhEdkPdHsSeGxtf1sLsxQjmNQPg8yGp+MPvdaMOcXsqvEiZfaapX7Q3rLM4J?= =?us-ascii?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w7bV7hg+Zdez7X6ZwpAq/VTBkaqJXW95TOSQ+eXBS/e4DCp4e8n5f3BXY79aHe2MGxk=;7:3xdwdcwif2ETFH+shFw0yVUaKPOl/7iA7j8lKYPHYBZDDS9OY5wQ87LYaGi2Mkg7i6jFMr29vw9cKxxnbi7X0/zHzyecA996CpiiQaAk3wIqUOWHvY6IjHNSH8CzuK9e4W6w8PPf191FEQ5QkfnAYjfEUW9G+JSzD134w5UH4JtbKc4EtnXU0qAMfRhxElBOLldL9XjL6P3d5fwNGbZhMU5T0rz4rc4pL2NYrFW9nNQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2017 20:39:50.8979 (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: BN6PR03MB2691 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2908 Lines: 66 This patch series enables DPAA1 QBMan devices for ARM and ARM64 architectures. This allows the LS1043A and LS1046A to use QBMan functionality which allows access to ethernet and cyptographic devices for example. Changes since v4: - Introduce a common function for QBMan private memory initialization - Fix sparse warnings making sure that __iomem and __be32 are respected - Control different memremap() attributes using a #define Changes since v3: - Use memremap() instead of ioremap() for non iomem QBMan portal regions - Ensured the __iomem attribute is respected when accessing iomem mapped regions - Removed calls to flush/invalidate/prefetch for ARM/ARM64 since mapping is done as write combine Changes since v2: - Fixed some misspellings - Added 'no-map' constraint to device tree bindings - Described ordering contraint on regions in the device tree - Removed confusing comment regarding non-shareable mappings - Added warning if old reserved-memory technique is used on ARM Changes since v1: - Reworked private memory allocations to use shared-dma-pool on ARM platforms Claudiu Manoil (2): soc/fsl/qbman: Drop L1_CACHE_BYTES compile time check soc/fsl/qbman: Add missing headers on ARM Madalin Bucur (4): soc/fsl/qbman: Drop set/clear_bits usage soc/fsl/qbman: add QMAN_REV32 soc/fsl/qbman: different register offsets on ARM soc/fsl/qbman: Enable FSL_LAYERSCAPE config on ARM Roy Pledge (5): soc/fsl/qbman: Add common routine for QBMan private allocations soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations dt-bindings: soc/fsl: Update reserved memory binding for QBMan soc/fsl/qbman: Rework portal mapping calls for ARM/PPC Valentin Rothberg (1): soc/fsl/qbman: Fix ARM32 typo Documentation/devicetree/bindings/soc/fsl/bman.txt | 12 +-- Documentation/devicetree/bindings/soc/fsl/qman.txt | 26 ++++-- drivers/soc/fsl/qbman/Kconfig | 2 +- drivers/soc/fsl/qbman/Makefile | 2 +- drivers/soc/fsl/qbman/bman.c | 42 ++++++++-- drivers/soc/fsl/qbman/bman_ccsr.c | 15 ++++ drivers/soc/fsl/qbman/bman_portal.c | 23 +++--- drivers/soc/fsl/qbman/bman_priv.h | 8 +- drivers/soc/fsl/qbman/dpaa_sys.c | 78 ++++++++++++++++++ drivers/soc/fsl/qbman/dpaa_sys.h | 25 ++++-- drivers/soc/fsl/qbman/qman.c | 77 +++++++++++++----- drivers/soc/fsl/qbman/qman_ccsr.c | 95 +++++++++++++++------- drivers/soc/fsl/qbman/qman_portal.c | 23 +++--- drivers/soc/fsl/qbman/qman_priv.h | 11 +-- drivers/soc/fsl/qbman/qman_test.h | 2 - 15 files changed, 318 insertions(+), 123 deletions(-) create mode 100644 drivers/soc/fsl/qbman/dpaa_sys.c -- 2.7.4