Print this page
8368 remove warlock leftovers from usr/src/uts
*** 123,133 ****
/* Set "status" and "errormsg" and goto failure */
TAVOR_TNF_FAIL(IBT_INSUFF_RESOURCE, "failed AH handler");
goto ahalloc_fail1;
}
ah = (tavor_ahhdl_t)rsrc->tr_addr;
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ah))
/* Increment the reference count on the protection domain (PD) */
tavor_pd_refcnt_inc(pd);
/*
--- 123,132 ----
*** 262,272 ****
udav = ah->ah_udavrsrcp;
rsrc = ah->ah_rsrcp;
pd = ah->ah_pdhdl;
mr = ah->ah_mrhdl;
mutex_exit(&ah->ah_lock);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ah))
/*
* Deregister the memory for the UDAV. If this fails for any reason,
* then it is an indication that something (either in HW or SW) has
* gone seriously wrong. So we print a warning message and return
--- 261,270 ----
*** 324,334 ****
int i;
TAVOR_TNF_ENTER(tavor_ah_query);
mutex_enter(&ah->ah_lock);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*attr_p))
/*
* Pull all the necessary information from the Tavor Address Handle
* structure
*/
--- 322,331 ----
*** 515,526 ****
off_t offset;
int status;
TAVOR_TNF_ENTER(tavor_udav_sync);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ah))
-
/* Determine if AH needs to be synced or not */
if (ah->ah_sync == 0) {
TAVOR_TNF_EXIT(tavor_udav_sync);
return;
}
--- 512,521 ----
*** 1730,1740 ****
TNF_PROBE_0(tavor_pd_alloc_rsrcalloc_fail, TAVOR_TNF_ERROR, "");
TAVOR_TNF_EXIT(tavor_pd_alloc);
return (IBT_INSUFF_RESOURCE);
}
pd = (tavor_pdhdl_t)rsrc->tr_addr;
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pd))
pd->pd_refcnt = 0;
*pdhdl = pd;
TAVOR_TNF_EXIT(tavor_pd_alloc);
--- 1725,1734 ----
*** 1758,1768 ****
* Pull all the necessary information from the Tavor Protection Domain
* handle. This is necessary here because the resource for the
* PD is going to be freed up as part of this operation.
*/
pd = *pdhdl;
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pd))
rsrc = pd->pd_rsrcp;
/*
* Check the PD reference count. If the reference count is non-zero,
* then it means that this protection domain is still referenced by
--- 1752,1761 ----
*** 1836,1847 ****
uint_t sgid_max, pkey_max, tbl_size;
int i, j, indx, status;
TAVOR_TNF_ENTER(tavor_port_query);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pi))
-
/* Validate that specified port number is legal */
if (!tavor_portnum_is_valid(state, port)) {
TNF_PROBE_1(tavor_port_query_inv_portnum_fail,
TAVOR_TNF_ERROR, "", tnf_uint, port, port);
TAVOR_TNF_EXIT(tavor_port_query);
--- 1829,1838 ----
*** 1932,1942 ****
/* Figure out how many of the entries are valid */
sgid_max = min((pi->p_sgid_tbl_sz - i), 8);
for (j = 0; j < sgid_max; j++) {
indx = (i + j);
sgid = &pi->p_sgid_tbl[indx];
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*sgid))
sgid->gid_prefix = portinfo.GidPrefix;
sgid->gid_guid = guidinfo.GUIDBlocks[j];
}
}
--- 1923,1932 ----
*** 2096,2108 ****
{
uint_t gidtbl_sz;
TAVOR_TNF_ENTER(tavor_set_addr_path);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*av))
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path))
-
path->ml_path = av->av_src_path;
path->rlid = av->av_dlid;
path->sl = av->av_srvl;
/* Port number only valid (in "av_port_num") if this is a UDAV */
--- 2086,2095 ----
*** 2150,2160 ****
/*
* If this is a QP operation save asoft copy.
*/
if (qp) {
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(qp->qp_save_srate))
qp->qp_save_srate = av->av_srate;
}
/* If "grh" flag is set, then check for valid SGID index too */
gidtbl_sz = (1 << state->ts_devlim.log_max_gid);
--- 2137,2146 ----
*** 2227,2239 ****
tavor_get_addr_path(tavor_state_t *state, tavor_hw_addr_path_t *path,
ibt_adds_vect_t *av, uint_t type, tavor_qphdl_t qp)
{
uint_t gidtbl_sz;
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path))
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*av))
-
av->av_src_path = path->ml_path;
av->av_port_num = path->portnum;
av->av_dlid = path->rlid;
av->av_srvl = path->sl;
--- 2213,2222 ----
*** 2242,2252 ****
*/
if (qp) {
/*
* If a QP operation use the soft copy
*/
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(qp->qp_save_srate))
av->av_srate = qp->qp_save_srate;
} else {
/*
* The stat_rate_sup is used to decide how the srate value is
* set and
--- 2225,2234 ----
*** 2349,2360 ****
uint_t dma_xfer_mode, type;
int flag, status;
TAVOR_TNF_ENTER(tavor_queue_alloc);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*qa_info))
-
/* Set the callback flag appropriately */
callback = (sleepflag == TAVOR_SLEEP) ? DDI_DMA_SLEEP :
DDI_DMA_DONTWAIT;
/*
--- 2331,2340 ----
*** 2505,2516 ****
void
tavor_queue_free(tavor_state_t *state, tavor_qalloc_info_t *qa_info)
{
TAVOR_TNF_ENTER(tavor_queue_free);
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*qa_info))
-
/*
* Depending on how (i.e. from where) we allocated the memory for
* this queue, we choose the appropriate method for releasing the
* resources.
*/
--- 2485,2494 ----
*** 2540,2551 ****
* Context: Can be called from interrupt or base context.
*/
void
tavor_dma_attr_init(ddi_dma_attr_t *dma_attr)
{
- _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dma_attr))
-
dma_attr->dma_attr_version = DMA_ATTR_V0;
dma_attr->dma_attr_addr_lo = 0;
dma_attr->dma_attr_addr_hi = 0xFFFFFFFFFFFFFFFFull;
dma_attr->dma_attr_count_max = 0xFFFFFFFFFFFFFFFFull;
dma_attr->dma_attr_align = 1;
--- 2518,2527 ----