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 662DA4599E; Mon, 16 Sep 2024 18:34:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22DB34025F; Mon, 16 Sep 2024 18:34:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1693A40150 for ; Mon, 16 Sep 2024 18:34:36 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48GEPwk6009218; Mon, 16 Sep 2024 09:34:36 -0700 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 41na0fxajj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Sep 2024 09:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uD8YRdmXlTg5K0rSVc9WTO+YgNoH8toUB2rq1MpQXjRMFR4/F2KfIP8gnMBhRilBMf3HVPlMVL83QDpHy430ejl0dX+BuAKFQyzwk7pNoUJ5umpw7SWMdIYcjh70LdenbKc/l1wZOX3ev9pGBW+hyUS4y9y8+c5Htoyq2ZBJX3S/HtMXvjdUXoNRH0j7lPaPW2/M9L3lTpbliMLXzexMxwFyQxHuAU2Hg2ZzZG55YILcfvYZrj3BZQgAPoo667Lvu2l8i3ThTDuAzCQko084mdQJMekYShPfMYSjHVV5fKj+PONiHcPFSxxarPyM0US0AuixYvCDaEy3BgFR1WnBgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0YBeUYemKD+Mlf9q1xlFKQFaIq/lEscJUqpcuONMk7E=; b=BKRS8kSLBCurlPPBcD8gh0fUOfS7gbemwRNh0BTAxNK6EUX7QTOQnMgIJSQGUICh7rZ60c9t3T+j3ChIOh5tguebJ8kqVGh2q+sBAUHAD7U2tpWiB0Lji4CKFwW1q3A+Ft2yVYsjEegb/+7rxgTwZvCYRVOQJMtld0MgoDv3YT4JlgyQErlOrMdRKyVglLx5flEwVfNhQTWCM+rgN4ds9RA8GXIwmjGbkriyKNnN7WEpzqVE7dhEHcJ99JMzQkLse5zI0W1MIz9zcp1V2nyPuN88VyxQHTeD6cWiKRO4OHQHgBjKf/L7uK8f2OCE9o9JRyeukOf0sTMIPBMkufoyQg== 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.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0YBeUYemKD+Mlf9q1xlFKQFaIq/lEscJUqpcuONMk7E=; b=qx18k8AvzYg4X8NU6p7PUQw9Qpyt2aAm0X2S9anuBAUV6VYf2hNqd95Jd2koQmydLV35eWY8g6kDllvBjcauh2iBiqO0APMOZpVRtBzKeHmdwAQvaF2ssWz3X4unOG2er5jWRw59ezglYleY3F5uq80T5vl8l6XrhQQosFYgEjc= Received: from MW4PR18MB5244.namprd18.prod.outlook.com (2603:10b6:303:1e0::16) by BN9PR18MB4121.namprd18.prod.outlook.com (2603:10b6:408:132::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Mon, 16 Sep 2024 16:34:33 +0000 Received: from MW4PR18MB5244.namprd18.prod.outlook.com ([fe80::52f3:9792:ee42:90b]) by MW4PR18MB5244.namprd18.prod.outlook.com ([fe80::52f3:9792:ee42:90b%5]) with mapi id 15.20.7962.022; Mon, 16 Sep 2024 16:34:33 +0000 From: Vamsi Krishna Attunuru To: fengchengwen , "thomas@monjalon.net" , "bruce.richardson@intel.com" , "mb@smartsharesystems.com" CC: "dev@dpdk.org" , "kevin.laatz@intel.com" , Jerin Jacob , "conor.walsh@intel.com" , Gowrishankar Muthukrishnan , Vidya Sagar Velumuri , "g.singh@nxp.com" , "sachin.saxena@oss.nxp.com" , "hemant.agrawal@nxp.com" , Amit Prakash Shukla Subject: RE: [EXTERNAL] Re: [RFC v0 1/1] dmadev: provide priority configuration support Thread-Topic: [EXTERNAL] Re: [RFC v0 1/1] dmadev: provide priority configuration support Thread-Index: AQHbBdYKOil5sfWgkEWz9qx4MTKr4bJXCOgAgAOWUbA= Date: Mon, 16 Sep 2024 16:34:33 +0000 Message-ID: References: <20240913121038.315714-1-vattunuru@marvell.com> <258c30fd-8100-49b5-9a1b-a1aad893b286@huawei.com> In-Reply-To: <258c30fd-8100-49b5-9a1b-a1aad893b286@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR18MB5244:EE_|BN9PR18MB4121:EE_ x-ms-office365-filtering-correlation-id: b9b821ff-1b0f-4ae0-30b3-08dcd66d7200 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|7416014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?RGx4YXVoME51SHBXMndjR2FTTFdObkhqMmMrNzhBa3R2azdkb1FJdFVEQnV4?= =?utf-8?B?YWlETHFXUnJGWC9Pam5EK0lGaVlpYjNQRHVjdG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:; IPV:NLI; SFV:NSPM; H:MW4PR18MB5244.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(7416014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ZTJBTFFENDlTUjVpdEcydGR6RGMvK3FWM0tPSExteTg2TjV5UDJBRFVEZ1Fy?= =?utf-8?B?YkkrS3J5ZGs3aVg2c0NKNW54alVteWdGWVNWZXl4cnFCOG5IdE5uWjRPWXIw?= =?utf-8?B?ZFNHSHRtYVVZNFYzUW5kajBKcXdiYWxOWlFVZVZFREdhQVl4VHNwSGdQb3Rx?= =?utf-8?B?ZU1lNjJpdU9kRGpRczliT2ZmUEtQdklIaXloOGpjV1BMdGxkTGVMVlFBczJ2?= =?utf-8?B?L1Y1amZ2VTM2YTBVNzk2Vlo0THdYYW14N1JHT0NqOFR4YVNsSVgzblMxQXBN?= =?utf-8?B?eWNrTGwxRlFwS3NPRXpUR2FzSVFtOHZ6KzJ4TzZpL2V5MVc1SWVHTmRWRSs3?= =?utf-8?B?c1d0aW1QYTVuSmVQNkhMQjQwcnVOZ2Y5OEVZcUR5MklvSU9wU1ozOExteVc2?= =?utf-8?B?ckRWRmJUMmZqQmkrczhZeEE5ZEVPL2dYdnRyTE9LL0I3RWYzRnRjZDhoa1Rj?= =?utf-8?B?eVJmeFowbnVJRWtzcWMvR29JUmY3LzRic0ltbVEzNDBEajBmZkJqZFZ0OGRp?= =?utf-8?B?NTJCV0d5clZ4WWVYMnhwdXBjMU5jOUZOTVNCV08vdXVySE83NE12L1pzRExy?= =?utf-8?B?SVdBdldtR3k1L1ZkOXJBb2Z3bzZBbytiM3FYOEpsUG1HZU9peVlzTkFSUldZ?= =?utf-8?B?Ui8zUUR5a3ZEdEZjaHNUVWhKL0JGSGJIbGg5VDBLYW5ZYlZzSUJLcnh6T1p3?= =?utf-8?B?dC9yZlFDMWdjRi9pdD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8?B?NmVQUWU3S2Zqdk1pNDVHVXN2VEtqQXFBMi9UaHkzNGMwMTVrdDI0Zk9pNERn?= =?utf-8?B?UGhUYVAxL215TDVGQW9vcS9Gc0ZSYzFuZE1lZTNTaDZKbnZ5dzhsWVNYRDlO?= =?utf-8?B?bkk1aXVINE4zRlVMMnd4S25FN0o0a2o3cVBybis2WW44Z282VWVSL3JVSFIy?= =?utf-8?B?MGtaa0JhaXRGWFJGNiszSG1lQVFwVmVqUVpCbjNseHJvNm1qNU9UZC9NMlRq?= =?utf-8?B?dGhoeUYwdncwNkR1aG5JWnEzcjU4OENYQzJVa0FLOXRQT2dZci9RZXNjWERE?= =?utf-8?B?RDRtdFU1R0p1TTh3VC95MWQ0bGdTMVNTdVhpZnlHK1pqZmlYb1NEaitzV0ZP?= =?utf-8?B?Ym1hV21OclVlVDlMK2J3QTc1UG95ZC9maDNSVHJMa3Z2V1NBMkVzREtneFl0?= =?utf-8?B?dFpHc3B2bS9iSVJ5TUcrekNocUZkVDcrZjJlSmJBemlkWEx5bUNnMTdWQ29s?= =?utf-8?Q?/iNukR19oLxnnQJ9sfOOYF/Pb?= MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR18MB5244.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9b821ff-1b0f-4ae0-30b3-08dcd66d7200 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2024 16:34:33.1541 (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: ggx8SI5iEAK5iUyVjI22+DB6shBHTGSIsnHeoSCeefEh5Y1SC+QIEt3FN4qemoVnjpwV/OS+qX178B0ZomgbDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR18MB4121 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: KNu1fEdnxIqcTh03bcMmcZS2MPIejJk_ X-Proofpoint-GUID: KNu1fEdnxIqcTh03bcMmcZS2MPIejJk_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_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 >-----Original Message----- >From: fengchengwen >Sent: Saturday, September 14, 2024 3:12 PM >To: Vamsi Krishna Attunuru ; >thomas@monjalon.net; bruce.richardson@intel.com; >mb@smartsharesystems.com >Cc: dev@dpdk.org; kevin.laatz@intel.com; Jerin Jacob ; >conor.walsh@intel.com; Gowrishankar Muthukrishnan >; Vidya Sagar Velumuri >; g.singh@nxp.com; sachin.saxena@oss.nxp.com; >hemant.agrawal@nxp.com; Amit Prakash Shukla > >Subject: [EXTERNAL] Re: [RFC v0 1/1] dmadev: provide priority configuration >support > >On 2024/9/13 20:=E2=80=8A10, Vamsi Krishna wrote: > From: Vamsi Attunuru > > > Some DMA controllers offer t= he ability to >configure priority level > for the hardware command queues, allowing for t= he >prioritization=20 >On 2024/9/13 20:10, Vamsi Krishna wrote: >> From: Vamsi Attunuru >> >> Some DMA controllers offer the ability to configure priority level for >> the hardware command queues, allowing for the prioritization of DMA >> command execution based on queue importance. >> >> This patch introduces the necessary fields in the dmadev structures to >> retrieve information about the hardware-supported priority levels and >> to enable priority configuration from the application. >> >> Signed-off-by: Vamsi Attunuru >> Signed-off-by: Amit Prakash Shukla >> --- >> >> Deprecation notice: >> https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__patches.dpdk.org_ >> project_dpdk_patch_20240730144612.2132848-2D1-2Damitprakashs- >40marvell >> >.com_&d=3DDwICaQ&c=3DnKjWec2b6R0mOyPaz7xtfQ&r=3DWllrYaumVkxaWjgKto6E >_rtDQshh >> >Ihik2jkvzFyRhW8&m=3Dc5golEA5oYRC2qs5aUbwKAGfIFWAsjeOW4OaQaRl9pE11 >PNXlmhg >> 2MEnn4OYFN8g&s=3D3XTQJ_S2k_9fzXvPXLOYdj4VFExnzZ04_uiB1qBaFv0&e=3D >> >> * Assuming we do not anticipate any advanced scheduling schemes for >dmadev queues, >> this RFC is intended to support a strict prioirty scheme. >> >> doc/guides/rel_notes/release_24_11.rst | 15 +++------------ >> lib/dmadev/rte_dmadev.c | 10 ++++++++++ >> lib/dmadev/rte_dmadev.h | 11 +++++++++++ >> 3 files changed, 24 insertions(+), 12 deletions(-) >> >> diff --git a/doc/guides/rel_notes/release_24_11.rst >> b/doc/guides/rel_notes/release_24_11.rst >> index 0ff70d9057..dc711bbf98 100644 >> --- a/doc/guides/rel_notes/release_24_11.rst >> +++ b/doc/guides/rel_notes/release_24_11.rst >> @@ -88,18 +88,9 @@ API Changes >> ABI Changes >> ----------- >> >> -.. This section should contain ABI changes. Sample format: >> - >> - * sample: Add a short 1-2 sentence description of the ABI change >> - which was announced in the previous releases and made in this rele= ase. >> - Start with a scope label like "ethdev:". >> - Use fixed width quotes for ``function_names`` or ``struct_names``. >> - Use the past tense. >> - >> - This section is a comment. Do not overwrite or remove it. >> - Also, make sure to start the actual text at the margin. >> - =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D >> - >> +* dmadev: Added ``nb_priorities`` field to ``rte_dma_info`` structure >> +and >> + ``priority`` field to ``rte_dma_conf`` structure to get device >> +supported >> + priority levels and configure required priority from the application. >> >> Known Issues >> ------------ >> diff --git a/lib/dmadev/rte_dmadev.c b/lib/dmadev/rte_dmadev.c index >> 845727210f..053170f55a 100644 >> --- a/lib/dmadev/rte_dmadev.c >> +++ b/lib/dmadev/rte_dmadev.c >> @@ -497,6 +497,16 @@ rte_dma_configure(int16_t dev_id, const struct >rte_dma_conf *dev_conf) >> return -EINVAL; >> } >> >> + if (dev_info.nb_priorities =3D=3D 1) { >> + RTE_DMA_LOG(ERR, "Device %d must support more than 1 >priority, or else 0", dev_id); >> + return -EINVAL; >> + } >> + >> + if (dev_info.nb_priorities && (dev_conf->priority >=3D >dev_info.nb_priorities)) { >> + RTE_DMA_LOG(ERR, "Device %d configure invalid priority", >dev_id); >> + return -EINVAL; >> + } > >Please add trace support Sure, will add it. > >> + >> if (*dev->dev_ops->dev_configure =3D=3D NULL) >> return -ENOTSUP; >> ret =3D (*dev->dev_ops->dev_configure)(dev, dev_conf, diff --git >> a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h index >> 5474a5281d..d59fcf1b61 100644 >> --- a/lib/dmadev/rte_dmadev.h >> +++ b/lib/dmadev/rte_dmadev.h >> @@ -297,6 +297,10 @@ struct rte_dma_info { >> int16_t numa_node; >> /** Number of virtual DMA channel configured. */ >> uint16_t nb_vchans; >> + /** Number of priority levels (must be > 1), if supported by DMA HW >channel. >> + * 0 otherwise. >> + */ >> + uint16_t nb_priorities; > >Suggest add priority schedule policy capability, for example: >RTE_DMA_CAPA_PRIORITY_POLICY_SP Sure, since strict priority is only supported and not explicitly defined as= a capability. Will add it as capability. > >> }; >> >> /** >> @@ -332,6 +336,13 @@ struct rte_dma_conf { >> * @see RTE_DMA_CAPA_SILENT >> */ >> bool enable_silent; >> + /* The prioirty of the DMA HW channel. >> + * This value cannot be greater than or equal to the field 'nb_priorit= ies' >> + * of struct rte_dma_info which get from rte_dma_info_get(). >> + * Among the values between '0' and 'nb_priorities - 1', lowest value >> + * indicates higher priority and vice-versa. >> + */ >> + uint16_t priority; >> }; >> >> /**