drivers/edac/i10nm_base.c
Source file repositories/reference/linux-study-clean/drivers/edac/i10nm_base.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/i10nm_base.c- Extension
.c- Size
- 28053 bytes
- Lines
- 1097
- Domain
- Driver Families
- Bucket
- drivers/edac
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/io.hasm/cpu_device_id.hasm/intel-family.hasm/mce.hedac_module.hskx_common.h
Detected Declarations
function i10nm_get_imc_numfunction list_for_each_entryfunction i10nm_check_2lmfunction list_for_each_entryfunction i10nm_mscod_is_ddrtfunction i10nm_mc_decode_availablefunction i10nm_mc_decodefunction list_for_each_entryfunction get_gnr_mdevfunction get_gnr_imc_mmio_offsetfunction get_ddr_munitfunction i10nm_imc_absentfunction i10nm_get_ddr_munitsfunction list_for_each_entryfunction i10nm_check_hbm_imcfunction i10nm_get_hbm_munitsfunction list_for_each_entryfunction i10nm_check_eccfunction i10nm_channel_disabledfunction i10nm_get_dimm_configfunction i10nm_initfunction list_for_each_entryfunction i10nm_exitfunction set_decoding_via_mcamodule init i10nm_init
Annotated Snippet
module_init(i10nm_init);
module_exit(i10nm_exit);
static int set_decoding_via_mca(const char *buf, const struct kernel_param *kp)
{
unsigned long val;
int ret;
ret = kstrtoul(buf, 0, &val);
if (ret || val > 1)
return -EINVAL;
if (val && mem_cfg_2lm) {
i10nm_printk(KERN_NOTICE, "Decoding errors via MCA banks for 2LM isn't supported yet\n");
return -EIO;
}
ret = param_set_int(buf, kp);
return ret;
}
static const struct kernel_param_ops decoding_via_mca_param_ops = {
.set = set_decoding_via_mca,
.get = param_get_int,
};
module_param_cb(decoding_via_mca, &decoding_via_mca_param_ops, &decoding_via_mca, 0644);
MODULE_PARM_DESC(decoding_via_mca, "decoding_via_mca: 0=off(default), 1=enable");
module_param(retry_rd_err_log, int, 0444);
MODULE_PARM_DESC(retry_rd_err_log, "retry_rd_err_log: 0=off(default), 1=bios(Linux doesn't reset any control bits, but just reports values.), 2=linux(Linux tries to take control and resets mode bits, clear valid/UC bits after reading.)");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("MC Driver for Intel 10nm server processors");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/io.h`, `asm/cpu_device_id.h`, `asm/intel-family.h`, `asm/mce.h`, `edac_module.h`, `skx_common.h`.
- Detected declarations: `function i10nm_get_imc_num`, `function list_for_each_entry`, `function i10nm_check_2lm`, `function list_for_each_entry`, `function i10nm_mscod_is_ddrt`, `function i10nm_mc_decode_available`, `function i10nm_mc_decode`, `function list_for_each_entry`, `function get_gnr_mdev`, `function get_gnr_imc_mmio_offset`.
- Atlas domain: Driver Families / drivers/edac.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.