* |SUCCESS| pw131224 [PATCH v1] dma/cnxk: offload source buffer free
[not found] <20230907082443.1002665-1-amitprakashs@marvell.com>
@ 2023-09-07 8:26 ` checkpatch
2023-09-07 8:27 ` |WARNING| " qemudev
1 sibling, 0 replies; 3+ messages in thread
From: checkpatch @ 2023-09-07 8:26 UTC (permalink / raw)
To: test-report
Test-Label: checkpatch
Test-Status: SUCCESS
http://dpdk.org/patch/131224
_coding style OK_
^ permalink raw reply [flat|nested] 3+ messages in thread
* |WARNING| pw131224 [PATCH v1] dma/cnxk: offload source buffer free
[not found] <20230907082443.1002665-1-amitprakashs@marvell.com>
2023-09-07 8:26 ` |SUCCESS| pw131224 [PATCH v1] dma/cnxk: offload source buffer free checkpatch
@ 2023-09-07 8:27 ` qemudev
1 sibling, 0 replies; 3+ messages in thread
From: qemudev @ 2023-09-07 8:27 UTC (permalink / raw)
To: test-report; +Cc: Amit Prakash Shukla, zhoumin
Test-Label: loongarch-compilation
Test-Status: WARNING
http://dpdk.org/patch/131224
_apply patch failure_
Submitter: Amit Prakash Shukla <amitprakashs@marvell.com>
Date: Thu, 7 Sep 2023 13:54:43 +0530
DPDK git baseline: Repo:dpdk
Branch: main
CommitID: e92ba1426914db1d224dd5e9a1743657681b8814
Apply patch set 131224 failed:
Checking patch drivers/dma/cnxk/cnxk_dmadev.c...
error: while searching for:
dev_info->nb_vchans = dpivf->num_vchans;
dev_info->dev_capa = RTE_DMA_CAPA_MEM_TO_MEM | RTE_DMA_CAPA_MEM_TO_DEV |
RTE_DMA_CAPA_DEV_TO_MEM | RTE_DMA_CAPA_DEV_TO_DEV |
RTE_DMA_CAPA_OPS_COPY | RTE_DMA_CAPA_OPS_COPY_SG;
dev_info->max_desc = DPI_MAX_DESC;
dev_info->min_desc = DPI_MIN_DESC;
dev_info->max_sges = DPI_MAX_POINTER;
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:16
error: drivers/dma/cnxk/cnxk_dmadev.c: patch does not apply
Checking patch drivers/dma/cnxk/cnxk_dmadev_fp.c...
error: drivers/dma/cnxk/cnxk_dmadev_fp.c: No such file or directory
^ permalink raw reply [flat|nested] 3+ messages in thread
* |WARNING| pw131224 [PATCH] [v1] dma/cnxk: offload source buffer free
@ 2023-09-08 4:26 dpdklab
0 siblings, 0 replies; 3+ messages in thread
From: dpdklab @ 2023-09-08 4:26 UTC (permalink / raw)
To: test-report; +Cc: dpdk-test-reports
Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/131224
_apply patch failure_
Submitter: Amit Prakash Shukla <amitprakashs@marvell.com>
Date: Thursday, September 07 2023 08:24:43
Applied on: CommitID:e92ba1426914db1d224dd5e9a1743657681b8814
Apply patch set 131224 failed:
Checking patch drivers/dma/cnxk/cnxk_dmadev.c...
error: while searching for:
dev_info->nb_vchans = dpivf->num_vchans;
dev_info->dev_capa = RTE_DMA_CAPA_MEM_TO_MEM | RTE_DMA_CAPA_MEM_TO_DEV |
RTE_DMA_CAPA_DEV_TO_MEM | RTE_DMA_CAPA_DEV_TO_DEV |
RTE_DMA_CAPA_OPS_COPY | RTE_DMA_CAPA_OPS_COPY_SG;
dev_info->max_desc = DPI_MAX_DESC;
dev_info->min_desc = DPI_MIN_DESC;
dev_info->max_sges = DPI_MAX_POINTER;
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:16
error: while searching for:
return rc;
}
static void
cn9k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vchan_conf *conf)
{
header->cn9k.pt = DPI_HDR_PT_ZBW_CA;
switch (conf->direction) {
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:159
error: while searching for:
header->cn9k.func = conf->dst_port.pcie.pfid << 12;
header->cn9k.func |= conf->dst_port.pcie.vfid;
}
break;
case RTE_DMA_DIR_MEM_TO_MEM:
header->cn9k.xtype = DPI_XTYPE_INTERNAL_ONLY;
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:184
error: while searching for:
header->cn9k.fport = conf->dst_port.pcie.coreid;
header->cn9k.pvfe = 0;
};
}
static void
cn10k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vchan_conf *conf)
{
header->cn10k.pt = DPI_HDR_PT_ZBW_CA;
switch (conf->direction) {
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:197
error: while searching for:
header->cn10k.func = conf->dst_port.pcie.pfid << 12;
header->cn10k.func |= conf->dst_port.pcie.vfid;
}
break;
case RTE_DMA_DIR_MEM_TO_MEM:
header->cn10k.xtype = DPI_XTYPE_INTERNAL_ONLY;
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:224
error: while searching for:
header->cn10k.fport = conf->dst_port.pcie.coreid;
header->cn10k.pvfe = 0;
};
}
static int
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:237
error: while searching for:
union cnxk_dpi_instr_cmd *header;
uint16_t max_desc;
uint32_t size;
int i;
RTE_SET_USED(conf_sz);
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:248
error: while searching for:
return 0;
if (dpivf->is_cn10k)
cn10k_dmadev_setup_hdr(header, conf);
else
cn9k_dmadev_setup_hdr(header, conf);
/* Free up descriptor memory before allocating. */
cnxk_dmadev_vchan_free(dpivf, vchan);
error: patch failed: drivers/dma/cnxk/cnxk_dmadev.c:257
Checking patch drivers/dma/cnxk/cnxk_dmadev_fp.c...
error: drivers/dma/cnxk/cnxk_dmadev_fp.c: does not exist in index
Applying patch drivers/dma/cnxk/cnxk_dmadev.c with 8 rejects...
Rejected hunk #1.
Rejected hunk #2.
Rejected hunk #3.
Rejected hunk #4.
Rejected hunk #5.
Rejected hunk #6.
Rejected hunk #7.
Rejected hunk #8.
hint: Use 'git am --show-current-patch' to see the failed patch
diff a/drivers/dma/cnxk/cnxk_dmadev.c b/drivers/dma/cnxk/cnxk_dmadev.c (rejected hunks)
@@ -16,7 +16,8 @@ cnxk_dmadev_info_get(const struct rte_dma_dev *dev, struct rte_dma_info *dev_inf
dev_info->nb_vchans = dpivf->num_vchans;
dev_info->dev_capa = RTE_DMA_CAPA_MEM_TO_MEM | RTE_DMA_CAPA_MEM_TO_DEV |
RTE_DMA_CAPA_DEV_TO_MEM | RTE_DMA_CAPA_DEV_TO_DEV |
- RTE_DMA_CAPA_OPS_COPY | RTE_DMA_CAPA_OPS_COPY_SG;
+ RTE_DMA_CAPA_OPS_COPY | RTE_DMA_CAPA_OPS_COPY_SG |
+ RTE_DMA_CAPA_MEM_TO_DEV_SOURCE_BUFFER_FREE;
dev_info->max_desc = DPI_MAX_DESC;
dev_info->min_desc = DPI_MIN_DESC;
dev_info->max_sges = DPI_MAX_POINTER;
@@ -159,9 +160,26 @@ cnxk_dmadev_configure(struct rte_dma_dev *dev, const struct rte_dma_conf *conf,
return rc;
}
-static void
+static int
+dmadev_src_buf_aura_get(struct rte_mempool *sb_mp, const char *mp_ops_name)
+{
+ struct rte_mempool_ops *ops;
+
+ if (sb_mp == NULL)
+ return 0;
+
+ ops = rte_mempool_get_ops(sb_mp->ops_index);
+ if (strcmp(ops->name, mp_ops_name) != 0)
+ return -EINVAL;
+
+ return roc_npa_aura_handle_to_aura(sb_mp->pool_id);
+}
+
+static int
cn9k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vchan_conf *conf)
{
+ int aura;
+
header->cn9k.pt = DPI_HDR_PT_ZBW_CA;
switch (conf->direction) {
@@ -184,6 +202,11 @@ cn9k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vch
header->cn9k.func = conf->dst_port.pcie.pfid << 12;
header->cn9k.func |= conf->dst_port.pcie.vfid;
}
+ aura = dmadev_src_buf_aura_get(conf->mem_to_dev_src_buf_pool, "cn9k_mempool_ops");
+ if (aura < 0)
+ return aura;
+ header->cn9k.aura = aura;
+ header->cn9k.ii = 1;
break;
case RTE_DMA_DIR_MEM_TO_MEM:
header->cn9k.xtype = DPI_XTYPE_INTERNAL_ONLY;
@@ -197,11 +220,15 @@ cn9k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vch
header->cn9k.fport = conf->dst_port.pcie.coreid;
header->cn9k.pvfe = 0;
};
+
+ return 0;
}
-static void
+static int
cn10k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vchan_conf *conf)
{
+ int aura;
+
header->cn10k.pt = DPI_HDR_PT_ZBW_CA;
switch (conf->direction) {
@@ -224,6 +251,10 @@ cn10k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vc
header->cn10k.func = conf->dst_port.pcie.pfid << 12;
header->cn10k.func |= conf->dst_port.pcie.vfid;
}
+ aura = dmadev_src_buf_aura_get(conf->mem_to_dev_src_buf_pool, "cn10k_mempool_ops");
+ if (aura < 0)
+ return aura;
+ header->cn10k.aura = aura;
break;
case RTE_DMA_DIR_MEM_TO_MEM:
header->cn10k.xtype = DPI_XTYPE_INTERNAL_ONLY;
@@ -237,6 +268,8 @@ cn10k_dmadev_setup_hdr(union cnxk_dpi_instr_cmd *header, const struct rte_dma_vc
header->cn10k.fport = conf->dst_port.pcie.coreid;
header->cn10k.pvfe = 0;
};
+
+ return 0;
}
static int
@@ -248,7 +281,7 @@ cnxk_dmadev_vchan_setup(struct rte_dma_dev *dev, uint16_t vchan,
union cnxk_dpi_instr_cmd *header;
uint16_t max_desc;
uint32_t size;
- int i;
+ int i, ret;
RTE_SET_USED(conf_sz);
@@ -257,9 +290,12 @@ cnxk_dmadev_vchan_setup(struct rte_dma_dev *dev, uint16_t vchan,
return 0;
if (dpivf->is_cn10k)
- cn10k_dmadev_setup_hdr(header, conf);
+ ret = cn10k_dmadev_setup_hdr(header, conf);
else
- cn9k_dmadev_setup_hdr(header, conf);
+ ret = cn9k_dmadev_setup_hdr(header, conf);
+
+ if (ret)
+ return ret;
/* Free up descriptor memory before allocating. */
cnxk_dmadev_vchan_free(dpivf, vchan);
https://lab.dpdk.org/results/dashboard/patchsets/27543/
UNH-IOL DPDK Community Lab
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-08 4:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230907082443.1002665-1-amitprakashs@marvell.com>
2023-09-07 8:26 ` |SUCCESS| pw131224 [PATCH v1] dma/cnxk: offload source buffer free checkpatch
2023-09-07 8:27 ` |WARNING| " qemudev
2023-09-08 4:26 |WARNING| pw131224 [PATCH] [v1] " dpdklab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).