From patchwork Wed Sep 13 11:00:09 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: 112435 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp805659qgf; Wed, 13 Sep 2017 04:02:10 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBxSzwpb7q5YgzM3d8SSBrjT+dH/HhhL1Mt27MeKvGr9iGjWDd2FeBnDNMprPRQlGz0usWf X-Received: by 10.237.62.58 with SMTP id l55mr3283596qtf.30.1505300530275; Wed, 13 Sep 2017 04:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505300530; cv=none; d=google.com; s=arc-20160816; b=hq8aeqI1KqgrcguYWptp/OMzCkUzRzvFoCcbE9M8C9iqJEVJK/tAqO8DE/V/VaxJxg qNebfx5qLbBMufFFcR0HjuDJtL7GZXiVgXEfdRqs/PL9O5Os36S/veRZ1Bn32QwDzMJ8 Q/h/18Zpo+zRnTOsAymfKEf4Uj86ABXiuzEZA5cqQ4aHGR7TG8y8FPxHhgNULWXaeiJ5 aaUwD2Tee0fW7F84fA5DBqRzz/+QmnyQqUlsYNnvclfhaLk3Xr1bj4BXLq07gT6AwGe7 IIouPSHf0VjaYoB8Z9wsjZKyXkqHs+G/mD6GlyAd4bCYLSPbF5NpUyvRzx33F2OiWuep jUhA== 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=dvxsi/iQN+LM6QC0pwyoY2ABYIwvWNMLVGe+zzgQ0HU=; b=gmpcBaes5x7fNlUm2D4LekuhqRzTCwvlokrS2OXbE23KQvE07HuWkLRRpaj23Yovyb f6W1G60ozGk5omn2rOH9Z8RYmUE971JcqyPazKoQ4mpTD15XyPqqMNrTPbojDwoqVN2U VZcGFx2hIXyEMJT2ctKrI57V6C1snMgUTpjeV3qxVEeEXzf6jtQWsU/pjrN3qO8Qb6Az 4ZC0E0I6zncCh2PGUXY4qqCd6j8scwl9392fiskb1mKuVLNUHOJM0ve7hsYWsBNUyvhj DJsquW0AypDPAeQKSEGeoApaGndQSUsjbG+bXld3A+4iBpwePFJQTtPBBsWoGORxO2Zt dN9w== 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 q14si14946969qtf.25.2017.09.13.04.02.10; Wed, 13 Sep 2017 04:02:10 -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 EB3E262CED; Wed, 13 Sep 2017 11:02:09 +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,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 0C47260BE8; Wed, 13 Sep 2017 11:00:34 +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 AD13460BDB; Wed, 13 Sep 2017 11:00:24 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id D7F4660B4F for ; Wed, 13 Sep 2017 11:00:20 +0000 (UTC) Received: from mxback11j.mail.yandex.net (mxback11j.mail.yandex.net [IPv6:2a02:6b8:0:1619::84]) by forward101j.mail.yandex.net (Yandex) with ESMTP id DEF831242A44 for ; Wed, 13 Sep 2017 14:00:18 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback11j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id BFUukDBbkO-0IESJc3p; Wed, 13 Sep 2017 14:00:18 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Dgs1Bh6pX6-0HcuQSUY; Wed, 13 Sep 2017 14:00:17 +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: Wed, 13 Sep 2017 14:00:09 +0300 Message-Id: <1505300412-17241-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505300412-17241-1-git-send-email-odpbot@yandex.ru> References: <1505300412-17241-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v10 1/4] api: schedule: remove support for nested ordered lock 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 removes support for nested ordered lock use-case changes function param signature from unsigned to uint32_t 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: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: 438a3bab5df9c05dc06f0b4e4b22c0a7db0864fd **/ include/odp/api/spec/schedule.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index 8244746d7..e2abf990b 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -347,12 +347,15 @@ int odp_schedule_group_info(odp_schedule_group_t group, * be protected by its own ordered lock. This promotes maximum parallelism by * allowing order to maintained on a more granular basis. If an ordered lock * is used multiple times in the same ordered context results are undefined. + * Only one ordered lock can be active in an ordered context at any given time. + * Results are undefined when multiple ordered locks are acquired in nested + * fashion within the same ordered context. * * @param lock_index Index of the ordered lock in the current context to be * acquired. Must be in the range 0..odp_queue_lock_count() * - 1 */ -void odp_schedule_order_lock(unsigned lock_index); +void odp_schedule_order_lock(uint32_t lock_index); /** * Release ordered context lock @@ -365,7 +368,7 @@ void odp_schedule_order_lock(unsigned lock_index); * hold this lock. Must be in the range * 0..odp_queue_lock_count() - 1 */ -void odp_schedule_order_unlock(unsigned lock_index); +void odp_schedule_order_unlock(uint32_t lock_index); /** * @}