Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\generic.c Create Date:2022-07-28 08:05:55
Last Modify:2022-05-18 17:45:43 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:BIOS is expected to clear MtrrFixDramModEn bit, see for example* "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD* Opteron Processors" (26094 Rev. 3.30 February 2006), section* "13

Proto:static inline void k8_check_syscfg_dram_mod_en(void)

Type:void

Parameter:Nothing

53  If Not ( CPU vendor == X86_VENDOR_AMD && CPU family >= 0x0f ) Then Return
57  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_K8_SYSCFG, lo, hi)
58  If lo & MtrrFixDramModEn bit Then
59  pr_err(FW_WARN"MTRR: CPU %u: SYSCFG[MtrrFixDramModEn] not cleared by BIOS, clearing this bit\n", smp_processor_id())
62  lo &= ~MtrrFixDramModEn bit
63  Doesn't attempt to pass an error out to MTRR users* because it's quite complicated in some cases and probably not* worth it because the best error handling is to ignore it.
Caller
NameDescribe
get_fixed_ranges
set_fixed_rangesset_fixed_ranges - checks & updates the fixed-range MTRRs if they* differ from the saved set*@frs: pointer to fixed-range MTRR values, saved by get_fixed_ranges()