/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_unumtopa.c | 49 mcamd_node_t *mc, *dimm; local 53 "mc %d dimm %d offset 0x%llx\n", unump->unum_chip, unump->unum_mc, 87 * first dimm in the unum - if there is more than one they all 89 * to is not finer grained than the 128-bits of a dimm pair. 91 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL; 92 dimm = mcamd_dimm_next(hdl, mc, dimm)) { 93 if (!mcamd_get_numprop(hdl, dimm, MCAMD_PROP_NUM, &num)) { 95 "failed to lookup num for dimm [all...] |
H A D | mcamd_patounum.c | 233 * involved, fill the unum structure including an optional dimm offset 241 mcamd_node_t *mc, *dimm; local 297 * We wish to calculate a dimm offset. In the paired case we will 300 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL; 301 dimm = mcamd_dimm_next(hdl, mc, dimm)) { 303 if (!mcamd_get_numprop(hdl, dimm, MCAMD_PROP_NUM, &dnum)) { 305 "to lookup dimm number property\n"); 312 if (dimm [all...] |
H A D | mcamd_rowcol.c | 54 mcamd_prop_t dimmrank; /* rank number on dimm(s) */ 466 * Given an MC, DIMM and offset (dimm rank, row, col, internal bank) we 469 * that we may be asked to perform this operation on a dimm which has been 470 * swapped, perhaps even for a dimm of different size and number of ranks. 477 mc_offset_to_pa(struct mcamd_hdl *hdl, mcamd_node_t *mc, mcamd_node_t *dimm, argument 512 * Find the chip-select on this dimm using the given rank. 514 for (cs = mcamd_cs_next(hdl, dimm, NULL); cs != NULL; 515 cs = mcamd_cs_next(hdl, dimm, cs)) { 525 "dimm in this slot does not have a cs using rank %d\n", 549 * the bad one - the bad cs# need not be on the same dimm [all...] |
/illumos-gate/usr/src/uts/sun4u/serengeti/os/ |
H A D | sg_unum.c | 80 int dimm; local 83 * node and dimm will always be valid. board and proc may be -1 if 93 dimm = (physaddr & SG_ECACHE_DIMM_MASK) ? 0 : 1; 95 dimm = (physaddr & SG_ECACHE_DIMM_MASK) ? 1 : 0; 98 node, board, proc, dimm, sg_j_number[proc][dimm]);
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_dimmcfg.h | 45 uint8_t csl_slot; /* dimm slot on channel, 0/1/2/3 (pair #) */ 46 uint8_t csl_rank; /* dimm rank in slot, 0/1/2/3 */ 56 int toponum; /* dimm instance in topology */ 58 } dimm[MC_CHIP_DIMMPERCS]; /* ndimm entries are valid */ member in struct:mcdcfg_rslt
|
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_bank.c | 44 cmd_bank_add_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) argument 48 fmd_hdl_debug(hdl, "attaching dimm %s to bank %s\n", dimm->dimm_unum, 51 dimm->dimm_bank = bank; 54 bm->bm_dimm = dimm; 59 cmd_bank_remove_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) argument 63 fmd_hdl_debug(hdl, "detaching dimm %s from bank %s\n", dimm->dimm_unum, 68 if (bm->bm_dimm != dimm) 72 dimm 83 cmd_dimm_t *dimm; local [all...] |
H A D | cmd_dimm.c | 73 cmd_dimm_fru(cmd_dimm_t *dimm) argument 75 return (dimm->dimm_asru_nvl); 79 cmd_dimm_create_fault(fmd_hdl_t *hdl, cmd_dimm_t *dimm, const char *fltnm, argument 91 if (strstr(dimm->dimm_unum, "BR") == NULL) { 93 dimm->dimm_asru_nvl, dimm->dimm_asru_nvl, NULL); 95 nvlfru = cmd_mem2hc(hdl, dimm->dimm_asru_nvl); 97 dimm->dimm_asru_nvl, nvlfru, NULL); 100 return (cmd_fault_add_location(hdl, flt, dimm->dimm_unum)); 102 return (cmd_nvl_create_fault(hdl, fltnm, cert, dimm 108 cmd_dimm_free(fmd_hdl_t *hdl, cmd_dimm_t *dimm, int destroy) argument 170 cmd_dimm_destroy(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 180 cmd_dimm_t *dimm; local 192 dimm_attach_to_bank(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 209 cmd_dimm_t *dimm; local 274 cmd_dimm_t *dimm; local 352 cmd_dimm_t *dimm; local 368 cmd_dimm_t *dimm; local 464 cmd_dimm_t *dimm, *next; local 475 cmd_dimm_dirty(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 495 cmd_dimm_t *dimm; local 503 cmd_dimm_save_symbol_error(cmd_dimm_t *dimm, uint16_t upos) argument 515 cmd_dimm_check_symbol_error(cmd_dimm_t *dimm, uint16_t synd) argument [all...] |
H A D | cmd_memerr.c | 90 * check if a dimm has n CEs with the same symbol-in-error 93 upos_thresh_check(cmd_dimm_t *dimm, uint16_t upos, uint32_t threshold) argument 100 for (ip = cmd_list_next(&dimm->mq_root[i]); ip != NULL; 218 ce_thresh_check(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 225 if (dimm->dimm_flags & CMD_MEM_F_FAULTING) 229 nret = dimm->dimm_nretired; 230 if (dimm->dimm_bank != NULL) 231 nret += dimm->dimm_bank->bank_nretired; 236 if (dimm->dimm_phys_addr_hi >= dimm 263 mq_5b_check(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 408 mq_add(fmd_hdl_t *hdl, cmd_dimm_t *dimm, fmd_event_t *ep, uint64_t afar, uint16_t synd, uint64_t now, uint32_t cpuid) argument 448 mq_prune(fmd_hdl_t *hdl, cmd_dimm_t *dimm, uint64_t now) argument 486 mq_check(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 577 cmd_dimm_t *dimm; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/ |
H A D | cmd_branch.h | 71 cmd_dimm_t *dimm; member in struct:cmd_branch_memb
|
H A D | cmd_branch.c | 56 cmd_dimm_t *dimm; local 63 dimm = bm->dimm; 64 if ((p = strstr(dimm->dimm_unum, nacname)) != NULL) { 66 s = p - dimm->dimm_unum; 68 (void) strncpy(p, dimm->dimm_unum, s); 77 cmd_branch_add_dimm(fmd_hdl_t *hdl, cmd_branch_t *branch, cmd_dimm_t *dimm) argument 81 if (dimm == NULL) 84 fmd_hdl_debug(hdl, "Attaching dimm %s to branch %s\n", 85 dimm 92 cmd_branch_remove_dimm(fmd_hdl_t *hdl, cmd_branch_t *branch, cmd_dimm_t *dimm) argument 117 cmd_dimm_t *dimm; local 146 cmd_dimm_t *dimm; local 308 cmd_dimm_t *dimm; local [all...] |
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | dimm_topo.c | 61 (void) snprintf(buf, sizeof (buf), "dimm-rank-base-%d", num); 63 (void) snprintf(buf, sizeof (buf), "dimm-rank-limit-%d", num); 66 (void) snprintf(buf, sizeof (buf), "dimm-socket-interleave-%d", 70 "dimm-socket-interleave-way-%d", num); 74 (void) snprintf(buf, sizeof (buf), "dimm-channel-interleave-%d", 78 "dimm-channel-interleave-way-%d", num); 82 (void) snprintf(buf, sizeof (buf), "dimm-rank-interleave-%d", 86 "dimm-rank-interleave-way-%d", num); 93 uint8_t channel, uint32_t dimm, uint64_t rank_size) 111 pa = dimm_to_addr(node, channel, dimm * 92 inhm_rank(nvlist_t *newdimm, nhm_dimm_t *nhm_dimm, uint32_t node, uint8_t channel, uint32_t dimm, uint64_t rank_size) argument 133 inhm_dimm(nhm_dimm_t *nhm_dimm, uint32_t node, uint8_t channel, uint32_t dimm) argument [all...] |
H A D | nhm_init.c | 126 int dimm; member in struct:dimm_slot 141 dsp->dimm; 153 if (dsp->dimm == 2) 155 dsp->dimm = 0; 191 dsp->dimm++; 192 if (dsp->dimm == dsp->max_dimm) { 193 dsp->dimm = 0; 210 ds.dimm = 0; 307 "Socket %d channel %d dimm %d",
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_intel.c | 97 mc_add_ranks(topo_mod_t *mod, tnode_t *dnode, nvlist_t *auth, int dimm, argument 110 * dimm. 112 rank = start_rank >= 0 ? start_rank : dimm * maxranks; 239 " for dimm\n");
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | plat_ecc_dimm.c | 36 /* Platform specific function to get dimm serial id information */ 62 int board, pos, bank, dimm, jnumber; local 69 if (parse_unum_memory(unum, &board, &pos, &bank, &dimm, 73 if (dimm < 0) 77 dimm += (bank * 4); /* convert dimm from 0-3 to 0-7 value */ 79 return (p2get_mem_sid(mcid, dimm, buf, buflen, lenp)); 94 int board, pos, bank, dimm, jnumber; local 101 if (parse_unum_memory(unum, &board, &pos, &bank, &dimm, 141 * There must be at least one dimm o [all...] |
H A D | plat_ecc_unum.c | 150 * From that we will extract the bank number, dimm 236 * dimm number, and Jnumber. 399 parse_unum_memory(char *unum, int *board, int *pos, int *bank, int *dimm, argument 418 *dimm = -1; 423 *dimm = stoi(&c); 515 int board, pos, bank, dimm, jnumber; local 532 if (parse_unum_memory(unum, &board, &pos, &bank, &dimm, 533 &jnumber) || (dimm != -1 && jnumber == -1))
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_oplerr.c | 245 opl_ce_thresh_check(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 253 if (dimm->dimm_flags & CMD_MEM_F_FAULTING) { 258 if (dimm->dimm_nretired >= fmd_prop_get_int32(hdl, 260 dimm->dimm_flags |= CMD_MEM_F_FAULTING; 262 dflt = cmd_dimm_create_fault(hdl, dimm, "fault.memory.dimm", 375 cmd_dimm_t *dimm; local 381 if ((dimm = cmd_dimm_lookup(hdl, asru)) == NULL && 382 (dimm = cmd_dimm_create(hdl, asru)) == NULL) 385 if (dimm [all...] |
/illumos-gate/usr/src/uts/sun4u/boston/os/ |
H A D | boston.c | 269 plat_add_mem_unum_label(char *unum, int mcid, int bank, int dimm) argument 280 if (dimm != -1) { 281 printed = snprintf(unum, buflen, "/D%d", dimm);
|
/illumos-gate/usr/src/uts/sun4u/seattle/os/ |
H A D | seattle.c | 272 plat_add_mem_unum_label(char *unum, int mcid, int bank, int dimm) argument 282 if (dimm != -1) { 283 printed = snprintf(unum, buflen, "/D%d", dimm);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
H A D | gmem_dimm.c | 55 gmem_dimm_fru(gmem_dimm_t *dimm) argument 57 return (dimm->dimm_asru_nvl); 61 gmem_dimm_free(fmd_hdl_t *hdl, gmem_dimm_t *dimm, int destroy) argument 63 gmem_case_t *cc = &dimm->dimm_case; 78 gmem_fmri_fini(hdl, &dimm->dimm_asru, destroy); 81 while ((q = gmem_list_next(&dimm->mq_root[i])) != NULL) { 97 gmem_list_delete(&dimm->mq_root[i], q); 103 fmd_buf_destroy(hdl, NULL, dimm->dimm_bufname); 105 gmem_list_delete(&gmem.gm_dimms, dimm); 106 fmd_hdl_free(hdl, dimm, sizeo 110 gmem_dimm_destroy(fmd_hdl_t *hdl, gmem_dimm_t *dimm) argument 119 gmem_dimm_t *dimm; local 133 gmem_dimm_t *dimm; local 183 gmem_dimm_t *dimm; local 224 gmem_dimm_t *dimm; local 240 gmem_dimm_t *dimm; local 330 gmem_dimm_t *dimm, *next; local 341 gmem_dimm_dirty(fmd_hdl_t *hdl, gmem_dimm_t *dimm) argument 361 gmem_dimm_t *dimm; local 474 nvlist_t *dimm = NULL; local 532 gmem_dimm_t *dimm = NULL, *next = NULL; local 547 gmem_dimm_t *dimm = NULL, *next = NULL; local [all...] |
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/ |
H A D | intel_nbdrv.c | 110 inb_rank(nvlist_t *newdimm, nb_dimm_t *nb_dimm, uint8_t channel, uint32_t dimm) argument 130 (void) nvlist_add_uint64(newrank[i], "dimm-rank-base", 133 (void) nvlist_add_uint64(newrank[i], "dimm-hole", 135 (void) nvlist_add_uint64(newrank[i], "dimm-hole-size", 138 (void) nvlist_add_uint64(newrank[i], "dimm-rank-limit", 142 "dimm-rank-interleave", (uint32_t)interleave); 144 "dimm-rank-interleave-way", (uint32_t)way); 147 "dimm-rank-interleave-branch", (uint32_t)1); 159 inb_dimm(nb_dimm_t *nb_dimm, uint8_t channel, uint32_t dimm) argument 166 (void) nvlist_add_uint32(newdimm, "dimm [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-mem/ |
H A D | mem_mdesc.c | 56 int chan, rank, dimm, chans, chan_step; local 100 &chan, &rank, &dimm) != 3) /* didn't scan all 3 values */ 277 if ((strcmp(type, "dimm") == 0) ||
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/ |
H A D | javelin.c | 139 Prom_node *dimm; local 170 dimm = bnode->nodes; 201 for (dimm = dev_find_node(bank, "dimm"); dimm != NULL; 202 dimm = dev_next_node_sibling(dimm, "dimm")) { 206 find_prop(dimm, "socket-name"))); 207 preg = (uint_t *)(get_prop_val(find_prop(dimm, "re [all...] |
/illumos-gate/usr/src/uts/sun4u/starcat/io/ |
H A D | sc_gptwocfg.c | 146 int dimm; local 360 dimm = 0; 363 if (dimm < MAX_DIMMS_PER_PORT) { 364 pcd->sprd_dimm[dimm] = rsv_string( 367 dimm++; 373 * Get data for the "ecache-dimm-label" property.
|
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/ |
H A D | cherrystone.c | 562 plat_add_mem_unum_label(char *unum, int mcid, int bank, int dimm) argument 564 _NOTE(ARGUNUSED(bank, dimm))
|
/illumos-gate/usr/src/uts/sun4u/daktari/os/ |
H A D | daktari.c | 553 plat_add_mem_unum_label(char *unum, int mcid, int bank, int dimm) argument 555 _NOTE(ARGUNUSED(bank, dimm))
|