Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967038AbdCXT3s (ORCPT ); Fri, 24 Mar 2017 15:29:48 -0400 Received: from mail-sn1nam02on0056.outbound.protection.outlook.com ([104.47.36.56]:31440 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935840AbdCXT3b (ORCPT ); Fri, 24 Mar 2017 15:29:31 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) 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; From: Wendy Liang To: CC: , , "Wendy Liang" Subject: [RFC LINUX PATCH 0/3] Allow remote to specify shared memory Date: Fri, 24 Mar 2017 12:22:13 -0700 Message-ID: <1490383336-23117-1-git-send-email-jliang@xilinx.com> X-Mailer: git-send-email 1.9.1 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.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39850400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(2351001)(6666003)(33646002)(6916009)(2906002)(305945005)(9786002)(189998001)(48376002)(50466002)(356003)(106466001)(50986999)(4326008)(8676002)(81166006)(36756003)(54906002)(47776003)(77096006)(107886003)(38730400002)(110136004)(50226002)(5660300001)(8936002)(36386004)(5003940100001)(107986001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0201MB0713;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT026;1:mF7lTM5m7I35bbLljfGbDN7f6H3vEuZBNZEj+Oiu7/6U13RNAHdsfXcrPCT6XhiSDsbJypdAcu0qhZvWMGMlodMHPaLJ5RVCUoaDv7j070gNseH7cJe8bu2AYYcuWcVRgXILGmkagSv95y4Fv/u5Po0y22JhgySaql7OaqNApyDmgiXe0pMNFxpOieCjT6Hjv+o9lsEZf29fmNVHO8EkKcBbng0c0MKymkbccWYat8250lrKTDlyNF1vX3lvPshUWMUT/EAi3Dj25Iv8JGv+3cpYSD0ZweduJg31NqWLHCPMUdxpKcTblE8rnfcd5CwYAgnmydKyChZD8txiKnWtv1vdNIRADOw4IBHDnojIWce5XVb2GqLq/H3YfMasAJJ9UwZAH9IJ1i4Q/fwn9f1ySrSIz7BVmQIonshInBaxIvSxl/fea2UtrA/NgYb3G65ztFhHfSZcPalOlGyczbzyBiLST1yGWtH0W22KbZX2CP12pqV9+kfYyuUYmaJy9pcGW6IGMegfyNDMTGsDB2cTA3VbiUD8xAVP+u1G12yOHfMlCml9oV9ftS6XuxhH9slmd/qLdAd8x7xtLeCwR4OIUQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b18a75a2-125b-4882-5686-08d472ec1613 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002)(2017030254075);SRVR:CY1PR0201MB0713; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0713;3:sRx5K3/RNtQ3A6Fnhm3aeuvtxKDHB77pkpr7KRVYG6Wt1akjcbaCTdihFOmUMwZcVm1dZPiSx/KX6FdrxYO/7RarzEgEkNqY2N/MKhNEbLQTUtLfq9ctp8a2dGlQf3z7xqWNs5hKvDxC4j+aH5FE0gVVd5ZC91c8+UIAL0F8SrtJjne03IagaaqqMtLtZONWNAemllAmRwbe7UT+BDMVA8aZX6x9wn7xKM/zF88bVCGrWDDruDrxeHDoTV5YnENDK0gzg1DWMyqYcbYmnuVgChdyw428cvA2fxG0CtA1HC94XRn3/Rlrz4LhRXwdl/kd0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5dqVzb9Vd6TV/tKvanzIeu6T5lCDuC7/RGKh/LhGZ88IBNs82arENHHPgxFmmckWzUZjwHmlRmLK72zdb1ml12dTN9EEP6dzAVtd2FtLsM9SNPLh3PYOriMWjMEByMSKWdg6GLIW2swxlLAY/qAsnQlQW7IK5Q+ISVNUcVUjZvu/jqkarXeRl4EI28Rp8HRbWCNqdGAP85/oT1UVzq3O05Iy2maGDsY+YsHYtQOs93w+Ji4pwRON3Q9dBLk0xtI65nSp6B/M7RIe8JimasCYkPXgGHAetWt9DwfbOu7iTA5ktwEfBkV/P41WnEaE6S X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(13024025)(13017025)(5005006)(13015025)(13018025)(13023025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(20161123558025)(6072148);SRVR:CY1PR0201MB0713;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0201MB0713; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0713;4:FEwFT5F1tmfhtHT7QYMxHFPb+pJhoUWIsfSQevqsVQ/Qd+hO5F20UIa56NaMzqRdEh7w2UhFh1VCVx4QRkSTUsKPjg4lI2XTYyZGgOcGQTbG3XW1adCoIomlhiWBbFLTZ9z1LggY3OUnBz/9/l1DxQiqVO8fdilg7ahEr3NV1D1WA/5SZUDnYVwDfL/5ugHGS/fVISAzyK2LOpn1YEPgHSg5BUW4B4wlfwsNn7N+7gboK7DAw7BMw6C1bV84b5nXBd+C2OAma8cpYssMoiir0/ZHE71T5YOtLuiQd+1NWvvVZhhC/2YXYQD90j3pqzf8h+S9uSR8/xNLwpbzsxrFafCC/6X8tHy2oZ3og9jrp+xdaQaIwJNah5fy8+y3qyLjfUheZbPKIYwwMKB1D3KMzkk52f1cL3z79vpEzFqEA7N+NJnSZ10yoM/Jtlw73KDvMExo7TofITcNykM1PlAmnwEfZfdWGmGPsux7UTqS4ZDWwZWsFkx+77QftTx9uk1hHLxXh5UrC0QdIZcir0J4Rziz4mntFLzsQJesSEJ8Ce6fSyq3W6DfoRAdBFwSo7KRCecYILreboOhcw9zRIZFGDrT96o5wtAZFKOfhBROduGFdRn2hEr1xk2ti4nbpLPsUswlzxuNDAOiMvqdOKK02+N6wvHm3Wnm5LNsISxs8hgm62RweWa886hPjynQn/G6SiY5zksCfAQnXF5eXmTwzg== X-Forefront-PRVS: 0256C18696 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0201MB0713;23:F6K1f7naBM7O4N4vb2bfekFbu7uO5de4GK4cDyg?= =?us-ascii?Q?GCQN6me6B/gvljdI8BQDsDyLwlIOsoDQeYEn+D43t86G94npHoehMS9ASGDC?= =?us-ascii?Q?Iev5abos7VyJsSM7rXgeWW294bL5Yxj4/8tdWShStbSMJgK2rBYTYOBBRzLr?= =?us-ascii?Q?OOMxjdqv5bLCjvna/EPSSJrbKBcvqf7N9tZ1mKBlxnWeS1V2L1TCVToT/qLV?= =?us-ascii?Q?BZLfKU5+t5O30H7rRlWXROWC4HrBmPwI4rCYDllwKGIduTQUxYfH64HeQKZR?= =?us-ascii?Q?x2axnbt5T0+FxhomS9HJksST3Zbstfl5u2z3yWMBGyYuBkQ/250vlng/DGG0?= =?us-ascii?Q?LRIVF4JgS4Smpb+lr3ui1p1k7ecS08qAnDjjwetpZ6H+rRgKnLCJSJgH3UvT?= =?us-ascii?Q?5Jskq17B6q6AwAggIk89D3qgfn8P5MlvHbkB7oo0luNuz/RwZFNKLhcAMSBK?= =?us-ascii?Q?/5227yr3qRV3i4npmmUjB7Foi9+pyyrTq4Y2ypQzrHKvuwqxzMnaPg5PjpWc?= =?us-ascii?Q?1ix24HAMNw8mNgRIYF5Xqt/GdGJ+Jn4UzRQxgY9OLu8xBr9wyEnINK/YS4eJ?= =?us-ascii?Q?HcMdv3/+Rt0PnOvKDjzRhDn4x58Oo7fU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M7Z2eyprv7k3bXSdXhXm0xHFrn+HodypUpQlfwBOqnQ6RhCLwx6P0p7DipUbxAdUOKBJFRSyb5WJ0hu9tdh9BzLEjThidjSc5eQ==;24:UC7qYkIbHoqJdcKJD3Zk9Aypb9gLYp8aDnUxnduZAMTF1pJN95XKqpYdjcau64f9bCb3bjPzioYd5Q9F6dnva2Ug/yQuayTHP/yOgOT8d/4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0201MB0713;7:l6FZrv5I5JditS/sPLBjzCHETnJozbG36X5qkdsEkzMD8KdK/WWH1jOPtUTZvb7Jkx6M5SMcDxl9v0AmHjJH60FEToi6CnrebEHFbDwCpRFlcndldB21R+6MIByybnK3NAXXhr6flK5hJBvoIGxvWXlmO9D0H+7HZB+Zpx/98JmnmSZwg3YCADl06RDwQb7QOdlmneNj7xXdUhm7cN+CxwRyGVOg0MOU4FSSJcu5YjxYZvYAyoQ63I5WqwLW9hVLlvNFbNb7vzs1gjIE1tB5WvtHjpBtkyy59aYowDCSPFcBm5fh/RFBsoBUw8WtUAJkUNYr6sEWhGDd9zHIvsAZ+Q== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 19:29:27.1796 (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.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB0713 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 531 Lines: 15 This patch enables the remoteproc to specify the shared memory. Remoteproc declared this memory as DMA memory. It can be used for virtio, or shared buffers. Wendy Liang (3): remoteproc: add rproc mem resource entry remoteproc: add rproc_mem resource entry handler remoteproc: Release DMA declare mem when cleanup rsc drivers/remoteproc/remoteproc_core.c | 40 ++++++++++++++++++++++++++++++++++++ include/linux/remoteproc.h | 23 ++++++++++++++++++++- 2 files changed, 62 insertions(+), 1 deletion(-) -- 1.9.1