Message ID | 1490383355-23176-17-git-send-email-jliang@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-remoteproc-owner@kernel.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 1342960328 for <patchwork-linux-remoteproc@patchwork.kernel.org>; Fri, 24 Mar 2017 19:31:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00A6B27F07 for <patchwork-linux-remoteproc@patchwork.kernel.org>; Fri, 24 Mar 2017 19:31:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E982027F17; Fri, 24 Mar 2017 19:31:23 +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 8CB7527D45 for <patchwork-linux-remoteproc@patchwork.kernel.org>; Fri, 24 Mar 2017 19:31:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967125AbdCXTbO (ORCPT <rfc822;patchwork-linux-remoteproc@patchwork.kernel.org>); Fri, 24 Mar 2017 15:31:14 -0400 Received: from mail-co1nam03on0069.outbound.protection.outlook.com ([104.47.40.69]:13440 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967074AbdCXTaK (ORCPT <rfc822; linux-remoteproc@vger.kernel.org>); Fri, 24 Mar 2017 15:30:10 -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=dEaRF1lUV6SBILmwnH8ukfyA0ufCmmbrNAzm0AsIzOE=; b=eAweVbfBRWat0XwRKu9NHpRA1TMnNI6lO1854XxQ0QAyeD2BhZcsvn4JqkP4yjDJZYJgjcdC3sTLjE1BWIlfWS72sz1WIIdcJzvYCkTXMibjrgD8TTtpJh0B8iVMGZ84nIxIAxntYFEa53M7MYshgtBm8o2dZlcgI4wrQzNZdm0= Received: from BLUPR0201CA0011.namprd02.prod.outlook.com (10.163.116.21) by DM2PR0201MB0766.namprd02.prod.outlook.com (10.160.95.12) 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:30:00 +0000 Received: from SN1NAM02FT055.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::204) by BLUPR0201CA0011.outlook.office365.com (2a01:111:e400:52e7::21) 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:59 +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 SN1NAM02FT055.mail.protection.outlook.com (10.152.72.174) 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:59 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:55467 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <wendy.liang@xilinx.com>) id 1crUuM-0002b1-O7; Fri, 24 Mar 2017 12:29:58 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <wendy.liang@xilinx.com>) id 1crUuM-0002mW-Jt; Fri, 24 Mar 2017 12:29:58 -0700 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v2OJTocK010481; Fri, 24 Mar 2017 12:29:51 -0700 Received: from [172.19.2.167] (helo=xsjjliang50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <wendy.liang@xilinx.com>) id 1crUuE-0002jg-Tv; Fri, 24 Mar 2017 12:29:50 -0700 From: Wendy Liang <wendy.liang@xilinx.com> To: <bjorn.andersson@linaro.org> CC: <linux-remoteproc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, "Wendy Liang" <wendy.liang@xilinx.com>, Wendy Liang <jliang@xilinx.com>, Michal Simek <michal.simek@xilinx.com> Subject: [RFC LINUX PATCH 16/19] remoteproc: virtio: use rproc_virtio_notify() to notify vdev changes Date: Fri, 24 Mar 2017 12:22:32 -0700 Message-ID: <1490383355-23176-17-git-send-email-jliang@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490383355-23176-1-git-send-email-jliang@xilinx.com> References: <1490383355-23176-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)(39860400002)(39410400002)(39840400002)(39850400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(106466001)(47776003)(2351001)(50986999)(2906002)(6666003)(2950100002)(6916009)(36756003)(54906002)(107886003)(77096006)(4326008)(33646002)(76176999)(38730400002)(305945005)(356003)(50466002)(50226002)(48376002)(5660300001)(110136004)(9786002)(5003940100001)(189998001)(81166006)(8936002)(36386004)(8676002)(107986001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0766; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT055; 1:+1jXw6e6UScAq4S85LInPoeOlxx+PSm/JUGQUkE4Jh+ftdzlID/ESRmSidkXwthNcLt433Tiku2M3hJaCAHqy7p5G+3ZxdkXW/wagPFD2njUYDISf9y59Us0J7ujZYE0+GM7O1Fm1VSh/llMLdl6xsdtKDzaAJxqYhL8i65++3gr2F4a8CmrSJqMuw58YrOTwIebwlKLsVRiUiY5WaUFcJraKpgfN/LjIFf5cwINOMDjRcLvMdHhXEiv3/ZKpgnZYO+JngHntO+Xp8Q+uQjIKwEghDoGDGJq7DWaF0o/Cf+P8v61PzI131MWs8g+QD/4Hgtv4otc2tMpScMmDBTXdsBVRjnMB2xYi36nn5+2JE5QG/yCDorysqt/5nRg0mh1QRbtzhZJwBwu65mV7OXgj+dPxkXbFYF2mgDa8KVLR3EsdkAp57cmu5HZ7kqdB62WYS8FMIfFDZ7mjeXik08+NuYWI0+bu4a7LlDqiAPLGBi3Z8dP+sAhOnMDgdVEfI5Y7qU02DvBx5xfwX3czZ4UnsE01tRD6LTw5rD9Dn4rK4OfgM0xwqW6QJ0sAdOBdLYl5/EF4XGkTu0rbYwkRqpPbA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 619f6db6-bf4d-4cb7-ee2a-08d472ec291a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075); SRVR:DM2PR0201MB0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u4Tdc6l+m+AeHS6Np1kgtNcWXZS42HtmgebqND37LULfDIpNdMWwH1qGctE1jO8JvAl9SGjezPU/PNzv17cWkysNhn9jyqynQJcZpmuBI81zCd7jO218TDS9GlWDXbYanb05lRaasu0Nq8Hy0X7xvbPMVXPmr9/qU21DsENjNeMhNNbW94sf5DWZWxvKuKvNsK6STOGdrQmy5ApuWg3def8DM3EGPmBFkbw9AJ9GbZ5Vh64=; 20:FK8+kQjJXlMEbBnTsYfssJWTrmEvycX1QfDgsyG2i/WlbWY60utDqfABkTYC6CfoD/xE2Kg4kXCPECLm4cUlDnYqxkiDLYFAapH/EzWLS2PeAq6a+QBdGv6VStfYT6kpDSJbIucOl+nKy6LqXXqGJHIyM+99Kd3R3XdS0L0LhGeH4EOoegrQXwVp8j7/9aZvNurboar8l/OeKe2xPr93u+Dxd0mqnGd0QQpxiADnvgytggvOPmwL+JPxATTG3M7iDKGWRabiHBMk7DRWKOJ16/OYN8d0YAJE3fFsM9rdOsYKs7pUjkrmpgs6R5ZdQsgNIVG71aWsXTz2SZEGgDiK6SWX+wQGDXxkdomY1ItZeIO0foftjW8SDx2J4plE55ofKVpDEXLRl65/iFpM2q2p+f9tfVTHKiaV1sDT1hkfog99fHwtSTTGvMHBk3hfeOEB6VJr/HrYiXlmcISOyWuTCL9o1Utkk6LPgSaPNoAqNgz0QaLQinta46hGI993pHMK X-Microsoft-Antispam-PRVS: <DM2PR0201MB07662D8DEB2E7ABF815BA920B03E0@DM2PR0201MB0766.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13024025)(8121501046)(13015025)(13017025)(5005006)(13018025)(13023025)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123558025)(20161123562025)(6072148); SRVR:DM2PR0201MB0766; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0766; X-Microsoft-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46pFO8ENotWAkUcA4jLN3fnrNif0/eExA+vztLjwn/?= =?us-ascii?Q?4finHbvo/+oH+ckkQAjLhr4eDUiVk?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0766; 6:3l6BlyFwJbSIbjZh3RGctCxk4FTLLLpfT1eIRoHnklaheBqMbaH/VPFAYSrPEsCCRcWq+NLkWck71SjMdWwXFgl3niVB43P0RMQULtwIpc1kbXF7qsad+LSoeb+hNc+rXqmWiHSYPpWeaMxH/NTxoiScZhzdCgri94q+UOwOIoPVWz99fy0ZF9okPsCj+okAvS3EbY0rKW2blbDD40jADk2UVAK4uYzbLSmYwMoNmxFTlwq4PAvCQht/Nd3uSeY3lEXcLKa4DEc7EtCZVcXurXsbvASsEvKIrUZKKvbbL9jMA6wIVOroECjX07qQ5sZSyYzcTSmMNP+1xGrh1nO6YIla0UMWOT6uvOtKyycluhzzxHob2x+OHb0Oako12gyAZlaHhMCax2G4ytilvEVRXxL+pLsIa8IBvidz7cpv0rs=; 5:XBYEIhoWKjrrhNLkYbn7yKetjD+b58ZCeMdhFETe9dYerQW39zG6qlvbZgYkHaAUZ0/hGcDsHzICHGn4+o+Vonr76krwDTp9eSIeXcAH0Him7V5vdr37emdQNxtQD9GkeBQUSYlKc13G7ekfVfE9eg==; 24:Tr5FqA3BR0/+iTufU6ZThZqCbmIFGcwStLqHKB04sUQyyQQvpRJnzjvRDxC2IenWuxd8SW2j5Vxx6kk6e7cyT0LAjtqUonmUg7Q4o2QufuI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0766; 7:IuDwSjS6bG1Ged2moRsRSH93mZ5hivFwxBSnrzV1V8fqc6k/yRetloit7WGgAOqDLg4EIcYVPPj20RLAKcIYj+NOEcDTriNio0Evy30Q0s69yeMViZIT4686pUecYXOI3VlotowoHSqEOINSvDb3eT1tYp3KI9c/OIoGkCJtU0upXWs2dUKOgtfgH91fC4N/TmjTi95JxDD60XWpGtIlqGvXHG9YWGjNWcWGMxqGCM1uoOQceGBEZK1eTNyLK8sF4r7gKWESUTEm/jBCsQIAFUMefgzuXtMdFU7d25IFyXBPG2iIqsjQZZM/+OgbsM/LT22bFn6qvBN9nltZjqGoCg== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 19:29:59.1842 (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: DM2PR0201MB0766 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-remoteproc.vger.kernel.org> X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index cc421f3..d43e15b 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c @@ -29,6 +29,20 @@ #include "remoteproc_internal.h" +/* kick the remote processor, and let it know the virtio dev has update */ +static bool rproc_virtio_notify(struct rproc_vdev *rvdev) +{ + struct rproc *rproc; + struct fw_rsc_vdev *rsc; + + if (!rvdev) + return false; + rproc = rvdev->rproc; + rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; + rproc->ops->kick(rproc, rsc->notifyid); + return true; +} + /* kick the remote processor, and let it know which virtqueue to poke at */ static bool rproc_vq_notify(struct virtqueue *vq) {