From patchwork Mon Sep 11 07:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112170 Delivered-To: patch@linaro.org Received: by 10.100.153.131 with SMTP id 3csp5357844pji; Mon, 11 Sep 2017 00:01:00 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAIiDCd41LDDbMMgL50O10JpSsUBsGrDkupyG3J/2rzowG4037dVdNeX7pzd336Ko9BqPpq X-Received: by 10.200.47.114 with SMTP id k47mr15995822qta.109.1505113260739; Mon, 11 Sep 2017 00:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505113260; cv=none; d=google.com; s=arc-20160816; b=xj1iDpN/EXFBr3t0HXAuF5dxeeli6AseStfM9tZ58E4KYb+AWSkCPKher9rUk9X962 HiXjcQGH7mdBpFvMIuBjRlLIDEJmGtQImZJLY3Jq+HA+zVvX/BGOuRDqzRQwkzY2oC1V uINqfeK/K5TGkYU4yZ7o3gRFIwVyxb+nx7bo2Hh7NDNBbXhizn18KFH+Urhx+c7JZVOr zjizUzSSb1w45pejS3w3gf2xtfyRYpVPo2JkgMcEz5Ch3VMFfxNqgjG4iy9jVpEssHo8 Lce/ngaTdLf5d0lsi/om16V31+g4P0AhyV8ndae+KvCGU5q/EijsPFubjRWDVB6Kq5Td GTGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Qx+8A04BgeayutpT1SGdHW4FQGmvI8ps5drpMgxwTdk=; b=DMci6n9h6urO18qy3NkmOrgAwm28gvvIyamb/oBqfzKYB9S5OQab8LpCnuwnb0Wfpl isZUUHl2lUChJZf8KgWCnFZzypgMhhiJjkfsZDcNd6flLCYD3EFbVjg35EG1DHrjemgv 9GgMrAPxPruJWR5GyRhAeFsMLxTK/oeIatMC/EpwsEOaziu36Wq69UhwXZMEhWniY+Pk ohkDaJVh0U8RfMIrfsSqK7FTndV0/sGvKOCuLoRNaKDsRQUd4NoxMvDCxXk/y5992mtd Gn/xcSibS6h6QkxGi32ipCdZXs7xoOdkpCvqBpeN/2EQaIfUp3zYpPXj2iG2gjW+9EOh nysQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j89si6996225qtd.280.2017.09.11.00.01.00; Mon, 11 Sep 2017 00:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 61C9760C4C; Mon, 11 Sep 2017 07:01:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 60BCB60BF7; Mon, 11 Sep 2017 07:00:28 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8EFEA60BE9; Mon, 11 Sep 2017 07:00:24 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 24E5C60BE0 for ; Mon, 11 Sep 2017 07:00:22 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 8230D5D8172D for ; Mon, 11 Sep 2017 10:00:20 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id lZTnGDv2lF-0KPCq32V; Mon, 11 Sep 2017 10:00:20 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sdX4DJcyaU-0Jp4rqtZ; Mon, 11 Sep 2017 10:00:19 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 11 Sep 2017 10:00:08 +0300 Message-Id: <1505113209-1360-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505113209-1360-1-git-send-email-odpbot@yandex.ru> References: <1505113209-1360-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v5 1/2] api: schedule: add schedule order unlock lock api X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Balasubramanian Manoharan Adds odp_schedule_order_unlock_lock() api. This API combines schedule order unlock and lock into a single api for performance optimization in HW. Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 160 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/160 ** Patch: https://github.com/Linaro/odp/pull/160.patch ** Base sha: 7fa8e2c97ed18f8dd6e95cbc78b7e668ccb98869 ** Merge commit sha: eeca3e8f8849d22500b6f87e1304c48f2d417d29 **/ include/odp/api/spec/schedule.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index 8244746d7..6597e6c66 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -368,6 +368,27 @@ void odp_schedule_order_lock(unsigned lock_index); void odp_schedule_order_unlock(unsigned lock_index); /** + * Release existing ordered context lock and acquire a new lock + * + * This call is valid only when holding an ordered synchronization context. + * Release a previously locked ordered context lock and acquire a new ordered + * context lock. This call is valid only when there is a single ordered context + * lock active. Results are undefined if this call is made when multiple ordered + * context locks are acquired in nested fashion. + * This call does not release the existing ordered context and only switches + * from one ordered lock to another ordered lock within the same ordered + * context. + * + * @param lock_index Index of the ordered lock in the current context to be + * acquired. Previously acquired ordered lock is released. + * Must be in the range 0...odp_queue_lock_count() - 1. + * + * @see odp_schedule_order_lock(), odp_schedule_order_unlock() + * + */ +void odp_schedule_order_unlock_lock(uint32_t lock_index); + +/** * @} */