From patchwork Mon Nov 20 17:25:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134497 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5279843381; Mon, 20 Nov 2023 18:26:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FE9742E38; Mon, 20 Nov 2023 18:26:35 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id AA0BF4027A for ; Mon, 20 Nov 2023 18:26:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501193; x=1732037193; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HJLtD3LaJoOz2x1qw10fQ3SQbrr8eq8OaBiWov3TnWU=; b=Iatu8py4T4SF3hGeEw6nE8SosCa+Kv9XSRRYfpZrDPl7OGR/+b8auZ+W 99BYbI9cvd9xP79gpsbBgCatasRRvLVEM/zSlm4bSUkiLZywB7alH4wtK fXIiwghWrpxiUoDrhRkJGeBrrGj34S80D8WEPhQMkLOJwwyZd/QBEu6ba VjUKmkVYBeVhxvj14cetNyCa2nla9cks7XSusXTQXKiGR6fLXzi8ojpba 3Nfc2w3HqjAQO5cFU8q2VGoeksqjmAAZNn3KkEIhgFS+FVG3/cSINx8qy Y4Nu6zZ2/hLBdZzKP3HXaV+LYcqPQU3Ii7luZ4DBUD1GYW+JLL/OH3meq w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996523" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996523" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984517" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984517" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:31 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob Subject: [PATCH 24.03 1/8] eventdev: add capability flags for supported sched types Date: Mon, 20 Nov 2023 17:25:59 +0000 Message-Id: <20231120172606.505579-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Not all eventdev's support all scheduling types, for example, some may only support atomic scheduling or others only support ordered scheduling. There is currently no clear indication for each driver what sched types it supports, so add capability flags to be indicated on return from rte_event_dev_info_get() API. Similarly add the possible scheduling types to the capabilities table in the docs. Signed-off-by: Bruce Richardson --- doc/guides/eventdevs/features/default.ini | 3 +++ lib/eventdev/rte_eventdev.h | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/default.ini b/doc/guides/eventdevs/features/default.ini index e980ae134a..1cc4303fe5 100644 --- a/doc/guides/eventdevs/features/default.ini +++ b/doc/guides/eventdevs/features/default.ini @@ -6,6 +6,9 @@ ; the features table in the documentation. ; [Scheduling Features] +atomic_scheduling = +ordered_scheduling = +parallel_scheduling = queue_qos = event_qos = distributed_sched = diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index ec9b02455d..9109de157e 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -326,6 +326,27 @@ struct rte_event; * than one. */ +#define RTE_EVENT_DEV_CAP_ATOMIC (1ULL << 13) +/**< Event device is capable of atomic scheduling. + * When this flag is set, the application can configure queues with scheduling type + * atomic on this event device. + * @see RTE_SCHED_TYPE_ATOMIC + */ + +#define RTE_EVENT_DEV_CAP_ORDERED (1ULL << 13) +/**< Event device is capable of ordered scheduling. + * When this flag is set, the application can configure queues with scheduling type + * ordered on this event device. + * @see RTE_SCHED_TYPE_ORDERED + */ + +#define RTE_EVENT_DEV_CAP_PARALLEL (1ULL << 13) +/**< Event device is capable of parallel scheduling. + * When this flag is set, the application can configure queues with scheduling type + * parallel on this event device. + * @see RTE_SCHED_TYPE_PARALLEL + */ + /* Event device priority levels */ #define RTE_EVENT_DEV_PRIORITY_HIGHEST 0 /**< Highest priority expressed across eventdev subsystem From patchwork Mon Nov 20 17:26:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134498 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 10C6643381; Mon, 20 Nov 2023 18:26:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BBAA42E40; Mon, 20 Nov 2023 18:26:38 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 6722A42E40 for ; Mon, 20 Nov 2023 18:26:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501197; x=1732037197; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TucvxFw3Cz4AJsy9QM2g48aRAO58aofii0Pno4bjiGE=; b=Bx3ueqIGizic1DYsndZSgtmQY/h+MkjtlTayHYYss7y44kgX321+6Cz6 8Tak4KXVH7vDQQ7fNWvguFuTDdKvn2ot5rEW6OIq3/PsfTuP8ydo9QAcW 1uKc+E+CrJ+JB9A1S380jYsAVBeqXqYT/xpYFJ6MEnQD6o6xIEFFNCs7+ CCUNRSOOrEN3js6oAUddnp7DShCJOxn62zb9HS8lPvBHWQ6Yj0Rzj6y+K l+HM3x+g5d44MgUO7JmUvbGKzHv23hAd/CnYKN0BsTgK3LH8ABm0GBY7E zM1y1nzAHnOFbJEAuWb6snCT5CsCRR/SjO50wuO4EvRasEwOsczOdWqzl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996537" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996537" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984533" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984533" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:35 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Pavan Nikhilesh , Shijith Thotton Subject: [PATCH 24.03 2/8] event/cnxk: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:00 +0000 Message-Id: <20231120172606.505579-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson --- doc/guides/eventdevs/features/cnxk.ini | 3 +++ drivers/event/cnxk/cnxk_eventdev.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/cnxk.ini b/doc/guides/eventdevs/features/cnxk.ini index 5d353e3670..d1516372fa 100644 --- a/doc/guides/eventdevs/features/cnxk.ini +++ b/doc/guides/eventdevs/features/cnxk.ini @@ -4,6 +4,9 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y +parallel_scheduling = Y queue_qos = Y distributed_sched = Y queue_all_types = Y diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c index 0c61f4c20e..e266ee2789 100644 --- a/drivers/event/cnxk/cnxk_eventdev.c +++ b/drivers/event/cnxk/cnxk_eventdev.c @@ -22,7 +22,10 @@ cnxk_sso_info_get(struct cnxk_sso_evdev *dev, dev_info->max_event_port_dequeue_depth = 1; dev_info->max_event_port_enqueue_depth = 1; dev_info->max_num_events = dev->max_num_events; - dev_info->event_dev_cap = RTE_EVENT_DEV_CAP_QUEUE_QOS | + dev_info->event_dev_cap = RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_PARALLEL | + RTE_EVENT_DEV_CAP_QUEUE_QOS | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED | RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES | RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK | From patchwork Mon Nov 20 17:26:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134499 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E291543381; Mon, 20 Nov 2023 18:26:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7ACD242E47; Mon, 20 Nov 2023 18:26:42 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id C1F5842E45 for ; Mon, 20 Nov 2023 18:26:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501200; x=1732037200; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kaDgq2mh+/hcIgV5byOtyhW3O8f6N0nbPwy6pL/mCB4=; b=R2bO6QCvHGesI3jXpNEF7+deDhMNnyI/cxaNIotTM0LGOODhIkn0ArbM YYS3ElUhy3zKVWQsH744TaR+ln+bhDvRcdGDELd3c4zQ2QTjJZTHcG72T IMM6QVNza2EbUuwiuwipawzSxvrm9Oa7G8ZSC4WDmTIgWj+s4LyaIdX9z f5O6IlOdGqTThnjktavrFOr9G09Ve3CaAp8111Lr9fDquRKhjPOyYfzI7 C1U2HuL+8AJRXIi54vW2ehQNxWE/TJ2Mk56r+y97qIYNPe4HM4pJrLVyw WK32/BvxzRgjMhlyDcayDeJXk2m0Ub+klEGZokoOgqW3y/1wTDDaNhWj9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996556" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996556" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984546" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984546" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:39 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Abdullah Sevincer Subject: [PATCH 24.03 3/8] event/dlb2: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:01 +0000 Message-Id: <20231120172606.505579-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson Acked-by: Abdullah Sevincer --- doc/guides/eventdevs/features/dlb2.ini | 3 +++ drivers/event/dlb2/dlb2.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/dlb2.ini b/doc/guides/eventdevs/features/dlb2.ini index 48a2a18aff..7b80286927 100644 --- a/doc/guides/eventdevs/features/dlb2.ini +++ b/doc/guides/eventdevs/features/dlb2.ini @@ -4,6 +4,9 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y +parallel_scheduling = Y event_qos = Y distributed_sched = Y queue_all_types = Y diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 050ace0904..770bdcbd2d 100644 --- a/drivers/event/dlb2/dlb2.c +++ b/drivers/event/dlb2/dlb2.c @@ -71,7 +71,10 @@ static struct rte_event_dev_info evdev_dlb2_default_info = { .max_num_events = DLB2_MAX_NUM_LDB_CREDITS, .max_single_link_event_port_queue_pairs = DLB2_MAX_NUM_DIR_PORTS(DLB2_HW_V2), - .event_dev_cap = (RTE_EVENT_DEV_CAP_EVENT_QOS | + .event_dev_cap = (RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_PARALLEL | + RTE_EVENT_DEV_CAP_EVENT_QOS | RTE_EVENT_DEV_CAP_NONSEQ_MODE | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED | RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES | From patchwork Mon Nov 20 17:26:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134500 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0350843381; Mon, 20 Nov 2023 18:26:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 13BBA42E59; Mon, 20 Nov 2023 18:26:46 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id F01314027A for ; Mon, 20 Nov 2023 18:26:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501204; x=1732037204; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pFHysTIPB7570Ri6GMGeJjDHWfCoKVB0sGjDIyrhG/M=; b=Q7gskBPUyzySK5BpfmawbO1EUcB3q8lMUql2Dwwfm430FN7x1Ds1eAGo jt1dAU+LXg+F7BFEux1v5/CqKGehPQZADZVbqO0u35AhOEjH9bZ7V6xhG 61RGCtS0Mm7C7bsKQ4yJt2RusPVM0DUpSAOwCdhmtmbdkQy347SWQx5Ux gm5JH3QAdRwZIeoGTBCUGw+9gmc2gFQMYcd1LggkZJGghITTYFSH54e69 s9RMWDLP4toxO/L4OgTxT1VKRIb1acDQYIq+c6VxqSx5VpxaeBkyk+WNk Z/T8s5hmClB4uicbZLAYiCgxJr5YH+eHDF68+S2KBFnHkxuevFlkx0S1w Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996568" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996568" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984579" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984579" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:42 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Hemant Agrawal , Sachin Saxena Subject: [PATCH 24.03 4/8] event/dpaa*: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:02 +0000 Message-Id: <20231120172606.505579-5-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by these drivers, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson Acked-by: Hemant Agrawal --- doc/guides/eventdevs/features/dpaa.ini | 2 ++ doc/guides/eventdevs/features/dpaa2.ini | 2 ++ drivers/event/dpaa/dpaa_eventdev.c | 2 ++ drivers/event/dpaa2/dpaa2_eventdev.c | 2 ++ 4 files changed, 8 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/dpaa.ini b/doc/guides/eventdevs/features/dpaa.ini index b73bfa02e5..b2ee6ed93a 100644 --- a/doc/guides/eventdevs/features/dpaa.ini +++ b/doc/guides/eventdevs/features/dpaa.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +parallel_scheduling = Y distributed_sched = Y burst_mode = Y nonseq_mode = Y diff --git a/doc/guides/eventdevs/features/dpaa2.ini b/doc/guides/eventdevs/features/dpaa2.ini index c935bd0cfc..6d3c07ed66 100644 --- a/doc/guides/eventdevs/features/dpaa2.ini +++ b/doc/guides/eventdevs/features/dpaa2.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +parallel_scheduling = Y distributed_sched = Y queue_all_types = Y burst_mode = Y diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index 46a9b88c73..57ddb85e52 100644 --- a/drivers/event/dpaa/dpaa_eventdev.c +++ b/drivers/event/dpaa/dpaa_eventdev.c @@ -353,6 +353,8 @@ dpaa_event_dev_info_get(struct rte_eventdev *dev, dev_info->max_num_events = DPAA_EVENT_MAX_NUM_EVENTS; dev_info->event_dev_cap = + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED | RTE_EVENT_DEV_CAP_BURST_MODE | RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT | diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index dd4e64395f..dd62c76c86 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -404,6 +404,8 @@ dpaa2_eventdev_info_get(struct rte_eventdev *dev, DPAA2_EVENT_MAX_PORT_ENQUEUE_DEPTH; dev_info->max_num_events = DPAA2_EVENT_MAX_NUM_EVENTS; dev_info->event_dev_cap = RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED | + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_BURST_MODE| RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK | RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT | From patchwork Mon Nov 20 17:26:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134501 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28BC643381; Mon, 20 Nov 2023 18:27:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EB1C42E4B; Mon, 20 Nov 2023 18:26:50 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5E77442E4A for ; Mon, 20 Nov 2023 18:26:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501208; x=1732037208; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z+XCsPOIIzAjDS8gnF9BxFagmn0xuSdi/n8kjFFpb7k=; b=FTs2m7uh8luh1abLSifktyxgL6/RAy9PwMgXNv0U5BBOZ20iaiDeSG39 TSGTCBXc3q0Z+L1p4Tq9CmuQPSrbNulK19hpnNOdl50GmmQpd6qAMhJcW REJYxBolj/LuoScJ+ernMMAopRWVVYIbGAX32pKe7SUIaNUnOseC9oNVW w8XMbz8CMVwBwqMolActcfiXWdCbuI7gX6vELjpQXAyOTSYMAboclzglw 5Avw65hj5xC1ugDIrX+at9+BANUer74DD0dNoJE5KNBxLrNB1M/ytWyEj 4zu4w/i8L+YxQoQhztD7z39ZVkvUJOmCJdDJYxPGvEdoLjGFAANg1dGVy Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996580" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996580" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984604" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984604" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:46 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , =?utf-8?q?Mattias_R=C3=B6?= =?utf-8?q?nnblom?= Subject: [PATCH 24.03 5/8] event/dsw: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:03 +0000 Message-Id: <20231120172606.505579-6-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson Acked-by: Mattias Rönnblom --- doc/guides/eventdevs/features/dsw.ini | 1 + drivers/event/dsw/dsw_evdev.c | 1 + 2 files changed, 2 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/dsw.ini b/doc/guides/eventdevs/features/dsw.ini index c8bc6b3f1d..941d257e3d 100644 --- a/doc/guides/eventdevs/features/dsw.ini +++ b/doc/guides/eventdevs/features/dsw.ini @@ -4,6 +4,7 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y distributed_sched = Y burst_mode = Y nonseq_mode = Y diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 1209e73a9d..a68ca1fe30 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -220,6 +220,7 @@ dsw_info_get(struct rte_eventdev *dev __rte_unused, .max_num_events = DSW_MAX_EVENTS, .max_profiles_per_port = 1, .event_dev_cap = RTE_EVENT_DEV_CAP_BURST_MODE| + RTE_EVENT_DEV_CAP_ATOMIC | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED| RTE_EVENT_DEV_CAP_NONSEQ_MODE| RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT| From patchwork Mon Nov 20 17:26:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134502 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 905E943381; Mon, 20 Nov 2023 18:27:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C805E42E60; Mon, 20 Nov 2023 18:26:53 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 46CC042E5E for ; Mon, 20 Nov 2023 18:26:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501212; x=1732037212; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HkeqwwPATqyp6GuBbATeDLncj/Rw2UMRNGWVoMMudoI=; b=Fp7hG2pNElgF3MdjLgUqoyE8vme97thAfLseGn7Gups1qip8zKJeAdGZ kDxBOmT7LmbxpJDp9Fgpl3S1W1VChDX/pX9ZPz0CUBzuS22jDzbUnVcpj NpKH3Mqdkk6Co6m0C4SCmLxpotSybRwyIfaaIWhcsZVBQnmp1XmbGWzQy +ZkFnheSsgr0RvW5xDGPmaj4n4FsdsTUMu7qyRM5rGN0qcgVVblgjaDVJ eDZljgTMTg+lkKkTIOjzXrzO2sbiYusl0K9zSWrM+1wldr2zPIJmqce+J mRNsFRPFvL31DCytVXj4YBxC4Y8V+U7VuSKs2QTPWF1L8KDUh4qilmgmD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996593" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996593" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984629" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984629" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:50 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob Subject: [PATCH 24.03 6/8] event/octeontx: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:04 +0000 Message-Id: <20231120172606.505579-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson --- doc/guides/eventdevs/features/octeontx.ini | 3 +++ drivers/event/octeontx/ssovf_evdev.c | 3 +++ 2 files changed, 6 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/octeontx.ini b/doc/guides/eventdevs/features/octeontx.ini index ec044e6289..06efae767a 100644 --- a/doc/guides/eventdevs/features/octeontx.ini +++ b/doc/guides/eventdevs/features/octeontx.ini @@ -4,6 +4,9 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y +parallel_scheduling = Y queue_qos = Y distributed_sched = Y queue_all_types = Y diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index a16f24e088..3a933b1db7 100644 --- a/drivers/event/octeontx/ssovf_evdev.c +++ b/drivers/event/octeontx/ssovf_evdev.c @@ -151,6 +151,9 @@ ssovf_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *dev_info) dev_info->max_event_port_enqueue_depth = 1; dev_info->max_num_events = edev->max_num_events; dev_info->event_dev_cap = RTE_EVENT_DEV_CAP_QUEUE_QOS | + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED | RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES| RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK | From patchwork Mon Nov 20 17:26:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134503 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 883FD43381; Mon, 20 Nov 2023 18:27:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F73D42E4A; Mon, 20 Nov 2023 18:26:57 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id EEAAB42E62 for ; Mon, 20 Nov 2023 18:26:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501215; x=1732037215; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mBpO4RZsoozfP9CaDnZDIvRdIllTFC5zBokhogbr/B0=; b=JTNgPVU0u2Vh7d+YllyB2kAAn0WCU8XbaKvUj6fdhcTmY9r35psMolEt /HxpVYWkmTD4wEchNGX0lGBzJCFlMSz6ORojoHbTIRQJYAzL5sP4RXDxr hnX6o4mdcvVk0M1uaX5xpkTAo5xXAqAJS6wocuGeZJWnTyA7hfVQTlpiS JPr/T1gFXkF9JN7mPFHBxzvZ+jXQRMoVo2bIQn9yo5CLrtzniU+DiTdHa 6JdoEuk807Z+KHZx+isM0Km3fI07wzoQ4CqieH9TUQNHx6bAutcaCe8W8 kvflhkfYgpCFn1iA8Ojv8Vs5rf1rXmft/NS/MO2rt7arv8sDzLVilVQna g==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996606" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996606" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984649" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984649" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:53 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Liang Ma , Peter Mccarthy Subject: [PATCH 24.03 7/8] event/opdl: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:05 +0000 Message-Id: <20231120172606.505579-8-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson --- Maintainers, please check this patch carefully, as I'm not sure the correct way to document this. According to the docs for this driver, it supports parallel only via ordered. Therefore, I've actually made the docs inconsistent from the flags claimed in the API. I've documented that PARALLEL is supported in the info_get() flags, so code that checks for that will run, but I've omitted it from the table in the docs, since it is not directly supported. Is this a good compromise, or an accurate reflection of the driver? --- doc/guides/eventdevs/features/opdl.ini | 2 ++ drivers/event/opdl/opdl_evdev.c | 3 +++ 2 files changed, 5 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/opdl.ini b/doc/guides/eventdevs/features/opdl.ini index 5cc35d3c77..7adccc98de 100644 --- a/doc/guides/eventdevs/features/opdl.ini +++ b/doc/guides/eventdevs/features/opdl.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y burst_mode = Y carry_flow_id = Y maintenance_free = Y diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 0cccaf7e97..b34a5fcacd 100644 --- a/drivers/event/opdl/opdl_evdev.c +++ b/drivers/event/opdl/opdl_evdev.c @@ -376,6 +376,9 @@ opdl_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info) .max_event_port_enqueue_depth = MAX_OPDL_CONS_Q_DEPTH, .max_num_events = OPDL_INFLIGHT_EVENTS_TOTAL, .event_dev_cap = RTE_EVENT_DEV_CAP_BURST_MODE | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_CARRY_FLOW_ID | RTE_EVENT_DEV_CAP_MAINTENANCE_FREE, .max_profiles_per_port = 1, From patchwork Mon Nov 20 17:26:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134504 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6385843381; Mon, 20 Nov 2023 18:27:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B5C042E64; Mon, 20 Nov 2023 18:27:00 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id BEB3942E63 for ; Mon, 20 Nov 2023 18:26:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501217; x=1732037217; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gMw9xBLu5YTiJtHNEczsSP+IuGPHq8agaRyow3quInc=; b=dmqid+X65JDkR5WnhsTBzH5ogWBLx10IgkdVCDroC1HogPgp7SA1kSAi TpOWkLyo872pJaRTYswla6pjfpZ4fdwl8nm3Bfpfx2PteKox6GpDBj3Kj dgEbqyzD81ILthfWBAuX/i2G+KaPch9iJaLAEjrsmgSSkjkeyHwbzYr8r Ap1UQdYwXTGlI+6mARZSkHU5KhX+bqJBZ6G8FGWJDESkhkK08kKlGl7ss oTsrcuW88pbu48ABuwoB5yC9zSV2jRAPeX9+pXbRQHsd9/ZxtrhxFVUvl 5By4BnTpI3WjJqd6Hkobj/0cUxQJvJPcEPjyDV4l5n3v+FZ5eGsKH/vU5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996615" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996615" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984661" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984661" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:56 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Harry van Haaren Subject: [PATCH 24.03 8/8] event/sw: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:06 +0000 Message-Id: <20231120172606.505579-9-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson --- doc/guides/eventdevs/features/sw.ini | 3 +++ drivers/event/sw/sw_evdev.c | 3 +++ 2 files changed, 6 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/sw.ini b/doc/guides/eventdevs/features/sw.ini index 8c89d3b8d2..f4d46d79b8 100644 --- a/doc/guides/eventdevs/features/sw.ini +++ b/doc/guides/eventdevs/features/sw.ini @@ -4,6 +4,9 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y +parallel_scheduling = Y queue_qos = Y event_qos = Y burst_mode = Y diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 55e7735cb0..1c01b069fe 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -600,6 +600,9 @@ sw_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info) .max_event_port_enqueue_depth = MAX_SW_PROD_Q_DEPTH, .max_num_events = SW_INFLIGHT_EVENTS_TOTAL, .event_dev_cap = ( + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_QUEUE_QOS | RTE_EVENT_DEV_CAP_BURST_MODE | RTE_EVENT_DEV_CAP_EVENT_QOS |