/linux/drivers/edac/ |
A D | ghes_edac.c | 88 struct dimm_info *dimm; in find_dimm_by_handle() local 92 return dimm; in find_dimm_by_handle() 106 snprintf(dimm->label, sizeof(dimm->label), "%s %s", bank, device); in dimm_setup_label() 130 dimm->mtype = MEM_DDR; in assign_dmi_dimm_info() 161 dimm->mtype = MEM_RDR; in assign_dmi_dimm_info() 163 dimm->mtype = MEM_SDR; in assign_dmi_dimm_info() 184 if (dimm->nr_pages) { in assign_dmi_dimm_info() 186 dimm->idx, edac_mem_types[dimm->mtype], in assign_dmi_dimm_info() 403 if (dimm) { in ghes_edac_report_mem_error() 608 dimm->nr_pages = 1; in ghes_edac_register() [all …]
|
A D | edac_mc_sysfs.c | 211 rank->dimm->label); in channel_dimm_label_show() 491 if (!dimm->label[0]) in dimmdev_label_show() 494 return snprintf(data, sizeof(dimm->label) + 1, "%s\n", dimm->label); in dimmdev_label_show() 621 dimm->mci = mci; in edac_create_dimm_object() 629 dev_set_name(&dimm->dev, "rank%d", dimm->idx); in edac_create_dimm_object() 631 dev_set_name(&dimm->dev, "dimm%d", dimm->idx); in edac_create_dimm_object() 632 dev_set_drvdata(&dimm->dev, dimm); in edac_create_dimm_object() 683 dimm->ue_count = 0; in mci_reset_counters_store() 684 dimm->ce_count = 0; in mci_reset_counters_store() 806 struct dimm_info *dimm = csrow->channels[j]->dimm; in mci_size_mb_show() local [all …]
|
A D | edac_mc.c | 94 if (!dimm->nr_pages) in edac_mc_dump_dimm() 101 dimm->idx, location, dimm->csrow, dimm->cschannel); in edac_mc_dump_dimm() 331 if (!dimm) in edac_mc_alloc_dimms() 334 dimm->mci = mci; in edac_mc_alloc_dimms() 335 dimm->idx = idx; in edac_mc_alloc_dimms() 341 p = dimm->label; in edac_mc_alloc_dimms() 355 chan->dimm = dimm; in edac_mc_alloc_dimms() 834 struct dimm_info *dimm = csrow->channels[j]->dimm; in edac_mc_find_csrow_by_page() local 880 if (dimm) in edac_inc_ce_error() 894 if (dimm) in edac_inc_ue_error() [all …]
|
A D | pasemi_edac.c | 127 struct dimm_info *dimm; in pasemi_edac_init_csrows() local 133 dimm = csrow->channels[0]->dimm; in pasemi_edac_init_csrows() 145 dimm->nr_pages = 128 << (20 - PAGE_SHIFT); in pasemi_edac_init_csrows() 148 dimm->nr_pages = 256 << (20 - PAGE_SHIFT); in pasemi_edac_init_csrows() 152 dimm->nr_pages = 512 << (20 - PAGE_SHIFT); in pasemi_edac_init_csrows() 155 dimm->nr_pages = 1024 << (20 - PAGE_SHIFT); in pasemi_edac_init_csrows() 169 last_page_in_mmc += dimm->nr_pages; in pasemi_edac_init_csrows() 171 dimm->grain = PASEMI_EDAC_ERROR_GRAIN; in pasemi_edac_init_csrows() 172 dimm->mtype = MEM_DDR; in pasemi_edac_init_csrows() 173 dimm->dtype = DEV_UNKNOWN; in pasemi_edac_init_csrows() [all …]
|
A D | i82860_edac.c | 101 struct dimm_info *dimm; in i82860_process_error_info() local 118 dimm = mci->csrows[row]->channels[0]->dimm; in i82860_process_error_info() 123 dimm->location[0], dimm->location[1], -1, in i82860_process_error_info() 128 dimm->location[0], dimm->location[1], -1, in i82860_process_error_info() 149 struct dimm_info *dimm; in i82860_init_csrows() local 163 dimm = csrow->channels[0]->dimm; in i82860_init_csrows() 175 dimm->nr_pages = cumul_size - last_cumul_size; in i82860_init_csrows() 177 dimm->grain = 1 << 12; /* I82860_EAP has 4KiB reolution */ in i82860_init_csrows() 178 dimm->mtype = MEM_RMBS; in i82860_init_csrows() 179 dimm->dtype = DEV_UNKNOWN; in i82860_init_csrows() [all …]
|
A D | bluefield_edac.c | 184 struct dimm_info *dimm; in bluefield_edac_init_dimms() local 189 dimm = mci->dimms[i]; in bluefield_edac_init_dimms() 195 dimm->mtype = MEM_EMPTY; in bluefield_edac_init_dimms() 204 dimm->mtype = MEM_NVDIMM; in bluefield_edac_init_dimms() 206 dimm->mtype = MEM_LRDDR4; in bluefield_edac_init_dimms() 208 dimm->mtype = MEM_RDDR4; in bluefield_edac_init_dimms() 210 dimm->mtype = MEM_DDR4; in bluefield_edac_init_dimms() 212 dimm->nr_pages = in bluefield_edac_init_dimms() 220 dimm->dtype = DEV_X4; in bluefield_edac_init_dimms() 223 dimm->dtype = DEV_X8; in bluefield_edac_init_dimms() [all …]
|
A D | ti_edac.c | 132 struct dimm_info *dimm; in ti_edac_setup_dimm() local 149 dimm->dtype = DEV_X16; in ti_edac_setup_dimm() 152 dimm->dtype = DEV_X32; in ti_edac_setup_dimm() 166 dimm->dtype = DEV_X64; in ti_edac_setup_dimm() 170 dimm->dtype = DEV_X32; in ti_edac_setup_dimm() 174 dimm->dtype = DEV_X16; in ti_edac_setup_dimm() 182 dimm->grain = 4; in ti_edac_setup_dimm() 184 dimm->mtype = MEM_DDR2; in ti_edac_setup_dimm() 186 dimm->mtype = MEM_DDR3; in ti_edac_setup_dimm() 190 dimm->edac_mode = EDAC_SECDED; in ti_edac_setup_dimm() [all …]
|
A D | skx_common.c | 375 dimm->nr_pages = npages; in skx_get_dimm_info() 376 dimm->grain = 32; in skx_get_dimm_info() 377 dimm->dtype = get_width(mtr); in skx_get_dimm_info() 378 dimm->mtype = mtype; in skx_get_dimm_info() 382 snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_HBMC#%u_Chan#%u", in skx_get_dimm_info() 385 snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_MC#%u_Chan#%u_DIMM#%u", in skx_get_dimm_info() 425 dimm->grain = 32; in skx_get_nvdimm_info() 426 dimm->dtype = DEV_UNKNOWN; in skx_get_nvdimm_info() 427 dimm->mtype = MEM_NVDIMM; in skx_get_nvdimm_info() 433 snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_MC#%u_Chan#%u_DIMM#%u", in skx_get_nvdimm_info() [all …]
|
A D | amd76x_edac.c | 190 struct dimm_info *dimm; in amd76x_init_csrows() local 196 dimm = csrow->channels[0]->dimm; in amd76x_init_csrows() 209 dimm->nr_pages = (mba_mask + 1) >> PAGE_SHIFT; in amd76x_init_csrows() 210 csrow->last_page = csrow->first_page + dimm->nr_pages - 1; in amd76x_init_csrows() 212 dimm->grain = dimm->nr_pages << PAGE_SHIFT; in amd76x_init_csrows() 213 dimm->mtype = MEM_RDDR; in amd76x_init_csrows() 214 dimm->dtype = ((dms >> index) & 0x1) ? DEV_X4 : DEV_UNKNOWN; in amd76x_init_csrows() 215 dimm->edac_mode = edac_mode; in amd76x_init_csrows()
|
A D | skx_base.c | 182 struct dimm_info *dimm; in skx_get_dimm_config() local 194 dimm = edac_get_dimm(mci, i, j, 0); in skx_get_dimm_config() 200 ndimms += skx_get_nvdimm_info(dimm, imc, i, j, in skx_get_dimm_config() 503 res->dimm = chan_rank / 4; in skx_rir_decode() 507 res->addr, res->dimm, res->rank, in skx_rir_decode() 553 struct skx_dimm *dimm = &r->dev->imc[r->imc].chan[r->channel].dimms[r->dimm]; in skx_mad_decode() local 554 int bg0 = dimm->fine_grain_bank ? 6 : 13; in skx_mad_decode() 556 if (dimm->close_pg) { in skx_mad_decode() 563 r->row = skx_bits(r->rank_address, dimm->rowbits, skx_open_row); in skx_mad_decode() 564 if (dimm->fine_grain_bank) in skx_mad_decode() [all …]
|
A D | ie31200_edac.c | 485 struct dimm_info *dimm; in ie31200_probe1() local 495 dimm->nr_pages = nr_pages; in ie31200_probe1() 499 dimm->mtype = MEM_DDR4; in ie31200_probe1() 501 dimm->mtype = MEM_DDR3; in ie31200_probe1() 502 dimm->dtype = DEV_UNKNOWN; in ie31200_probe1() 503 dimm->edac_mode = EDAC_UNKNOWN; in ie31200_probe1() 506 dimm->nr_pages = nr_pages; in ie31200_probe1() 510 dimm->mtype = MEM_DDR4; in ie31200_probe1() 512 dimm->mtype = MEM_DDR3; in ie31200_probe1() 513 dimm->dtype = DEV_UNKNOWN; in ie31200_probe1() [all …]
|
A D | i5400_edac.c | 869 n = dimm; in determine_mtr() 873 dimm); in determine_mtr() 925 mtr = determine_mtr(pvt, dimm, channel); in handle_channel() 930 if (amb_present_reg & (1 << dimm)) { in handle_channel() 959 int dimm, max_dimms; in calculate_dimm_size() local 979 for (dimm = max_dimms - 1; dimm >= 0; dimm--) { in calculate_dimm_size() 983 if (dimm & 0x1) { in calculate_dimm_size() 1167 struct dimm_info *dimm; in i5400_init_dimms() local 1198 dimm->nr_pages = size_mb << 8; in i5400_init_dimms() 1199 dimm->grain = 8; in i5400_init_dimms() [all …]
|
A D | r82600_edac.c | 220 struct dimm_info *dimm; in r82600_init_csrows() local 232 dimm = csrow->channels[0]->dimm; in r82600_init_csrows() 254 dimm->nr_pages = csrow->last_page - csrow->first_page + 1; in r82600_init_csrows() 257 dimm->grain = 1 << 14; in r82600_init_csrows() 258 dimm->mtype = reg_sdram ? MEM_RDDR : MEM_DDR; in r82600_init_csrows() 260 dimm->dtype = DEV_UNKNOWN; in r82600_init_csrows() 263 dimm->edac_mode = ecc_on ? EDAC_SECDED : EDAC_NONE; in r82600_init_csrows()
|
A D | highbank_mc_edac.c | 151 struct dimm_info *dimm; in highbank_mc_probe() local 221 dimm = *mci->dimms; in highbank_mc_probe() 222 dimm->nr_pages = (~0UL >> PAGE_SHIFT) + 1; in highbank_mc_probe() 223 dimm->grain = 8; in highbank_mc_probe() 224 dimm->dtype = DEV_X8; in highbank_mc_probe() 225 dimm->mtype = MEM_DDR3; in highbank_mc_probe() 226 dimm->edac_mode = EDAC_SECDED; in highbank_mc_probe()
|
A D | i82975x_edac.c | 313 (1 << mci->csrows[row]->channels[chan]->dimm->grain)); in i82975x_process_error_info() 368 struct dimm_info *dimm; in i82975x_init_csrows() local 407 dimm = mci->csrows[index]->channels[chan]->dimm; in i82975x_init_csrows() 409 dimm->nr_pages = nr_pages / csrow->nr_channels; in i82975x_init_csrows() 411 snprintf(csrow->channels[chan]->dimm->label, EDAC_MC_LABEL_LEN, "DIMM %c%d", in i82975x_init_csrows() 414 dimm->grain = 1 << 7; /* 128Byte cache-line resolution */ in i82975x_init_csrows() 417 dimm->dtype = DEV_X8; in i82975x_init_csrows() 419 dimm->mtype = MEM_DDR2; /* I82975x supports only DDR2 */ in i82975x_init_csrows() 420 dimm->edac_mode = EDAC_SECDED; /* only supported */ in i82975x_init_csrows()
|
A D | i82443bxgx_edac.c | 189 struct dimm_info *dimm; in i82443bxgx_init_csrows() local 198 dimm = csrow->channels[0]->dimm; in i82443bxgx_init_csrows() 219 dimm->nr_pages = csrow->last_page - csrow->first_page + 1; in i82443bxgx_init_csrows() 221 dimm->grain = 1 << 12; in i82443bxgx_init_csrows() 222 dimm->mtype = mtype; in i82443bxgx_init_csrows() 224 dimm->dtype = DEV_UNKNOWN; in i82443bxgx_init_csrows() 226 dimm->edac_mode = edac_mode; in i82443bxgx_init_csrows()
|
A D | armada_xp_edac.c | 224 struct dimm_info *dimm; in axp_mc_read_config() local 237 dimm = mci->dimms[i]; in axp_mc_read_config() 251 dimm->nr_pages = 524288; in axp_mc_read_config() 254 dimm->nr_pages = 65536; in axp_mc_read_config() 257 dimm->nr_pages = 131072; in axp_mc_read_config() 260 dimm->nr_pages = 262144; in axp_mc_read_config() 263 dimm->nr_pages = 1048576; in axp_mc_read_config() 266 dimm->nr_pages = 2097152; in axp_mc_read_config() 269 dimm->grain = 8; in axp_mc_read_config() 270 dimm->dtype = cs_struct ? DEV_X16 : DEV_X8; in axp_mc_read_config() [all …]
|
A D | i82875p_edac.c | 344 struct dimm_info *dimm; in i82875p_init_csrows() local 376 dimm = csrow->channels[j]->dimm; in i82875p_init_csrows() 378 dimm->nr_pages = nr_pages / nr_chans; in i82875p_init_csrows() 379 dimm->grain = 1 << 12; /* I82875P_EAP has 4KiB reolution */ in i82875p_init_csrows() 380 dimm->mtype = MEM_DDR; in i82875p_init_csrows() 381 dimm->dtype = DEV_UNKNOWN; in i82875p_init_csrows() 382 dimm->edac_mode = drc_ddim ? EDAC_SECDED : EDAC_NONE; in i82875p_init_csrows()
|
A D | pnd2_edac.c | 53 int dimm; member 988 daddr->dimm = 0; in apl_pmi2mem() 1225 struct dimm_info *dimm; in apl_get_dimm_config() local 1235 if (!dimm) { in apl_get_dimm_config() 1257 dimm->grain = 32; in apl_get_dimm_config() 1259 dimm->mtype = MEM_DDR3; in apl_get_dimm_config() 1261 snprintf(dimm->label, sizeof(dimm->label), "Slice#%d_Chan#%d", i / 2, i % 2); in apl_get_dimm_config() 1272 struct dimm_info *dimm; in dnv_get_dimm_config() local 1315 if (!dimm) { in dnv_get_dimm_config() 1323 dimm->grain = 32; in dnv_get_dimm_config() [all …]
|
A D | amd64_edac.c | 1111 for (dimm = 0; dimm < 2; dimm++) { in debug_display_dimm_sizes_df() 1112 cs0 = dimm * 2; in debug_display_dimm_sizes_df() 1113 cs1 = dimm * 2 + 1; in debug_display_dimm_sizes_df() 1877 int dimm, size = 0; in f17_addr_mask_to_cs_size() local 2489 for (dimm = 0; dimm < 4; dimm++) { in debug_display_dimm_sizes() 2501 dimm); in debug_display_dimm_sizes() 2507 dimm); in debug_display_dimm_sizes() 3250 dimm = mci->csrows[cs]->channels[umc]->dimm; in init_csrows_df() 3259 dimm->grain = 64; in init_csrows_df() 3333 dimm = csrow->channels[j]->dimm; in init_csrows() [all …]
|
/linux/tools/testing/nvdimm/test/ |
A D | ndtest.c | 97 .dimm = 0, 103 .dimm = 1, 112 .dimm = 0, 118 .dimm = 1, 124 .dimm = 2, 130 .dimm = 3, 139 .dimm = 0, 148 .dimm = 1, 156 .dimm = 2, 164 .dimm = 3, [all …]
|
A D | nfit.c | 192 void **dimm; member 1721 int dimm; in dimm_name_to_id() local 1725 return dimm; in dimm_name_to_id() 1733 if (dimm < 0) in handle_show() 1734 return dimm; in handle_show() 1745 if (dimm < 0) in fail_cmd_show() 1746 return dimm; in fail_cmd_show() 1758 if (dimm < 0) in fail_cmd_store() 1759 return dimm; in fail_cmd_store() 1775 if (dimm < 0) in fail_cmd_code_show() [all …]
|
/linux/drivers/gpu/drm/i915/ |
A D | intel_dram.c | 43 return dimm->ranks * 64 / (dimm->width ?: 1); in intel_dimm_num_devices() 116 return dimm->size / (intel_dimm_num_devices(dimm) ?: 1) == 16; in skl_is_16gb_dimm() 121 struct dram_dimm_info *dimm, in skl_dram_get_dimm_info() argument 125 dimm->size = icl_get_dimm_size(val); in skl_dram_get_dimm_info() 136 channel, dimm_name, dimm->size, dimm->width, dimm->ranks, in skl_dram_get_dimm_info() 137 yesno(skl_is_16gb_dimm(dimm))); in skl_dram_get_dimm_info() 335 dimm->size = bxt_get_dimm_size(val) * intel_dimm_num_devices(dimm); in bxt_get_dimm_info() 349 struct dram_dimm_info dimm; in bxt_get_dram_info() local 358 bxt_get_dimm_info(&dimm, val); in bxt_get_dram_info() 368 dimm.size, dimm.width, dimm.ranks, in bxt_get_dram_info() [all …]
|
/linux/include/linux/ |
A D | edac.h | 416 struct dimm_info *dimm; member 605 #define mci_for_each_dimm(mci, dimm) \ argument 606 for ((dimm) = (mci)->dimms[0]; \ 607 (dimm); \ 608 (dimm) = (dimm)->idx + 1 < (mci)->tot_dimms \ 609 ? (mci)->dimms[(dimm)->idx + 1] \
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-devices-edac | 86 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/size 91 For dimm*/size, this is the size, in MB of the DIMM memory 94 is also the total size of the dimm. On dual rank (2R) memories, 97 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_dev_type 104 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_edac_mode 112 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_label 127 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_location 132 branch/channel/slot or channel/slot) of the dimm or rank. 134 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_mem_type 142 What: /sys/devices/system/edac/mc/mc*/(dimm|rank)*/dimm_ce_count [all …]
|