From patchwork Fri Mar 17 10:05:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Horia Geanta X-Patchwork-Id: 9630245 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 9D66E60249 for ; Fri, 17 Mar 2017 10:07:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74CB32856B for ; Fri, 17 Mar 2017 10:07:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6947E28512; Fri, 17 Mar 2017 10:07:24 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B025528512 for ; Fri, 17 Mar 2017 10:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P41RfeUOa9cQv5XZdjx11urMWSVlhRPKpLyWXXkuMsk=; b=Nw/rqOd2LEFaAi 3NPOaJO3tL4jMrJ9xRzpZs3oQlhtN5HzoZkNdsh9W/NXPEYvbI6UnQxAiSgt39fILudmrOyh7rC4y 6dg11qvFuVVApsyLJpLYxGqQh3KFyxZ3Y+zyFEwpZbsMIQl9G/ewF8U0DhUm1XnpTA3O7J/442uv3 jXDX28cD0sPERnKEFgX2ht57UV7Y7bN0cWFd5R688iiztovNMrxSJSQxFIcDbGownte2sxsKq2Z1q DQKfswXFzi5KY17LC7QxYD3hEJzcWvuuMF2MDLeRhUUHu0WYerWuftWcdq/OUeXrTYGZvq0Of5Zij iq0ag76Kadtg9BoDmwIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1coon4-0001bg-Ay; Fri, 17 Mar 2017 10:07:22 +0000 Received: from mail-cys01nam02on0061.outbound.protection.outlook.com ([104.47.37.61] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coomb-0001AM-QZ for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2017 10:06:56 +0000 Received: from BLUPR0301CA0019.namprd03.prod.outlook.com (10.162.113.157) by BY2PR03MB190.namprd03.prod.outlook.com (10.242.36.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.11; Fri, 17 Mar 2017 10:06:31 +0000 Received: from BL2FFO11FD023.protection.gbl (2a01:111:f400:7c09::182) by BLUPR0301CA0019.outlook.office365.com (2a01:111:e400:5259::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.11 via Frontend Transport; Fri, 17 Mar 2017 10:06:32 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD023.mail.protection.outlook.com (10.173.161.102) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.961.10 via Frontend Transport; Fri, 17 Mar 2017 10:06:31 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2HA6O4J014594; Fri, 17 Mar 2017 03:06:28 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , Scott Wood , Roy Pledge Subject: [PATCH 1/7] soc/qman: export volatile dequeue related structs Date: Fri, 17 Mar 2017 12:05:56 +0200 Message-ID: <20170317100602.2837-2-horia.geanta@nxp.com> X-Mailer: git-send-email 2.12.0.264.gd6db3f216544 In-Reply-To: <20170317100602.2837-1-horia.geanta@nxp.com> References: <20170317100602.2837-1-horia.geanta@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131342187915424621; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39450400003)(39860400002)(39840400002)(39380400002)(39850400002)(39410400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(4326008)(356003)(2870700001)(105606002)(53936002)(50986999)(5820100001)(106466001)(8676002)(76176999)(8936002)(47776003)(2950100002)(81166006)(38730400002)(189998001)(305945005)(36756003)(6666003)(23676002)(33646002)(5660300001)(6636002)(8656002)(54906002)(50226002)(85426001)(50466002)(1076002)(2906002)(86362001)(104016004)(77096006)(7416002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB190; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD023; 1:LKxmgeh+tIf/L+G+/Ca/vtdC/Yc1W0kGPS8+iL4/81Gpes12OrvnH+v6n1AaQKVQw9cPlaP2929Dz21rOhCEPjbGPvtf8wA4BrlKsa+EhNBQ8K4+IxrVoqEufprrnJM8SYRnNjMGvuRth2yrDYu2sEZ0JdJCcX3amPZCGNY9f880sor4Gu8AuumHfL1V7pfHcrr3Ut8yuutvZnIMEth/0LgfGsNfh2HVgmiGV8J7PWtaVT6EEu04QSUpS584WRbKGsQtYmkPSZpgGAoxOzL1/TOFo+QnDZi/fF9WnhThc7vzgSCsCCMaLho2S/G1nRQabiwI2CWySxz0ML2XGmqNPR/bAoRvJin1vzJEEgpzPyB1jcXGArsW/UZQIwP5EGQyx3N95holVe71MxK9m7xOofhLAGp9PGrn+eoZELKluQCBF6UyolPVoxoKPeJ2iXrY4Y8cfeHQdkK4SHq3ssOWl/VfHjkoTjjq9K1rTXm6lqNXRF8gHaTVvqbhzTfbcHSboiL5jhi2Djy+s4wAylYz+Hk8iI5jrLGXzR7A5bfusdoDYUPriNa1rLQCHYQcrlivFk2gaMDPttJREbU5LJUP3K24rGW8LWST7lFFuMIPLZ/+cR9VCzzsmpntoJk8mdMDkZboin+R86Qp4Mbg7je50Bq5RSmjbFhSs/PLNOokt1VA9dIdArOlegB7zJB1fE8ul8q3bwK02FYXIOCwwgkmOQ== X-MS-Office365-Filtering-Correlation-Id: ace55e80-17fb-4c6b-b36d-08d46d1d492f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR03MB190; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB190; 3:9MOzruqSQ9FvZx34kZcRLfi7d59/F7RcA4/Odwz1EbeCRSiB18NFmHY4J2/v27H9L6VKbTCkiIzJ1VlKQ8AFXJVbv8ED1mtBh8Z+/3RrwTN0jjO+XjLNNMFluJPp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soft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(13015025)(13018025)(8121501046)(13017025)(13024025)(13023025)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123563025)(20161123561025)(20161123556025)(20161123559025); SRVR:BY2PR03MB190; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB190; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB190; 4:F7I5fnPKRy7LqpN+FGdxxiFKiBz2h4gpKE/T3pvC5BIGwfw/Bla9aN4t5rB4/WiD0aLMWhKhRq5lRs8yxsiZG7N8VeETAO2syDFVi3DLr3EF15KZ7qrZgwWI/7rPFXx5nIvxndmyyuUTT56PHzpEm5MRsfxSlePhMg0ZNzHhshmWh0e2+8XIzn4fS9vH73u4V2Da5H7Bojj/ZF24mm690xeCw6Xn8M7JFnMZqvNW8DD+I/SC6W343RHlRaR0hMaVp+IyWMSXrLYnlTIhB91CSEAi2OjhH+mK3ppqdW26G7lF1vF+fE2YAAodiQAmcbyDnfeTWvHghyWzHcGYtKoeDXESpRvCMEYjQ7PD8YQgsgTqmpZSKmc2rpJBE9oyln3eMf2Bwanc1LlC5WOj7/ogGEpvTWivAVTjTzj0ReWciJcRD3s9FmOsjTIOUe3uwsMt2OIssAxsukn2UXek3qbiJblDGYpsIVWuXBQP/IUwC2Nz7lLbhvszKYsLvyWCkeyxcaWoRr40NLWOnMj0rjhNqNlR0INDTy6cEfsX/iuoKiWgsCUI25AC6SVK1d0kY0Ee0ELlJToJmV7b3WKP2KjjdHIMNZVd/aoCkv6OfWi9V54eXo+dA2JSsT4OJ8lRRmL8N5nTZ+fah++xeGzjGtJ0DhKbPFghhv+5puCsanDJczGLKmQ2fP6SQZ0RluWfo4npJBogDSxHry6V8hrXMeLrUf1eFvbYtpKEINbyCp91Cq7NkFe40IXb4TSpIG8Qwke77x20wk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RzSt2g0S2F1YaM8/gNNYb8O5Pt/VAyxydis9UClHFiAo+VRpIsJtY7YpF4ovylLFXQwQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2017 10:06:31.3240 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB190 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170317_030654_185942_B39A62EF X-CRM114-Status: GOOD ( 15.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Claudiu Manoil , Cristian Stoica , Dan Douglass , linux-arm-kernel@lists.infradead.org, Vakul Garg , "David S. Miller" , Alexandru Porosanu , linux-crypto@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since qman_volatile_dequeue() is already exported, move the related structures into the public header too. Signed-off-by: Horia Geantă --- drivers/soc/fsl/qbman/qman_priv.h | 36 ------------------------------------ include/soc/fsl/qman.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/drivers/soc/fsl/qbman/qman_priv.h b/drivers/soc/fsl/qbman/qman_priv.h index 53685b59718e..64781eff6974 100644 --- a/drivers/soc/fsl/qbman/qman_priv.h +++ b/drivers/soc/fsl/qbman/qman_priv.h @@ -271,42 +271,6 @@ const struct qm_portal_config *qman_destroy_affine_portal(void); */ int qman_query_fq(struct qman_fq *fq, struct qm_fqd *fqd); -/* - * For qman_volatile_dequeue(); Choose one PRECEDENCE. EXACT is optional. Use - * NUMFRAMES(n) (6-bit) or NUMFRAMES_TILLEMPTY to fill in the frame-count. Use - * FQID(n) to fill in the frame queue ID. - */ -#define QM_VDQCR_PRECEDENCE_VDQCR 0x0 -#define QM_VDQCR_PRECEDENCE_SDQCR 0x80000000 -#define QM_VDQCR_EXACT 0x40000000 -#define QM_VDQCR_NUMFRAMES_MASK 0x3f000000 -#define QM_VDQCR_NUMFRAMES_SET(n) (((n) & 0x3f) << 24) -#define QM_VDQCR_NUMFRAMES_GET(n) (((n) >> 24) & 0x3f) -#define QM_VDQCR_NUMFRAMES_TILLEMPTY QM_VDQCR_NUMFRAMES_SET(0) - -#define QMAN_VOLATILE_FLAG_WAIT 0x00000001 /* wait if VDQCR is in use */ -#define QMAN_VOLATILE_FLAG_WAIT_INT 0x00000002 /* if wait, interruptible? */ -#define QMAN_VOLATILE_FLAG_FINISH 0x00000004 /* wait till VDQCR completes */ - -/* - * qman_volatile_dequeue - Issue a volatile dequeue command - * @fq: the frame queue object to dequeue from - * @flags: a bit-mask of QMAN_VOLATILE_FLAG_*** options - * @vdqcr: bit mask of QM_VDQCR_*** options, as per qm_dqrr_vdqcr_set() - * - * Attempts to lock access to the portal's VDQCR volatile dequeue functionality. - * The function will block and sleep if QMAN_VOLATILE_FLAG_WAIT is specified and - * the VDQCR is already in use, otherwise returns non-zero for failure. If - * QMAN_VOLATILE_FLAG_FINISH is specified, the function will only return once - * the VDQCR command has finished executing (ie. once the callback for the last - * DQRR entry resulting from the VDQCR command has been called). If not using - * the FINISH flag, completion can be determined either by detecting the - * presence of the QM_DQRR_STAT_UNSCHEDULED and QM_DQRR_STAT_DQCR_EXPIRED bits - * in the "stat" parameter passed to the FQ's dequeue callback, or by waiting - * for the QMAN_FQ_STATE_VDQCR bit to disappear. - */ -int qman_volatile_dequeue(struct qman_fq *fq, u32 flags, u32 vdqcr); - int qman_alloc_fq_table(u32 num_fqids); /* QMan s/w corenet portal, low-level i/face */ diff --git a/include/soc/fsl/qman.h b/include/soc/fsl/qman.h index 3d4df74a96de..4de1ffcc8982 100644 --- a/include/soc/fsl/qman.h +++ b/include/soc/fsl/qman.h @@ -791,6 +791,23 @@ struct qman_cgr { #define QMAN_INITFQ_FLAG_SCHED 0x00000001 /* schedule rather than park */ #define QMAN_INITFQ_FLAG_LOCAL 0x00000004 /* set dest portal */ +/* + * For qman_volatile_dequeue(); Choose one PRECEDENCE. EXACT is optional. Use + * NUMFRAMES(n) (6-bit) or NUMFRAMES_TILLEMPTY to fill in the frame-count. Use + * FQID(n) to fill in the frame queue ID. + */ +#define QM_VDQCR_PRECEDENCE_VDQCR 0x0 +#define QM_VDQCR_PRECEDENCE_SDQCR 0x80000000 +#define QM_VDQCR_EXACT 0x40000000 +#define QM_VDQCR_NUMFRAMES_MASK 0x3f000000 +#define QM_VDQCR_NUMFRAMES_SET(n) (((n) & 0x3f) << 24) +#define QM_VDQCR_NUMFRAMES_GET(n) (((n) >> 24) & 0x3f) +#define QM_VDQCR_NUMFRAMES_TILLEMPTY QM_VDQCR_NUMFRAMES_SET(0) + +#define QMAN_VOLATILE_FLAG_WAIT 0x00000001 /* wait if VDQCR is in use */ +#define QMAN_VOLATILE_FLAG_WAIT_INT 0x00000002 /* if wait, interruptible? */ +#define QMAN_VOLATILE_FLAG_FINISH 0x00000004 /* wait till VDQCR completes */ + /* Portal Management */ /** * qman_p_irqsource_add - add processing sources to be interrupt-driven @@ -963,6 +980,25 @@ int qman_retire_fq(struct qman_fq *fq, u32 *flags); */ int qman_oos_fq(struct qman_fq *fq); +/* + * qman_volatile_dequeue - Issue a volatile dequeue command + * @fq: the frame queue object to dequeue from + * @flags: a bit-mask of QMAN_VOLATILE_FLAG_*** options + * @vdqcr: bit mask of QM_VDQCR_*** options, as per qm_dqrr_vdqcr_set() + * + * Attempts to lock access to the portal's VDQCR volatile dequeue functionality. + * The function will block and sleep if QMAN_VOLATILE_FLAG_WAIT is specified and + * the VDQCR is already in use, otherwise returns non-zero for failure. If + * QMAN_VOLATILE_FLAG_FINISH is specified, the function will only return once + * the VDQCR command has finished executing (ie. once the callback for the last + * DQRR entry resulting from the VDQCR command has been called). If not using + * the FINISH flag, completion can be determined either by detecting the + * presence of the QM_DQRR_STAT_UNSCHEDULED and QM_DQRR_STAT_DQCR_EXPIRED bits + * in the "stat" parameter passed to the FQ's dequeue callback, or by waiting + * for the QMAN_FQ_STATE_VDQCR bit to disappear. + */ +int qman_volatile_dequeue(struct qman_fq *fq, u32 flags, u32 vdqcr); + /** * qman_enqueue - Enqueue a frame to a frame queue * @fq: the frame queue object to enqueue to