Thomas Bogendoerfer 4729b6
From: Mustafa Ismail <mustafa.ismail@intel.com>
Thomas Bogendoerfer 4729b6
Date: Tue, 5 Jul 2022 18:08:11 -0500
Thomas Bogendoerfer 4729b6
Subject: RDMA/irdma: Make CQP invalid state error non-critical
Thomas Bogendoerfer 4729b6
Patch-mainline: v6.0-rc1
Thomas Bogendoerfer 4729b6
Git-commit: 36a26d123919997c113ac0182f926b21ccc85855
Thomas Bogendoerfer 4729b6
References: jsc#PED-377
Thomas Bogendoerfer 4729b6
Thomas Bogendoerfer 4729b6
The invalid state error returned by the Control Queue-Pair (CQP) is not a
Thomas Bogendoerfer 4729b6
critical error.
Thomas Bogendoerfer 4729b6
Thomas Bogendoerfer 4729b6
Add it to the irdma_noncrit_err_list and drop reporting it as device error
Thomas Bogendoerfer 4729b6
message.
Thomas Bogendoerfer 4729b6
Thomas Bogendoerfer 4729b6
Link: https://lore.kernel.org/r/20220705230815.265-4-shiraz.saleem@intel.com
Thomas Bogendoerfer 4729b6
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Thomas Bogendoerfer 4729b6
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Thomas Bogendoerfer 4729b6
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Thomas Bogendoerfer 4729b6
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Thomas Bogendoerfer 4729b6
---
Thomas Bogendoerfer 4729b6
 drivers/infiniband/hw/irdma/utils.c |    1 +
Thomas Bogendoerfer 4729b6
 1 file changed, 1 insertion(+)
Thomas Bogendoerfer 4729b6
Thomas Bogendoerfer 4729b6
--- a/drivers/infiniband/hw/irdma/utils.c
Thomas Bogendoerfer 4729b6
+++ b/drivers/infiniband/hw/irdma/utils.c
Thomas Bogendoerfer 4729b6
@@ -652,6 +652,7 @@ static const char *const irdma_cqp_cmd_n
Thomas Bogendoerfer 4729b6
 };
Thomas Bogendoerfer 4729b6
 
Thomas Bogendoerfer 4729b6
 static const struct irdma_cqp_err_info irdma_noncrit_err_list[] = {
Thomas Bogendoerfer 4729b6
+	{0xffff, 0x8002, "Invalid State"},
Thomas Bogendoerfer 4729b6
 	{0xffff, 0x8006, "Flush No Wqe Pending"},
Thomas Bogendoerfer 4729b6
 	{0xffff, 0x8007, "Modify QP Bad Close"},
Thomas Bogendoerfer 4729b6
 	{0xffff, 0x8009, "LLP Closed"},