Message ID | 1490383355-23176-2-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 C481760327 for <patchwork-linux-remoteproc@patchwork.kernel.org>; Fri, 24 Mar 2017 19:39:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B261427C0B for <patchwork-linux-remoteproc@patchwork.kernel.org>; Fri, 24 Mar 2017 19:39:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A751C27D16; Fri, 24 Mar 2017 19:39:04 +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 564A527F81 for <patchwork-linux-remoteproc@patchwork.kernel.org>; Fri, 24 Mar 2017 19:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967121AbdCXTbz (ORCPT <rfc822;patchwork-linux-remoteproc@patchwork.kernel.org>); Fri, 24 Mar 2017 15:31:55 -0400 Received: from mail-sn1nam02on0070.outbound.protection.outlook.com ([104.47.36.70]:56687 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967058AbdCXTaB (ORCPT <rfc822; linux-remoteproc@vger.kernel.org>); Fri, 24 Mar 2017 15:30:01 -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=gQ+a5/4qa4sk9QswLynSyjCpqOd0b7Kjr/Lp/LE5+80=; b=sb629qwvqnHodlm0dTrKEeVlIZ9924hFWgQ2pPBO6iWl9JW4POHttkHcZFrglUEAO0vPMnmF3f9bygv+ygo1oi1TLqUb70XzZOQaEeCFfw1vcXoajQXMrpr0EgGDQCN0XgCTrBYBev33GoN6QV+gNivSgcdm1eAN0Bj14gF/uPg= Received: from BY1PR0201CA0011.namprd02.prod.outlook.com (10.160.191.149) by BY2PR0201MB0710.namprd02.prod.outlook.com (10.160.124.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Fri, 24 Mar 2017 19:29:48 +0000 Received: from CY1NAM02FT011.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::206) by BY1PR0201CA0011.outlook.office365.com (2a01:111:e400:4814::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:48 +0000 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; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT011.mail.protection.outlook.com (10.152.75.156) 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:48 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <wendy.liang@xilinx.com>) id 1crUuB-0006Ij-Dc; Fri, 24 Mar 2017 12:29:47 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <wendy.liang@xilinx.com>) id 1crUuB-0002kt-9K; Fri, 24 Mar 2017 12:29:47 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v2OJTeJb022917; Fri, 24 Mar 2017 12:29:40 -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 1crUu4-0002jg-7E; Fri, 24 Mar 2017 12:29:40 -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 01/19] remoteproc: Add is_runinng to remoteproc ops Date: Fri, 24 Mar 2017 12:22:17 -0700 Message-ID: <1490383355-23176-2-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.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39450400003)(39840400002)(39860400002)(39410400002)(2980300002)(438002)(189002)(199003)(9170700003)(5003940100001)(305945005)(48376002)(9786002)(5660300001)(189998001)(81166006)(47776003)(8676002)(50466002)(356003)(4326008)(50226002)(6666003)(6916009)(2950100002)(50986999)(76176999)(110136004)(38730400002)(8936002)(107886003)(2351001)(106466001)(36756003)(77096006)(36386004)(54906002)(33646002)(2906002)(107986001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB0710; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT011; 1:GSpxh9ynNZiZZSxdqMhkPfGh4fArMlvGqgNMjCYNJc9xY726WaVluPzvuwXqQuR+hPStrO7dQHC3vjr/DWqVosBNJ9Qmlu4YiLJ9WMY1fE6kVc9MqdNDCi1kDFen8GXxbFRNrifjp/2g9aN5hXjiBhTTOJfwQ0yxI4aBn+D0NApuVY1kPYaVLIZf2VoEazNP2obqyoZx3PONhLX1yH3f9cvjUnBq6k1Z5IywjaUSlOD1I8V8lAkIPDQ9bmjKcX4y6IsAaQq2b1Q49xFFte+8zqsdrgQtL2hLHVLrfRWJ2dtx+PBFFs2xuVap1dxv2ivxmHKA45NxLTNfmU0fr04na3PaGmz3jvun/bNZ8chyQWDFTdWgcXqD0/xpyWQyhy/Rd+aJTJ9KLU2R81mkadoKg1kK+qcWXnFVOGBzBqqCrH3cymM9vcHSsbyACUxnVQfeTb4ZPlXpsIcX529Xmjqdk6P/jjQXzGNfC+AL1s+jN7kCz/Kzd996DHAfGGIlp6EEhwcAw2huxdBriyAlMJxPEZVJch4TH2FkBuE9Rc2NIUBxtwqnUjpan32hSlplvK3QFvn0f7HD7Q6rVmpniSHQYw== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7f84417e-2666-41f8-395c-08d472ec2288 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075); SRVR:BY2PR0201MB0710; X-Microsoft-Exchange-Diag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ldns2J038AtPwHQSmoVmpvXyoX/8oiaY0VCGZNlHe6qv0R1oqoTsI35QouI3MNJo67KyllXhntjEkNPa2WdhapAhkgHKDvECv9ewc0OLSv2zhfNn9CaYiQzF0AtNgDUWFgdbi/2uSC9Y+PlphaQZO8ZxFzyCYXiw2BW46w==; 20:pwnCEaLE80JjmFvm2jlQtt7jnbut60cxtEMH4nNMsRSPGYWpfaeshH/qWEHiT4pJSyWG4p0Og+KmKv/fq5T5FKZ3WcqcSuPGJkYv0NI7d7wEQdxjygnn6QgRdoLN2vnNOGOwXG58dnpGcF4IZ1ESxXs9IhKzQIc0q98DY7CpFH7k+eIHWmFwLlChuAPAOX6S6nw1X7aVDULXRC3/xrZAhonlzcTtRv82fU0T8L97PkoeugFHOdmu6dKnSIXFAQuveBaqVTsxkal1/p6I+SAw331dR0gf7k2hrP2Mp9LBBehSsvppvhsCTO484LPznbhVOze7BOGJQ85yRpUjNN8yqDU7RZQBiFvZ5AJSL1q+st2ZA4kdtZF3tkkACU4aTal1//E9Dkp4bymAfNWLz4eUSt/4Ovn8c3ytvJ+RdAGPXglIADqYLEIaenObNZwOKSW1cGgcDCQ/0+BxZjzcM22aTRjJ16Q4lVs/Tite+VuoyANXC2MGsubZT7pNQzEOAwd3 X-Microsoft-Antispam-PRVS: <BY2PR0201MB07107208B8AB47343B373177B03E0@BY2PR0201MB0710.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)(13018025)(13023025)(13015025)(5005006)(8121501046)(13017025)(13024025)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123558025)(20161123555025)(6072148); SRVR:BY2PR0201MB0710; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB0710; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0710; 4:GBvqDrdv2BnD4I30c0M2xKpdHsYIYYPKoR/H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IuBYi18bkSS5lQVMaHKtTuFg6D4?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0710; 6:HMtti8d6kE4Cx4wkIoGumvQMg+NguvPzW2ZpcVdu1f+nSd2vI+GbTaVo1YOrv3k/tyP+5CKkLgB1Nsup/y1DLd2JTmN7Jm5o2RbMi07glJABSVBmGHo0ytQfiJ9ZfDFjtAwn+1GY1jxssHDj1ICcloxP4QK+onJYHHwAmz2G6N3l8+dLBYoogXOQZCu5xiA96/t3iEKfSeWxuN7C9P5U/LI8WxmXB1FMBkSKTQS9nTe8gWcwWgxfcB0Dz/omcfDlVsPEHIZWHaNuScKgTys8P8pdO1PORFZegnVGedSrGZOEAQ5SboFfA9tThb5PnMd1KzmW84dHE4ppwZG4gje9a9PrSZhSEM9UNEr4XV3EiwwEwi883uy1Nwr8GpLAvGr86fUuafsP0F134/zDgOJd0hUk/lRVHKm5rlA756KMCAo=; 5:fIuNqBerPX45IR1UtzkmJcV0vRajGBMRHoHDUBwJGJaxYQdb2etXm6RERfcW9+d/0whsLAE6b3/Qv45vL+Vda6Xp1Ci7hfuQM9pjdoK4hB6CRexfTEhL1MU3dnq5eVqXfy7uSqca/OfetVjZ6I9OFw==; 24:hzy7W3xxe5XF3gXzFi0jD92MBKB64422LAcR1S3y03VHZtD7VQPAfyrL8FjvBO8IBIDuK5GYp1HVGwNtA7P8Ra1ewWLGrtzvheKvhmIZvJo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0710; 7:5DF/QRWKw/T2hasXXQWVkmj7XPOH8CB7O9sGAF+oNGsB9oht1QjLX46zEZaRgYGLUujWGXsbkIaVt0AwHXz1IYhbGfjfZ38pHKt/vxN4q3deVt4fLclMLSF9mk52oy9d5sGfMgo0etjt5d0lHsdukgNsB03XM6ADIT1Vu1ikCwaQ0RXy0b1Ey6PBDrTq0XORRawE10ZkOUMT+XMebELfPV7zHIKZ36oudnVV9Ns1TEDrmeBiB+gA1KEYJWhFPn/sAMy7ByqLPgCFypxNMg4hb2OtLkjahV5rirqLiW/whuSKNs27eYYWslVqmGyqQxhCQvkqSR/aE9At5B/FcAH/IA== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 19:29:48.0627 (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: BY2PR0201MB0710 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/include/linux/remoteproc.h b/include/linux/remoteproc.h index 799f041..5eec892 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -352,12 +352,14 @@ struct rproc_mem_entry { * @stop: power off the device * @kick: kick a virtqueue (virtqueue id given as a parameter) * @da_to_va: optional platform hook to perform address translations + * @is_running: check if the remote is running */ struct rproc_ops { int (*start)(struct rproc *rproc); int (*stop)(struct rproc *rproc); void (*kick)(struct rproc *rproc, int vqid); void * (*da_to_va)(struct rproc *rproc, u64 da, int len); + bool (*is_running)(struct rproc *rproc); }; /**