diff options
author | Lang Cheng <[email protected]> | 2021-03-13 10:30:11 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-03-22 09:25:57 -0300 |
commit | af06b628a6bde8506bbad32dbf7cc641c0176ad7 (patch) | |
tree | 084d32fc642e6c2d37c32c6a5b07c469300e0c17 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 22053df0a3647560e6aa11cb6ddcb0da04f505cc (diff) |
RDMA/hns: Fix bug during CMDQ initialization
When reloading driver, the head/tail pointer of CMDQ may be not at
position 0. Then during initialization of CMDQ, if head is reset first,
the firmware will start to handle CMDQ because the head is not equal to
the tail. The driver can reset tail first since the firmware will be
triggerred only by head. This bug is introduced by changing macros of
head/tail register without changing the order of initialization.
Fixes: 292b3352bd5b ("RDMA/hns: Adjust fields and variables about CMDQ tail/head")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lang Cheng <[email protected]>
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions