[EXTERNAL] [PATCH v4 1/1] dmadev: support priority configuration

Vamsi Krishna Attunuru vattunuru at marvell.com
Thu Oct 3 15:31:49 CEST 2024


Hi Feng,

Could you review V4 and let me know if it’s ready to be acked or if any changes are needed.

Regards
Vamsi

From: Vamsi Krishna Attunuru <vattunuru at marvell.com>
Sent: Thursday, October 3, 2024 6:46 PM
To: Anoob Joseph <anoobj at marvell.com>; thomas at monjalon.net; fengchengwen at huawei.com; bruce.richardson at intel.com; mb at smartsharesystems.com
Cc: dev at dpdk.org; kevin.laatz at intel.com; Jerin Jacob <jerinj at marvell.com>; conor.walsh at intel.com; Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>; Vidya Sagar Velumuri <vvelumuri at marvell.com>; g.singh at nxp.com; sachin.saxena at oss.nxp.com; hemant.agrawal at nxp.com; Amit Prakash Shukla <amitprakashs at marvell.com>
Subject: RE: [EXTERNAL] [PATCH v4 1/1] dmadev: support priority configuration

>-----Original Message----- >From: Anoob Joseph <anoobj@ marvell. com> >Sent: Thursday, October 3, 2024 6: 37 PM >To: Vamsi Krishna Attunuru <vattunuru@ marvell. com>; >thomas@ monjalon. net; fengchengwen@ huawei. com; >bruce. richardson@ intel. com;






>-----Original Message-----

>From: Anoob Joseph <anoobj at marvell.com<mailto:anoobj at marvell.com>>

>Sent: Thursday, October 3, 2024 6:37 PM

>To: Vamsi Krishna Attunuru <vattunuru at marvell.com<mailto:vattunuru at marvell.com>>;

>thomas at monjalon.net<mailto:thomas at monjalon.net>; fengchengwen at huawei.com<mailto:fengchengwen at huawei.com>;

>bruce.richardson at intel.com<mailto:bruce.richardson at intel.com>; mb at smartsharesystems.com<mailto:mb at smartsharesystems.com>

>Cc: dev at dpdk.org<mailto:dev at dpdk.org>; kevin.laatz at intel.com<mailto:kevin.laatz at intel.com>; Jerin Jacob <jerinj at marvell.com<mailto:jerinj at marvell.com>>;

>conor.walsh at intel.com<mailto:conor.walsh at intel.com>; Gowrishankar Muthukrishnan

><gmuthukrishn at marvell.com<mailto:gmuthukrishn at marvell.com>>; Vidya Sagar Velumuri

><vvelumuri at marvell.com<mailto:vvelumuri at marvell.com>>; g.singh at nxp.com<mailto:g.singh at nxp.com>; sachin.saxena at oss.nxp.com<mailto:sachin.saxena at oss.nxp.com>;

>hemant.agrawal at nxp.com<mailto:hemant.agrawal at nxp.com>; Vamsi Krishna Attunuru

><vattunuru at marvell.com<mailto:vattunuru at marvell.com>>; Amit Prakash Shukla

><amitprakashs at marvell.com<mailto:amitprakashs at marvell.com>>

>Subject: RE: [EXTERNAL] [PATCH v4 1/1] dmadev: support priority

>configuration

>

>Hi Vamsi,

>

>Looks good overall. Minor nit inline.

>

>With the change, Acked-by: Anoob Joseph <anoobj at marvell.com<mailto:anoobj at marvell.com>>

>

>Thanks,

>Anoob

>

>> From: Vamsi Attunuru <mailto:vattunuru at marvell.com>

>>

>> 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 <mailto:vattunuru at marvell.com>

>> Signed-off-by: Amit Prakash Shukla <mailto:amitprakashs at marvell.com>

>> ---

>> V4 changes:

>> * Rebased onto the latest

>>

>> V3 changes:

>> * Corrected patch title

>>

>> V2 changes:

>> * Reverted removed text from release_24_11.rst

>>

>> V1 changes:

>> * Added trace support

>> * Added new capability flag

>>

>> Deprecation notice:

>> https://urldefense.proofpoint.com/v2/url?u=https-3A__patches.dpdk.org_<https://urldefense.proofpoint.com/v2/url?u=https-3A__patches.dpdk.org_%3e%3e>

>><https://urldefense.proofpoint.com/v2/url?u=https-3A__patches.dpdk.org_%3e%3e>project_dpdk_patch_20240730144612.2132848-2D1-2Damitprakashs-

>40marvell

>>

>.com_&d=DwIDAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=jPfB8rwwviRSxyLWs2n6

>B-WYLn1v

>> 9SyTMrT5EQqh2TU&m=c22fMFIKeJe1DOrgulUnP_Vx8GS88rJvSiL6g5m-

>mXf6ioWKtTZo

>> gLVQGhFkAnTS&s=PqF7gt7H7PoC8EZjxdhed4aH7gqUS-qNKx0oKgCqorE&e=

>>

>> * Assuming we do not anticipate any advanced scheduling schemes for

>> dmadev queues,  this patch is intended to support a strict priority scheme.

>>

>> doc/guides/rel_notes/release_24_11.rst |  8 ++++++++

>> lib/dmadev/rte_dmadev.c                | 15 +++++++++++++++

>> lib/dmadev/rte_dmadev.h                | 21 +++++++++++++++++++++

>> lib/dmadev/rte_dmadev_trace.h          |  2 ++

>> 4 files changed, 46 insertions(+)

>>

>

><snip>

>

>> --- a/lib/dmadev/rte_dmadev.h

>> +++ b/lib/dmadev/rte_dmadev.h

>> @@ -268,6 +268,16 @@ int16_t rte_dma_next_dev(int16_t start_dev_id);

>> #define RTE_DMA_CAPA_OPS_COPY_SG            RTE_BIT64(33)

>> /** Support fill operation. */

>> #define RTE_DMA_CAPA_OPS_FILL                      RTE_BIT64(34)

>> +/** Support strict prioritization at DMA HW channel level

>> + *

>> + * If device supports HW channel prioritization then application

>> +could

>> + * assign fixed priority to the DMA HW channel using 'priority' field

>> +in

>

>[Anoob] Do we need to mention HW? Should we just use "DMA channel"?

>Here and in other places.



[vamsi] It's mainly to differentiate between vchan(kind of sw channel) and hw channel.



>

>> + * struct rte_dma_conf. Number of supported priority levels will be

>> + known

>> + * from 'nb_priorities' field in struct rte_dma_info.

>> + *

>> + * DMA devices which support prioritization can advertise this capability.

>> + */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20241003/8e0f065d/attachment-0001.htm>


More information about the dev mailing list