提交 82a493e3 编写于 作者: Y Yanling Song 提交者: Zheng Zengkai

net/spnic: Reduce the timeout of the channel between driver and firmware

Ramaxel inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4TPKM
CVE: NA

-----------------------------------------------

Reduce the timeout of the channel between driver and firmware
Signed-off-by: NYanling Song <songyl@ramaxel.com>
Reviewed-by: Nwenliang <wenliang@ramaxel.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 640779d3
......@@ -30,7 +30,7 @@
#define SPHW_CMDQ_MAX_DATA_SIZE \
(SPHW_CMDQ_BUF_SIZE - SPHW_CMDQ_BUF_HW_RSVD)
#define CMDQ_CMD_TIMEOUT 300000 /* millisecond */
#define CMDQ_CMD_TIMEOUT 5000 /* millisecond */
#define UPPER_8_BITS(data) (((data) >> 8) & 0xFF)
#define LOWER_8_BITS(data) ((data) & 0xFF)
......
......@@ -61,8 +61,8 @@ enum sphw_mbox_tx_status {
#define MBOX_SEGLEN_MASK SPHW_MSG_HEADER_SET(SPHW_MSG_HEADER_SEG_LEN_MASK, SEG_LEN)
#define MBOX_MSG_POLLING_TIMEOUT 300000
#define SPHW_MBOX_COMP_TIME 300000U
#define MBOX_MSG_POLLING_TIMEOUT 8000
#define SPHW_MBOX_COMP_TIME 25000U
#define MBOX_MAX_BUF_SZ 2048U
#define MBOX_HEADER_SZ 8
......
......@@ -50,7 +50,7 @@
#define MSG_NO_RESP 0xFFFF
#define MGMT_MSG_TIMEOUT 300000 /* millisecond */
#define MGMT_MSG_TIMEOUT 20000 /* millisecond */
#define SYNC_MSG_ID(pf_to_mgmt) ((pf_to_mgmt)->sync_msg_id)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册