From patchwork Tue Nov 21 11:54:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134507 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 834174338E; Tue, 21 Nov 2023 12:55:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AE0E42EA8; Tue, 21 Nov 2023 12:54:53 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 8A55F42EA0 for ; Tue, 21 Nov 2023 12:54:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567691; x=1732103691; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SkEBk1Zvd8eDirf7/2qSROr4CXyaIIquI4TH+h99/cs=; b=OOtotuZvnbxgERq430Ys9VIpaY8Xy8QEqEDh+3ZF40GrKxUGEbGVOxII hO4/nBi13+N/nuzHE/jGZdIkSdWI/zYQ7BpHAydyJByyUed2mn+pA8cxK MlcOTBPxYbBT0gWEOuJXYWdfMQ/G3XfaKVk6CKjq/Q6r7WOxje7uOlquO 2itoSp9lnkOZudlfruahhLdJKrE1Kiros/t4GU4wWzfeq17CHYbhZDASF nmFexAq+Y2tHL35SQ5FR5fRG9X6q4n/gB6xDcn+Rm+v5KUQQC1LjTgklz ls4UZUq0CSJoa7LbSXnJCNYkt18vScTktV2ed7UYTPqu4gVDKzsZ5K2O2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160768" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160768" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:54:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511313" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511313" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:54:50 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob Subject: [PATCH 24.03 v2 1/9] eventdev: add capability flags for supported sched types Date: Tue, 21 Nov 2023 11:54:29 +0000 Message-Id: <20231121115437.96500-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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 Acked-by: Jerin Jacob --- doc/guides/eventdevs/features/default.ini | 3 +++ lib/eventdev/rte_eventdev.h | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) 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..d48957362c 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 << 14) +/**< 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 << 15) +/**< 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 Tue Nov 21 11:54:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134508 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 16D064338E; Tue, 21 Nov 2023 12:55:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B36642EAC; Tue, 21 Nov 2023 12:54:57 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 27B8142EA0 for ; Tue, 21 Nov 2023 12:54:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567696; x=1732103696; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/GXrvIGraFv+xLfXmBuQpNJVMIzFZNEnJ0uw3l5uffU=; b=PojK7d/bhXCPhuqxbzh1NcghUxb0GfNhYt/t/Nism34LsW/Lyk7wzQzP rHECqtrDiU+bKG36y7qa3R7HBTv/UKq5LeiCPosr123+tZAOwXal+SdOP 5F7IpDG5NdoINo8u7RMjnfOWpIl/06UNpKe62+WaB5nM0T29wvpHF5RFh vDkSUwb81a6ds0bXeu7AXnr0oQrxM0x2Mn90GRZthvMvRJ4EHpNfpLIkH y0YYB5AP5FxX7Y2idkd5Wi1YgSm9vdWGH53Ff6/B6O3GfHyYdB5M+yvLW gtJvTDfICYroxUIJ1mAeynirfWMhI6uWxlqs+DJiA0/wTzrDW5Ee995Tz g==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160786" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160786" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:54:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511319" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511319" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:54:54 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , =?utf-8?q?Mattias_R=C3=B6?= =?utf-8?q?nnblom?= , Jerin Jacob Subject: [PATCH 24.03 v2 2/9] eventdev: increase flexibility of all-types flag Date: Tue, 21 Nov 2023 11:54:30 +0000 Message-Id: <20231121115437.96500-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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 Rather than requiring that any device advertising the RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES flag support all of atomic, ordered and parallel scheduling, we can redefine the field so that it basically means that you don't need to specify the queue scheduling type at config time. Instead all types of supported events can be sent to all queues. Suggested-by: Mattias Rönnblom Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob --- lib/eventdev/rte_eventdev.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) -- 2.39.2 diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index d48957362c..1c5043de26 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -250,11 +250,20 @@ struct rte_event; * @see rte_event_dequeue_burst() */ #define RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES (1ULL << 3) -/**< Event device is capable of enqueuing events of any type to any queue. +/**< Event device is capable of accepting enqueued events, of any type + * advertised as supported by the device, to all destination queues. + * + * When this capability is set, the "schedule_type" field of the + * rte_event_queue_conf structure is ignored when a queue is being configured. + * * If this capability is not set, the queue only supports events of the - * *RTE_SCHED_TYPE_* type that it was created with. + * *RTE_SCHED_TYPE_* type specified in the rte_event_queue_conf structure + * at time of configuration. * - * @see RTE_SCHED_TYPE_* values + * @see RTE_SCHED_TYPE_ATOMIC + * @see RTE_SCHED_TYPE_ORDERED + * @see RTE_SCHED_TYPE_PARALLEL + * @see rte_event_queue_conf.schedule_type */ #define RTE_EVENT_DEV_CAP_BURST_MODE (1ULL << 4) /**< Event device is capable of operating in burst mode for enqueue(forward, From patchwork Tue Nov 21 11:54:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134509 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 160064338E; Tue, 21 Nov 2023 12:55:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B96F342EA4; Tue, 21 Nov 2023 12:55:04 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 250FE42EA2 for ; Tue, 21 Nov 2023 12:55:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567703; x=1732103703; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zBA5lxcRDPWmfz1U57J0cgru5vWAJYnnflGUu4iqbLE=; b=A9t0b0Wa2ae+sUrfUYF4umNfCR3TtwyM0uW3xam25c/+xuq6J4riLH77 fkL54RfKH//VNZfnD4OFm/dySiR58lJUJXcbn9Y6hRcxclFUrm3mSOEa/ oGBO0hkTs7sN5MeRfWbqGLIoWYOFaVEAgwjOZBoS1tUa8DI3UNu8lPQUs MysFWbo9rc7cQrlE4rrr34VfLaUHBhwpe1Sz2UI7hBTT90pg3dUC2vbJt aMr2BuydThwACzfXw/00xzQ4hUsHTqD4Ahg5C3jOPrgrOfdeFvd4HQ3lv SFECXrCqLItJPzqZnIzTSS8gEjWs6Cfd9bnkoZ6NjlFlHWikoJJoEIJlk w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160820" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160820" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511322" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511322" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:00 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Pavan Nikhilesh , Shijith Thotton Subject: [PATCH 24.03 v2 3/9] event/cnxk: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:31 +0000 Message-Id: <20231121115437.96500-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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(-) 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 Tue Nov 21 11:54:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134510 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 405504338E; Tue, 21 Nov 2023 12:55:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EBD1B42EB4; Tue, 21 Nov 2023 12:55:06 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 69CF940298 for ; Tue, 21 Nov 2023 12:55:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567704; x=1732103704; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qfugiqyeQZSQouwWYjX3tms6pkuqGExbcrlOzyXu0SE=; b=EDzCJEc2nQIQgu/e639nM/4pvVLZa2IU2ZS+YcJ8LQdrB/3Lnua+t2a/ uOBxkKHHcbrjGNsSV35PLRQpUO+WDwCyjB8wmRMsbz8ua4c6ldSnt6ffV ifvYwwHBfwIDDkScUU7mgpTq3KlsIWr/hAHq5mkxSULclxZhQE8PeVOW5 2CS/WKAraGbxhm9vKXnDXVEOtkVoIWG1BehT88LREMytcztjPvz//4TCx wOgBuhgFnwVBhFiJuiw8jor7r3/u/ffVseEJr/F2bAMgvn/zCNmO7Ej9L 6aOLDy5CmFUX5i6LoWGYQcZxCwaKINkDwG1S3kHaBVY47gMltnNrAXyUc Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160826" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160826" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511330" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511330" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:02 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Abdullah Sevincer Subject: [PATCH 24.03 v2 4/9] event/dlb2: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:32 +0000 Message-Id: <20231121115437.96500-5-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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(-) 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 Tue Nov 21 11:54:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134511 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 0AE834338E; Tue, 21 Nov 2023 12:55:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18C3A42EB6; Tue, 21 Nov 2023 12:55:09 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 6FE3942EB6 for ; Tue, 21 Nov 2023 12:55:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567707; x=1732103707; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=J5xgSvNpEElUfIIxmEmikf8hWIS4wJSmZihjvaWW6+E=; b=QRID0/K7tmVtjDEwSkZwHDmwk7YzW/R6TLsNEgouztpcBNFI91pIbZBo 1PMYEJhId1D+7ww+Sm+1N/btghviiY41kkxlLisaeQfYowvx8WjNlydDR 2TIOcP+SZHnmfOfmPf6ukr3GBHUeOsWR/AEmpQKFbSBYke4xPjBZxwbPg CJSZY1zKrmEM+Nr+Wt2BiJWm0xw+F49eliu/4E15zHdAGVJZJcphgxWA6 ujDMsnNkK225qJGF64GJTT17TUNHizZE97oa/IXAmNJJLu2O/b2IsvhRr TKjjJfkhfp14JGxTH7RYjfeH7xCklFKVcn+mjsLQSadfMBXmAzQ3NyYy0 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160848" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160848" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511334" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511334" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:05 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Hemant Agrawal , Sachin Saxena Subject: [PATCH 24.03 v2 5/9] event/dpaa*: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:33 +0000 Message-Id: <20231121115437.96500-6-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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(+) 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 Tue Nov 21 11:54:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134512 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 503FA4338E; Tue, 21 Nov 2023 12:55:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3609A42EBA; Tue, 21 Nov 2023 12:55:12 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id CACB442EBA for ; Tue, 21 Nov 2023 12:55:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567711; x=1732103711; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lOjD4nZNZKTfwisyymM0UuqG9RbmJyxJvbnPp/Nqywc=; b=hcvEFiegCaVSo3tEIAYEe9ty1j6m76qO5fm5IBA9kyDujeQR/g30tI7a M1G2gpxdyiTu7IjLK60c7QWkkAfGw5rMWBihdI5Ptkp2w2YXkWFnRVILo OLvmBcf1mo65ZYPhorxioohVcVyKbVBoc+f3E19l4j6SAFs8H8Z9dZ596 IvaqiYyIRowBYST2Ehn0wTltfiuOCN7hNsUdCcBzYzokNCwo0tE6Gc/aE RVMURlpTZ5PVxMWPegU1yaGJzsBSsvBiubUc58T5A5fEHgdkSnE7nQIBD e4IKoB7DdhBG8LL5uGR5/Wra2FxZkJQWdoQxBBfBTgLXdyC/qjiUH86FT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160871" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160871" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511340" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511340" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:09 -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 v2 6/9] event/dsw: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:34 +0000 Message-Id: <20231121115437.96500-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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/dsw.ini | 2 ++ drivers/event/dsw/dsw_evdev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/guides/eventdevs/features/dsw.ini b/doc/guides/eventdevs/features/dsw.ini index c8bc6b3f1d..4038b9dd3d 100644 --- a/doc/guides/eventdevs/features/dsw.ini +++ b/doc/guides/eventdevs/features/dsw.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/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 1209e73a9d..9bf7b46a24 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -220,6 +220,8 @@ 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_PARALLEL | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED| RTE_EVENT_DEV_CAP_NONSEQ_MODE| RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT| From patchwork Tue Nov 21 11:54:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134513 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 869734338E; Tue, 21 Nov 2023 12:55:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 520FC42EBF; Tue, 21 Nov 2023 12:55:14 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id E6FCF42EBD for ; Tue, 21 Nov 2023 12:55:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567713; x=1732103713; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5Otvc+VbVsCa9ebSpB7tyPamESJ0GhfaRS8fo6vtsIc=; b=YVhlBQo1no2X4+EoxAm4fjYlIYT3tEmhhxC86AjkX/dMFSSsYoqxuGgl IRD2fHZivjDNEaZMxukYGBnUOX2VTLvuNJ2/+YIA8GkM7KUrU4M1GY3yd ko1XXV5TesF4d3TlKh2On2NavHiRpxSRi+RMlEqqNvk1qNGEkoXeIPFI/ XB+SP7RGL9sYD55c/tKCrcf6w6B7gVFh3Ah1x5f057olSAXoGZt09WgH3 znpa5ki7qvMdi3LviqXbJeeZakfG6sA1iD30u/lZGyoAJFR0iea6Im1q4 IPu/v03PJJDavwQ7sLMQYQIb8JP0X2wOB++puw4rP5TlBgp1cusLdBVBT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160882" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160882" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511345" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511345" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:11 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jerin Jacob Subject: [PATCH 24.03 v2 7/9] event/octeontx: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:35 +0000 Message-Id: <20231121115437.96500-8-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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(+) 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 Tue Nov 21 11:54:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134514 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 2DB734338E; Tue, 21 Nov 2023 12:55:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0B0942ECA; Tue, 21 Nov 2023 12:55:16 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5CF1B42EC3 for ; Tue, 21 Nov 2023 12:55:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567715; x=1732103715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kGf+IH+DZMH5LzlmmVzRuUNoXdmbKblSrH0StfP/lh8=; b=JnPsJNO1jS4hPpcvsuLT57UGDrWaSkUm34CjrlZpKzu9Xja3fdkAp0GB wDTnM24UUX0FfOPM2m7MDCM0kuWzw6fu1k0b/ft0kGBXHN5EsNbbkpzZg Epmv1B9XnAtV3c/9owlxtzp9U8yBucW8lABxuYCuwCw6BAbFltmuyz1A+ XGI7IBsiS5Mm0RPVPyYppQ1dSDbipdZFlvms5q4aBkzY/6ITRTLlo49c0 mkGJT2a2REhy7Gg7qqvFItGOU3wxTNmLkkc9XtxGbGmIrr/haVVbTyPlv 3+zMsrpru+JRhAZwYG8+iHg7YZ9aAStivGVpNjSc1MUrrH41tv7nvaBaU w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160892" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160892" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511354" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511354" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:13 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Liang Ma , Peter Mccarthy Subject: [PATCH 24.03 v2 8/9] event/opdl: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:36 +0000 Message-Id: <20231121115437.96500-9-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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(+) 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 Tue Nov 21 11:54:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134515 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 A93604338E; Tue, 21 Nov 2023 12:55:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 067BC42EC7; Tue, 21 Nov 2023 12:55:21 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 768B942EC6 for ; Tue, 21 Nov 2023 12:55:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567718; x=1732103718; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ocanZP+yD1/B8un/4h5XLn4mTXClRPuylmRfSw0zNQs=; b=Mg0yAFqa12R2hnDl3fr1IAI5CLzklKfeb6m7C9JutAKponUm2ytviDxj IFjxTqKAhidJ2uMa2oa2ZxFANFVZTCMyCVDyUZ7Qd1n38SttvB7IeU4Jr fJGQDv5v8u3TB+ZmvFoJl+nC28ANHW18ZnzGn9t0cChXxi64n6wnWBDCe 4mwNi0+btmqRrc+PineLuBHkZmqy4REomGOw01pLbPHBcM5Mjv+wEQZZt 3f0L0Co8Ap1K3+vkRDFn1dT6q7hFFbDf2KbGnlMPIDaq0ckMwaatiLJfm 23SiHCj9f+VkyMeZXqhha3oIgIMFZhiSWU/zJsZ3rbv/pmxIjvfk1PgVW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160905" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160905" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511359" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511359" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:17 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Harry van Haaren Subject: [PATCH 24.03 v2 9/9] event/sw: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:37 +0000 Message-Id: <20231121115437.96500-10-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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(+) 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 |