From patchwork Fri Mar 24 19:22:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaying Liang X-Patchwork-Id: 9643889 Return-Path: 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 26062601E9 for ; Fri, 24 Mar 2017 19:29:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13AFD27D16 for ; Fri, 24 Mar 2017 19:29:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 089A527E5A; Fri, 24 Mar 2017 19:29:46 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F63427D45 for ; Fri, 24 Mar 2017 19:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967022AbdCXT3k (ORCPT ); Fri, 24 Mar 2017 15:29:40 -0400 Received: from mail-by2nam03on0066.outbound.protection.outlook.com ([104.47.42.66]:39664 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936009AbdCXT3c (ORCPT ); Fri, 24 Mar 2017 15:29:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=u2q+BovRsY2eQ7AAMK4rFQXwDWlloxcrFJWFEUOiEhE=; b=0pVv/6TqG4FfPqbPS7a8lkmXMH0VE2hdPLO6hXuKbXbVS0s6wxtcX3DJEvjTt2ZeY/9oaSyLKBPr624d7Lcj1rUDcQLFlbTjpCh7dh4p74adHVcbIcHrD0FUyaTdKXcUPSYRzTrTQOR7xV6xhgNRhM4wImSpeB5NpHbUKlJXq1c= Received: from BN6PR02CA0030.namprd02.prod.outlook.com (10.173.146.144) by DM2PR0201MB0768.namprd02.prod.outlook.com (10.160.95.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 24 Mar 2017 19:29:30 +0000 Received: from CY1NAM02FT030.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::207) by BN6PR02CA0030.outlook.office365.com (2603:10b6:404:5f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14 via Frontend Transport; Fri, 24 Mar 2017 19:29:29 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT030.mail.protection.outlook.com (10.152.75.163) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 24 Mar 2017 19:29:27 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:55075 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1crUtq-0002aF-Ob; Fri, 24 Mar 2017 12:29:26 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1crUtq-0002hs-K3; Fri, 24 Mar 2017 12:29:26 -0700 Received: from xsj-pvapsmtp01 (xsj-mail.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v2OJTNlD022893; Fri, 24 Mar 2017 12:29:23 -0700 Received: from [172.19.2.167] (helo=xsjjliang50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1crUtn-0002hG-3L; Fri, 24 Mar 2017 12:29:23 -0700 From: Wendy Liang To: CC: , , "Wendy Liang" , Wendy Liang , Michal Simek Subject: [RFC LINUX PATCH 2/3] remoteproc: add rproc_mem resource entry handler Date: Fri, 24 Mar 2017 12:22:15 -0700 Message-ID: <1490383336-23117-3-git-send-email-jliang@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490383336-23117-1-git-send-email-jliang@xilinx.com> References: <1490383336-23117-1-git-send-email-jliang@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22962.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39410400002)(39850400002)(39840400002)(2970300002)(438002)(199003)(189002)(9170700003)(106466001)(110136004)(36756003)(356003)(189998001)(107886003)(33646002)(4326008)(54906002)(38730400002)(77096006)(2906002)(2351001)(5660300001)(8676002)(50226002)(305945005)(36386004)(2950100002)(6916009)(9786002)(5003940100001)(6666003)(47776003)(76176999)(50466002)(48376002)(81166006)(50986999)(8936002)(107986001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0768; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:sfv; A:1; MX:3; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT030; 1:+jY/Of53vz8YOY8BwRmwi8/cppFC2JD8wwcTQKw0WIme1r8rNl4tTY06yIg+FOXXJHbMFTY7hhXZbV+40zqkY+wOSzku/9A1fdLRkzdsNjBYNWybX51S0YklJy6IUINIuWIcRSyE4ZSXTLo7eUgyny+/aVI2ckAAbc3THElH74Na10Z085QAQMdz9gphL4Xo2DLnJDstPhxqxdBNdt2UDdPvac0I2JHBzF95QCzlZu0mXgr2xQSyGQdtFrs5RCW6v71hxb11+h+RDyDc1tztEj5Jw4m5npK8bnRwvYTf4g8Sy6mODDIs7Qa8h1jpTSBGVOmRVG3CcSXSAB4DfbA0PRCtXD3w2nNdPOwXcmx9K8Z1TBsZJPL1D4wrtffiJWj8cfZWz1ybNTEK0gP7PXug2IQBVUqi7eTUQxapYE79rtdiFE3aPdAxpk7lM3w9rbUqg0vG4uDbN4i5DHJy4boZTwurnNZw7gPmwl6ypb4zhRHw6a7BbJw/5jVGa9PDs2DwEGOmPuxmu9iAqEiiweF9If/jE0331qlEOLRRtT1RBMUg3yLQkq3+jDkRHDpOhwDJmnr6iKUWOvZNlRj1le4Bvw== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 62740733-df99-46cf-2dcd-08d472ec1688 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075); SRVR:DM2PR0201MB0768; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0768; 3:IiE+VIIUgTd5GPbSMDPgIiZjKxbfrMad6bU061LHn//2zb5055jB6ccWf+HZbM/FBiMomdzPm6ZwsE+YEsYlDBOKhxT1RjONFbJBl6+AjF3XT67u6OqMa9K9kFE1hfvbPwOPc0hdhJm3vrGZXwolCXtMguDbIr/FyTgo1+2frHsOHrQtxm2nc8wMxn1+eap6p8ghkWZQomYFSfpPA4lQh9UiMxLxpv4L5q77xixwCayeSTcWEK6dUxhXVAA9SsdwY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JwBDqdEbKypzZqsXjbbnWqdSJToMoCX6R7kwJzMSxMGeaUZ3rduMRn8d/yot4guKDkz8zHmoBb2aWvYC9N4upuDS8oT5kk63XUFX25MhqQiYKbsXP/oy8e/Rom36RVl70JU7EpZzHqoD6xSEw7Gk3iA9GkwMH6fay/lay2+8fOwqfw0szKKE2DtJiPTQYBcX5kWNhgCD4I3EWDad217tZkDm5NHNVD2lDYBZBmhHj/AcwAHxWz98Ne+n7m9g9SW97cMrEl87p+xlXivunAihnuWXZIAFsxXxbjqKGErphPniuZPu6DsT4VuUfF14fniR7onYMMm+YsWIjQlrhcTq+unjsccatmbj8gGT4RTLJcReb9L3qUB3tHxEKaQuJDUw+XCSr5WstQ5ORlaul2lY+MtL7r4dRu5/iGl/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13023025)(13018025)(8121501046)(13024025)(13017025)(13015025)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123558025)(20161123555025)(20161123560025)(20161123562025)(6072148); SRVR:DM2PR0201MB0768; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0768; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0768; 4:xHsfZrIGu644g9hol6+m+ewzWbu2XHyg+xKwB3N5xGmHL+HPPaALRbTg5ShmdK/mW+XhCrSz+aHteID3fvW/ELFFBfGedVLgYrngUUIS/3bGq4ART81Iz5L8TzwQrc79IP2ot86vTJfQAJVhIfTv6ytARoOlN3Kff4bTj6iG17APyuxHh7b2K7yMe9/xYck1vJomARp2bZ7tZD4NY8bxM8llfaUFo5JSMkEMyl0aHZhWZ2jdSBMu+ELfNfNBpocTByJi2w1lhIXRIGIrnIdU2dRYvLwdQ6IFoWV8vjyAVljsFvMD1nv9kx7JDG5f0o4Ah4q5u2pAL9Q8EAX5NDxhKvPh4spjZTFBw6tGQE5iT3nqUOrC8Z1Taq1gs5DZfRKzfvklJzc7j4cjyZ4I3UHgI0RXhXbaTadOCjMnhZ/ORy2YOYCPldqFQ77qeNN7k36GPoLyrCxl7GemQdfb9DSAH4mTjzGyRKhCE2C9If3yOa5Zi1zwgeQ73xYi3nmkKpAmqCVdsoIXFh452IU4r5hIAhs2iMKeakdOUZFBPwxSI487gFMYx2nZCjLXkgi64FlnNr2OlVtBvojV2dDw4hETyF0rQm63EwRimmsjz21nY34qd9ZxEGPFXHbWjxbOOBUpUAY0sPC+N5/ScuNNLfeS1gljeHw66DJiG4SnID6qinp4Mr+fZS5njSI0b0hb7BL7suXTZH9xrjDEhH7FI/0Khb9DZDmp6fyNE5N+5Q0fy03PncagK7KC6HqTe9GWqXawscI5G6E9iCZwjLkEmhtMuQ== X-Forefront-PRVS: 0256C18696 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0201MB0768; 23:XX3aldEWr/b2nCuoT8xt54rkYnCozVjM5S6yDEA?= =?us-ascii?Q?YV01P8nB18e46ouddnf5CchZXdD/3Juy3hzxqhbw8Nf8o2bdIZNsahCKbSIp?= =?us-ascii?Q?UErYZC31jY1qPaCPmOhs1aOWeKD7e6BaGEm33PburCLLwIEwU4GXunr3LL7l?= =?us-ascii?Q?NyqpO83qbG6cCaecDSSjcJ/rDl78dwqQkhhz57oZUes4TMOGhhRZ1CRClDbh?= =?us-ascii?Q?/rUv399SMBz7EQqYJ4Cp1rNZDGhTdjhHJEJxIYXIfxJAgunWI5YaxnBgHlmj?= =?us-ascii?Q?CWR8Ma49GzD8Qra5Z/TWITHfpljMBmFrXb/A3cCjD6xGiESNpl4XvWD1LZsh?= =?us-ascii?Q?uhkRjLykU5mhGetMcOX5HxfYfVJClQA6MxFTOzB58gumsdx2d/Fz/HTwp7fO?= =?us-ascii?Q?ejVmLEQdbTcFs++VdZUfi2/feid5uH2W1SUMa+Ev29OOxw6z3IjmGp4Qor2N?= =?us-ascii?Q?RraFfRr2R2aftabkG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LWjreMc+IBWI6QDwQrT9S6lsZUVYWB0kGyRvecU+C+BFCzg6SQUxg+UrBC74O+568e+AiEXnTpi9MReL2GciYtRb5zJPF4U3CGQPxzmPsZp2rH5RYwE=; 5:BXGIsyypKx0YcPhSx2Mgc3xmsVTI1t8EVPHOMpHlVSy0EU1XSszu3A4roIru/kjKmOaVbnGIsVzUHPIhOcly7iVXYUa62O7MngyPK6r/e5eOQwv6157jchtoaQixNLelKsD+gMF2NOEmCv1dbzkrFQ==; 24:Bt4v0OHyu/u/usvvSIMBFfVMwa+Rf/U5JV8Tk0kaT1U3Fb2B/64dswoWO8Xd2sa6fDpR2MJ4s+0roBQLBQrM6RncqCVtmjAEKC9oeb/6rFs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0768; 7:neHdJD5yQUJ4nl8P4GorNSr7/Qg3NshWj56pP5GXN2QwZ12byPnqV0IMuraaau2Xjqj4S/JoGhDJnOV6P6kE2u6jI6cXbHdkYj6oTqPsyPvEyYFsVOFnMjryx7e4qJaALDGME9NvN058QMH4qBBpuDgyFSXfsSB/rgzC0Qi0EJh/TKf9rEyBXWAT0cl+o7OUy2wKaN7F61rHbZ/qQxSmH9rmn6sFB+88jxsyU+OnlmvCDBAck4YDADN7s+rE4dSETc12zmF+fEdq/zJlNfIl/JZ+PaPHvDVN81+rJ/a5MzByc4JoDtVrY6HuJS/yKEKydPQG4UmDUbSM7Ga1KSKspw== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 19:29:27.9454 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0768 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wendy Liang Add resource table handler to handle fw_rsc_rproc_mem entry. Signed-off-by: Wendy Liang Signed-off-by: Michal Simek --- drivers/remoteproc/remoteproc_core.c | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 3dabb20..0ffd9dc 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -720,6 +720,42 @@ static int rproc_handle_carveout(struct rproc *rproc, return ret; } +/** + * rproc_handle_rproc_mem() - handle remote processor memory + * @rproc: rproc handle + * @rsc: the resource entry + * @avail: size of available data (for image validation) + * + * This function will handle declare the remote procesor's memory + * as DMA memory of the remoteproc, and then, the host can use it + * as shared memory, e.g. vrings ahre shared buffers. + */ +static int rproc_handle_rproc_mem(struct rproc *rproc, + struct fw_rsc_rproc_mem *rsc, + int offset, int avail) +{ + struct device *dev = &rproc->dev; + int ret; + + if (sizeof(*rsc) > avail) { + dev_err(dev, "rproc_mem rsc is truncated\n"); + return -EINVAL; + } + + if (rsc->pa == FW_RSC_ADDR_ANY) { + dev_err(dev, "not able to declare rproc mem, pa is 0x%x\n", + rsc->pa); + return -EINVAL; + } + ret = dma_declare_coherent_memory(dev->parent, rsc->pa, + rsc->pa, rsc->len, DMA_MEMORY_MAP); + if (!ret) { + dev_err(dev, "failed to declare rproc mem as DMA mem.\n"); + return -ENOMEM; + } + return 0; +} + /* * A lookup table for resource handlers. The indices are defined in * enum fw_resource_type. @@ -729,6 +765,7 @@ static int rproc_handle_carveout(struct rproc *rproc, [RSC_DEVMEM] = (rproc_handle_resource_t)rproc_handle_devmem, [RSC_TRACE] = (rproc_handle_resource_t)rproc_handle_trace, [RSC_VDEV] = (rproc_handle_resource_t)rproc_handle_vdev, + [RSC_RPROC_MEM] = (rproc_handle_resource_t)rproc_handle_rproc_mem, }; /* handle firmware resource entries before booting the remote processor */