RDMA/hns: Fix cmdq parameter of querying pf timer resource
authorLang Cheng <chenglang@huawei.com>
Fri, 8 May 2020 09:45:52 +0000 (17:45 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:54:57 +0000 (20:54 -0300)
commit441c88d5b3ff80108ff536c6cf80591187015403
tree0f095bccdea1bfcb3ec588a874706e076e92e1d6
parent349be276509455ac2f19fa4051ed773082c6a27e
RDMA/hns: Fix cmdq parameter of querying pf timer resource

The firmware has reduced the number of descriptions of command
HNS_ROCE_OPC_QUERY_PF_TIMER_RES to 1. The driver needs to adapt, otherwise
the hardware will report error 4(CMD_NEXT_ERR).

Fixes: 0e40dc2f70cd ("RDMA/hns: Add timer allocation support for hip08")
Link: https://lore.kernel.org/r/1588931159-56875-3-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c