| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
| pi_cpu.c | 55 nvlist_t *asru = NULL; local 72 * If the hc_name is "chip" or "core", set asru to resource, 73 * otherwise for "cpu" and "strand", set asru to CPU scheme FMRI. 76 result = topo_node_resource(*t_node, &asru, &err); 85 * Compute ASRU for "cpu" and "strand" node. 105 * Create a CPU scheme FMRI and set it as the ASRU for the CPU 108 asru = topo_mod_cpufmri(mod, FM_CPU_SCHEME_VERSION, inst, 111 if (asru == NULL) { 113 "compute cpu scheme ASRU: %s\n", 120 /* Set the ASRU on the node without flags (the 0) * [all...] |
| pi_meth.c | 124 * For each visited cpu node, call the callback function with its ASRU. 130 nvlist_t *asru; local 144 if (topo_node_asru(node, &asru, NULL, &err) != 0) { 149 rc = swdp->func(swdp->lhp, asru); 181 (void) topo_mod_nvl2str(mod, asru, &fmristr); 189 nvlist_free(asru); 337 nvlist_t *asru, *pargs, *args, *hcsp; local 360 asru = mem_fmri_create(mod, serial, label); 365 if (asru == NULL) 372 * specifies physaddr and/or offset. Set them in asru as well 431 nvlist_t *asru; local 456 nvlist_t *asru; local 479 nvlist_t *asru; local 504 nvlist_t *asru; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
| cmd_page.c | 98 nvlist_t *asru; local 114 if ((errno = nvlist_dup(modasru, &asru, 0)) != 0 || 115 (errno = nvlist_add_uint64(asru, FM_FMRI_MEM_PHYSADDR, 117 (errno = fmd_nvl_fmri_expand(hdl, asru)) != 0) 120 cmd_fmri_init(hdl, &page->page_asru, asru, "page_asru_%llx", 123 nvlist_free(asru);
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/cpumem-retire/ |
| cma_cpu_sun4v.c | 55 cma_cpu_blacklist(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, 65 * can't find a resource, we'll fall back to the ASRU. 68 fmri = asru; 138 nvlist_t *asru = NULL; local 150 /* lookup cpuid from ASRU */ 153 (void) topo_fmri_asru(thp, fmri, &asru, &err); 156 if (nvlist_lookup_uint32(asru, FM_FMRI_CPU_ID, &cpuid) != 0) { 157 nvlist_free(asru); 190 cma_cpu_statechange(fmd_hdl_t *hdl, nvlist_t *asru, const char *uuid, 196 if (nvlist_lookup_uint32(asru, FM_FMRI_CPU_ID, &cpuid) != 0) [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
| cmd_dperr.c | 90 * Construct the ASRU(s)/FRU(s) associated with a data path fault, 101 nvlist_t *asru, *fru = NULL, *flt, *hcel; local 103 /* build ASRU, fault event class */ 104 asru = cmd_dp_setasru(hdl, dp); 163 nvlist_free(asru); 171 nvlist_free(asru); 179 nvlist_free(asru); 186 nvlist_free(asru); 198 nvlist_free(asru); 204 asru, fru, NULL) [all...] |
| cmd_dp.c | 141 * Allocates an nvlist_t, and sets ASRU information according to 148 nvlist_t *asru, *hcelem[DP_MAX_ASRUS]; local 171 if (nvlist_alloc(&asru, NV_UNIQUE_NAME, 0) != 0) { 176 err = nvlist_add_uint8(asru, FM_VERSION, FM_HC_SCHEME_VERSION); 177 err |= nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_HC); 178 err |= nvlist_add_string(asru, FM_FMRI_HC_ROOT, ""); 179 err |= nvlist_add_uint32(asru, FM_FMRI_HC_LIST_SZ, sz); 180 err |= nvlist_add_nvlist_array(asru, FM_FMRI_HC_LIST, &hcelem[0], 185 nvlist_free(asru); 193 /* return the ASRU */ [all...] |
| cmd_oplerr.c | 64 nvlist_t *rsrc = NULL, *asru = NULL, *fru = NULL; local 107 if (nvlist_dup(rsrc, &asru, 0) != 0) { 112 if (fmd_nvl_fmri_expand(hdl, asru) < 0) { 113 nvlist_free(asru); 118 if ((fru = opl_mem_fru_create(hdl, asru)) == NULL) { 119 nvlist_free(asru); 123 cmd_page_fault(hdl, asru, fru, ep, pa); 124 nvlist_free(asru); 175 "missing asru, cpuid %u excluded\n", 377 nvlist_t *asru, nvlist_t *fru, uint64_t pa, nvlist_t *nvl 444 nvlist_t *rsrc = NULL, *asru = NULL, *fru = NULL; local [all...] |
| cmd_Lxcache.c | 223 nvlist_t *asru; local 276 if ((errno = nvlist_dup(modasru, &asru, 0)) != 0 || 277 (errno = nvlist_add_uint32(asru, FM_FMRI_CPU_CACHE_INDEX, 279 (errno = nvlist_add_uint32(asru, FM_FMRI_CPU_CACHE_WAY, 281 (errno = nvlist_add_uint16(asru, FM_FMRI_CPU_CACHE_BIT, 283 (errno = nvlist_add_uint8(asru, FM_FMRI_CPU_CACHE_TYPE, 285 (errno = fmd_nvl_fmri_expand(hdl, asru)) != 0) 287 asru->nvl_nvflag |= NV_UNIQUE_NAME_TYPE; 289 cmd_fmri_init(hdl, &Lxcache->Lxcache_asru, asru, 292 nvlist_free(asru); [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
| gmem_page.c | 97 nvlist_t *asru, *hsp; local 114 if (nvlist_dup(modasru, &asru, 0) != 0) { 121 nvlist_free(asru); 129 nvlist_add_nvlist(asru, FM_FMRI_HC_SPECIFIC, hsp) != 0) { 131 nvlist_free(asru); 136 gmem_fmri_init(hdl, &page->page_asru, asru, "page_asru_%llx", 139 nvlist_free(asru); 251 nvlist_t *asru = NULL; local 259 * get asru in mem scheme from topology 261 asru = gmem_find_dimm_asru(hdl, sn) [all...] |
| gmem_dimm.c | 119 gmem_dimm_create(fmd_hdl_t *hdl, nvlist_t *asru) 125 if (nvlist_lookup_string(asru, FM_FMRI_HC_SERIAL_ID, &serial) != 0) { 130 if (nvlist_dup(asru, &fmri, 0) != 0) { 162 gmem_dimm_lookup(fmd_hdl_t *hdl, nvlist_t *asru) 168 err = nvlist_lookup_string(asru, FM_FMRI_HC_SERIAL_ID, &serial); 250 "failed to retrieve serial from asru"); 323 nvlist_t *asru = NULL; local 353 (void) topo_node_asru(node, &asru, NULL, &err); 354 if (asru != NULL) { 355 (void) nvlist_dup(asru, &dimm_nvl 410 dimmid_t asru; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/fmdump/common/ |
| fault.c | 81 nvlist_t *fru, *asru, *rsrc; local 90 if (nvlist_lookup_nvlist(nva[i], FM_FAULT_ASRU, &asru) == 0) 91 aname = fmdump_nvl2str(asru);
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/datapath-retire/ |
| cda_main.c | 67 nvlist_t *asru; local 71 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) != 0 || 72 nvlist_lookup_string(asru, FM_FMRI_SCHEME, &scheme) != 0 || 73 nvlist_lookup_uint8(asru, FM_VERSION, &version) != 0) { 82 *asrup = asru; 110 nvlist_t *asru; local 115 if ((subr = cda_get_subr(hdl, nvl, &asru)) == NULL) 119 subr->subr_func(hdl, nvl, asru, uuid); 127 nvlist_t *asru; local 129 if ((subr = cda_get_subr(hdl, nvl, &asru)) == NULL [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/ |
| cmd_cpu_arch.c | 400 * of ereport (which is stored as 'asru' of cmd_cpu_t). For early sun4v, 409 nvlist_t *asru = cp->cpu_asru_nvl; local 411 if (nvlist_lookup_string(asru, FM_FMRI_CPU_CPUFRU, &frustr) == 0) { 441 nvlist_t *asru = cp->cpu_asru_nvl; local 443 if (nvlist_lookup_string(asru, FM_FMRI_HC_PART, &partstr) == 0) 452 nvlist_t *asru = cp->cpu_asru_nvl; local 454 if (nvlist_lookup_string(asru, FM_FMRI_HC_SERIAL_ID, &serialstr) == 0)
|
| cmd_memerr_arch.c | 124 cpu_present(fmd_hdl_t *hdl, nvlist_t *asru, uint32_t *cpuid) 129 if (nvlist_dup(asru, &cp_asru, 0) != 0) { 130 fmd_hdl_debug(hdl, "unable to alloc asru for thread\n"); 361 nvlist_t *asru, *det; local 364 if (nvlist_lookup_nvlist(nvl, FM_RSRC_RESOURCE, &asru) < 0) { 379 branch = cmd_branch_lookup(hdl, asru); 381 if ((branch = cmd_branch_create(hdl, asru)) == NULL)
|
| /onnv/onnv-gate/usr/src/lib/fm/topo/libtopo/common/ |
| mem.c | 277 nvlist_t *asru; local 279 if (topo_mod_nvalloc(mod, &asru, NV_UNIQUE_NAME) != 0) 293 err = nvlist_add_uint8(asru, FM_VERSION, FM_MEM_SCHEME_VERSION); 294 err |= nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_MEM); 295 err |= nvlist_add_string(asru, FM_FMRI_MEM_UNUM, unum); 297 err |= nvlist_add_uint64(asru, FM_FMRI_MEM_PHYSADDR, pa); 299 err |= nvlist_add_uint64(asru, FM_FMRI_MEM_OFFSET, offset); 302 nvlist_free(asru); 306 return (asru); 316 nvlist_t *asru; local [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4u/chip/ |
| chip_sun4u.c | 155 nvlist_t *asru; local 157 if (topo_mod_nvalloc(mod, &asru, NV_UNIQUE_NAME) != 0) 160 err = nvlist_add_uint8(asru, FM_VERSION, FM_CPU_SCHEME_VERSION); 161 err |= nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_CPU); 162 err |= nvlist_add_uint32(asru, FM_FMRI_CPU_ID, cpuid); 163 err |= nvlist_add_uint8(asru, FM_FMRI_CPU_MASK, cpumask); 165 err |= nvlist_add_string(asru, FM_FMRI_CPU_SERIAL_ID, s); 167 nvlist_free(asru); 172 return (asru); 184 nvlist_t *fmri, *asru; local [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/chip/ |
| chip_sun4v.c | 244 nvlist_t *asru; local 294 if ((asru = cpu_fmri_create(mod, pid, sbuf, 0)) != NULL) { 295 (void) topo_node_asru_set(cnode, asru, 0, &err); 296 nvlist_free(asru);
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/io-retire/ |
| rio_main.c | 124 nvlist_t *asru; local 183 &asru) != 0) { 184 fmd_hdl_debug(hdl, "rio_recv: no asru in fault"); 189 if (nvlist_lookup_string(asru, FM_FMRI_SCHEME, &scheme) != 0 || 199 if (nvlist_lookup_string(asru, FM_FMRI_DEV_PATH, 201 fmd_hdl_debug(hdl, "rio_recv: no dev path in asru"); 207 if (fmd_nvl_fmri_has_fault(hdl, asru, 218 if (fmd_nvl_fmri_has_fault(hdl, asru, 241 &asru) != 0) { 242 fmd_hdl_debug(hdl, "rio_recv: no asru in fault") [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
| cma_main.c | 142 * The ASRU for cpu faults are in cpu scheme on native and in hc 364 * Default "fault.cpu.*" for "cpu" scheme ASRU dispatch. 376 nvlist_t *asru; local 387 if (nvlist_lookup_nvlist(nvl, FM_FAULT_ASRU, &asru) != 0 || 388 nvlist_lookup_string(asru, FM_FMRI_SCHEME, &scheme) != 0 || 389 nvlist_lookup_uint8(asru, FM_VERSION, &version) != 0) { 398 *asrup = asru; 415 nvlist_t *asru = NULL; local 434 if ((subr = nvl2subr(hdl, nvl, &asru)) == NULL) 444 has_fault = fmd_nvl_fmri_has_fault(hdl, asru, 499 nvlist_t *asru; local [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
| chip_subr.c | 243 nvlist_t *asru; local 245 if (topo_mod_nvalloc(mod, &asru, NV_UNIQUE_NAME) != 0) 248 err = nvlist_add_uint8(asru, FM_VERSION, FM_CPU_SCHEME_VERSION); 249 err |= nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_CPU); 250 err |= nvlist_add_uint32(asru, FM_FMRI_CPU_ID, cpuid); 251 err |= nvlist_add_uint8(asru, FM_FMRI_CPU_MASK, cpumask); 253 err |= nvlist_add_string(asru, FM_FMRI_CPU_SERIAL_ID, s); 255 nvlist_free(asru); 260 return (asru); 268 nvlist_t *asru, *args, *pargs, *hcsp local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
| zfs_retire.c | 271 * ASRU is now usable. ZFS has found the device to be present and 281 nvlist_t *asru; local 289 * Before checking the state of the ASRU, go through and see if we've 290 * already made an attempt to repair this ASRU. This list is cleared 294 * state of the ASRU can involve opening the pool, which can post 305 asru = fmd_nvl_alloc(hdl, FMD_SLEEP); 307 (void) nvlist_add_uint8(asru, FM_VERSION, ZFS_SCHEME_VERSION0); 308 (void) nvlist_add_string(asru, FM_FMRI_SCHEME, FM_FMRI_SCHEME_ZFS); 309 (void) nvlist_add_uint64(asru, FM_FMRI_ZFS_POOL, pool_guid); 310 (void) nvlist_add_uint64(asru, FM_FMRI_ZFS_VDEV, vdev_guid) [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/libfmd_snmp/common/ |
| problem.c | 975 nvlist_t *asru = NULL; local 978 (void) nvlist_lookup_nvlist(data, FM_FAULT_ASRU, &asru); 979 if ((str = sunFm_nvl2str(asru)) == NULL)
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/eversholt/ |
| eval.c | 510 nvlist_t *asru = NULL, *fru = NULL, *rsrc = NULL; local 522 platform_units_translate(0, croot, &asru, &fru, &rsrc, path); [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/fmd/common/ |
| fmd_xprt.c | 1092 nvlist_t *flt_copy, *asru = NULL, *fru = NULL, *rsrc = NULL; local 1177 nvlist_t *rsrc, *asru, *de_fmri, *de_fmri_dup = NULL; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/fmtopo/common/ |
| fmtopo.c | 135 nvlist_t *asru = NULL; local 138 if (topo_node_asru(node, &asru, NULL, &err) == 0) 139 (void) topo_fmri_nvl2str(thp, asru, &aname, &err); 144 nvlist_free(asru); 1108 nvlist_t *asru = NULL; local 1111 if (topo_fmri_asru(thp, nvl, &asru, &err) == 0) 1112 (void) topo_fmri_nvl2str(thp, asru, &aname, &err); 1118 nvlist_free(asru);
|