Skip to contentSkip to conversation

soc: fsl: dpio: Increase timeout for QBMan Management Commands

PATCH In review Roy Pledge 2 participants 2 messages Mar 11, 2019 – May 1, 2019

Subsystems (2)
lore
Share & tools
lore

Roy Pledge

author
#0 lore raw

PATCH 1/1 soc: fsl: dpio: Increase timeout for QBMan Management Commands

From: Youri Querry <[email protected]>

The timeout for QBMan Management Commands can falsely trigger on a busy system. This patch doubles the timeout to avoid the false error reports

---
 drivers/soc/fsl/dpio/qbman-portal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/fsl/dpio/qbman-portal.h +2 -2
index 78c700e..f3ec5d2 100644
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
 /*
  * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
- * Copyright 2016 NXP
+ * Copyright 2016-2019 NXP
  *
  */
 #ifndef __FSL_QBMAN_PORTAL_H
@@ -433,7 +433,7 @@ static inline int qbman_swp_CDAN_set_context_enable(struct qbman_swp *s,
 static inline void *qbman_swp_mc_complete(struct qbman_swp *swp, void *cmd,
 					  u8 cmd_verb)
 {
-	int loopvar = 1000;
+	int loopvar = 2000;
 
 	qbman_swp_mc_submit(swp, cmd, cmd_verb);
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 9 lines · Roy Pledge

From: Youri Querry <[email protected]>

The timeout for QBMan Management Commands can falsely trigger on a busy system. This patch doubles the timeout to avoid the false error reports

Applied for next. Thanks.

Quoted 29 lines
---
 drivers/soc/fsl/dpio/qbman-portal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/fsl/dpio/qbman-portal.h +2 -3
index 78c700e..f3ec5d2 100644
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
 /*
  * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
- * Copyright 2016 NXP
+ * Copyright 2016-2019 NXP
  *
  */
 #ifndef __FSL_QBMAN_PORTAL_H
@@ -433,7 +433,7 @@ static inline int qbman_swp_CDAN_set_context_enable(struct qbman_swp *s,
 static inline void *qbman_swp_mc_complete(struct qbman_swp *swp, void *cmd,
                                          u8 cmd_verb)
 {
-       int loopvar = 1000;
+       int loopvar = 2000;
 
        qbman_swp_mc_submit(swp, cmd, cmd_verb);
 
--

2.7.4