/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor.c | 1383 if (state->ts_cfg_profile->cp_nodeguid) { in tavor_hw_init() 1384 state->ts_nodeguid = state->ts_cfg_profile->cp_nodeguid; in tavor_hw_init() 1402 if (state->ts_cfg_profile->cp_sysimgguid) { in tavor_hw_init() 1403 state->ts_sysimgguid = state->ts_cfg_profile->cp_sysimgguid; in tavor_hw_init() 1447 num_ports = state->ts_cfg_profile->cp_num_ports; in tavor_hw_fini() 1622 if (state->ts_cfg_profile->cp_srq_enable) { in tavor_soft_state_init() 1642 val = ((uint64_t)1 << state->ts_cfg_profile->cp_log_num_qp); in tavor_soft_state_init() 1646 val = ((uint64_t)1 << state->ts_cfg_profile->cp_log_max_qp_sz); in tavor_soft_state_init() 1657 val = state->ts_cfg_profile->cp_wqe_max_sgl; in tavor_soft_state_init() 1665 if (state->ts_cfg_profile->cp_wqe_real_max_sgl > maxval) { in tavor_soft_state_init() [all …]
|
H A D | tavor_srq.c | 174 if (log_srq_size > state->ts_cfg_profile->cp_log_max_srq_sz) { in tavor_srq_alloc() 183 max_sgl = state->ts_cfg_profile->cp_srq_max_sgl; in tavor_srq_alloc() 265 mr_op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_srq_alloc() 269 state->ts_cfg_profile->cp_iommu_bypass; in tavor_srq_alloc() 271 state->ts_cfg_profile->cp_streaming_consistent; in tavor_srq_alloc() 621 wq_location = state->ts_cfg_profile->cp_srq_wq_inddr; in tavor_srq_modify() 627 max_srq_size = (1 << state->ts_cfg_profile->cp_log_max_srq_sz); in tavor_srq_modify() 648 if (log_srq_size > state->ts_cfg_profile->cp_log_max_srq_sz) { in tavor_srq_modify() 707 bind.bi_bypass = state->ts_cfg_profile->cp_iommu_bypass; in tavor_srq_modify() 711 state->ts_cfg_profile->cp_iommu_bypass; in tavor_srq_modify() [all …]
|
H A D | tavor_agents.c | 69 if ((state->ts_cfg_profile->cp_qp0_agents_in_fw) && in tavor_agent_handlers_init() 70 (state->ts_cfg_profile->cp_qp1_agents_in_fw)) { in tavor_agent_handlers_init() 127 if ((state->ts_cfg_profile->cp_qp0_agents_in_fw) && in tavor_agent_handlers_fini() 128 (state->ts_cfg_profile->cp_qp1_agents_in_fw)) { in tavor_agent_handlers_fini() 362 num_ports = state->ts_cfg_profile->cp_num_ports; in tavor_agent_list_init() 365 do_qp0 = state->ts_cfg_profile->cp_qp0_agents_in_fw; in tavor_agent_list_init() 366 do_qp1 = state->ts_cfg_profile->cp_qp1_agents_in_fw; in tavor_agent_list_init()
|
H A D | tavor_qp.c | 266 max_rdb = state->ts_cfg_profile->cp_hca_max_rdma_in_qp; in tavor_qp_alloc() 301 if ((log_qp_sq_size > state->ts_cfg_profile->cp_log_max_qp_sz) || in tavor_qp_alloc() 303 state->ts_cfg_profile->cp_log_max_qp_sz))) { in tavor_qp_alloc() 312 max_sgl = state->ts_cfg_profile->cp_wqe_real_max_sgl; in tavor_qp_alloc() 426 mr_op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_qp_alloc() 430 state->ts_cfg_profile->cp_iommu_bypass; in tavor_qp_alloc() 432 state->ts_cfg_profile->cp_streaming_consistent; in tavor_qp_alloc() 756 if ((log_qp_sq_size > state->ts_cfg_profile->cp_log_max_qp_sz) || in tavor_special_qp_alloc() 757 (log_qp_rq_size > state->ts_cfg_profile->cp_log_max_qp_sz)) { in tavor_special_qp_alloc() 766 max_sgl = state->ts_cfg_profile->cp_wqe_real_max_sgl; in tavor_special_qp_alloc() [all …]
|
H A D | tavor_stats.c | 135 numports = state->ts_cfg_profile->cp_num_ports; in tavor_kstat_init() 220 numports = state->ts_cfg_profile->cp_num_ports; in tavor_kstat_fini() 392 numports = state->ts_cfg_profile->cp_num_ports; in tavor_kstat_cntr_update() 646 for (i = 0; i < state->ts_cfg_profile->cp_num_ports; i++) { in tavor_kstat_perfcntr64_update_thread() 773 for (i = 0; i < state->ts_cfg_profile->cp_num_ports; in tavor_kstat_perfcntr64_update()
|
H A D | tavor_ci.c | 387 end = start + (state->ts_cfg_profile->cp_num_ports - 1); in tavor_ci_query_hca_ports() 750 op.qpo_wq_loc = state->ts_cfg_profile->cp_qp_wq_inddr; in tavor_ci_alloc_qp() 796 op.qpo_wq_loc = state->ts_cfg_profile->cp_qp_wq_inddr; in tavor_ci_alloc_special_qp() 1293 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_ci_register_mr() 1374 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_ci_register_buf() 1607 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_ci_reregister_mr() 1678 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_ci_reregister_buf() 2261 if (state->ts_cfg_profile->cp_srq_enable == 0) { in tavor_ci_alloc_srq() 2278 op.srqo_wq_loc = state->ts_cfg_profile->cp_srq_wq_inddr; in tavor_ci_alloc_srq() 2309 if (state->ts_cfg_profile->cp_srq_enable == 0) { in tavor_ci_free_srq() [all …]
|
H A D | tavor_misc.c | 141 udav_entry.msg_sz = state->ts_cfg_profile->cp_max_mtu - 1; in tavor_ah_alloc() 155 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_ah_alloc() 1099 if (qplist_indx >= state->ts_cfg_profile->cp_num_qp_per_mcg) { in tavor_mcg_qplist_add() 1691 tbl_size = state->ts_cfg_profile->cp_log_max_gidtbl; in tavor_port_query() 1693 tbl_size = state->ts_cfg_profile->cp_log_max_pkeytbl; in tavor_port_query() 2077 max_port = state->ts_cfg_profile->cp_num_ports; in tavor_portnum_is_valid() 2095 max_pkeyindx = 1 << state->ts_cfg_profile->cp_log_max_pkeytbl; in tavor_pkeyindex_is_valid() 2131 type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_queue_alloc() 2177 dma_xfer_mode = state->ts_cfg_profile->cp_streaming_consistent; in tavor_queue_alloc()
|
H A D | tavor_cq.c | 164 if (log_cq_size > state->ts_cfg_profile->cp_log_max_cq_sz) { in tavor_cq_alloc() 222 dma_xfer_mode = state->ts_cfg_profile->cp_streaming_consistent; in tavor_cq_alloc() 227 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_cq_alloc() 539 if (log_cq_size > state->ts_cfg_profile->cp_log_max_cq_sz) { in tavor_cq_resize() 596 dma_xfer_mode = state->ts_cfg_profile->cp_streaming_consistent; in tavor_cq_resize() 601 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_cq_resize() 1188 cqmask = (1 << state->ts_cfg_profile->cp_log_num_cq) - 1; in tavor_cqhdl_from_cqnum()
|
H A D | tavor_cmd.c | 337 num_inmbox = (1 << state->ts_cfg_profile->cp_log_num_inmbox); in tavor_inmbox_list_init() 359 num_inmbox = (1 << state->ts_cfg_profile->cp_log_num_intr_inmbox); in tavor_intr_inmbox_list_init() 381 num_outmbox = (1 << state->ts_cfg_profile->cp_log_num_outmbox); in tavor_outmbox_list_init() 403 num_outmbox = (1 << state->ts_cfg_profile->cp_log_num_intr_outmbox); in tavor_intr_outmbox_list_init() 480 countmax = state->ts_cfg_profile->cp_cmd_poll_max; in tavor_impl_mbox_alloc() 492 drv_usecwait(state->ts_cfg_profile->cp_cmd_poll_delay); in tavor_impl_mbox_alloc() 656 flag = state->ts_cfg_profile->cp_streaming_consistent; in tavor_impl_mboxlist_init() 914 countmax = state->ts_cfg_profile->cp_cmd_poll_max; in tavor_write_hcr() 923 drv_usecwait(state->ts_cfg_profile->cp_cmd_poll_delay); in tavor_write_hcr() 974 countmax = state->ts_cfg_profile->cp_cmd_poll_max; in tavor_write_hcr() [all …]
|
H A D | tavor_ioctl.c | 767 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_ports() 770 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl); in tavor_ioctl_ports() 780 info.tp_num_ports = (uint8_t)state->ts_cfg_profile->cp_num_ports; in tavor_ioctl_ports() 810 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_ports() 812 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl); in tavor_ioctl_ports() 907 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_loopback() 910 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl); in tavor_ioctl_loopback() 922 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_loopback() 924 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_pkeytbl); in tavor_ioctl_loopback() 940 tbl_size = (1 << state->ts_cfg_profile->cp_log_max_gidtbl); in tavor_ioctl_loopback() [all …]
|
H A D | tavor_rsrc.c | 436 cfgprof = state->ts_cfg_profile; in tavor_rsrc_init_phase1() 591 cfgprof = state->ts_cfg_profile; in tavor_rsrc_init_phase2() 893 if (state->ts_cfg_profile->cp_srq_enable != 0) { in tavor_rsrc_init_phase2() 1231 if (state->ts_cfg_profile->cp_srq_enable != 0) { in tavor_rsrc_init_phase2() 1425 cfgprof = state->ts_cfg_profile; in tavor_rsrc_fini() 1480 if (state->ts_cfg_profile->cp_srq_enable != 0) { in tavor_rsrc_fini() 1569 if (state->ts_cfg_profile->cp_srq_enable != 0) { in tavor_rsrc_fini() 1688 dma_xfer_mode = state->ts_cfg_profile->cp_streaming_consistent; in tavor_rsrc_mbox_init() 2632 num_qp_per_mcg = state->ts_cfg_profile->cp_num_qp_per_mcg + 8; in tavor_rsrc_mcg_entry_get_size() 2637 state->ts_cfg_profile->cp_num_qp_per_mcg = (1 << log2) - 8; in tavor_rsrc_mcg_entry_get_size() [all …]
|
H A D | tavor_cfg.c | 378 state->ts_cfg_profile = cp; in tavor_cfg_profile_init_phase1() 393 cp = state->ts_cfg_profile; in tavor_cfg_profile_init_phase2() 615 kmem_free(state->ts_cfg_profile, sizeof (tavor_cfg_profile_t)); in tavor_cfg_profile_fini()
|
H A D | tavor_event.c | 101 log_eq_size = state->ts_cfg_profile->cp_log_default_eq_sz; in tavor_eq_init_all() 924 dma_xfer_mode = state->ts_cfg_profile->cp_streaming_consistent; in tavor_eq_alloc() 928 op.mro_bind_type = state->ts_cfg_profile->cp_iommu_bypass; in tavor_eq_alloc() 1236 if ((port == 0) || (port > state->ts_cfg_profile->cp_num_ports)) { in tavor_port_state_change_handler()
|
H A D | tavor_qpmod.c | 1126 qpc->mtu = state->ts_cfg_profile->cp_max_mtu; in tavor_qp_init2rtr() 1504 qpc->ack_req_freq = state->ts_cfg_profile->cp_ackreq_freq; in tavor_qp_rtr2rts() 2944 if (rdma_ra_in > state->ts_cfg_profile->cp_hca_max_rdma_in_qp) { in tavor_qp_validate_resp_rsrc() 2980 if (rdma_ra_out > state->ts_cfg_profile->cp_hca_max_rdma_out_qp) { in tavor_qp_validate_init_depth() 3011 if ((mtu == 0) || (mtu > state->ts_cfg_profile->cp_max_mtu)) { in tavor_qp_validate_mtu()
|
H A D | tavor_mr.c | 1002 log_num_mpt = state->ts_cfg_profile->cp_log_num_mpt; in tavor_mr_keycalc() 1058 max_sz = ((uint64_t)1 << state->ts_cfg_profile->cp_log_max_mrw_sz); in tavor_mr_common_reg() 1943 max_sz = ((uint64_t)1 << state->ts_cfg_profile->cp_log_max_mrw_sz); in tavor_mr_rereg_xlat_helper() 2335 if (state->ts_cfg_profile->cp_disable_streaming_on_bypass && in tavor_mr_mem_bind()
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/tavor/ |
H A D | tavor_event.h | 101 ((((((state)->ts_cfg_profile->cp_streaming_consistent) && \ 102 ((state)->ts_cfg_profile->cp_consistent_syncoverride))) || \
|
H A D | tavor_srq.h | 94 ((((((state)->ts_cfg_profile->cp_streaming_consistent) && \ 95 ((state)->ts_cfg_profile->cp_consistent_syncoverride))) || \
|
H A D | tavor_cq.h | 90 ((((((state)->ts_cfg_profile->cp_streaming_consistent) && \ 91 ((state)->ts_cfg_profile->cp_consistent_syncoverride))) || \
|
H A D | tavor_qp.h | 86 ((((((state)->ts_cfg_profile->cp_streaming_consistent) && \ 87 ((state)->ts_cfg_profile->cp_consistent_syncoverride))) || \
|
H A D | tavor_cmd.h | 84 ((((((state)->ts_cfg_profile->cp_streaming_consistent) && \ 85 ((state)->ts_cfg_profile->cp_consistent_syncoverride))) || \
|
H A D | tavor_misc.h | 115 ((((state)->ts_cfg_profile->cp_num_qp_per_mcg) + 8) << 2)
|
H A D | tavor.h | 460 tavor_cfg_profile_t *ts_cfg_profile; member
|