From patchwork Tue Oct 30 20:30:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Pledge X-Patchwork-Id: 10661499 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3A2AA14E2 for ; Tue, 30 Oct 2018 20:31:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AC052AA9B for ; Tue, 30 Oct 2018 20:31:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CA212AAAC; Tue, 30 Oct 2018 20:31:00 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 AC2A62AA9B for ; Tue, 30 Oct 2018 20:30:59 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date: Subject:To:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fz+VLl/hYYys9XkoGYVUGrRwj9b/lN3BHcNAwMfxqic=; b=ihiN+iaFkHc+d7 mCYdfV1JRdxRo4lwWzisnQPjfF/gxQ2Nb3XpqkIfUNgIE+QhBBc+2dphap71yisjiZqYevNx+FFRy N4m6lIRkfQdk7lX52lBEjkf10JInoC7Xb11WARDy9BOkHFKYQsuV7A7fhcC4pMVhdqAbGZV4/D2om WKC+sagBV9O212Zwvaw22XA2eIxn6d5Ho/ExUJ2P1p6XL+w42kQtdN/UsD+arHV93N68krE/Ch/to Z/phvU1F5zH0ZuGnx159MDPz9pJ+/+0kfkgXb7Ydc7Z4aFK9uCXxb5l2CG/stL7X9VLVlkbU4Hq4a VeM8HeDi5DMNzaenU2MA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHaf7-00079m-Q8; Tue, 30 Oct 2018 20:30:53 +0000 Received: from mail-db5eur01on062e.outbound.protection.outlook.com ([2a01:111:f400:fe02::62e] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHaf4-00077e-Fi for linux-arm-kernel@lists.infradead.org; Tue, 30 Oct 2018 20:30:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bynX3HUNLj8CmuO4jiLx2cBkuvVboXgEQNNb236vow8=; b=WDYRpvNpvcADBTSpn4yJtgMYFZs7u3s4S6sPX+CZv9mgW6Ba1ca+yu1GYRvat0wKgOSY1Eq6wxmMtZQ7I6NhdLcU0pRmo1cUcUkoNPvfWTxY5DBFn5KyCBYiBraSMi5X/KY0QxpCzM8PGkfGzRNWXBjJqd5nqo7UK5As3ObXb/w= Received: from DB6PR0402MB2727.eurprd04.prod.outlook.com (10.172.245.17) by DB6PR0402MB2920.eurprd04.prod.outlook.com (10.172.248.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.19; Tue, 30 Oct 2018 20:30:34 +0000 Received: from DB6PR0402MB2727.eurprd04.prod.outlook.com ([fe80::e012:b6c0:4c6c:c314]) by DB6PR0402MB2727.eurprd04.prod.outlook.com ([fe80::e012:b6c0:4c6c:c314%4]) with mapi id 15.20.1273.027; Tue, 30 Oct 2018 20:30:34 +0000 From: Roy Pledge To: "stuyoder@gmail.com" , Laurentiu Tudor , Leo Li , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v1 0/2] soc: fsl: dpio: Add support for memory backed QBMan portals Thread-Topic: [PATCH v1 0/2] soc: fsl: dpio: Add support for memory backed QBMan portals Thread-Index: AQHUcI9p2c2OddyF4EeFpGvf1GbrCw== Date: Tue, 30 Oct 2018 20:30:34 +0000 Message-ID: <1540931418-10697-1-git-send-email-roy.pledge@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: BYAPR02CA0026.namprd02.prod.outlook.com (2603:10b6:a02:ee::39) To DB6PR0402MB2727.eurprd04.prod.outlook.com (2603:10a6:4:94::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=roy.pledge@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [72.142.119.78] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR0402MB2920; 6:KTP2N4DznOfofnhJHfqn3Nuivn4BhIzSRzS28qIPHu/0nvI/GivjunttnP7JEwp7KFf/9KecZqnn0aFVtQ53/cdJ+4GC/6lcuEh4LgIjrnfYrNydIXLuPb9Imn4ChYhegTl1wZCZ6mwJjSrViaJsJlxMzNV1hIBzR+lGUY96emTk4KkTympaI+ykVOTQluZizTxP5+iTKhKYPG+FmF7xva3O0+KU7EBHNZ9axl89WP/tjurCuE1IV32iKZpjrVsDk7oR83LLsc8LIaZrz61Un//wTh3jy2tbas7hmLg5CNckOh5FNVl0bzJr0yS7jbraqApFMCjvp88ZVmyek/jBUKucD23Q3+JxYvLDoHR5zcPM18Ju573WRV7wcnPZV+HGgXXNcl0p7RKgViDgzR50+eyGjcn5u/LgB4DCgSMphWb66WL4NMVTpVjZJFIx/E1yl6dD0lyDEBbEEav9HFyVkQ==; 5:AtiBsz1W8wSUXufEZqv0tKCCGDPm+YguApF4ZiCW28pbxlsoqttxFhrGv4qR3d53TJDrcpKtI+WPRbe7V7a4S7/cC5lOR2Si6l/S25cxfSvNpC2+W8vOsP56x8DQ/muHcPVmvWTIX3RzdxxPsrNK7kX+KGtn3020sN88MsQNico=; 7:cn6rwYfTBfWOcO+kzm9S3ncztXfoviLsXw2TIE0rB9GlwuGYnJpkEIj3SEzh9TUAukuNIi3Cn28MKJ/ZmIlvvIcvj4MjpE+ZpgTmmdZOuhusaWVRz2Tw5T2vQxZchKO4cfSgepx9PK+rSwGQgY7VJQ== x-ms-office365-filtering-correlation-id: ef097334-50c6-4a6e-ca83-08d63ea68b35 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB6PR0402MB2920; x-ms-traffictypediagnostic: DB6PR0402MB2920: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227817650892897)(275809806118684); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:DB6PR0402MB2920; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0402MB2920; x-forefront-prvs: 08417837C5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(39860400002)(396003)(346002)(199004)(189003)(43066004)(7736002)(81156014)(8676002)(99286004)(3450700001)(6486002)(81166006)(2501003)(68736007)(6436002)(97736004)(8936002)(2900100001)(102836004)(305945005)(14454004)(71190400001)(105586002)(53936002)(478600001)(6512007)(52116002)(5250100002)(6506007)(386003)(36756003)(106356001)(71200400001)(186003)(5660300001)(3846002)(50226002)(2616005)(256004)(54906003)(486006)(476003)(110136005)(86362001)(44832011)(66066001)(25786009)(316002)(4326008)(26005)(2201001)(39060400002)(2906002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0402MB2920; H:DB6PR0402MB2727.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: wC3TZWzuXsIBlnBBJ3REtBTUwiVZKapwTiuFHbl3cny2amE7M72RUlSKzwowuEv2OXW4bY2DAuIyHT+6HzoXeizO5mxlTuADHzCrbtGvjvj4EQKl7RrY6OrccFXrRR1N3K20VdbOCIqpOWm1S9RyAyo/ot55XA3Lu8IYBW/xBjJT+LC6EFk2n01J/pO42ubVyl9hTCcZGDnhotrjKIHUUdsv7KP0v2bJkYkR9somhoAt4ywjyUnA+hYEY4Rg64Apm1cnskUvtWlhsjMzoCAcIpu/SiiCrMuzRNzivuSYDqQkWPUfCcxhaUQqVv9URPSMjmkUgF+p9M1ClcL0jliDcOYJqyytKcaxTFabir7lkeg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef097334-50c6-4a6e-ca83-08d63ea68b35 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Oct 2018 20:30:34.7030 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2920 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181030_133050_528626_FC758BA2 X-CRM114-Status: GOOD ( 11.88 ) 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 Cc: Roy Pledge , Youri Querry 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 This patch series adds support for QBMan memory backed portals which is avaialble in devices containing QBMan verion 5.0 and above (for example NXP's LX2160A SoC). Memory backed portals can be mapped as normal cacheable/shareable memory which allows the portals to migrate between cores without needing manual cache manipulations by the CPU. The patches add support for the new portal attributes in the fsl-mc bus drivers as well as modifying the QBMan driver to use the new portal read trigger mechanism. Roy Pledge (2): bus: mc-bus: Add support for mapping shareable portals soc: fsl: dpio: Add support for memory backed QBMan portals drivers/bus/fsl-mc/dprc.c | 3 +- drivers/bus/fsl-mc/fsl-mc-bus.c | 14 +++- drivers/bus/fsl-mc/fsl-mc-private.h | 17 ++++- drivers/soc/fsl/dpio/dpio-driver.c | 23 ++++-- drivers/soc/fsl/dpio/qbman-portal.c | 148 ++++++++++++++++++++++++++++++------ drivers/soc/fsl/dpio/qbman-portal.h | 5 ++ 6 files changed, 172 insertions(+), 38 deletions(-) --- 2.7.4