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 1A7C9A0093; Mon, 11 Apr 2022 13:07:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BEDC340692; Mon, 11 Apr 2022 13:07:40 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 063EA40685 for ; Mon, 11 Apr 2022 13:07:39 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23BAWExe017131; Mon, 11 Apr 2022 04:07:39 -0700 Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2044.outbound.protection.outlook.com [104.47.56.44]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fb7gp703a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Apr 2022 04:07:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VvIOE1qFzYFx5AwrKx4eGnldwRi+XyCiFTWUfaWWB2QDZ1oUKUnw/eJv7CoJKDLR+nKT4l2pgEmm7uY+pZEvm4e2PDqDw5L5KFtYsij/UnnUtB3Ab4w2MS79+Tkl6+ZK8sHDFRz3vKFDp/3IrwLq7ioLTnrrk3JviJwUnKB2DDxoaU846lHWjuMaEaSJFxnHp5qdiHfj/9EUSGb7GlFh+tlKrhcbZvTb1iGXdrc+EvtbE7aBim5zIyvDfiK2x90BwgTg7yDMhOyipPv57xlD7EmBzgUNRI319DxQpRLw0kSppIYO+ZNdxjq/Z/hc0XB8FVErk14924dmRw53GNmF6w== 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=ZXmZ+TK2yU2847yG4pPn+wzHdrgA99hAr0SgLpMzMNc=; b=CoPeA60IYgIFNU2a+eV3Z4hWfzCQl+8t3qmtDIkH1cgWwkF2GfDeEeFvzDOUBKnzrvSPvclJK0w9oxPGQvQXJxIWlC4Ry3nBqkkxcs5fp3Z9kZbBQkvFoo6GTpNOUxWwoRMW0bVGxjkJDc2kN8gQvTsNcfzWknQzhDyDDBKa8s1sLjDscyrgBvjNNkRZ2P/BBN6GCpSRgmm4jB1W5EcXdmdOiKaMiR8Urbn16HW9lEO4PuSqxIq348VOxFu3Wv3v3o148U9XIe/fSRUyGH2otZyzKePdeJkBAAXhKM4XuL7sXuZ2NezOWAAsmqrc7K53aC3Tyu8kWnx710RwZjQ2CA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZXmZ+TK2yU2847yG4pPn+wzHdrgA99hAr0SgLpMzMNc=; b=VAZ0ghttiVlKsQo/C3sw+4DYI1te+oeQZE8XDBL2FMrOCgWwB/kPUPsYb9gzfbC24vyJ2KzFNi3DefBmQm6lcag9TThmYSPymKg6+bCYDC8QMgie0+UPyBJek9qbY01Zcd0VtnXCxXH8UmBXA8Z79cDQLPFhlpkbYBf9q4FQOKo= Received: from PH0PR18MB4425.namprd18.prod.outlook.com (2603:10b6:510:ef::13) by PH0PR18MB5019.namprd18.prod.outlook.com (2603:10b6:510:11e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Mon, 11 Apr 2022 11:07:35 +0000 Received: from PH0PR18MB4425.namprd18.prod.outlook.com ([fe80::6502:239e:ac19:c0bd]) by PH0PR18MB4425.namprd18.prod.outlook.com ([fe80::6502:239e:ac19:c0bd%7]) with mapi id 15.20.5144.029; Mon, 11 Apr 2022 11:07:35 +0000 From: Shijith Thotton To: "dev@dpdk.org" , Jerin Jacob Kollanukkaran CC: Pavan Nikhilesh Bhagavatula , "harry.van.haaren@intel.com" , "mattias.ronnblom@ericsson.com" Subject: Re: [PATCH v2 0/6] Extend and set event queue attributes at runtime Thread-Topic: [PATCH v2 0/6] Extend and set event queue attributes at runtime Thread-Index: AQHYSK/V3fy4dRK99kCOObsATVm7m6zqlwn0 Date: Mon, 11 Apr 2022 11:07:35 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9b2e09ee-0524-40b0-d59b-08da1bab7b8a x-ms-traffictypediagnostic: PH0PR18MB5019:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EJrGykHsQCK1NNQ3m03tVWuFmCkUvjrUxlwjQ3a41PaC2GjZ3J/53Cd75vFHiVUgG+C4V5fJ9ksnCYa+/bH/z+PNwWEDz52jF6Y5mINa8QdX/YJz/nRFTndurOMxaxdWPYvshtgV7hwhJjb+bJWgvvg0HVp76eB9fISJjQFgIk1h/kqi7mlod5BkjGq7KTMPOcqdVibrOXPf4bqNAJUgCObXNGxhmR8PKRrjKazodEXnAidu4kwbbjrRYbV+Jj8+93bLhwvMc4a0zNkw4maVLDRKApcZDMYTc7wtnWBTa7xlSpQ0Egb61bahZT7AGzRTxqEHNWz7j/7klR4+pT4MaMrw5c9ddv/loW6BprcTwZabJeiHRZnjnb8XUing4d7GQKlS7c6k57Kocld7tj9PNxqETxu0bx4wU+Cgd1tzlBLO+xh4nJmlwTSK5XMCnyFRJ395IPwLijzM0VGMNGgxtmjflfQjMuCE7Fpg8LaHZDOJxZoQltbRu4FLktzr1b6VjUQ6k1dIGpnbs3fmG8iebZKPVR5zOtvKgwcXpl/fcuRaE6IH2txkq9kWKyEoTOTUEG5ZgnF55grHvvdHZrNSu8AKCPJayOishCSB4SQtCJwlbA1YYWzOgET2lPXFFQmOA+4CyZksmODfV4tNE7TeAwPzuKg4ak3gq8+671xGeGs6JHrDQ7cpahycRxVmgy+nDoRc9dy3Qm/odYYMXh4rLQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4425.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(53546011)(316002)(55236004)(33656002)(19627405001)(55016003)(508600001)(6636002)(110136005)(54906003)(71200400001)(186003)(26005)(66446008)(8936002)(86362001)(38100700002)(64756008)(66556008)(76116006)(4326008)(8676002)(66946007)(66476007)(83380400001)(9686003)(7696005)(6506007)(52536014)(2906002)(5660300002)(38070700005)(122000001)(91956017); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?87OCwi1JVO6qmpghi3GbrosJC2lPPna8MLRhOdZvtXn6PtdteYY3iW5iJ4qo?= =?us-ascii?Q?ogyi3WWhllRIDgEVgmkXQa5dBsgy5bL9kNa/cJpyoimIKO68RqQZ+CHfmpNL?= =?us-ascii?Q?CIdR/JZhDeIgQT53JAwKqbheJhBKg/nhN6X3N7s0JbKbHHUCyKhTFrk9yis9?= =?us-ascii?Q?V7anol2vPSOYel/Do86lRKAQrCJcKxpIiA1JpVv+CkpLmyEzUEZirvgkDfEp?= =?us-ascii?Q?TV+mqpeBrDyn6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YL61XvGceX4?= =?us-ascii?Q?+gQtU3YwzTCsQHWJ2myYMnb5X3YAZLfSbwTwFV4gj2EH98IBf7xzm/fYl6MQ?= =?us-ascii?Q?ZofWQM6Iw3f0q56LP6spfc5E1U6werfMPTLTrHYgr3eBiRSpRc/sYL/22J7h?= =?us-ascii?Q?0+DKZ5dpgjSY4laCgkZortSJorsSiKflubcx4P3yTkDBSiKsFxQq8MOsmuwZ?= =?us-ascii?Q?GHhkVNvBWf9ew7/2JY8RpTvBRb8lEoN7gdS48y2t5/46NUAWNVG0DYwUds2w?= =?us-ascii?Q?yGBnTLdP5UJM1p/uOrweEh1fkjmy6p789SBoq7Nu1VxgIqfUg2k4u5/cphXN?= =?us-ascii?Q?tyjKsmCZI4SACA0wn9cUE/HFjpRGhmBzaQVMUAUygZ+xt2FyeRQJyGuhi1kE?= =?us-ascii?Q?1p8mhcNqv8JQGNaC1FVQPd4snOCMf9lVCryCcyGco/6t78gYW2YMCrxy3pt+?= =?us-ascii?Q?PpXNxhRi0hIafxILRJ4o1vAJYnvw/SmVYPb0SEXi9oYwvEOn42OPlt3zIGiL?= =?us-ascii?Q?IKerOTsfvOlCXjzcUiEtEGZa/VqxOfDv7CU3gKvlpRrI/P8gNFnDqKjk8zpW?= =?us-ascii?Q?UP8wADtrIsgIBeNa8zsPW/x8ItsloWxTvphcaC2OdkWbdCswFCKj7HUWoxeO?= =?us-ascii?Q?ZwdtUBt2mA=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH0PR18MB4425B142A8A3B89BCE4A0F60D9EA9PH0PR18MB4425namp_" MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4425.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b2e09ee-0524-40b0-d59b-08da1bab7b8a X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2022 11:07:35.1619 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aYa5EO8XdYpHDTKV9WPVMjsB+D0mE4RzsCeSY0KixVMTa0nDIw0XjOybkuzvxzvC27jZJXy8f2ANjUC0U/EI0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB5019 X-Proofpoint-ORIG-GUID: EFNzB4CKXO1l7OOxncIocNisVNGAD32c X-Proofpoint-GUID: EFNzB4CKXO1l7OOxncIocNisVNGAD32c X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-11_04,2022-04-11_01,2022-02-23_01 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 --_000_PH0PR18MB4425B142A8A3B89BCE4A0F60D9EA9PH0PR18MB4425namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Please review and let me know if any comments. ________________________________ From: Shijith Thotton Sent: Tuesday, April 5, 2022 11:10 AM To: dev@dpdk.org ; Jerin Jacob Kollanukkaran Cc: Shijith Thotton ; Pavan Nikhilesh Bhagavatula ; harry.van.haaren@intel.com ; mattias.ronnblom@ericsson.com Subject: [PATCH v2 0/6] Extend and set event queue attributes at runtime This series adds support for setting event queue attributes at runtime and adds two new event queue attributes weight and affinity. Eventdev capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR is added to expose the capability to set attributes at runtime and rte_event_queue_attr_set() API is used to set the attributes. Attributes weight and affinity are not yet added to rte_event_queue_conf structure to avoid ABI break and will be added in 22.11. Till then, PMDs using the new attributes are expected to manage them. Test application changes and example implementation are added as last three patches. v2: * Modified attr_value type from u32 to u64 for set(). * Removed RTE_EVENT_QUEUE_ATTR_MAX macro. * Fixed return value in implementation. Pavan Nikhilesh (1): common/cnxk: use lock when accessing mbox of SSO Shijith Thotton (5): eventdev: support to set queue attributes at runtime eventdev: add weight and affinity to queue attributes doc: announce change in event queue conf structure test/event: test cases to test runtime queue attribute event/cnxk: support to set runtime queue attributes app/test/test_eventdev.c | 149 ++++++++++++++++++ doc/guides/eventdevs/features/cnxk.ini | 1 + doc/guides/eventdevs/features/default.ini | 1 + doc/guides/rel_notes/deprecation.rst | 3 + drivers/common/cnxk/roc_sso.c | 174 ++++++++++++++++------ drivers/common/cnxk/roc_sso_priv.h | 1 + drivers/common/cnxk/roc_tim.c | 134 +++++++++++------ drivers/event/cnxk/cn10k_eventdev.c | 4 + drivers/event/cnxk/cn9k_eventdev.c | 4 + drivers/event/cnxk/cnxk_eventdev.c | 91 ++++++++++- drivers/event/cnxk/cnxk_eventdev.h | 16 ++ lib/eventdev/eventdev_pmd.h | 44 ++++++ lib/eventdev/rte_eventdev.c | 38 +++++ lib/eventdev/rte_eventdev.h | 71 ++++++++- lib/eventdev/version.map | 3 + 15 files changed, 631 insertions(+), 103 deletions(-) -- 2.25.1 --_000_PH0PR18MB4425B142A8A3B89BCE4A0F60D9EA9PH0PR18MB4425namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Please review and let me know if any comments.

From: Shijith Thotton <s= thotton@marvell.com>
Sent: Tuesday, April 5, 2022 11:10 AM
To: dev@dpdk.org <dev@dpdk.org>; Jerin Jacob Kollanukkaran <= ;jerinj@marvell.com>
Cc: Shijith Thotton <sthotton@marvell.com>; Pavan Nikhilesh Bh= agavatula <pbhagavatula@marvell.com>; harry.van.haaren@intel.com <= harry.van.haaren@intel.com>; mattias.ronnblom@ericsson.com <mattias.r= onnblom@ericsson.com>
Subject: [PATCH v2 0/6] Extend and set event queue attributes at run= time
 
This series adds support for setting event queue a= ttributes at runtime
and adds two new event queue attributes weight and affinity. Eventdev
capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR is added to expose the
capability to set attributes at runtime and rte_event_queue_attr_set()
API is used to set the attributes.

Attributes weight and affinity are not yet added to rte_event_queue_conf structure to avoid ABI break and will be added in 22.11. Till then, PMDs using the new attributes are expected to manage them.

Test application changes and example implementation are added as last
three patches.

v2:
* Modified attr_value type from u32 to u64 for set().
* Removed RTE_EVENT_QUEUE_ATTR_MAX macro.
* Fixed return value in implementation.

Pavan Nikhilesh (1):
  common/cnxk: use lock when accessing mbox of SSO

Shijith Thotton (5):
  eventdev: support to set queue attributes at runtime
  eventdev: add weight and affinity to queue attributes
  doc: announce change in event queue conf structure
  test/event: test cases to test runtime queue attribute
  event/cnxk: support to set runtime queue attributes

 app/test/test_eventdev.c       &nb= sp;          | 149 +++++++++++= +++++++
 doc/guides/eventdevs/features/cnxk.ini    |  = ; 1 +
 doc/guides/eventdevs/features/default.ini |   1 +
 doc/guides/rel_notes/deprecation.rst      |&= nbsp;  3 +
 drivers/common/cnxk/roc_sso.c      &nbs= p;      | 174 ++++++++++++++++------
 drivers/common/cnxk/roc_sso_priv.h      = ;  |   1 +
 drivers/common/cnxk/roc_tim.c      &nbs= p;      | 134 +++++++++++------
 drivers/event/cnxk/cn10k_eventdev.c     &nbs= p; |   4 +
 drivers/event/cnxk/cn9k_eventdev.c      = ;  |   4 +
 drivers/event/cnxk/cnxk_eventdev.c      = ;  |  91 ++++++++++-
 drivers/event/cnxk/cnxk_eventdev.h      = ;  |  16 ++
 lib/eventdev/eventdev_pmd.h       =         |  44 ++++++
 lib/eventdev/rte_eventdev.c       =         |  38 +++++
 lib/eventdev/rte_eventdev.h       =         |  71 ++++++++-
 lib/eventdev/version.map       &nb= sp;          |   3 +=
 15 files changed, 631 insertions(+), 103 deletions(-)

--
2.25.1

--_000_PH0PR18MB4425B142A8A3B89BCE4A0F60D9EA9PH0PR18MB4425namp_--