Message ID | 1505767187-4596-3-git-send-email-roy.pledge@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 BBD6E60385 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 18 Sep 2017 20:47:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD87228C46 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 18 Sep 2017 20:47:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0850288BF; Mon, 18 Sep 2017 20:47:01 +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, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 1551C288BF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 18 Sep 2017 20:47:00 +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:References: In-Reply-To:Message-ID:Date:Subject:To:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ALU9eOYXDnu1XNzClN2NlseUlsHX/wEWC9SWhMda0pQ=; b=fEbwnruWwLPbh6 r8ZHXA3MxSPQ10lfAg1xK0npRKxnT/PwcimYpWjKokXsLLRJFUh/vm1SHF8oNNYlobnUoq0A7j/R3 D7w8sb7SmsWk+oz4GN1DEemNbyLb6OwgsKvPrIU348dgFUINGlfV7WPRKLY3O36DpZwKNiVFNM0Ev LwE5HqrSSvjl36Ii3PF93z1W3HCT9JUSPmS9LWJSKm4WWp54EUsPBJnIlQLURzW/KfXt6PIVSWbmS 5UaZoB7QXhmBr9WDa42wRt/I0UOpa1NHKYDjcYqOdTnV6Oq36TJjWzw+kOsKH/bP9gm1weD4VDlGZ yPKHdE4vmBOXZ/12nhQA==; 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 1du2vq-0008Dl-9f; Mon, 18 Sep 2017 20:46:18 +0000 Received: from mail-bl2nam02on0070.outbound.protection.outlook.com ([104.47.38.70] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1du2q1-0001Ry-Lm for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2017 20:40:20 +0000 Received: from BN3PR03CA0053.namprd03.prod.outlook.com (10.167.1.141) by BN6PR03MB2692.namprd03.prod.outlook.com (10.173.144.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Mon, 18 Sep 2017 20:39:52 +0000 Received: from BL2FFO11FD016.protection.gbl (2a01:111:f400:7c09::150) by BN3PR03CA0053.outlook.office365.com (2a01:111:e400:7a4d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Mon, 18 Sep 2017 20:39:53 +0000 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; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD016.mail.protection.outlook.com (10.173.160.224) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.35.14 via Frontend Transport; Mon, 18 Sep 2017 20:39:52 +0000 Received: from otc-sw1.am.freescale.net (otc-sw1.am.freescale.net [10.29.200.182]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8IKdn2n025841; Mon, 18 Sep 2017 13:39:51 -0700 From: Roy Pledge <roy.pledge@nxp.com> To: <leoyang.li@nxp.com>, <linuxppc-dev@lists.ozlabs.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org> Subject: [v5 02/12] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations Date: Mon, 18 Sep 2017 16:39:37 -0400 Message-ID: <1505767187-4596-3-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505767187-4596-1-git-send-email-roy.pledge@nxp.com> References: <1505767187-4596-1-git-send-email-roy.pledge@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502407928956838; (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)(7966004)(336005)(376002)(39860400002)(346002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(316002)(5003940100001)(104016004)(189998001)(7416002)(5660300001)(36756003)(16586007)(97736004)(356003)(3450700001)(6666003)(76176999)(50226002)(50986999)(54906002)(305945005)(498600001)(81156014)(81166006)(43066003)(2906002)(106466001)(8676002)(2201001)(8656003)(68736007)(230783001)(33646002)(2950100002)(8936002)(105606002)(85426001)(47776003)(4326008)(53936002)(77096006)(50466002)(48376002)(86362001)(110136005)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2692; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD016; 1:uj7sUnTfOK8btsLjOXOhvplWiz/wlewWxLuP0t9um9zVgefwWC6meRULHZDmw1xQjO2IT0kkEV2Gze/u0VvVl/klCwoSIvbOn3BreuXTQ/IK70+xh91hUnZ34UuJZlMh MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8bf19c2b-5ebe-44ac-bc9e-08d4fed56a1a 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:BN6PR03MB2692; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 3:ta9VMAv+n97snqyMTjYglJ7mDAuJphgRmYLHe8QT7a/k364ZrxL3e2vLiidFUed2pUEf7T/zraxihYVi+Txb/Tn5VfEUt+R5TRHQdMmrEZNf1kZe0iU9FbQYWgDnFVpmPfcYp5TV9w6D7MhDGLhmIN9ApMan4TfHoSaamV7g80QsAzw7GIHx5ksRRCI9YXIB7unKYVtP9+B/1fa+rHUobcYH2Snnbgacyo2HRkkVcm3UbG4YHpsYfzNMt/VlcY0yy7hjdqmcaXniCCdvIHK7/f+P/qQUA+5ZnXjMvEiHxnLCqICpNo4tI7JHZ99VJV3lfFGNb1QCjXq5GmRlDtslcdPGMsYf8Hg4WxSe2GEqXf4=; 25:vnpumDn3hbkCXJJV5EniVyR+GuuPOKt+Lw1GEyYro7k0ISF7LnopsJoKzY/9DN19QLPnil8GgXHGjfktsIQrlEXHvj++tVCmi3uateNRaCYdFkHIdIQTktdynhiR8HrwfEoAUZsP8OW44P2bpJxgNb6ct+dhgIzjFcRFOTkdJ5fHSz8Y64zPhz4PibI3s6k4VMVID4W1jJGXtqzUwWHwCq3N4UMmFndpC+od+2BvlyjLfd0qwj5od8zBz+R2ksTlpFpxrtghGR6mgduCFdgFacRUIIOqpIYeJf+uIKBmSHRjPVgWTrtb+QAqkknGP9FEbdx8wfvTjBzsDC2jUDepMg== X-MS-TrafficTypeDiagnostic: BN6PR03MB2692: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 31:7t9g2STwOGWXNMzu9HMiTdYbp7QS3SI2EjHN801zUApndvE7P0bHPpFb1lP+ZZbbJBNKh6ZccEgBd9QCTJRzOMzvARH4/0GFPBWnjuvBYsddWgDzvptGfO77FOO+lzWEC1T+aH8J6vyXGuKI6wwJ3C8/tSVPxXfJWFa0izCtHko7wSLsJYIHjMAEjhsRbtbqV1rsTZP3x+K4SUm+1wqlWJ9nEM/7hQq0dRE/8Cs5y90=; 4:VDcdPwqgpZGjAnM+r+FfHGM6B3cooIu3JELPGVey3Rgv2LNwbHfFdaZEh7cS7MopQLNoeeEHNqKdEehx5pTuWHrV6bZN94Tlzy6kQn7YNDWcn4jr6EoVd3clro2rH7zh/87B9a/S/nOEAz91Lp/hUqNw67EKLKpgY4UHGfiMUkqC4LC7BK/1QcQa1QZs8MVLUyOpeLrYdso4fr3xkCLQrHcFxv3F41cfoULtTCRcv/gAFu/DRzK4tp77h+4sYJiJ1SjDUnNJr1QWy5Bw5fHXSWlqm39P9UWumMb0h5x+r/M= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <BN6PR03MB2692ED19CB998B81997C459986630@BN6PR03MB2692.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123559100)(20161123563025)(20161123561025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2692; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2692; X-Forefront-PRVS: 04347F8039 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2692; 23:mmkgiG394YMZFCHZPU33PVnc5CCjtU/mONLH2GO0C?= =?us-ascii?Q?iXS6pii0FLySqKZfB8q5vezfhxP63mkwkMtpaQzk/L2BnCN5KwWy09jA4buu?= =?us-ascii?Q?iZqdn6xll6jxWMj8GajdoCDZJCQOJJWzburM5TITtMNFMPrxcTB5CSt6K8hD?= =?us-ascii?Q?tv7sRZqDZ5AL4SnTIv7HvKMwT5sSQp4YuRG0vtbx/pNKO8C9dKLTOD/6BcS1?= =?us-ascii?Q?t3WkADHXRLDELvmQpEsYpPNDXKPw7bCayqi72tFQReLgQIQd61XTpwyVCAUu?= =?us-ascii?Q?aXV22dJRfP35Aj6nUpl8zyxV5MSu6E8sKBXANSLHzy/aHVHEAxi/QpRKrVA3?= =?us-ascii?Q?FW1yLtbTkgaMCTMB3W8P/sVEG2tu1upe69EusQnQn1h0XOSEQTH9s3AVFuAN?= =?us-ascii?Q?xNwpdiLF/ABicnljP50+hMWEYAkZq/oWBen6ljGxjYUXx5xmpoKPjN2rQOyt?= =?us-ascii?Q?znJdmkbcP385t8vwHlAEcltJmYcGmLBWGFmhIZYVXg/19VULFASB/7q5hFLH?= =?us-ascii?Q?iBBaIS7yPD9av9nwLp661Kx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qAN8S6EIwmUfTmKUrrlcHgotWjFPL40nU2MqBtxEdGi+veVU3eyeaycHt6D5Bu+0rQlqO3zRSp0IWLS7olKUBBlw77oaus61yPJLZONhZWUGbb1QVKAQDTgMMSxVRHf0uHGN0r4Ez3l6Rt1/dq4pk8xCxf4zFZtaWTqpfwzzfXE4x1SNBq5+YmtnS3kkm0BJ8F2jtusA/HGL2EXvMSwhr7SdZ4hSKZwy2y0elF4FQjsz/W3m6cqUyaw==; 5:DqdKlbhAB1pkV1OzzJfoqddxN59mht+arqzRlgfO8Cuw47H7D99E9OhnEyF2E5ExH7Kc0H+f3tLuCuneoGZ1XOMMMNgRj2qVLSouCNmEJlJ/N7L0UGuaxWdAXdI4fugohJ4vPiUKRBy+LdM0dVztWw==; 24:gzbqhq/FHgi6PyJcPyJnXQEcRZqENFlnymm7WIBElk8gjm7/aH4G+oPBQ8eX8ilxE3+P+BIzhbPiJH06xFXW1JQDBHdcZde+kcgIB7X73gM=; 7:dtpl/d6UOogLjaKicIUErKp+p3CWTXnEoTCQp2+0fJDSDfMsii92qFhkMuKRNUd+dW+Le3YG7+wMWxzWET7deugLTEIS1Ede4sG068B8f3cix0Bo/YA9rfxgRrh4m/ZOdXDz1Pg2+HTJJT77A/wO590c/idbZ+zfkDIuazXqfc5/YhjohHIoSwn6cvrHVV7oYIxArR/+fsWwLDKqhI1TVU8y8WRhf1tNowuBOFQAKdw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2017 20:39:52.6148 (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: BN6PR03MB2692 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170918_134017_920367_B1961E4E X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Reply-To: roy.pledge@nxp.com Cc: mark.rutland@arm.com, arnd@arndb.de, madalin.bucur@nxp.com, catalin.marinas@arm.com, Roy Pledge <roy.pledge@nxp.com>, linux@armlinux.org.uk, oss@buserror.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Mon, Sep 18, 2017 at 04:39:37PM -0400, Roy Pledge wrote: > Use the shared-memory-pool mechanism for free buffer proxy record > area allocation. > > Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
diff --git a/drivers/soc/fsl/qbman/bman_ccsr.c b/drivers/soc/fsl/qbman/bman_ccsr.c index eaa9585..05c4223 100644 --- a/drivers/soc/fsl/qbman/bman_ccsr.c +++ b/drivers/soc/fsl/qbman/bman_ccsr.c @@ -201,6 +201,21 @@ static int fsl_bman_probe(struct platform_device *pdev) return -ENODEV; } + /* + * If FBPR memory wasn't defined using the qbman compatible string + * try using the of_reserved_mem_device method + */ + if (!fbpr_a) { + ret = qbman_init_private_mem(dev, 0, &fbpr_a, &fbpr_sz); + if (ret) { + dev_err(dev, "qbman_init_private_mem() failed 0x%x\n", + ret); + return -ENODEV; + } + } + + dev_dbg(dev, "Allocated FBPR 0x%llx 0x%zx\n", fbpr_a, fbpr_sz); + bm_set_memory(fbpr_a, fbpr_sz); err_irq = platform_get_irq(pdev, 0);
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge <roy.pledge@nxp.com> --- drivers/soc/fsl/qbman/bman_ccsr.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)