Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967035AbdCXTbi (ORCPT ); Fri, 24 Mar 2017 15:31:38 -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 ); Fri, 24 Mar 2017 15:30:10 -0400 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; From: Wendy Liang To: CC: , , "Wendy Liang" , Wendy Liang , Michal Simek 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:DM2PR0201MB0766; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0201MB0766;3:xcpUCaDo0l9cBJZZ8QUhuUFsDsL+iBtW8rBYvV3DPAP6Hh8vQ/AY0HPd9l4bz7hBkJ4rN3zdJk/e4OWyaEdfpOKBSJiyRPIJcnXCHjQfuK69KnwbbP5DWQMZGVyzP9OutvRIMg0vhRFypxiJT6s9o8CAghWPUNQ+l61yb6SZiwzPkclg6RL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h64=;20:FK8+kQjJXlMEbBnTsYfssJWTrmEvycX1QfDgsyG2i/WlbWY60utDqfABkTYC6CfoD/xE2Kg4kXCPECLm4cUlDnYqxkiDLYFAapH/EzWLS2PeAq6a+QBdGv6VStfYT6kpDSJbIucOl+nKy6LqXXqGJHIyM+99Kd3R3XdS0L0LhGeH4EOoegrQXwVp8j7/9aZvNurboar8l/OeKe2xPr93u+Dxd0mqnGd0QQpxiADnvgytggvOPmwL+JPxATTG3M7iDKGWRabiHBMk7DRWKOJ16/OYN8d0YAJE3fFsM9rdOsYKs7pUjkrmpgs6R5ZdQsgNIVG71aWsXTz2SZEGgDiK6SWX+wQGDXxkdomY1ItZeIO0foftjW8SDx2J4plE55ofKVpDEXLRl65/iFpM2q2p+f9tfVTHKiaV1sDT1hkfog99fHwtSTTGvMHBk3hfeOEB6VJr/HrYiXlmcISOyWuTCL9o1Utkk6LPgSaPNoAqNgz0QaLQinta46hGI993pHMK 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)(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-Exchange-Diagnostics: 1;DM2PR0201MB0766;4:RedJ9x6Os8kil4wkkfDPzQz1kTJO8qKJy+kC3d/iWY2kSBM+mRALpvYGWZPdqmbvPaE8T/UF+FFyIMRmOT99cqplSAr/BXzDNHfFRLs66tYgdiixbTbatA8WKpZmO0JkP+SXvsHEKvYq1UGQe+Q7qYgN3N2c3a1B5jLNbgNDQ7QIT+5Feh0gyzV0/aJ/d+4ybWv/2GVFZ2EI9H8LxFoHKJSraT/32aE4jWITrQa2PcKj/Fq+bg5RcDu+B2oJ9p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wDCUUtJPtC5gc8ZVp?= =?us-ascii?Q?/X/93G7HUfLmdS2vhEeybcbSlOe2Xb5O7lzpKeUawcXoPiaf1c/jTMF/RmUe?= =?us-ascii?Q?WdEbA/wzi717/CLZBAgo8bnLxemMY2M8A8B6HyfoRYvCp5DnortgWrlll4p1?= =?us-ascii?Q?9w2P+QocM6D8lu+W3Jd+sAmgL98xNp1gX+pMPgaoxmbSEinJ8HgqXKxGP9zX?= =?us-ascii?Q?Rrgl1jstIRaBqCZ1AbmcLanPuQPAr7n5/9a1+9teb2deEerMk2cv7s16aaE0?= =?us-ascii?Q?BCbNOm13fZUSyCY+9MRCuBdwBxA5wcSkH7uv7Z5xO5Dw/2Fgl870DAv/zmyq?= =?us-ascii?Q?QX1pDZRDko1MKUaRhx/xmKhNrRJ2odCo49FFUequG6HDl6TaNBciaAhyTpQV?= =?us-ascii?Q?Q4QBNDapJ7kZJBJNI8kGGueje67T7CsgAvy6ypLrfN1GtTjtdYbP6v3rWfSP?= =?us-ascii?Q?3b5NKrizMgagfHJFwEWg1O2SWRiE4dZSgxMQBnBwpMjxSvlMKx5fK7mv6OiG?= =?us-ascii?Q?5JywjtroTx99hA8TBDipkIHvgR5mEhV6f4x5d++tKc997pHjGfH2f4KHtGUY?= =?us-ascii?Q?RZjAowkutkMsbWcrRqMM5g1FacSNUbiwl6B49t1Q3+MS3+YPbSTnqatY3/7w?= =?us-ascii?Q?fWgecOi6dwxDMchoal46pFO8ENotWAkUcA4jLN3fnrNif0/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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 37 From: Wendy Liang Use rproc_virtio_notify() to notify vdev config changes. Signed-off-by: Wendy Liang Signed-off-by: Michal Simek --- drivers/remoteproc/remoteproc_virtio.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) { -- 1.9.1