Print this page
8368 remove warlock leftovers from usr/src/uts

@@ -123,11 +123,10 @@
                 /* 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);
 
         /*

@@ -262,11 +261,10 @@
         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

@@ -324,11 +322,10 @@
         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
          */

@@ -515,12 +512,10 @@
         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;
         }

@@ -1730,11 +1725,10 @@
                 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);

@@ -1758,11 +1752,10 @@
          * 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

@@ -1836,12 +1829,10 @@
         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);

@@ -1932,11 +1923,10 @@
                 /* 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];
                 }
         }
 

@@ -2096,13 +2086,10 @@
 {
         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 */

@@ -2150,11 +2137,10 @@
 
         /*
          * 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);

@@ -2227,13 +2213,10 @@
 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;
 

@@ -2242,11 +2225,10 @@
          */
         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

@@ -2349,12 +2331,10 @@
         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;
 
         /*

@@ -2505,12 +2485,10 @@
 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.
          */

@@ -2540,12 +2518,10 @@
  *    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;