From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5A59243391; Tue, 21 Nov 2023 18:08:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF06642ED6; Tue, 21 Nov 2023 18:08:24 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 901D942E8E for ; Tue, 21 Nov 2023 18:08:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700586502; x=1732122502; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=8NZSMhTz83Z3jNUV8ai2hellU9QKHnNoOBLkSqg/WGY=; b=HB4UYk+rf35SlGJEeji02F6PL8eBOdib/q5nIst+HHYsQh5MW8T2M91g qiui3L7XwV9zaC9MnbiGWNI4LIddepx1nQhfFQezkbydlMEAnDZjkOXmJ plni1Q2Aa7PXzIOHs3NJ78F+0H5zCQGpue3i0AaDiBg4nH0AktyzYoxKS rm3LaWJaUX75VkbEEKwZiivpuoQUimXUX1gKIwHqyKdRRVG0SiyiHDX2Q 3jwGq1TQQ4Gz8ZnY7dVYWkEidm0q0mRp1aKEtsaorkG1q7Lz/7NzvvKgc YCpgxFr1dC0gIyqvfpKYscZXs9vXKdkdeUvyV03rKlcbDToEkChilGQ8n Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="394722536" X-IronPort-AV: E=Sophos;i="6.04,216,1695711600"; d="scan'208";a="394722536" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 09:08:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="890309454" X-IronPort-AV: E=Sophos;i="6.04,216,1695711600"; d="scan'208";a="890309454" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 21 Nov 2023 09:08:20 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 21 Nov 2023 09:08:20 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Tue, 21 Nov 2023 09:08:20 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Tue, 21 Nov 2023 09:08:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MKcilyLDsl/1xpR2iVk1ATd9dBmybBcqsocCCu5pshAm1qFTnPcpLAKzC79+hA/XUMJ4tAjqGe5pdvYKaHgyn52fgWvucvzNreStrfM4bANZrA9qki99LekUAEPORglKdn3EyIaWgMSIoQnSqg5Xl8oeAtvxxJ9+Z+PvQXSYFRvVZFjjOp9yUtTmPCfblt5aYI3UcuULuJOJI3U6w7PAE1wMdO1sLUkWnkzxXncg2FhcRDq2mPecRKeTH1iZO9PZ2167yqHFs/UJlg4XYUPp0shNAIF1z6F/W2b+gQg5Gk+6BOL/AYzeVSbb5B3xK1Mp8cwVlRWC6fyfwzdW+Hxkcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QKh/wHs654gRQoe4euzjhoe47bIRHhYkRIc4A1Ndqb8=; b=E8JRX9W/V1rahbeQ1b6t9brqHZV35LAzXdxShlHqPErkAXVDnE4z221dZCjf7s7E9miMJro9Wm5un4HUDBSu3Avz67Kv4kosiU5NtwFXo5zlDcZxnc4X6crCHWNiZCyNieHr74nul5Hl1n1yjAmg8cQ9ElbvuSvQRpKx2gm7UMxIrMhD78X/vn1fPUomgxQgYLDuK9m/Z99+njk62inH+Qg62qr41+DwJhR634nK5goigd3h2yohY2jtkQIviVSMl2G64i7KB9k6bgIAL0nARMexEUq+oQ/9rWC9Keds/iQPLMeU1KHZCP4QrpKYnBob9ElZKxgYsqLpoNfohZlwgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BL1PR11MB5461.namprd11.prod.outlook.com (2603:10b6:208:30b::17) by MN2PR11MB4711.namprd11.prod.outlook.com (2603:10b6:208:24e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.28; Tue, 21 Nov 2023 17:08:12 +0000 Received: from BL1PR11MB5461.namprd11.prod.outlook.com ([fe80::a14d:bd4a:8274:f90]) by BL1PR11MB5461.namprd11.prod.outlook.com ([fe80::a14d:bd4a:8274:f90%7]) with mapi id 15.20.7002.028; Tue, 21 Nov 2023 17:08:12 +0000 From: "Pathak, Pravin" To: "Richardson, Bruce" , =?iso-8859-1?Q?Mattias_R=F6nnblom?= CC: "dev@dpdk.org" , Jerin Jacob Subject: RE: [PATCH 24.03 1/8] eventdev: add capability flags for supported sched types Thread-Topic: [PATCH 24.03 1/8] eventdev: add capability flags for supported sched types Thread-Index: AQHaG9bHPCwpqAdKEkWt1eX3DhP0RrCEgu0AgAAcxICAAGHhIA== Date: Tue, 21 Nov 2023 17:08:12 +0000 Message-ID: References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231120172606.505579-2-bruce.richardson@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR11MB5461:EE_|MN2PR11MB4711:EE_ x-ms-office365-filtering-correlation-id: 2246d054-ae0e-4b24-c8f6-08dbeab471be x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DvUYxJvzVMyoNTPDwjmyC4m8vD6YrE9LVk/YhoN/av/oNylq4WxSuedCRB8HQv4Cpx8pNug6ges8iBhnLMTaysumllpGDZANH71G9quL5FyOndhZIEgO9qyi4XAgyGnMc1GVpOyvkPaHFsDZgzaXCAU28FMARI/rhtcqpoEby2LRYsFPzehUlx5FmO3B8JuXf1PdS1PXAe30ZMHnFxdOC1Wdj1COUdASlo5dfB0OYpU3SEJHxvSI8AUsn/hUUCf7394y1s4212VH5DTQPJWkJc6xcB70qB3KEHAUfH/01teclwBbmb4EWh7p6zoFmdrb7nqe3zeBPSYnv/RJG9H6e51U8FsGXc7MGRrN6TnPIXkU7ISdr6GbPTTYKLs4aVGfyc1nYeo4TduFvYbPCkAIBLKasNz7qu0GskK3Ic04vXziOsLIhpZF3dxDYuCKPJzcHVNqOAwtgIyt7wbOd4apn/rQ482Xl5drO1ftHwekFael8T3LnOiFvdkhtxmDtYTxNK9em2f8VfdYWiYDhCLo+uK6dLEuLi9SFYJVhGKQYaNRsQqOmcN73NirF1ILO2wbEBSJT7vxNmFPKB0aRaG5zTHONSSJ/JSpCHSOjrbVN1tr6ZoWfztGh1JBfR4VGWyo x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL1PR11MB5461.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(366004)(396003)(376002)(346002)(136003)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(4001150100001)(5660300002)(55016003)(8676002)(4326008)(52536014)(41300700001)(8936002)(2906002)(66899024)(296002)(316002)(54906003)(64756008)(66446008)(66946007)(110136005)(66556008)(66476007)(76116006)(86362001)(38070700009)(26005)(71200400001)(478600001)(9686003)(53546011)(7696005)(6506007)(122000001)(83380400001)(33656002)(38100700002)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?vxKB4JnLe8U3RtLxZvgipRua+W6Qhuj7qGZJuSimECCHOpkOpA+r0+CNEt?= =?iso-8859-1?Q?z1SCMKXZ1KkxnQlYz+cs0lzNw2vhH6Sg+d7JYvAyUvIVG02a28bamoYQHY?= =?iso-8859-1?Q?6aybzHYV/ozDegl/dDLz5q+FNQEjB/CINWv/nhchIi0aLwz0du0Opgosib?= =?iso-8859-1?Q?9sFtTvD4YzeYHC0VwWhUiyYoFU356BY3klcreE37ZQlUeEajuS9pcOBg57?= =?iso-8859-1?Q?hMwis3I3MX3DwPSBUj+ohzYMrlA5pmR4HBFeZ31FDoSTMMpJ9jsP30uXsk?= =?iso-8859-1?Q?6RLKt16OuP43aY4MLxUIkjwsHBiW5+8euKhVba//3GFEM8G5Oa2wnQ1KzZ?= =?iso-8859-1?Q?dxJBIRg/ZCsyuwgvJSLtgg+mY1RXEt0PTaAsF5zwngBIlbdoDw9m0XfyJm?= =?iso-8859-1?Q?BhlrWJ0QuOLMkTDn5MFWmF6HR5qihSempKT25cWqBaL0frNCHUvawZ3zCr?= =?iso-8859-1?Q?6D8NmjxKASLKVcaMbK2n7R0t5A2Z2QieiyESiDkgiLSNC9I1eGte+pBN4o?= =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KljPTCfxMj1ymt5v6giYrVQLRwlY0PYanQW?= =?iso-8859-1?Q?7LaVNUC0AcyoXDjs+B1dbLyxP6nzQ7Q9pP8CTA2jlyikITsl8wLrAsxDj4?= =?iso-8859-1?Q?s8OWISdEwm0qCtzU6b0AHw0GjYI+x//Qcp9tg0YZXhylLZsyJNsmLIoBBM?= =?iso-8859-1?Q?0cuuRQSG891NBf2tBWTAgK8mAcvxgTktZKGOO6ZwaljiyYuEcPr6VNggt9?= =?iso-8859-1?Q?/0CQelDmw9jII+jybov7j36xP1hg8Jc086?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5461.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2246d054-ae0e-4b24-c8f6-08dbeab471be X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2023 17:08:12.5699 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qAamHGca003RdyJpdv88umRRHGyxs/kAMm5k26TgbGBwj0iRP32Hj2q8mk7oIGTuKoufRP1dkQa+2ZzWsn2ctA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4711 X-OriginatorOrg: intel.com 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 Ideally, supporting ORing of schedule types during queue creation would hav= e been best. But advertising all such possible combinations will be a night= mare.=20 But this will allow flexibility to create an exact combination HW can suppo= rt. Either support all or a subset of it.=20 -----Original Message----- From: Bruce Richardson =20 Sent: Tuesday, November 21, 2023 6:13 AM To: Mattias R=F6nnblom Cc: dev@dpdk.org; Jerin Jacob Subject: Re: [PATCH 24.03 1/8] eventdev: add capability flags for supported= sched types On Tue, Nov 21, 2023 at 10:30:02AM +0100, Mattias R=F6nnblom wrote: > On 2023-11-20 18:25, Bruce Richardson wrote: > > Not all eventdev's support all scheduling types, for example, some=20 > > may only support atomic scheduling or others only support ordered=20 > > scheduling. There is currently no clear indication for each driver=20 > > what sched types it supports, so add capability flags to be=20 > > indicated on return from rte_event_dev_info_get() API. > >=20 > > Similarly add the possible scheduling types to the capabilities=20 > > table in the docs. > >=20 >=20 > Should we allow an event device to advertise=20 > RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES, but not all of these? >=20 > With current wording of RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES prevents=20 > that, but you should be able to allow for this without breaking=20 > backward compatibility by tweaking the text from >=20 > "Event device is capable of enqueuing events of any type to any queue." >=20 > "Event device is capable of enqueuing events of any type advertised as=20 > supported (e.g., by RTE_EVENT_DEV_CAP_ATOMIC)." >=20 > An event device that doesn't support ordered, but does support "all"=20 > types seems reasonable to me, while an event device that does support=20 > ordered on a per-event basis, but doesn't for queue-level configuration d= oes not. >=20 > If RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES is left unchanged, the user may=20 > ask herself what "any" means (any supported in the API, or any=20 > supported by the actual event device). >=20 Two follow-up thoughts on this: 1. The use of this ALL_TYPES flag would suggest to me that we should not ha= ve SINGLE_LINK as an explicit queue type, in the set of ATOMIC/ORDERED/PARALLEL, as it would really confuse the issue as to what exactly all-types means. Therefore, I think we should keep single-link as an auxiliary hint as now. 2. The CAP_QUEUE_ALL_TYPES seems a rather blunt instrument, and I was thinking that we would be better to convert it over to have the alternative flag that says that queues only support a single-type. However, even then, neither really covers the full gamut of support, because in some cases whether or not queues support all types will depend upon configuration. For example, for DLB2 driver, the docs point out that depending upon config, a queue can support either atomic or parallel, or atomic or ordered - with parallel "degrading" to ordered in that case. It's possible we could have other PMDs which allow the final combination of having a queue either atomic, or ordered and parallel combined. Not sure we have an easy mechanism to express all this, so probably keeping the status quo - possibly with your suggested tweak - is good enough for now. We also need to keep things as simple as possible for app developers too, and try to avoid too many possible combinations. /Bruce