DPAA and FSLMC driver fixes and cleanup
Subsystems (2)
cover DPAA and FSLMC driver fixes and cleanup
These patches incllude various fixes and some cleanups related to DPAA and FSLMC drivers
Hemant Agrawal (1):
bus/dpaa: moving qbman global init to bus
Nipun Gupta (7):
net/dpaa: fix supported RSS types
net/dpaa: fix LS1043 alignment check
common/dpaax: fallback to check separate memory node for VM mempool/dpaa2: panic on endless loop in mbuf release net/dpaa2: add retry and timeout in packet enqueue API raw/dpaa2_qdma: add retry and timeout in packet enqueue API raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
Shreyansh Jain (1):
bus/fslmc: sanitize device name parsing for clarity
drivers/bus/dpaa/dpaa_bus.c | 21 ++++++- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 - drivers/bus/fslmc/fslmc_bus.c | 14 +++-- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/common/dpaax/dpaax_iova_table.c | 7 ++- drivers/common/dpaax/dpaax_iova_table.h | 2 + drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +++ drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 23 +++++--- drivers/net/dpaa/dpaa_ethdev.c | 14 ----- drivers/net/dpaa/dpaa_ethdev.h | 13 ++-- drivers/net/dpaa/dpaa_rxtx.c | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++----- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 ++- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 +++- 14 files changed, 140 insertions(+), 61 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/9 net/dpaa: fix supported RSS types
This patch fixes the supported RSS types on DPAA platform
--- drivers/net/dpaa/dpaa_ethdev.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
drivers/net/dpaa/dpaa_ethdev.h +5 -8
@@ -76,14 +76,11 @@#define DPAA_DEBUG_FQ_TX_ERROR 1#define DPAA_RSS_OFFLOAD_ALL ( \ - ETH_RSS_FRAG_IPV4 | \ - ETH_RSS_NONFRAG_IPV4_TCP | \ - ETH_RSS_NONFRAG_IPV4_UDP | \ - ETH_RSS_NONFRAG_IPV4_SCTP | \ - ETH_RSS_FRAG_IPV6 | \ - ETH_RSS_NONFRAG_IPV6_TCP | \ - ETH_RSS_NONFRAG_IPV6_UDP | \ - ETH_RSS_NONFRAG_IPV6_SCTP) + ETH_RSS_L2_PAYLOAD | \ + ETH_RSS_IP | \ + ETH_RSS_UDP | \ + ETH_RSS_TCP | \ + ETH_RSS_SCTP)#define DPAA_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \
Signature · 1 line
2.17.1
PATCH 2/9 net/dpaa: fix LS1043 alignment check
In reply to Nipun GuptaOn LS1043, we are good to check 128 byte alignment of offset to transmit out the packet
--- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_rxtx.c +1 -1
@@ -927,7 +927,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)* the buffer in such case. */ if (dpaa_svr_family ==SVR_LS1043A_FAMILY && - (mbuf->data_off &0xFF ) !=0x0 ) + (mbuf->data_off &0x7F ) !=0x0 ) realloc_mbuf =1 ; seqn = mbuf->seqn;if (seqn !=DPAA_INVALID_MBUF_SEQN ) {
Signature · 1 line
2.17.1
PATCH 3/9 common/dpaax: fallback to check separate memory node for VM
In reply to Nipun GuptaIn Virtual Machine the memory node in the device tree is at '/proc/device-tree/memory/reg' which is separate from the memory node path on the host. This patch enables check on both the paths.
--- drivers/common/dpaax/dpaax_iova_table.c | 7 +++++-- drivers/common/dpaax/dpaax_iova_table.h | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/common/dpaax/dpaax_iova_table.c +5 -2
@@ -68,9 +68,12 @@ read_memory_node(unsigned int *count) *count =0 ; ret =glob (MEM_NODE_PATH_GLOB ,0 ,NULL , &result); +if (ret !=0 ) + ret =glob (MEM_NODE_PATH_GLOB_VM ,0 ,NULL , &result); +if (ret !=0 ) { -DPAAX_DEBUG ("Unable to glob device-tree memory node: (%s)(%d)" , -MEM_NODE_PATH_GLOB , ret); +DPAAX_DEBUG ("Unable to glob device-tree memory node (err: %d)" , + ret); goto out; }
drivers/common/dpaax/dpaax_iova_table.h +2 -0
@@ -45,6 +45,8 @@ extern struct dpaax_iova_table *dpaax_iova_table_p;* is SoC dependent, or even Uboot fixup dependent. */ #define MEM_NODE_PATH_GLOB "/proc/device-tree/memory[@0-9]*/reg" +/* For Virtual Machines memory node is at different path (below) */ +#define MEM_NODE_PATH_GLOB_VM "/proc/device-tree/memory/reg"/* Device file should be multiple of 16 bytes, each containing 8 byte of addr * and its length. Assuming max of 5 entries. */
Signature · 1 line
2.17.1
PATCH 4/9 mempool/dpaa2: panic on endless loop in mbuf release
In reply to Nipun GuptaWhen BMAN is not able to accept more buffers, it could be that there are no FBPR's (internal mem provided to bman) left. Panic in such conditions.
--- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-)
drivers/mempool/dpaa2/dpaa2_hw_mempool.c +15 -8
@@ -192,7 +192,7 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,struct qbman_release_desc releasedesc;struct qbman_swp *swp;int ret; -int i, n; +int i, n, retry_count;uint64_t bufs[DPAA2_MBUF_MAX_ACQ_REL ];if (unlikely (!DPAA2_PER_LCORE_DPIO )) {
@@ -225,9 +225,13 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused, }/* feed them to bman */ -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, n); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, n)) == + -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +rte_panic ("bman release retry exceeded, low fbpr?\n" ); + } aligned:/* if there are more buffers to free */
@@ -243,10 +247,13 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,#endif } -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, -DPAA2_MBUF_MAX_ACQ_REL ); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, +DPAA2_MBUF_MAX_ACQ_REL )) == -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +rte_panic ("bman release retry exceeded, low fbpr?\n" ); + } n +=DPAA2_MBUF_MAX_ACQ_REL ; } }
Signature · 1 line
2.17.1
PATCH 5/9 net/dpaa2: add retry and timeout in packet enqueue API
In reply to Nipun GuptaIn the packet transmit, if the QBMAN is not able to process the packets, the Tx function loops infinitely to send the packet out. This patch changes the logic retry for some time (count) and then return.
--- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++++----- 2 files changed, 60 insertions(+), 14 deletions(-)
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +2 -0
@@ -59,6 +59,8 @@#define DPAA2_SWP_CINH_REGION 1#define DPAA2_SWP_CENA_MEM_REGION 2 +#define DPAA2_MAX_TX_RETRY_COUNT 10000 +#define MC_PORTAL_INDEX 0#define NUM_DPIO_REGIONS 2#define NUM_DQS_PER_QUEUE 2
drivers/net/dpaa2/dpaa2_rxtx.c +58 -14
112 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 6/9 raw/dpaa2_qdma: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds the logic in the DPAA2 QDMA packet enqueue API
--- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_qdma/dpaa2_qdma.c +10 -2
@@ -541,13 +541,21 @@ dpdmai_dev_enqueue_multi(struct dpaa2_dpdmai_dev *dpdmai_dev, }/* Enqueue the packet to the QBMAN */ -uint32_t enqueue_loop =0 ; +uint32_t enqueue_loop =0 , retry_count =0 ;while (enqueue_loop < loop) { - enqueue_loop +=qbman_swp_enqueue_multiple (swp, + ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd[enqueue_loop],NULL , loop - enqueue_loop); +if (unlikely (ret <0 )) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +return num_tx - (loop - enqueue_loop); + }else { + enqueue_loop += ret; + retry_count =0 ; + } } nb_jobs -= loop; }
Signature · 1 line
2.17.1
Re: [dpdk-dev] [PATCH 6/9] raw/dpaa2_qdma: add retry and timeout in packet enqueue API
PATCH 7/9 raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds retry in the DPAA2 CMDIF packet enqueue API
--- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c +7 -2
@@ -62,6 +62,7 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev,struct qbman_fd fd;struct qbman_eq_desc eqdesc;struct qbman_swp *swp; +uint32_t retry_count =0 ;int ret;RTE_SET_USED (count);
@@ -100,11 +101,15 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev, ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd,NULL ,1 );if (ret <0 && ret != -EBUSY )DPAA2_CMDIF_ERR ("Transmit failure with err: %d\n" , ret); - }while (ret == -EBUSY ); + retry_count++; + }while ((ret == -EBUSY ) && (retry_count <DPAA2_MAX_TX_RETRY_COUNT )); + +if (ret <0 ) +return ret;DPAA2_CMDIF_DP_DEBUG ("Successfully transmitted a packet\n" ); -return 0 ; +return 1 ; } static int
Signature · 1 line
2.17.1
Re: [dpdk-dev] [PATCH 7/9] raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
PATCH 8/9 bus/dpaa: moving qbman global init to bus
In reply to Nipun GuptaFrom: Hemant Agrawal <[email protected]>
DPAA SEC shall be able to work independent of DPAA ETH driver.
This patch moves qbman init to bus, so that any driver can use them even when no eth resources are present or none of the eth devices are probed.
--- drivers/bus/dpaa/dpaa_bus.c | 21 +++++++++++++++++++-- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 -- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 ++++++++ drivers/net/dpaa/dpaa_ethdev.c | 14 -------------- 4 files changed, 27 insertions(+), 18 deletions(-)
drivers/bus/dpaa/dpaa_bus.c +19 -2
@@ -561,8 +561,24 @@ rte_dpaa_bus_probe(void)return 0 ;/* Device list creation is only done once */ -if (!process_once) +if (!process_once) {rte_dpaa_bus_dev_build (); +if (rte_eal_process_type () ==RTE_PROC_PRIMARY ) { +/* One time load of Qman/Bman drivers */ + ret =qman_global_init (); +if (ret) { +DPAA_PMD_ERR ("QMAN initialization failed: %d" , + ret); +return ret; + } + ret =bman_global_init (); +if (ret) { +DPAA_PMD_ERR ("BMAN initialization failed: %d" , + ret); +return ret; + } + } + } process_once =1 ;/* If no device present on DPAA bus nothing needs to be done */
@@ -600,7 +616,8 @@ rte_dpaa_bus_probe(void) RTE_DEV_WHITELISTED)) { ret = drv->probe (drv, dev);if (ret) { -DPAA_BUS_ERR ("Unable to probe.\n" ); +DPAA_BUS_ERR ("unable to probe:%s" , + dev->name); }else { dev->driver = drv; dev->device.driver = &drv->driver;
drivers/bus/dpaa/rte_bus_dpaa_version.map +0 -2
@@ -4,7 +4,6 @@ DPDK_17.11 { bman_acquire; bman_free_pool; bman_get_params; - bman_global_init; bman_new_pool; bman_query_free_buffers; bman_release;
@@ -50,7 +49,6 @@ DPDK_17.11 { qman_enqueue_multi; qman_fq_fqid; qman_fq_state; - qman_global_init; qman_init_fq; qman_poll_dqrr; qman_query_fq_np;
drivers/crypto/dpaa_sec/dpaa_sec.c +8 -0
@@ -2718,6 +2718,14 @@ cryptodev_dpaa_sec_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, } } +if (unlikely (!RTE_PER_LCORE (dpaa_io))) { + retval =rte_dpaa_portal_init ((void *)1 ); +if (retval) { +DPAA_SEC_ERR ("Unable to initialize portal" ); +return retval; + } + } +/* Invoke PMD device initialization function */ retval =dpaa_sec_dev_init (cryptodev);if (retval ==0 )
drivers/net/dpaa/dpaa_ethdev.c +0 -14
@@ -1576,20 +1576,6 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, }if (!is_global_init && (rte_eal_process_type () ==RTE_PROC_PRIMARY )) { -/* One time load of Qman/Bman drivers */ - ret =qman_global_init (); -if (ret) { -DPAA_PMD_ERR ("QMAN initialization failed: %d" , - ret); -return ret; - } - ret =bman_global_init (); -if (ret) { -DPAA_PMD_ERR ("BMAN initialization failed: %d" , - ret); -return ret; - } -if (access ("/tmp/fmc.bin" ,F_OK ) ==-1 ) {RTE_LOG (INFO ,PMD ,"* FMC not configured.Enabling default mode\n" );
Signature · 1 line
2.17.1
PATCH 9/9 bus/fslmc: sanitize device name parsing for clarity
In reply to Nipun GuptaFrom: Shreyansh Jain <[email protected]>
remove unneccessary dup and free
--- drivers/bus/fslmc/fslmc_bus.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/bus/fslmc/fslmc_bus.c +8 -6
@@ -236,8 +236,9 @@ rte_fslmc_parse(const char *name, void *addr) {uint16_t dev_id;char *t_ptr; -char *sep =NULL ; +const char *sep;uint8_t sep_exists =0 ; +int ret =-1 ;DPAA2_BUS_DEBUG ("Parsing dev=(%s)" , name);
@@ -267,10 +268,11 @@ rte_fslmc_parse(const char *name, void *addr) }else {DPAA2_BUS_DEBUG ("Invalid device for matching (%s)." , name); + ret = -EINVAL ; goto err_out; } }else - sep =strdup (name); + sep = name; jump_out:/* Validate device name */
@@ -284,23 +286,23 @@ rte_fslmc_parse(const char *name, void *addr) strncmp("dpdmai", sep, 6) && strncmp("dpdmux", sep, 6)) {DPAA2_BUS_DEBUG ("Unknown or unsupported device (%s)" , sep); + ret = -EINVAL ; goto err_out; } t_ptr =strchr (sep,'.' );if (!t_ptr ||sscanf (t_ptr +1 ,"%hu" , &dev_id) !=1 ) {DPAA2_BUS_ERR ("Missing device id in device name (%s)" , sep); + ret = -EINVAL ; goto err_out; }if (addr)strcpy (addr, sep); -return 0 ; + ret =0 ; err_out: -if (!sep_exists && sep) -free (sep); -return -EINVAL ; +return ret; } static int
Signature · 1 line
2.17.1
Series-
v2 cover DPAA and FSLMC driver fixes and cleanup
In reply to Nipun GuptaThese patches incllude various fixes and some cleanups related to DPAA and FSLMC drivers
Changes in v2:
- Rebased the patches (moved "mempool/dpaa2: panic on endless loop in mbuf release" after "net/dpaa2: add retry and timeout in packet enqueue API") so that DPAA2_MAX_TX_RETRY_COUNT is defined before it is used - to fix intermediate patch compilation issue.
- Fixed checkpatch error in patch #9
Hemant Agrawal (1):
bus/dpaa: moving qbman global init to bus
Nipun Gupta (7):
net/dpaa: fix supported RSS types
net/dpaa: fix LS1043 alignment check
common/dpaax: fallback to check separate memory node for VM net/dpaa2: add retry and timeout in packet enqueue API raw/dpaa2_qdma: add retry and timeout in packet enqueue API raw/dpaa2_cmdif: add retry and timeout in packet enqueue API mempool/dpaa2: panic on endless loop in mbuf release
Shreyansh Jain (1):
bus/fslmc: sanitize device name parsing for clarity
drivers/bus/dpaa/dpaa_bus.c | 21 ++++++- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 - drivers/bus/fslmc/fslmc_bus.c | 14 +++-- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/common/dpaax/dpaax_iova_table.c | 7 ++- drivers/common/dpaax/dpaax_iova_table.h | 2 + drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +++ drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 23 +++++--- drivers/net/dpaa/dpaa_ethdev.c | 14 ----- drivers/net/dpaa/dpaa_ethdev.h | 13 ++-- drivers/net/dpaa/dpaa_rxtx.c | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++----- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 ++- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 +++- 14 files changed, 140 insertions(+), 61 deletions(-)
Signature · 1 line
2.17.1
PATCH v2 1/9 net/dpaa: fix supported RSS types
This patch fixes the supported RSS types on DPAA platform
--- drivers/net/dpaa/dpaa_ethdev.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
drivers/net/dpaa/dpaa_ethdev.h +5 -8
@@ -76,14 +76,11 @@#define DPAA_DEBUG_FQ_TX_ERROR 1#define DPAA_RSS_OFFLOAD_ALL ( \ - ETH_RSS_FRAG_IPV4 | \ - ETH_RSS_NONFRAG_IPV4_TCP | \ - ETH_RSS_NONFRAG_IPV4_UDP | \ - ETH_RSS_NONFRAG_IPV4_SCTP | \ - ETH_RSS_FRAG_IPV6 | \ - ETH_RSS_NONFRAG_IPV6_TCP | \ - ETH_RSS_NONFRAG_IPV6_UDP | \ - ETH_RSS_NONFRAG_IPV6_SCTP) + ETH_RSS_L2_PAYLOAD | \ + ETH_RSS_IP | \ + ETH_RSS_UDP | \ + ETH_RSS_TCP | \ + ETH_RSS_SCTP)#define DPAA_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \
Signature · 1 line
2.17.1
PATCH v2 2/9 net/dpaa: fix LS1043 alignment check
In reply to Nipun GuptaOn LS1043, we are good to check 128 byte alignment of offset to transmit out the packet
--- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_rxtx.c +1 -1
@@ -927,7 +927,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)* the buffer in such case. */ if (dpaa_svr_family ==SVR_LS1043A_FAMILY && - (mbuf->data_off &0xFF ) !=0x0 ) + (mbuf->data_off &0x7F ) !=0x0 ) realloc_mbuf =1 ; seqn = mbuf->seqn;if (seqn !=DPAA_INVALID_MBUF_SEQN ) {
Signature · 1 line
2.17.1
PATCH v2 3/9 common/dpaax: fallback to check separate memory node for VM
In reply to Nipun GuptaIn Virtual Machine the memory node in the device tree is at '/proc/device-tree/memory/reg' which is separate from the memory node path on the host. This patch enables check on both the paths.
--- drivers/common/dpaax/dpaax_iova_table.c | 7 +++++-- drivers/common/dpaax/dpaax_iova_table.h | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/common/dpaax/dpaax_iova_table.c +5 -2
@@ -68,9 +68,12 @@ read_memory_node(unsigned int *count) *count =0 ; ret =glob (MEM_NODE_PATH_GLOB ,0 ,NULL , &result); +if (ret !=0 ) + ret =glob (MEM_NODE_PATH_GLOB_VM ,0 ,NULL , &result); +if (ret !=0 ) { -DPAAX_DEBUG ("Unable to glob device-tree memory node: (%s)(%d)" , -MEM_NODE_PATH_GLOB , ret); +DPAAX_DEBUG ("Unable to glob device-tree memory node (err: %d)" , + ret); goto out; }
drivers/common/dpaax/dpaax_iova_table.h +2 -0
@@ -45,6 +45,8 @@ extern struct dpaax_iova_table *dpaax_iova_table_p;* is SoC dependent, or even Uboot fixup dependent. */ #define MEM_NODE_PATH_GLOB "/proc/device-tree/memory[@0-9]*/reg" +/* For Virtual Machines memory node is at different path (below) */ +#define MEM_NODE_PATH_GLOB_VM "/proc/device-tree/memory/reg"/* Device file should be multiple of 16 bytes, each containing 8 byte of addr * and its length. Assuming max of 5 entries. */
Signature · 1 line
2.17.1
PATCH v2 4/9 net/dpaa2: add retry and timeout in packet enqueue API
In reply to Nipun GuptaIn the packet transmit, if the QBMAN is not able to process the packets, the Tx function loops infinitely to send the packet out. This patch changes the logic retry for some time (count) and then return.
--- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++++----- 2 files changed, 60 insertions(+), 14 deletions(-)
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +2 -0
@@ -59,6 +59,8 @@#define DPAA2_SWP_CINH_REGION 1#define DPAA2_SWP_CENA_MEM_REGION 2 +#define DPAA2_MAX_TX_RETRY_COUNT 10000 +#define MC_PORTAL_INDEX 0#define NUM_DPIO_REGIONS 2#define NUM_DQS_PER_QUEUE 2
drivers/net/dpaa2/dpaa2_rxtx.c +58 -14
112 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v2 5/9 raw/dpaa2_qdma: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds the logic in the DPAA2 QDMA packet enqueue API
--- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_qdma/dpaa2_qdma.c +10 -2
@@ -541,13 +541,21 @@ dpdmai_dev_enqueue_multi(struct dpaa2_dpdmai_dev *dpdmai_dev, }/* Enqueue the packet to the QBMAN */ -uint32_t enqueue_loop =0 ; +uint32_t enqueue_loop =0 , retry_count =0 ;while (enqueue_loop < loop) { - enqueue_loop +=qbman_swp_enqueue_multiple (swp, + ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd[enqueue_loop],NULL , loop - enqueue_loop); +if (unlikely (ret <0 )) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +return num_tx - (loop - enqueue_loop); + }else { + enqueue_loop += ret; + retry_count =0 ; + } } nb_jobs -= loop; }
Signature · 1 line
2.17.1
PATCH v2 6/9 raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds retry in the DPAA2 CMDIF packet enqueue API
--- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c +7 -2
@@ -62,6 +62,7 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev,struct qbman_fd fd;struct qbman_eq_desc eqdesc;struct qbman_swp *swp; +uint32_t retry_count =0 ;int ret;RTE_SET_USED (count);
@@ -100,11 +101,15 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev, ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd,NULL ,1 );if (ret <0 && ret != -EBUSY )DPAA2_CMDIF_ERR ("Transmit failure with err: %d\n" , ret); - }while (ret == -EBUSY ); + retry_count++; + }while ((ret == -EBUSY ) && (retry_count <DPAA2_MAX_TX_RETRY_COUNT )); + +if (ret <0 ) +return ret;DPAA2_CMDIF_DP_DEBUG ("Successfully transmitted a packet\n" ); -return 0 ; +return 1 ; } static int
Signature · 1 line
2.17.1
PATCH v2 7/9 mempool/dpaa2: panic on endless loop in mbuf release
In reply to Nipun GuptaFrom: Radu Bulie <[email protected]>
When BMAN is not able to accept more buffers, it could be that there are no FBPR's (internal mem provided to bman) left. Panic in such conditions.
--- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-)
drivers/mempool/dpaa2/dpaa2_hw_mempool.c +15 -8
@@ -192,7 +192,7 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,struct qbman_release_desc releasedesc;struct qbman_swp *swp;int ret; -int i, n; +int i, n, retry_count;uint64_t bufs[DPAA2_MBUF_MAX_ACQ_REL ];if (unlikely (!DPAA2_PER_LCORE_DPIO )) {
@@ -225,9 +225,13 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused, }/* feed them to bman */ -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, n); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, n)) == + -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +rte_panic ("bman release retry exceeded, low fbpr?\n" ); + } aligned:/* if there are more buffers to free */
@@ -243,10 +247,13 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,#endif } -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, -DPAA2_MBUF_MAX_ACQ_REL ); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, +DPAA2_MBUF_MAX_ACQ_REL )) == -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +rte_panic ("bman release retry exceeded, low fbpr?\n" ); + } n +=DPAA2_MBUF_MAX_ACQ_REL ; } }
Signature · 1 line
2.17.1
Re: [dpdk-dev] [dpdk-stable] [PATCH 7/9 v2] mempool/dpaa2: panic on endless loop in mbuf release
17/10/2019 14:44, Nipun Gupta:
Review
Quoted 2 lines
From: Radu Bulie <[email protected]>
(quoted diff) +1
-0+ rte_panic("bman release retry exceeded, low fbpr?\n");
You are not supposed to call rte_panic in a library. Please replace with a smoother abort.
Re: [dpdk-dev] [dpdk-stable] [PATCH 7/9 v2] mempool/dpaa2: panic on endless loop in mbuf release
Hi Thomas,
Quoted 11 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, October 24, 2019 4:39 AM
To: Nipun Gupta <[email protected]>; Radu-andrei Bulie <radu- [email protected]>
Cc: [email protected]; [email protected]; [email protected]; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>
Subject: Re: [dpdk-stable] [PATCH 7/9 v2] mempool/dpaa2: panic on endless loop in mbuf release
Quoted 7 lines
17/10/2019 14:44, Nipun Gupta:
Review
Quoted 2 lines
From: Radu Bulie <[email protected]>
(quoted diff) +1
-0+ rte_panic("bman release retry exceeded, lowfbpr?\n");
You are not supposed to call
rte_panicin a library. Please replace with a smoother abort.
Agree. Will add a log and return.
Quoted 4 lines
PATCH v2 8/9 bus/dpaa: moving qbman global init to bus
In reply to Nipun GuptaFrom: Hemant Agrawal <[email protected]>
DPAA SEC shall be able to work independent of DPAA ETH driver.
This patch moves qbman init to bus, so that any driver can use them even when no eth resources are present or none of the eth devices are probed.
--- drivers/bus/dpaa/dpaa_bus.c | 21 +++++++++++++++++++-- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 -- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 ++++++++ drivers/net/dpaa/dpaa_ethdev.c | 14 -------------- 4 files changed, 27 insertions(+), 18 deletions(-)
drivers/bus/dpaa/dpaa_bus.c +19 -2
@@ -561,8 +561,24 @@ rte_dpaa_bus_probe(void)return 0 ;/* Device list creation is only done once */ -if (!process_once) +if (!process_once) {rte_dpaa_bus_dev_build (); +if (rte_eal_process_type () ==RTE_PROC_PRIMARY ) { +/* One time load of Qman/Bman drivers */ + ret =qman_global_init (); +if (ret) { +DPAA_PMD_ERR ("QMAN initialization failed: %d" , + ret); +return ret; + } + ret =bman_global_init (); +if (ret) { +DPAA_PMD_ERR ("BMAN initialization failed: %d" , + ret); +return ret; + } + } + } process_once =1 ;/* If no device present on DPAA bus nothing needs to be done */
@@ -600,7 +616,8 @@ rte_dpaa_bus_probe(void) RTE_DEV_WHITELISTED)) { ret = drv->probe (drv, dev);if (ret) { -DPAA_BUS_ERR ("Unable to probe.\n" ); +DPAA_BUS_ERR ("unable to probe:%s" , + dev->name); }else { dev->driver = drv; dev->device.driver = &drv->driver;
drivers/bus/dpaa/rte_bus_dpaa_version.map +0 -2
@@ -4,7 +4,6 @@ DPDK_17.11 { bman_acquire; bman_free_pool; bman_get_params; - bman_global_init; bman_new_pool; bman_query_free_buffers; bman_release;
@@ -48,7 +47,6 @@ DPDK_17.11 { qman_enqueue_multi; qman_fq_fqid; qman_fq_state; - qman_global_init; qman_init_fq; qman_poll_dqrr; qman_query_fq_np;
drivers/crypto/dpaa_sec/dpaa_sec.c +8 -0
@@ -3050,6 +3050,14 @@ cryptodev_dpaa_sec_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, } } +if (unlikely (!RTE_PER_LCORE (dpaa_io))) { + retval =rte_dpaa_portal_init ((void *)1 ); +if (retval) { +DPAA_SEC_ERR ("Unable to initialize portal" ); +return retval; + } + } +/* Invoke PMD device initialization function */ retval =dpaa_sec_dev_init (cryptodev);if (retval ==0 )
drivers/net/dpaa/dpaa_ethdev.c +0 -14
@@ -1576,20 +1576,6 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, }if (!is_global_init && (rte_eal_process_type () ==RTE_PROC_PRIMARY )) { -/* One time load of Qman/Bman drivers */ - ret =qman_global_init (); -if (ret) { -DPAA_PMD_ERR ("QMAN initialization failed: %d" , - ret); -return ret; - } - ret =bman_global_init (); -if (ret) { -DPAA_PMD_ERR ("BMAN initialization failed: %d" , - ret); -return ret; - } -if (access ("/tmp/fmc.bin" ,F_OK ) ==-1 ) {RTE_LOG (INFO ,PMD ,"* FMC not configured.Enabling default mode\n" );
Signature · 1 line
2.17.1
Re: [dpdk-dev] [PATCH 8/9 v2] bus/dpaa: moving qbman global init to bus
Quoted 5 lines
From: Hemant Agrawal <[email protected]>
Quoted 8 lines
DPAA SEC shall be able to work independent of DPAA ETH driver.
This patch moves qbman init to bus, so that any driver can use them even when no eth resources are present or none of the eth devices are probed.Signed-off-by Hemant Agrawal <[email protected]>---
PATCH v2 9/9 bus/fslmc: sanitize device name parsing for clarity
In reply to Nipun GuptaFrom: Shreyansh Jain <[email protected]>
remove unnecessary dup and free
--- drivers/bus/fslmc/fslmc_bus.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/bus/fslmc/fslmc_bus.c +8 -6
@@ -235,8 +235,9 @@ rte_fslmc_parse(const char *name, void *addr) {uint16_t dev_id;char *t_ptr; -char *sep =NULL ; +const char *sep;uint8_t sep_exists =0 ; +int ret =-1 ;DPAA2_BUS_DEBUG ("Parsing dev=(%s)" , name);
@@ -266,10 +267,11 @@ rte_fslmc_parse(const char *name, void *addr) }else {DPAA2_BUS_DEBUG ("Invalid device for matching (%s)." , name); + ret = -EINVAL ; goto err_out; } }else - sep =strdup (name); + sep = name; jump_out:/* Validate device name */
@@ -283,23 +285,23 @@ rte_fslmc_parse(const char *name, void *addr) strncmp("dpdmai", sep, 6) && strncmp("dpdmux", sep, 6)) {DPAA2_BUS_DEBUG ("Unknown or unsupported device (%s)" , sep); + ret = -EINVAL ; goto err_out; } t_ptr =strchr (sep,'.' );if (!t_ptr ||sscanf (t_ptr +1 ,"%hu" , &dev_id) !=1 ) {DPAA2_BUS_ERR ("Missing device id in device name (%s)" , sep); + ret = -EINVAL ; goto err_out; }if (addr)strcpy (addr, sep); -return 0 ; + ret =0 ; err_out: -if (!sep_exists && sep) -free (sep); -return -EINVAL ; +return ret; } static int
Signature · 1 line
2.17.1
v3 cover DPAA and FSLMC driver fixes and cleanup
In reply to Nipun GuptaThese patches incllude various fixes and some cleanups related to DPAA and FSLMC drivers
Changes in v3:
- Report error instead of panic for low FPBR's in BMAN (patch #7)
Changes in v2:
- Rebased the patches (moved "mempool/dpaa2: panic on endless loop in mbuf release" after "net/dpaa2: add retry and timeout in packet enqueue API") so that DPAA2_MAX_TX_RETRY_COUNT is defined before it is used - to fix intermediate patch compilation issue.
- Fixed checkpatch error in patch #9
Hemant Agrawal (1):
bus/dpaa: moving qbman global init to bus
Nipun Gupta (6):
net/dpaa: fix supported RSS types
net/dpaa: fix LS1043 alignment check
common/dpaax: fallback to check separate memory node for VM net/dpaa2: add retry and timeout in packet enqueue API raw/dpaa2_qdma: add retry and timeout in packet enqueue API raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
Radu Bulie (1):
mempool/dpaa2: report error on endless loop in mbuf release
Shreyansh Jain (1):
bus/fslmc: sanitize device name parsing for clarity
drivers/bus/dpaa/dpaa_bus.c | 21 ++++++- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 - drivers/bus/fslmc/fslmc_bus.c | 14 +++-- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/common/dpaax/dpaax_iova_table.c | 7 ++- drivers/common/dpaax/dpaax_iova_table.h | 2 + drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +++ drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 27 ++++++--- drivers/net/dpaa/dpaa_ethdev.c | 14 ----- drivers/net/dpaa/dpaa_ethdev.h | 13 ++-- drivers/net/dpaa/dpaa_rxtx.c | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++----- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 ++- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 +++- 14 files changed, 144 insertions(+), 61 deletions(-)
Signature · 1 line
2.17.1
PATCH v3 1/9 net/dpaa: fix supported RSS types
This patch fixes the supported RSS types on DPAA platform
--- drivers/net/dpaa/dpaa_ethdev.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
drivers/net/dpaa/dpaa_ethdev.h +5 -8
@@ -76,14 +76,11 @@#define DPAA_DEBUG_FQ_TX_ERROR 1#define DPAA_RSS_OFFLOAD_ALL ( \ - ETH_RSS_FRAG_IPV4 | \ - ETH_RSS_NONFRAG_IPV4_TCP | \ - ETH_RSS_NONFRAG_IPV4_UDP | \ - ETH_RSS_NONFRAG_IPV4_SCTP | \ - ETH_RSS_FRAG_IPV6 | \ - ETH_RSS_NONFRAG_IPV6_TCP | \ - ETH_RSS_NONFRAG_IPV6_UDP | \ - ETH_RSS_NONFRAG_IPV6_SCTP) + ETH_RSS_L2_PAYLOAD | \ + ETH_RSS_IP | \ + ETH_RSS_UDP | \ + ETH_RSS_TCP | \ + ETH_RSS_SCTP)#define DPAA_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \
Signature · 1 line
2.17.1
PATCH v3 2/9 net/dpaa: fix LS1043 alignment check
In reply to Nipun GuptaOn LS1043, we are good to check 128 byte alignment of offset to transmit out the packet
--- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_rxtx.c +1 -1
@@ -927,7 +927,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)* the buffer in such case. */ if (dpaa_svr_family ==SVR_LS1043A_FAMILY && - (mbuf->data_off &0xFF ) !=0x0 ) + (mbuf->data_off &0x7F ) !=0x0 ) realloc_mbuf =1 ; seqn = mbuf->seqn;if (seqn !=DPAA_INVALID_MBUF_SEQN ) {
Signature · 1 line
2.17.1
PATCH v3 3/9 common/dpaax: fallback to check separate memory node for VM
In reply to Nipun GuptaIn Virtual Machine the memory node in the device tree is at '/proc/device-tree/memory/reg' which is separate from the memory node path on the host. This patch enables check on both the paths.
--- drivers/common/dpaax/dpaax_iova_table.c | 7 +++++-- drivers/common/dpaax/dpaax_iova_table.h | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/common/dpaax/dpaax_iova_table.c +5 -2
@@ -68,9 +68,12 @@ read_memory_node(unsigned int *count) *count =0 ; ret =glob (MEM_NODE_PATH_GLOB ,0 ,NULL , &result); +if (ret !=0 ) + ret =glob (MEM_NODE_PATH_GLOB_VM ,0 ,NULL , &result); +if (ret !=0 ) { -DPAAX_DEBUG ("Unable to glob device-tree memory node: (%s)(%d)" , -MEM_NODE_PATH_GLOB , ret); +DPAAX_DEBUG ("Unable to glob device-tree memory node (err: %d)" , + ret); goto out; }
drivers/common/dpaax/dpaax_iova_table.h +2 -0
@@ -45,6 +45,8 @@ extern struct dpaax_iova_table *dpaax_iova_table_p;* is SoC dependent, or even Uboot fixup dependent. */ #define MEM_NODE_PATH_GLOB "/proc/device-tree/memory[@0-9]*/reg" +/* For Virtual Machines memory node is at different path (below) */ +#define MEM_NODE_PATH_GLOB_VM "/proc/device-tree/memory/reg"/* Device file should be multiple of 16 bytes, each containing 8 byte of addr * and its length. Assuming max of 5 entries. */
Signature · 1 line
2.17.1
PATCH v3 4/9 net/dpaa2: add retry and timeout in packet enqueue API
In reply to Nipun GuptaIn the packet transmit, if the QBMAN is not able to process the packets, the Tx function loops infinitely to send the packet out. This patch changes the logic retry for some time (count) and then return.
--- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++++----- 2 files changed, 60 insertions(+), 14 deletions(-)
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +2 -0
@@ -59,6 +59,8 @@#define DPAA2_SWP_CINH_REGION 1#define DPAA2_SWP_CENA_MEM_REGION 2 +#define DPAA2_MAX_TX_RETRY_COUNT 10000 +#define MC_PORTAL_INDEX 0#define NUM_DPIO_REGIONS 2#define NUM_DQS_PER_QUEUE 2
drivers/net/dpaa2/dpaa2_rxtx.c +58 -14
112 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 5/9 raw/dpaa2_qdma: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds the logic in the DPAA2 QDMA packet enqueue API
--- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_qdma/dpaa2_qdma.c +10 -2
@@ -541,13 +541,21 @@ dpdmai_dev_enqueue_multi(struct dpaa2_dpdmai_dev *dpdmai_dev, }/* Enqueue the packet to the QBMAN */ -uint32_t enqueue_loop =0 ; +uint32_t enqueue_loop =0 , retry_count =0 ;while (enqueue_loop < loop) { - enqueue_loop +=qbman_swp_enqueue_multiple (swp, + ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd[enqueue_loop],NULL , loop - enqueue_loop); +if (unlikely (ret <0 )) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +return num_tx - (loop - enqueue_loop); + }else { + enqueue_loop += ret; + retry_count =0 ; + } } nb_jobs -= loop; }
Signature · 1 line
2.17.1
PATCH v3 6/9 raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds retry in the DPAA2 CMDIF packet enqueue API
--- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c +7 -2
@@ -62,6 +62,7 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev,struct qbman_fd fd;struct qbman_eq_desc eqdesc;struct qbman_swp *swp; +uint32_t retry_count =0 ;int ret;RTE_SET_USED (count);
@@ -100,11 +101,15 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev, ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd,NULL ,1 );if (ret <0 && ret != -EBUSY )DPAA2_CMDIF_ERR ("Transmit failure with err: %d\n" , ret); - }while (ret == -EBUSY ); + retry_count++; + }while ((ret == -EBUSY ) && (retry_count <DPAA2_MAX_TX_RETRY_COUNT )); + +if (ret <0 ) +return ret;DPAA2_CMDIF_DP_DEBUG ("Successfully transmitted a packet\n" ); -return 0 ; +return 1 ; } static int
Signature · 1 line
2.17.1
PATCH v3 7/9 mempool/dpaa2: report error on endless loop in mbuf release
In reply to Nipun GuptaFrom: Radu Bulie <[email protected]>
When BMAN is not able to accept more buffers, it could be that there are no FBPR's (internal mem provided to bman) left. Report error in such condition.
--- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 27 +++++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-)
drivers/mempool/dpaa2/dpaa2_hw_mempool.c +19 -8
@@ -192,7 +192,7 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,struct qbman_release_desc releasedesc;struct qbman_swp *swp;int ret; -int i, n; +int i, n, retry_count;uint64_t bufs[DPAA2_MBUF_MAX_ACQ_REL ];if (unlikely (!DPAA2_PER_LCORE_DPIO )) {
@@ -225,9 +225,15 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused, }/* feed them to bman */ -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, n); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, n)) == + -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) { +DPAA2_MEMPOOL_ERR ("bman release retry exceeded, low fbpr?" ); +return ; + } + } aligned:/* if there are more buffers to free */
@@ -243,10 +249,15 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,#endif } -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, -DPAA2_MBUF_MAX_ACQ_REL ); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, +DPAA2_MBUF_MAX_ACQ_REL )) == -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) { +DPAA2_MEMPOOL_ERR ("bman release retry exceeded, low fbpr?" ); +return ; + } + } n +=DPAA2_MBUF_MAX_ACQ_REL ; } }
Signature · 1 line
2.17.1
PATCH v3 8/9 bus/dpaa: moving qbman global init to bus
In reply to Nipun GuptaFrom: Hemant Agrawal <[email protected]>
DPAA SEC shall be able to work independent of DPAA ETH driver.
This patch moves qbman init to bus, so that any driver can use them even when no eth resources are present or none of the eth devices are probed.
--- drivers/bus/dpaa/dpaa_bus.c | 21 +++++++++++++++++++-- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 -- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 ++++++++ drivers/net/dpaa/dpaa_ethdev.c | 14 -------------- 4 files changed, 27 insertions(+), 18 deletions(-)
drivers/bus/dpaa/dpaa_bus.c +19 -2
@@ -561,8 +561,24 @@ rte_dpaa_bus_probe(void)return 0 ;/* Device list creation is only done once */ -if (!process_once) +if (!process_once) {rte_dpaa_bus_dev_build (); +if (rte_eal_process_type () ==RTE_PROC_PRIMARY ) { +/* One time load of Qman/Bman drivers */ + ret =qman_global_init (); +if (ret) { +DPAA_PMD_ERR ("QMAN initialization failed: %d" , + ret); +return ret; + } + ret =bman_global_init (); +if (ret) { +DPAA_PMD_ERR ("BMAN initialization failed: %d" , + ret); +return ret; + } + } + } process_once =1 ;/* If no device present on DPAA bus nothing needs to be done */
@@ -600,7 +616,8 @@ rte_dpaa_bus_probe(void) RTE_DEV_WHITELISTED)) { ret = drv->probe (drv, dev);if (ret) { -DPAA_BUS_ERR ("Unable to probe.\n" ); +DPAA_BUS_ERR ("unable to probe:%s" , + dev->name); }else { dev->driver = drv; dev->device.driver = &drv->driver;
drivers/bus/dpaa/rte_bus_dpaa_version.map +0 -2
@@ -4,7 +4,6 @@ DPDK_17.11 { bman_acquire; bman_free_pool; bman_get_params; - bman_global_init; bman_new_pool; bman_query_free_buffers; bman_release;
@@ -48,7 +47,6 @@ DPDK_17.11 { qman_enqueue_multi; qman_fq_fqid; qman_fq_state; - qman_global_init; qman_init_fq; qman_poll_dqrr; qman_query_fq_np;
drivers/crypto/dpaa_sec/dpaa_sec.c +8 -0
@@ -3334,6 +3334,14 @@ cryptodev_dpaa_sec_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, } } +if (unlikely (!RTE_PER_LCORE (dpaa_io))) { + retval =rte_dpaa_portal_init ((void *)1 ); +if (retval) { +DPAA_SEC_ERR ("Unable to initialize portal" ); +return retval; + } + } +/* Invoke PMD device initialization function */ retval =dpaa_sec_dev_init (cryptodev);if (retval ==0 )
drivers/net/dpaa/dpaa_ethdev.c +0 -14
@@ -1576,20 +1576,6 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, }if (!is_global_init && (rte_eal_process_type () ==RTE_PROC_PRIMARY )) { -/* One time load of Qman/Bman drivers */ - ret =qman_global_init (); -if (ret) { -DPAA_PMD_ERR ("QMAN initialization failed: %d" , - ret); -return ret; - } - ret =bman_global_init (); -if (ret) { -DPAA_PMD_ERR ("BMAN initialization failed: %d" , - ret); -return ret; - } -if (access ("/tmp/fmc.bin" ,F_OK ) ==-1 ) {RTE_LOG (INFO ,PMD ,"* FMC not configured.Enabling default mode\n" );
Signature · 1 line
2.17.1
PATCH v3 9/9 bus/fslmc: sanitize device name parsing for clarity
In reply to Nipun GuptaFrom: Shreyansh Jain <[email protected]>
remove unnecessary dup and free
--- drivers/bus/fslmc/fslmc_bus.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/bus/fslmc/fslmc_bus.c +8 -6
@@ -235,8 +235,9 @@ rte_fslmc_parse(const char *name, void *addr) {uint16_t dev_id;char *t_ptr; -char *sep =NULL ; +const char *sep;uint8_t sep_exists =0 ; +int ret =-1 ;DPAA2_BUS_DEBUG ("Parsing dev=(%s)" , name);
@@ -266,10 +267,11 @@ rte_fslmc_parse(const char *name, void *addr) }else {DPAA2_BUS_DEBUG ("Invalid device for matching (%s)." , name); + ret = -EINVAL ; goto err_out; } }else - sep =strdup (name); + sep = name; jump_out:/* Validate device name */
@@ -283,23 +285,23 @@ rte_fslmc_parse(const char *name, void *addr) strncmp("dpdmai", sep, 6) && strncmp("dpdmux", sep, 6)) {DPAA2_BUS_DEBUG ("Unknown or unsupported device (%s)" , sep); + ret = -EINVAL ; goto err_out; } t_ptr =strchr (sep,'.' );if (!t_ptr ||sscanf (t_ptr +1 ,"%hu" , &dev_id) !=1 ) {DPAA2_BUS_ERR ("Missing device id in device name (%s)" , sep); + ret = -EINVAL ; goto err_out; }if (addr)strcpy (addr, sep); -return 0 ; + ret =0 ; err_out: -if (!sep_exists && sep) -free (sep); -return -EINVAL ; +return ret; } static int
Signature · 1 line
2.17.1
v4 cover DPAA and FSLMC driver fixes and cleanup
In reply to Nipun GuptaThese patches incllude various fixes and some cleanups related to DPAA and FSLMC drivers
Changes in v4:
- Rebased on master branch. Due to some other changes patches were not getting applied on master
Changes in v3:
- Report error instead of panic for low FPBR's in BMAN (patch #7)
Changes in v2:
- Rebased the patches (moved "mempool/dpaa2: panic on endless loop in mbuf release" after "net/dpaa2: add retry and timeout in packet enqueue API") so that DPAA2_MAX_TX_RETRY_COUNT is defined before it is used - to fix intermediate patch compilation issue.
- Fixed checkpatch error in patch #9
Hemant Agrawal (1):
bus/dpaa: moving qbman global init to bus
Nipun Gupta (7):
net/dpaa: fix supported RSS types
net/dpaa: fix LS1043 alignment check
common/dpaax: fallback to check separate memory node for VM net/dpaa2: add retry and timeout in packet enqueue API raw/dpaa2_qdma: add retry and timeout in packet enqueue API raw/dpaa2_cmdif: add retry and timeout in packet enqueue API bus/fslmc: sanitize device name parsing for clarity
Radu Bulie (1):
mempool/dpaa2: report error on endless loop in mbuf release
drivers/bus/dpaa/dpaa_bus.c | 21 ++++++- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 - drivers/bus/fslmc/fslmc_bus.c | 19 +++--- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/common/dpaax/dpaax_iova_table.c | 7 ++- drivers/common/dpaax/dpaax_iova_table.h | 2 + drivers/crypto/dpaa_sec/dpaa_sec.c | 8 +++ drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 27 ++++++--- drivers/net/dpaa/dpaa_ethdev.c | 14 ----- drivers/net/dpaa/dpaa_ethdev.h | 13 ++-- drivers/net/dpaa/dpaa_rxtx.c | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++----- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 ++- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 +++- 14 files changed, 145 insertions(+), 65 deletions(-)
Signature · 1 line
2.17.1
PATCH v4 1/9 net/dpaa: fix supported RSS types
This patch fixes the supported RSS types on DPAA platform
--- drivers/net/dpaa/dpaa_ethdev.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
drivers/net/dpaa/dpaa_ethdev.h +5 -8
@@ -76,14 +76,11 @@#define DPAA_DEBUG_FQ_TX_ERROR 1#define DPAA_RSS_OFFLOAD_ALL ( \ - ETH_RSS_FRAG_IPV4 | \ - ETH_RSS_NONFRAG_IPV4_TCP | \ - ETH_RSS_NONFRAG_IPV4_UDP | \ - ETH_RSS_NONFRAG_IPV4_SCTP | \ - ETH_RSS_FRAG_IPV6 | \ - ETH_RSS_NONFRAG_IPV6_TCP | \ - ETH_RSS_NONFRAG_IPV6_UDP | \ - ETH_RSS_NONFRAG_IPV6_SCTP) + ETH_RSS_L2_PAYLOAD | \ + ETH_RSS_IP | \ + ETH_RSS_UDP | \ + ETH_RSS_TCP | \ + ETH_RSS_SCTP)#define DPAA_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \
Signature · 1 line
2.17.1
PATCH v4 2/9 net/dpaa: fix LS1043 alignment check
In reply to Nipun GuptaOn LS1043, we are good to check 128 byte alignment of offset to transmit out the packet
--- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/dpaa_rxtx.c +1 -1
@@ -927,7 +927,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)* the buffer in such case. */ if (dpaa_svr_family ==SVR_LS1043A_FAMILY && - (mbuf->data_off &0xFF ) !=0x0 ) + (mbuf->data_off &0x7F ) !=0x0 ) realloc_mbuf =1 ; seqn = mbuf->seqn;if (seqn !=DPAA_INVALID_MBUF_SEQN ) {
Signature · 1 line
2.17.1
PATCH v4 3/9 common/dpaax: fallback to check separate memory node for VM
In reply to Nipun GuptaIn Virtual Machine the memory node in the device tree is at '/proc/device-tree/memory/reg' which is separate from the memory node path on the host. This patch enables check on both the paths.
--- drivers/common/dpaax/dpaax_iova_table.c | 7 +++++-- drivers/common/dpaax/dpaax_iova_table.h | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/common/dpaax/dpaax_iova_table.c +5 -2
@@ -68,9 +68,12 @@ read_memory_node(unsigned int *count) *count =0 ; ret =glob (MEM_NODE_PATH_GLOB ,0 ,NULL , &result); +if (ret !=0 ) + ret =glob (MEM_NODE_PATH_GLOB_VM ,0 ,NULL , &result); +if (ret !=0 ) { -DPAAX_DEBUG ("Unable to glob device-tree memory node: (%s)(%d)" , -MEM_NODE_PATH_GLOB , ret); +DPAAX_DEBUG ("Unable to glob device-tree memory node (err: %d)" , + ret); goto out; }
drivers/common/dpaax/dpaax_iova_table.h +2 -0
@@ -45,6 +45,8 @@ extern struct dpaax_iova_table *dpaax_iova_table_p;* is SoC dependent, or even Uboot fixup dependent. */ #define MEM_NODE_PATH_GLOB "/proc/device-tree/memory[@0-9]*/reg" +/* For Virtual Machines memory node is at different path (below) */ +#define MEM_NODE_PATH_GLOB_VM "/proc/device-tree/memory/reg"/* Device file should be multiple of 16 bytes, each containing 8 byte of addr * and its length. Assuming max of 5 entries. */
Signature · 1 line
2.17.1
PATCH v4 4/9 net/dpaa2: add retry and timeout in packet enqueue API
In reply to Nipun GuptaIn the packet transmit, if the QBMAN is not able to process the packets, the Tx function loops infinitely to send the packet out. This patch changes the logic retry for some time (count) and then return.
--- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/net/dpaa2/dpaa2_rxtx.c | 72 ++++++++++++++++++++----- 2 files changed, 60 insertions(+), 14 deletions(-)
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +2 -0
@@ -59,6 +59,8 @@#define DPAA2_SWP_CINH_REGION 1#define DPAA2_SWP_CENA_MEM_REGION 2 +#define DPAA2_MAX_TX_RETRY_COUNT 10000 +#define MC_PORTAL_INDEX 0#define NUM_DPIO_REGIONS 2#define NUM_DQS_PER_QUEUE 2
drivers/net/dpaa2/dpaa2_rxtx.c +58 -14
112 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v4 5/9 raw/dpaa2_qdma: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds the logic in the DPAA2 QDMA packet enqueue API
--- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_qdma/dpaa2_qdma.c +10 -2
@@ -541,13 +541,21 @@ dpdmai_dev_enqueue_multi(struct dpaa2_dpdmai_dev *dpdmai_dev, }/* Enqueue the packet to the QBMAN */ -uint32_t enqueue_loop =0 ; +uint32_t enqueue_loop =0 , retry_count =0 ;while (enqueue_loop < loop) { - enqueue_loop +=qbman_swp_enqueue_multiple (swp, + ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd[enqueue_loop],NULL , loop - enqueue_loop); +if (unlikely (ret <0 )) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) +return num_tx - (loop - enqueue_loop); + }else { + enqueue_loop += ret; + retry_count =0 ; + } } nb_jobs -= loop; }
Signature · 1 line
2.17.1
PATCH v4 6/9 raw/dpaa2_cmdif: add retry and timeout in packet enqueue API
In reply to Nipun GuptaThis patch adds retry in the DPAA2 CMDIF packet enqueue API
--- drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c +7 -2
@@ -62,6 +62,7 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev,struct qbman_fd fd;struct qbman_eq_desc eqdesc;struct qbman_swp *swp; +uint32_t retry_count =0 ;int ret;RTE_SET_USED (count);
@@ -100,11 +101,15 @@ dpaa2_cmdif_enqueue_bufs(struct rte_rawdev *dev, ret =qbman_swp_enqueue_multiple (swp, &eqdesc, &fd,NULL ,1 );if (ret <0 && ret != -EBUSY )DPAA2_CMDIF_ERR ("Transmit failure with err: %d\n" , ret); - }while (ret == -EBUSY ); + retry_count++; + }while ((ret == -EBUSY ) && (retry_count <DPAA2_MAX_TX_RETRY_COUNT )); + +if (ret <0 ) +return ret;DPAA2_CMDIF_DP_DEBUG ("Successfully transmitted a packet\n" ); -return 0 ; +return 1 ; } static int
Signature · 1 line
2.17.1
PATCH v4 7/9 mempool/dpaa2: report error on endless loop in mbuf release
In reply to Nipun GuptaFrom: Radu Bulie <[email protected]>
When BMAN is not able to accept more buffers, it could be that there are no FBPR's (internal mem provided to bman) left. Report error in such condition.
--- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 27 +++++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-)
drivers/mempool/dpaa2/dpaa2_hw_mempool.c +19 -8
@@ -192,7 +192,7 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,struct qbman_release_desc releasedesc;struct qbman_swp *swp;int ret; -int i, n; +int i, n, retry_count;uint64_t bufs[DPAA2_MBUF_MAX_ACQ_REL ];if (unlikely (!DPAA2_PER_LCORE_DPIO )) {
@@ -225,9 +225,15 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused, }/* feed them to bman */ -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, n); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, n)) == + -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) { +DPAA2_MEMPOOL_ERR ("bman release retry exceeded, low fbpr?" ); +return ; + } + } aligned:/* if there are more buffers to free */
@@ -243,10 +249,15 @@ rte_dpaa2_mbuf_release(struct rte_mempool *pool __rte_unused,#endif } -do { - ret =qbman_swp_release (swp, &releasedesc, bufs, -DPAA2_MBUF_MAX_ACQ_REL ); - }while (ret == -EBUSY ); + retry_count =0 ; +while ((ret =qbman_swp_release (swp, &releasedesc, bufs, +DPAA2_MBUF_MAX_ACQ_REL )) == -EBUSY ) { + retry_count++; +if (retry_count >DPAA2_MAX_TX_RETRY_COUNT ) { +DPAA2_MEMPOOL_ERR ("bman release retry exceeded, low fbpr?" ); +return ; + } + } n +=DPAA2_MBUF_MAX_ACQ_REL ; } }
Signature · 1 line
2.17.1
PATCH v4 8/9 bus/dpaa: moving qbman global init to bus
In reply to Nipun GuptaFrom: Hemant Agrawal <[email protected]>
DPAA SEC shall be able to work independent of DPAA ETH driver.
This patch moves qbman init to bus, so that any driver can use them even when no eth resources are present or none of the eth devices are probed.
--- drivers/bus/dpaa/dpaa_bus.c | 21 +++++++++++++++++++-- drivers/bus/dpaa/rte_bus_dpaa_version.map | 2 -- drivers/crypto/dpaa_sec/dpaa_sec.c | 8 ++++++++ drivers/net/dpaa/dpaa_ethdev.c | 14 -------------- 4 files changed, 27 insertions(+), 18 deletions(-)
drivers/bus/dpaa/dpaa_bus.c +19 -2
@@ -561,8 +561,24 @@ rte_dpaa_bus_probe(void)return 0 ;/* Device list creation is only done once */ -if (!process_once) +if (!process_once) {rte_dpaa_bus_dev_build (); +if (rte_eal_process_type () ==RTE_PROC_PRIMARY ) { +/* One time load of Qman/Bman drivers */ + ret =qman_global_init (); +if (ret) { +DPAA_PMD_ERR ("QMAN initialization failed: %d" , + ret); +return ret; + } + ret =bman_global_init (); +if (ret) { +DPAA_PMD_ERR ("BMAN initialization failed: %d" , + ret); +return ret; + } + } + } process_once =1 ;/* If no device present on DPAA bus nothing needs to be done */
@@ -600,7 +616,8 @@ rte_dpaa_bus_probe(void) RTE_DEV_WHITELISTED)) { ret = drv->probe (drv, dev);if (ret) { -DPAA_BUS_ERR ("Unable to probe.\n" ); +DPAA_BUS_ERR ("unable to probe:%s" , + dev->name); }else { dev->driver = drv; dev->device.driver = &drv->driver;
drivers/bus/dpaa/rte_bus_dpaa_version.map +0 -2
@@ -4,7 +4,6 @@ DPDK_17.11 { bman_acquire; bman_free_pool; bman_get_params; - bman_global_init; bman_new_pool; bman_query_free_buffers; bman_release;
@@ -48,7 +47,6 @@ DPDK_17.11 { qman_enqueue_multi; qman_fq_fqid; qman_fq_state; - qman_global_init; qman_init_fq; qman_poll_dqrr; qman_query_fq_np;
drivers/crypto/dpaa_sec/dpaa_sec.c +8 -0
@@ -3334,6 +3334,14 @@ cryptodev_dpaa_sec_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, } } +if (unlikely (!RTE_PER_LCORE (dpaa_io))) { + retval =rte_dpaa_portal_init ((void *)1 ); +if (retval) { +DPAA_SEC_ERR ("Unable to initialize portal" ); +return retval; + } + } +/* Invoke PMD device initialization function */ retval =dpaa_sec_dev_init (cryptodev);if (retval ==0 )
drivers/net/dpaa/dpaa_ethdev.c +0 -14
@@ -1576,20 +1576,6 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, }if (!is_global_init && (rte_eal_process_type () ==RTE_PROC_PRIMARY )) { -/* One time load of Qman/Bman drivers */ - ret =qman_global_init (); -if (ret) { -DPAA_PMD_ERR ("QMAN initialization failed: %d" , - ret); -return ret; - } - ret =bman_global_init (); -if (ret) { -DPAA_PMD_ERR ("BMAN initialization failed: %d" , - ret); -return ret; - } -if (access ("/tmp/fmc.bin" ,F_OK ) ==-1 ) {RTE_LOG (INFO ,PMD ,"* FMC not configured.Enabling default mode\n" );
Signature · 1 line
2.17.1
PATCH v4 9/9 bus/fslmc: sanitize device name parsing for clarity
In reply to Nipun Guptaremove unnecessary dup and free
--- drivers/bus/fslmc/fslmc_bus.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
drivers/bus/fslmc/fslmc_bus.c +9 -10
@@ -235,8 +235,9 @@ rte_fslmc_parse(const char *name, void *addr) {uint16_t dev_id;char *t_ptr; -char *sep =NULL ; +const char *sep;uint8_t sep_exists =0 ; +int ret =-1 ;DPAA2_BUS_DEBUG ("Parsing dev=(%s)" , name);
@@ -266,10 +267,11 @@ rte_fslmc_parse(const char *name, void *addr) }else {DPAA2_BUS_DEBUG ("Invalid device for matching (%s)." , name); + ret = -EINVAL ; goto err_out; } }else - sep =strdup (name); + sep = name; jump_out:/* Validate device name */
@@ -283,26 +285,23 @@ rte_fslmc_parse(const char *name, void *addr) strncmp("dpdmai", sep, 6) && strncmp("dpdmux", sep, 6)) {DPAA2_BUS_DEBUG ("Unknown or unsupported device (%s)" , sep); + ret = -EINVAL ; goto err_out; } t_ptr =strchr (sep,'.' );if (!t_ptr ||sscanf (t_ptr +1 ,"%hu" , &dev_id) !=1 ) {DPAA2_BUS_ERR ("Missing device id in device name (%s)" , sep); + ret = -EINVAL ; goto err_out; } -if (addr) { +if (addr)strcpy (addr, sep); -if (!sep_exists && sep) -free (sep); -return 0 ; - } + ret =0 ; err_out: -if (!sep_exists && sep) -free (sep); -return -EINVAL ; +return ret; } static int
Signature · 1 line
2.17.1
Thomas Monjalon
Applied05/11/2019 15:23, Nipun Gupta:
Quoted 11 lines
Hemant Agrawal (1):
bus/dpaa: moving qbman global init to busNipun Gupta (7):
net/dpaa: fix supported RSS types
net/dpaa: fix LS1043 alignment check
common/dpaax: fallback to check separate memory node for VM net/dpaa2: add retry and timeout in packet enqueue API raw/dpaa2_qdma: add retry and timeout in packet enqueue API raw/dpaa2_cmdif: add retry and timeout in packet enqueue API bus/fslmc: sanitize device name parsing for clarity
This last patch is from Shreyansh (fixed on merge).
Quoted 3 lines
Radu Bulie (1):
mempool/dpaa2: report error on endless loop in mbuf release
Applied, thanks