dmaengine: fsl-dpaa2-qdma: Update DPDMAI interfaces to version 3
authorFrank Li <Frank.Li@nxp.com>
Tue, 9 Apr 2024 16:36:30 +0000 (12:36 -0400)
committerVinod Koul <vkoul@kernel.org>
Wed, 17 Apr 2024 17:12:38 +0000 (22:42 +0530)
commitbd2f66bc0ba08a68c7edcd3992886d1773c18cf2
tree5c858f03ff12336d031bcc5f4fe913f52c444a5a
parentb52e28eca7da47fa389605a8eda1952a9fa3c69f
dmaengine: fsl-dpaa2-qdma: Update DPDMAI interfaces to version 3

Update the DPDMAI interfaces to support MC firmware up to 10.1x.x, which
major change is to add dpaa domain id support. User space MC controller
tool can create difference dpaa domain for difference virtual environment.
DMA queues can map to difference service priorities.

The MC command was basic compatible original one. The new command use
previous reserved field.

- Add queue number for dpdmai_get_tx(rx)_queue().
- Unified rx(tx)_queue_attr.
- Update pad/reserved field of struct dpdmai_rsp_get_attributes and
struct dpdmai_cmd_queue for new API.
- Update command DPDMAI_SET(GET)_RX_QUEUE and DPDMAI_CMDID_GET_TX_QUEUE

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240409163630.1996052-1-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c
drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.h
drivers/dma/fsl-dpaa2-qdma/dpdmai.c
drivers/dma/fsl-dpaa2-qdma/dpdmai.h