| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
| cma_cache.c | 37 cma_cache_way_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, 50 fmd_hdl_debug(hdl, "asru %lx\n", asru); 59 if (fmd_nvl_fmri_expand(hdl, asru) < 0) { 60 fmd_hdl_debug(hdl, "failed to expand cpu asru\n"); 65 if (nvlist_lookup_uint32(asru, FM_FMRI_CPU_ID, &cpuid) != 0) { 72 if (nvlist_lookup_uint32(asru, FM_FMRI_CPU_CACHE_INDEX, &index) != 0) { 79 if (nvlist_lookup_uint32(asru, FM_FMRI_CPU_CACHE_WAY, &way) != 0) { 86 if (nvlist_lookup_uint8(asru, FM_FMRI_CPU_CACHE_TYPE, &type) != 0) { 97 if (nvlist_lookup_uint16(asru, FM_FMRI_CPU_CACHE_BIT, &bit) != 0) [all...] |
| cma_cpu.c | 49 * (using the "cpu" scheme ASRU). 85 cma_cpu_hc_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, 95 * Under xVM Dom0, since logic cpuid in "cpu" scheme ASRU makes no 103 return (cma_cpu_cpu_retire(hdl, nvl, asru, uuid, repair)); 150 if (cma_cpu_blacklist(hdl, nvl, asru, repair) < 0) 161 cma_cpu_hc_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, 168 /* OPL has ASRU in "hc" scheme */ 169 if (nvlist_lookup_nvlist(asru, FM_FMRI_HC_SPECIFIC, 215 cpu_online(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, const char *uuid, 221 err = cma_cpu_statechange(hdl, asru, uuid, P_ONLINE [all...] |
| cma_cpu_arch.c | 42 cma_cpu_blacklist(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, 56 * can't find a resource, we'll fall back to the ASRU. 59 fmri = asru; 104 cma_cpu_statechange(fmd_hdl_t *hdl, nvlist_t *asru, const char *uuid, 110 if (nvlist_lookup_uint32(asru, FM_FMRI_CPU_ID, &cpuid) != 0) {
|
| 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/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...] |
| cda_cpu.c | 61 cda_dp_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, const char *uuid) 70 if (nvlist_lookup_nvlist_array(asru, FM_FMRI_HC_LIST, &hc_prs,
|
| /onnv/onnv-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
| 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...] |
| 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...] |
| /onnv/onnv-gate/usr/src/lib/fm/topo/libtopo/common/ |
| topo_protocol.c | 41 topo_node_asru(tnode_t *node, nvlist_t **asru, nvlist_t *priv, int *err) 50 topo_hdl_nvdup(node->tn_hdl, ap, asru) < 0) { 99 topo_node_asru_set(tnode_t *node, nvlist_t *asru, int flag, int *err) 102 * Inherit ASRU property from our parent if asru not specified 104 if (asru == NULL) { 116 asru, err) < 0) 120 TOPO_PROP_ASRU, TOPO_PROP_IMMUTABLE, asru, err) < 0)
|
| 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/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/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/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
| 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_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...] |
| /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/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/sun4v/cpumem-diagnosis/ |
| cmd_hc_sun4v.c | 157 cmd_getfru_loc(fmd_hdl_t *hdl, nvlist_t *asru) { 160 if (nvlist_lookup_string(asru, FM_FMRI_CPU_CPUFRU, &cpufru) == 0) { 255 cmd_boardfru_create_fault(fmd_hdl_t *hdl, nvlist_t *asru, const char *fltnm, 264 if (nvlist_lookup_string(asru, FM_FMRI_HC_SERIAL_ID, &serialstr) != 0) 266 if (nvlist_lookup_string(asru, FM_FMRI_HC_PART, &partstr) != 0) 494 get_cpu_fault_resource(fmd_hdl_t *hdl, nvlist_t *asru) 503 if (nvlist_lookup_uint64(asru, FM_FMRI_CPU_SERIAL_ID, &serint) != 0 || 504 nvlist_lookup_uint32(asru, FM_FMRI_CPU_ID, &cpu) != 0) 584 is_T1_platform(nvlist_t *asru) 587 if (nvlist_lookup_string(asru, FM_FMRI_MEM_UNUM, &unum) == 0) [all...] |
| 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)
|
| /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/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);
|
| cmd_memerr.c | 498 uint8_t synd_status, ce_dispact_t type, uint64_t disp, nvlist_t *asru) 520 if (fmd_nvl_fmri_expand(hdl, asru) < 0) { 525 if ((dimm = cmd_dimm_lookup(hdl, asru)) == NULL && 526 (dimm = cmd_dimm_create(hdl, asru)) == NULL) 597 page = cmd_page_create(hdl, asru, afar); 639 cmd_page_fault(hdl, asru, cmd_dimm_fru(dimm), ep, afar); 687 uint8_t synd_status, ce_dispact_t type, uint64_t disp, nvlist_t *asru) 751 if (fmd_nvl_fmri_expand(hdl, asru) < 0) { 756 if ((bank = cmd_bank_lookup(hdl, asru)) == NULL && 757 (bank = cmd_bank_create(hdl, asru)) == NULL [all...] |
| cmd_bank.c | 156 cmd_bank_create(fmd_hdl_t *hdl, nvlist_t *asru) 161 if (!fmd_nvl_fmri_present(hdl, asru)) { 166 if ((unum = cmd_fmri_get_unum(asru)) == NULL) { 180 cmd_fmri_init(hdl, &bank->bank_asru, asru, "bank_asru_%s", unum); 197 cmd_bank_lookup(fmd_hdl_t *hdl, nvlist_t *asru) 202 if ((unum = cmd_fmri_get_unum(asru)) == NULL) { 318 fmd_hdl_abort(hdl, "failed to retrieve nuum from asru");
|
| /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...] |