From patchwork Fri Mar 3 14:52:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Horia Geanta X-Patchwork-Id: 9602987 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 AE6106016C for ; Fri, 3 Mar 2017 14:53:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FD6F2854F for ; Fri, 3 Mar 2017 14:53:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9334628591; Fri, 3 Mar 2017 14:53:48 +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 F38B72854F for ; Fri, 3 Mar 2017 14:53:47 +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=+quJuwydVsdHt/yBaCRT4TJZNYfZ8mCKEj7wCw8z96A=; b=mDOv3YthF8oWTK hPuIjgzGl2xnldgNMKDC7kOEaBB+f3IoVmhr2IYFoI7uwcUSZadCN14pj3nlatzvbZIlam3rxqiu2 2ldnGwbIOLqqV3u1Ewg6I/X/dQqGgJDGGIn3zUia/AOCz2kmzeoCQPY+uJeKRG2JP6ZQV3OLWm5+3 y9B6+G2J18Bg8A4vCr5WrQnjhaFJhd86c6Gv0LxPyDF7PPKjmphjo1Mb79jtutgrBGSMlNclmfaRx TDmPzT78X6ajPVKoHGLVskWyhfqt+CJU2ka4QYOdEU+ci4Uze32y0+4sS0HtIspR73zbA8V31FCpv tITWiSuzKegZqa07vljQ==; 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 1cjoaV-0000JU-F2; Fri, 03 Mar 2017 14:53:43 +0000 Received: from mail-by2nam03on0085.outbound.protection.outlook.com ([104.47.42.85] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjoZz-0008PB-BW for linux-arm-kernel@lists.infradead.org; Fri, 03 Mar 2017 14:53:13 +0000 Received: from BY2PR03CA044.namprd03.prod.outlook.com (10.141.249.17) by BN1PR0301MB0724.namprd03.prod.outlook.com (10.160.78.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 14:52:50 +0000 Received: from BL2FFO11FD055.protection.gbl (2a01:111:f400:7c09::122) by BY2PR03CA044.outlook.office365.com (2a01:111:e400:2c5d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12 via Frontend Transport; Fri, 3 Mar 2017 14:52:49 +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 BL2FFO11FD055.mail.protection.outlook.com (10.173.161.183) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.933.11 via Frontend Transport; Fri, 3 Mar 2017 14:52:49 +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 v23EqdQQ018743; Fri, 3 Mar 2017 07:52:46 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu , Scott Wood , Roy Pledge Subject: [RFC 1/7] soc/qman: export volatile dequeue related structs Date: Fri, 3 Mar 2017 16:52:07 +0200 Message-ID: <1488552733-20806-2-git-send-email-horia.geanta@nxp.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1488552733-20806-1-git-send-email-horia.geanta@nxp.com> References: <1488552733-20806-1-git-send-email-horia.geanta@nxp.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131330263694257099; (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)(7916002)(39410400002)(39400400002)(39840400002)(39850400002)(39380400002)(39860400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(47776003)(85426001)(54906002)(189998001)(2870700001)(626004)(2950100002)(5660300001)(305945005)(50466002)(6636002)(8656002)(8676002)(356003)(77096006)(6666003)(7416002)(104016004)(53936002)(4326008)(105606002)(106466001)(23676002)(38730400002)(36756003)(5820100001)(33646002)(2906002)(76176999)(81166006)(50226002)(50986999)(92566002)(86362001)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0724; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD055; 1:Vj4qMRTmHEAS2Ap2lyaiEujyxPt5uyIf5VaiEyNDbB5b1fKVaqu8Jw42xb3JMps5kB2Ig3hYlcV7OO80wfjlCQR+caLGrYWqTZ9N5OyP90BlYOV3Wxhfo3go7oBGYPEfiBZXxcycUBcLeegW7Dml6A5fAwV9v7zJw5PdLL40XMvKe6QKXbCYqKha5yyScid3xfbcYP+RzgHZFtvji9eOKL7HkLp6gDfazkr30vYOlvodW50UslaJIu7LpCrd4zFVDVmPz8bsjJGvdA91pcdbsnI8L6w2P21dQ9Pt3mJabqSmHHDCFss7H6D+0Jn+ZRt4mZDLxsJEbMe3z/oU+4qKQlBHf67qg+zXHhzQFXTcke2dt7TlowH2ER/Jn3nNSJm/ATGgQnK/rozCwrSAVbxyYjv0ebjjDl3+VOukrcBHSiuFi6LpjD8xa0VhfYP2vFAh+XNJYcde3JYiEvppHvW1hk5Z8P/942XtjPQw8l1fM+UKnHDQ4qENHkFAkFPR8R+ojiqnpNB31DU9GOPnST7eENwW9EOM/HgszX24UbK4QXIjv4Ey7pxwhevtH/I0EqPsVJimfxvqyak22TyMTPOiMHqSyrHh62bJ3MH9uYcUTPYmWZOgbzMJkBUWsAAkqCqmMpfZPksm98kytw3H2K1oTklM2dcdbGZpyMBCSt7FWGZ4WWNAc6DiloXfhS6nRLAx5YaidkbgrgMd4H5s3O7eng== X-MS-Office365-Filtering-Correlation-Id: 2801df94-f3ef-4b63-ca6f-08d46244f635 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN1PR0301MB0724; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0724; 3:QTQrReZOHSbAM7uJ1aEIJbMKN419UWPsX4jUoQIa7TqTJ2zSrWuiEwaT2IPcp/uCUXro4JCZbY+eczGyeczs+FTn+shh3C/C/8xCLwyl1mH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A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(5005006)(13017025)(13015025)(13023025)(13024025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123556025)(20161123565025)(20161123563025)(20161123559025)(20161123561025); SRVR:BN1PR0301MB0724; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0724; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0724; 4:MGqKPlQU50xqh/5ahjo4u95YjE9b9c62iUp6saXMNeOPurRjuGHyetbQEJq6LAQtM2sLP6eF29PswsUs8FxmWCUycporQi62iE286Ppz/xPLHCm/8YXJWqaXft4Fspu7r7MSOrSEUPZr+Ks0R8OyJ9i9qWZ6q5bzq69qP3PAjU6ftv6CrVGbf8aew9uijheC8gVEYlvqRzm0M0j5KwPguOIaIj0QW1NyR8XztYvtBjORedPZX+zBjHJxBd1qGMi43wutTOGlO2moGBgyOtX1fjnb++0IKmLQICy/F8Tu4JbmMzAS+2uUsMgk/ul153Hr9Pg5Rr9cfVsj78Hw2Jl4WhmtChki+Qy2ABgfG+L5M+1jjPPLNBeRcBdXW1cpdbCk8plHPdLQ9Bri9JOagMk4YJbkFrR+A+n8FMU38473Nnv3eFv8l/JocrGCK904WxXg6v4tb2D0zdMGz450eP8NJbNdBes/F82iWMpcOOukCQ4TdaYRzoBcyqKcdfJMWBk7qtyVxYuoG779YPwxksGSLxYU6U4cmYVigQIbbSH7rx3T/mXTjE+XptQOlm/X7UM7veMoHU/1cIZiVuh5lVh0payVwP5/pTv0k79VUMy02sexnlb8hHKN1A3uQOVElFu2BQS/AC9PD1dYzFUE05mfrJXQ3qhAyj0IbPJTIOTUVtVFAHigsO3neU9MwySLm+5NYAT9BhRzBG2yKy4m8NxXocaldjqzaIjC75mCV0kB47SHm4txgdW8dDQ/MS87pO41v73WbV616Mk+XzGt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Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0724; 6:PqeEUpm0t+a1si69BH5J0ioPzTxABq4yGJcl0ijtzWdYLjO6yDHBwt3Xp5pZrUBBgG5xCVATpYVNDUMLDehNXq4pNOaVpVNb6QZTOoRdSM59l7rfiw1qZO6fQdUxjUykLKh4wKTJx0rf0ohJ+XBSaxIgTM1TlEAZGOhfevwvncPV+k2c7hRBnC2XNYLVCfR0ltoULcxK8Ez25KBcKlmKRGHHnc2qLZZCsiDNqFX8Bn1R7PaQzunFWFOjTu7DPMkJRBGkWc4/bhRcfiKgrKw3aY2hmL49jrAaknoR5W3ve1cx6KF2e/Sx2AFG9BpZ2XX04gHuSrz4Lp9asNYAJl/9S93IH3UR3oi/F/xFK0OScWqg0isPsAa8B5bWHYwzt8B88vaZ1xPAY1a1YTzacIdMys1NWln2TExWBMKrBRhl8PA=; 5:WIk0iEAd+E2j/BxDkiYuIF4qKGHcszsJzw6svcDuq16LEfJSSYpDIl4Ew8T3eRwpquwb7cY0XJAU5ck3hngiDtqd3wJ/PQmUVQDWVb4kKxZ4lAGnj6CIJuVHAAHkDKpI+41+b3hZTkwLkQTd5GwaEHQyDljYEFW7p744nX2o9rM3hxc2uo+gY0fH0PwJsfGN; 24:ehL1Diu5UT8N5gl/YTb/DFU5aC/ztuXhKgqHT5Ym59l4QkrgrA/blEGiz9e7T1YApfcNQrKDopXH+/BUond8RDItj8501I4n6kU1sY19kFA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0724; 7:F10nZFUK138ZpyjkLIaaU4Iv+u6rFAwlKwlJpUTOFFFSyJb5Won0pbIQPqFQZpCSYeAYuNi5Zh/EN2WMkhHApajJp+d98pFAdXULn06DOen6W7N05GtuSIj8bhmQZzkuSDNk221TafKp7udnFl01utIfwAjCnPrR5CA5qvKk0Mk35pVrR1y/9UgFGdLzTL3KJQknRlPCPOcnCnKuJKug4XE5FuwK0o//sStTop0q7gOcweMMAyi4YNG2KJ6VPrNkCKzhNXFCwAaYIVnXu7wgBI5fxko3DUgnGARKYhPx841CUtq9/Ic1LZE/gJeEcKgimZXbFww4Pane9F0aQCaNxQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:52:49.2073 (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: BN1PR0301MB0724 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_065311_473787_734A6D8C X-CRM114-Status: GOOD ( 15.93 ) 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: linux-arm-kernel@lists.infradead.org, Claudiu Manoil , Cristian Stoica , Dan Douglass , linux-crypto@vger.kernel.org, Vakul Garg , Alexandru Porosanu 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