[PATCH v3 15/32] common/cnxk: avoid STALL with dual rate on CNF95N
Nithin Dabilpuram
ndabilpuram at marvell.com
Thu May 25 11:58:47 CEST 2023
From: Satha Rao <skoteshwar at marvell.com>
Due to errata RED_ALGO STALL with dual shaper rate will hangs on
platforms CNF95N and CNF95O. Set READ_ALGO to DISCARD with dual
shaper rate on CNF95N and CNF95O.
Signed-off-by: Satha Rao <skoteshwar at marvell.com>
---
drivers/common/cnxk/roc_nix_tm_utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_nix_tm_utils.c b/drivers/common/cnxk/roc_nix_tm_utils.c
index 9ede1bebe7..3840d6d457 100644
--- a/drivers/common/cnxk/roc_nix_tm_utils.c
+++ b/drivers/common/cnxk/roc_nix_tm_utils.c
@@ -1267,7 +1267,8 @@ roc_nix_tm_shaper_default_red_algo(struct roc_nix_tm_node *node,
tm_node->red_algo = roc_prof->red_algo;
/* C0 doesn't support STALL when both PIR & CIR are enabled */
- if (roc_model_is_cn96_cx()) {
+ if (roc_model_is_cn96_cx() || roc_model_is_cnf95xxn_a0() || roc_model_is_cnf95xxo_a0() ||
+ roc_model_is_cnf95xxn_a1() || roc_model_is_cnf95xxn_b0()) {
nix_tm_shaper_conf_get(profile, &cir, &pir);
if (pir.rate && cir.rate)
--
2.25.1
More information about the dev
mailing list