linux/drivers/infiniband/hw/hns
Yixian Liu 3d50503b3b RDMA/hns: Optimize cmd init and mode selection for hip08
There are two modes for mailbox command (cmd) queue, i.e., event mode and
poll mode. For each mode, we use corresponding semaphores to protect the
cmd queue resource competition, so called event_sem and poll_sem. During
cmd init, both semaphores are initialized and poll mode is selected.
Thus, there is no need to up poll_sema again in cmd_use_polling.

Furthermore, there is no need to down the sema of the other side while
switching mode. This patch aims to decouple the switch between event mode
and poll mode of cmd.

Link: https://lore.kernel.org/r/1567068102-56919-2-git-send-email-liweihang@hisilicon.com
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-09-16 10:52:20 -03:00
..
hns_roce_ah.c RDMA/hns: Modify the data structure of hns_roce_av 2019-08-28 11:57:26 -04:00
hns_roce_alloc.c RDMA/hns: Cleanup unnecessary exported symbols 2019-06-25 14:48:44 -03:00
hns_roce_cmd.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_cmd.h RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_common.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_cq.c RDMA/hns: Remove not used UAR assignment 2019-08-05 12:16:24 -04:00
hns_roce_db.c RDMA/hns: Fix sg offset non-zero issue 2019-07-22 14:44:08 -03:00
hns_roce_device.h RDMA/hns: Fix cast from or to restricted __le32 for driver 2019-08-28 11:57:26 -04:00
hns_roce_hem.c RDMA/hns: Fix cast from or to restricted __le32 for driver 2019-08-28 11:57:26 -04:00
hns_roce_hem.h RDMA/hns: Update some comments style 2019-08-12 10:45:08 -04:00
hns_roce_hw_v1.c RDMA/hns: Use devm_platform_ioremap_resource() to simplify code 2019-09-13 16:55:55 -03:00
hns_roce_hw_v1.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_hw_v2.c RDMA/hns: Fix wrong assignment of qp_access_flags 2019-08-28 11:57:26 -04:00
hns_roce_hw_v2.h RDMA/hns: Add reset process for function-clear 2019-08-28 11:57:26 -04:00
hns_roce_main.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_mr.c RDMA/hns: Fix cast from or to restricted __le32 for driver 2019-08-28 11:57:26 -04:00
hns_roce_pd.c RDMA/hns: Clean up unnecessary variable initialization 2019-07-07 09:19:38 -03:00
hns_roce_qp.c RDMA/hns: Fix cast from or to restricted __le32 for driver 2019-08-28 11:57:26 -04:00
hns_roce_restrack.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_srq.c RDMA/hns: Delete the not-used lines 2019-08-28 11:57:26 -04:00
Kconfig RDMA/hns: remove obsolete Kconfig comment 2019-08-12 10:19:43 -04:00
Makefile RDMA/hns: Fix build error 2019-07-29 12:05:57 -04:00