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

*** 452,462 **** * Allocate an entry to track the mapping and unmapping (specifically, * partial unmapping) of this resource. */ dvm_track = (tavor_devmap_track_t *)kmem_zalloc( sizeof (tavor_devmap_track_t), KM_SLEEP); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) dvm_track->tdt_offset = off; dvm_track->tdt_state = state; dvm_track->tdt_refcnt = 1; mutex_init(&dvm_track->tdt_lock, NULL, MUTEX_DRIVER, DDI_INTR_PRI(state->ts_intrmsi_pri)); --- 452,461 ----
*** 566,576 **** /* * Extract the Tavor softstate pointer from "Tavor devmap tracking * structure" (in "pvtp"). */ dvm_track = (tavor_devmap_track_t *)pvtp; - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) state = dvm_track->tdt_state; /* * Since this devmap_dup() entry point is generally called * when a process does fork(2), it is incumbent upon the driver --- 565,574 ----
*** 596,606 **** * that this mapping is invalid, and that its subsequent unmapping * should not affect any of the parent's CQ or QP resources. */ new_dvm_track = (tavor_devmap_track_t *)kmem_zalloc( sizeof (tavor_devmap_track_t), KM_SLEEP); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*new_dvm_track)) new_dvm_track->tdt_offset = 0; new_dvm_track->tdt_state = state; new_dvm_track->tdt_refcnt = 1; new_dvm_track->tdt_size = 0; mutex_init(&new_dvm_track->tdt_lock, NULL, MUTEX_DRIVER, --- 594,603 ----
*** 638,648 **** /* * Extract the Tavor softstate pointer from "Tavor devmap tracking * structure" (in "pvtp"). */ dvm_track = (tavor_devmap_track_t *)pvtp; - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) state = dvm_track->tdt_state; /* * Extract the "offset" from the "Tavor devmap tracking structure". * Note: The input argument "off" is ignored here because the --- 635,644 ----
*** 840,850 **** * are not subject to "partial" unmappings. This makes these other * fields unnecessary. */ dvm_track = (tavor_devmap_track_t *)kmem_zalloc( sizeof (tavor_devmap_track_t), KM_SLEEP); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) dvm_track->tdt_state = state; dvm_track->tdt_size = PAGESIZE; /* * Pass the private "Tavor devmap tracking structure" back. This --- 836,845 ----
*** 884,894 **** *new_pvtp = NULL; TAVOR_TNF_EXIT(tavor_devmap_devmem_dup); return (DDI_SUCCESS); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) state = dvm_track->tdt_state; /* * Since this devmap_dup() entry point is generally called * when a process does fork(2), it is incumbent upon the driver --- 879,888 ----
*** 940,950 **** * are single pages. Note: If the tracking structure is NULL here, * it means that the mapping corresponds to an invalid mapping. In * this case, it can be safely ignored. */ dvm_track = (tavor_devmap_track_t *)pvtp; - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) if (dvm_track == NULL) { TAVOR_TNF_EXIT(tavor_devmap_devmem_unmap); return; } --- 934,943 ----
*** 1047,1057 **** TNF_PROBE_0(tavor_umap_mr_data_in_invdatasz_fail, TAVOR_TNF_ERROR, ""); TAVOR_TNF_EXIT(tavor_umap_mr_data_in); return (IBT_INSUFF_RESOURCE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*data)) /* * Ensure that the MR corresponds to userland memory and that it is * a currently valid memory region as well. */ --- 1040,1049 ----
*** 1197,1207 **** TNF_PROBE_0(tavor_umap_cq_data_out_invdatasz_fail, TAVOR_TNF_ERROR, ""); TAVOR_TNF_EXIT(tavor_umap_cq_data_out); return (IBT_INSUFF_RESOURCE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*data)) /* * If it has passed all the above checks, then fill in all the useful * mapping information (including the mapping offset that will be * passed back to the devmap() interface during a subsequent mmap() --- 1189,1198 ----
*** 1253,1263 **** TNF_PROBE_0(tavor_umap_qp_data_out_invdatasz_fail, TAVOR_TNF_ERROR, ""); TAVOR_TNF_EXIT(tavor_umap_qp_data_out); return (IBT_INSUFF_RESOURCE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*data)) /* * If it has passed all the checks, then fill in all the useful * mapping information (including the mapping offset that will be * passed back to the devmap() interface during a subsequent mmap() --- 1244,1253 ----
*** 1338,1348 **** TNF_PROBE_0(tavor_umap_srq_data_out_invdatasz_fail, TAVOR_TNF_ERROR, ""); TAVOR_TNF_EXIT(tavor_umap_srq_data_out); return (IBT_INSUFF_RESOURCE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*data)) /* * If it has passed all the checks, then fill in all the useful * mapping information (including the mapping offset that will be * passed back to the devmap() interface during a subsequent mmap() --- 1328,1337 ----
*** 1401,1411 **** TNF_PROBE_0(tavor_umap_pd_data_out_invdatasz_fail, TAVOR_TNF_ERROR, ""); TAVOR_TNF_EXIT(tavor_umap_pd_data_out); return (IBT_INSUFF_RESOURCE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*data)) /* * If it has passed all the checks, then fill the PD table index * (the PD table allocated index for the PD pd_pdnum) */ --- 1390,1399 ----
*** 1484,1494 **** if (umapdb == NULL) { TNF_PROBE_0(tavor_umap_db_alloc_kmz_fail, TAVOR_TNF_ERROR, ""); TAVOR_TNF_EXIT(tavor_umap_db_alloc); return (NULL); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*umapdb)) /* Fill in the fields in the database entry */ umapdb->tdbe_common.tdb_instance = instance; umapdb->tdbe_common.tdb_type = type; umapdb->tdbe_common.tdb_key = key; --- 1472,1481 ----
*** 1544,1555 **** TAVOR_TNF_ENTER(tavor_umap_db_add_nolock); ASSERT(MUTEX_HELD(&tavor_userland_rsrc_db.tdl_umapdb_lock)); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*umapdb)) - /* * Copy the common portion of the "to-be-added" database entry * into the "tavor_umap_db_query_t" structure. We use this structure * (with no flags set) to find the appropriate location in the * "userland resources database" for the new entry to be added. --- 1531,1540 ----
*** 1629,1639 **** &tavor_userland_rsrc_db.tdl_umapdb_avl, &query, &where); if (entry == NULL) { TAVOR_TNF_EXIT(tavor_umap_db_find_nolock); return (DDI_FAILURE); } - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*entry)) /* * If the flags argument specifies that the entry should * be removed if found, then call avl_remove() to remove * the entry from the database. --- 1614,1623 ----
*** 1696,1706 **** * to know after the entry is found using the other search criteria). */ status = tavor_umap_db_find(0, (uint64_t)(uintptr_t)umem_cookie, MLNX_UMAP_MRMEM_RSRC, &value, (TAVOR_UMAP_DB_REMOVE | TAVOR_UMAP_DB_IGNORE_INSTANCE), &umapdb); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*umapdb)) if (status == DDI_SUCCESS) { instance = umapdb->tdbe_common.tdb_instance; state = ddi_get_soft_state(tavor_statep, instance); if (state == NULL) { cmn_err(CE_WARN, "Unable to match Tavor instance\n"); --- 1680,1689 ----
*** 1765,1776 **** tavor_umap_db_common_t *entry_common, *query_common; uint_t query_flags; TAVOR_TNF_ENTER(tavor_umap_db_compare); - _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*((tavor_umap_db_query_t *)q))) - entry_common = &((tavor_umap_db_entry_t *)e)->tdbe_common; query_common = &((tavor_umap_db_query_t *)q)->tqdb_common; query_flags = ((tavor_umap_db_query_t *)q)->tqdb_flags; /* --- 1748,1757 ----