forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/infiniband/hw/hns/hns_roce_hw_v1.h
....@@ -68,13 +68,13 @@
6868 #define HNS_ROCE_V1_COMP_EQE_NUM 0x8000
6969 #define HNS_ROCE_V1_ASYNC_EQE_NUM 0x400
7070
71
-#define HNS_ROCE_V1_QPC_ENTRY_SIZE 256
71
+#define HNS_ROCE_V1_QPC_SIZE 256
7272 #define HNS_ROCE_V1_IRRL_ENTRY_SIZE 8
7373 #define HNS_ROCE_V1_CQC_ENTRY_SIZE 64
7474 #define HNS_ROCE_V1_MTPT_ENTRY_SIZE 64
7575 #define HNS_ROCE_V1_MTT_ENTRY_SIZE 64
7676
77
-#define HNS_ROCE_V1_CQE_ENTRY_SIZE 32
77
+#define HNS_ROCE_V1_CQE_SIZE 32
7878 #define HNS_ROCE_V1_PAGE_SIZE_SUPPORT 0xFFFFF000
7979
8080 #define HNS_ROCE_V1_TABLE_CHUNK_SIZE (1 << 17)
....@@ -110,11 +110,6 @@
110110 #define HNS_ROCE_V1_EXT_ODB_ALFUL \
111111 (HNS_ROCE_V1_EXT_ODB_DEPTH - HNS_ROCE_V1_DB_RSVD)
112112
113
-#define HNS_ROCE_V1_DB_WAIT_OK 0
114
-#define HNS_ROCE_V1_DB_STAGE1 1
115
-#define HNS_ROCE_V1_DB_STAGE2 2
116
-#define HNS_ROCE_V1_CHECK_DB_TIMEOUT_MSECS 10000
117
-#define HNS_ROCE_V1_CHECK_DB_SLEEP_MSECS 20
118113 #define HNS_ROCE_V1_FREE_MR_TIMEOUT_MSECS 50000
119114 #define HNS_ROCE_V1_RECREATE_LP_QP_TIMEOUT_MSECS 10000
120115 #define HNS_ROCE_V1_FREE_MR_WAIT_VALUE 5
....@@ -162,7 +157,6 @@
162157 #define SQ_PSN_SHIFT 8
163158 #define QKEY_VAL 0x80010000
164159 #define SDB_INV_CNT_OFFSET 8
165
-#define SDB_ST_CMP_VAL 8
166160
167161 #define HNS_ROCE_CEQ_DEFAULT_INTERVAL 0x10
168162 #define HNS_ROCE_CEQ_DEFAULT_BURST_NUM 0x10
....@@ -1068,11 +1062,6 @@
10681062 u32 sche_cnt;
10691063 };
10701064
1071
-struct hns_roce_des_qp {
1072
- struct workqueue_struct *qp_wq;
1073
- int requeue_flag;
1074
-};
1075
-
10761065 struct hns_roce_mr_free_work {
10771066 struct work_struct work;
10781067 struct ib_device *ib_dev;
....@@ -1100,12 +1089,11 @@
11001089 struct hns_roce_raq_table raq_table;
11011090 struct hns_roce_bt_table bt_table;
11021091 struct hns_roce_tptr_table tptr_table;
1103
- struct hns_roce_des_qp des_qp;
11041092 struct hns_roce_free_mr free_mr;
11051093 };
11061094
11071095 int hns_dsaf_roce_reset(struct fwnode_handle *dsaf_fwnode, bool dereset);
11081096 int hns_roce_v1_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc);
1109
-int hns_roce_v1_destroy_qp(struct ib_qp *ibqp);
1097
+int hns_roce_v1_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
11101098
11111099 #endif