Skip to content

Commit 7d98585

Browse files
Dilip KotaIngo Molnar
authored andcommitted
x86/tsr: Fix tsc frequency enumeration bug on Lightning Mountain SoC
Frequency descriptor of Lightning Mountain SoC doesn't have all the frequency entries so resulting in the below failure causing a kernel hang: Error MSR_FSB_FREQ index 15 is unknown tsc: Fast TSC calibration failed So, add all the frequency entries in the Lightning Mountain SoC frequency descriptor. Fixes: 0cc5359 ("x86/cpu: Update init data for new Airmont CPU model") Fixes: 812c2d7 ("x86/tsc_msr: Use named struct initializers") Signed-off-by: Dilip Kota <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/211c643ae217604b46cbec43a2c0423946dc7d2d.1596440057.git.eswara.kota@linux.intel.com
1 parent 475f63a commit 7d98585

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

arch/x86/kernel/tsc_msr.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,15 @@ static const struct freq_desc freq_desc_ann = {
133133
.mask = 0x0f,
134134
};
135135

136-
/* 24 MHz crystal? : 24 * 13 / 4 = 78 MHz */
136+
/*
137+
* 24 MHz crystal? : 24 * 13 / 4 = 78 MHz
138+
* Frequency step for Lightning Mountain SoC is fixed to 78 MHz,
139+
* so all the frequency entries are 78000.
140+
*/
137141
static const struct freq_desc freq_desc_lgm = {
138142
.use_msr_plat = true,
139-
.freqs = { 78000, 78000, 78000, 78000, 78000, 78000, 78000, 78000 },
143+
.freqs = { 78000, 78000, 78000, 78000, 78000, 78000, 78000, 78000,
144+
78000, 78000, 78000, 78000, 78000, 78000, 78000, 78000 },
140145
.mask = 0x0f,
141146
};
142147

0 commit comments

Comments
 (0)