Skip to contentSkip to conversation

: Intel uncore boot warning introduced in 4.1

BUG Matthew Leach 4 participants 7 messages Aug 6, 2015 – Sep 15, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

Since upgrading to a 4.1 series kernel, I have been getting an odd warning message from the kernel on boot, [1], as well as random freezes after about 20-30 minutes of uptime. I'm not sure if the two are related, however.

I've bisected the kernel and found that commit [2] seems to introduce the warning message. I have checked on a v4.2-rc5 kernel and the warning message is still there.

I am running a Lenovo thinkpad t440. See [3] for /proc/cpuinfo.

Thanks,
Matt

[1]:
resource sanity check: requesting [mem 0xfed10000-0xfed15fff], which spans more than pnp 00:01 [mem 0xfed10000-0xfed13fff]

------------[ cut here ]------------
WARNING: CPU: 1 PID: 1 at arch/x86/mm/ioremap.c:202 __ioremap_caller+0x2b0/0x3a0()
Info: mapping multiple BARs. Your kernel is fine.
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.1.0-rc6-ARCH-00156-g15c1247 #31
Hardware name: LENOVO 20B7A0HL00/20B7A0HL00, BIOS GJET79WW (2.29 ) 09/03/2014
 0000000000000000 000000008d90ee2d ffff880310117ad8 ffffffff81f31c90
 ffffffff8245b758 ffff880310117b30 ffff880310117b18 ffffffff810df57b
 00000000fed10000 ffffc90001b90000 00000000fed16000 0000000000006000
Call Trace:
 [<ffffffff81f31c90>] dump_stack+0x4c/0x6e
 [<ffffffff810df57b>] warn_slowpath_common+0x7b/0xc0
 [<ffffffff810df640>] warn_slowpath_fmt+0x50/0x70
 [<ffffffff81045040>] __ioremap_caller+0x2b0/0x3a0
 [<ffffffff810452e2>] ioremap_nocache+0x12/0x20
 [<ffffffff81025464>] snb_uncore_imc_init_box+0x74/0xb0
 [<ffffffff810236e0>] uncore_pci_probe+0xd0/0x220
 [<ffffffff814f85d0>] local_pci_probe+0x40/0xa0
 [<ffffffff814f9755>] ? pci_match_device+0xe5/0x110
 [<ffffffff814f9879>] pci_device_probe+0xf9/0x150
 [<ffffffff816f6219>] driver_probe_device+0x1f9/0x4b0
 [<ffffffff816f65a3>] __driver_attach+0x93/0xa0
 [<ffffffff816f6510>] ? __device_attach+0x40/0x40
 [<ffffffff816f4223>] bus_for_each_dev+0x73/0xc0
 [<ffffffff816f6689>] driver_attach+0x19/0x20
 [<ffffffff816f4e18>] bus_add_driver+0x168/0x240
 [<ffffffff816f6def>] driver_register+0x5f/0xf0
 [<ffffffff8259b44c>] ? uncore_types_exit+0x26/0x26
 [<ffffffff814f9af6>] __pci_register_driver+0x46/0x50
 [<ffffffff8259b514>] intel_uncore_init+0xc8/0x2ad
 [<ffffffff8259b44c>] ? uncore_types_exit+0x26/0x26
 [<ffffffff82591106>] do_one_initcall+0x195/0x1aa
 [<ffffffff82591277>] kernel_init_freeable+0x15c/0x1f8
 [<ffffffff81f2dd50>] ? rest_init+0x90/0x90
 [<ffffffff81f2dd59>] kernel_init+0x9/0xf0
 [<ffffffff81f3bb92>] ret_from_fork+0x42/0x70
 [<ffffffff81f2dd50>] ? rest_init+0x90/0x90
---[ end trace 29e0f99deb80a845 ]---

[2]: 8cf1a3de97804b047973dd44cfacdc1930da8403

[3]:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
stepping : 1
microcode : 0x1c
cpu MHz : 800.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt

bugs            :
bogomips        : 4990.54
clflush size    : 64

cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

[repeated 3 times]

#1 lore raw

Hi Ingo,

Matthew Leach <[email protected]> writes:

[...]

Quoted 3 lines

I've bisected the kernel and found that commit [2] seems to introduce the warning message. I have checked on a v4.2-rc5 kernel and the warning message is still there.

[...]

Quoted 1 line

[2]: 8cf1a3de97804b047973dd44cfacdc1930da8403

Apologies, I got it wrong. The commit that is causing the issue is [1]. If I revert it, the warning goes away. I'm also testing to see if this is the cause of the random freezing that occurs (which I can confirm is also happening with v4.2-rc5).

[1]: 15c1247953e8a45232ed5a5540f291d2d0a77665

Thanks,

Signature · 1 line
Matt
#2 lore raw
Quoted 14 lines

Hi Ingo,

Matthew Leach <[email protected]> writes:

[...]

Quoted 3 lines

I've bisected the kernel and found that commit [2] seems to introduce the warning message. I have checked on a v4.2-rc5 kernel and the warning message is still there.

[...]

Quoted 9 lines
Quoted 1 line

[2]: 8cf1a3de97804b047973dd44cfacdc1930da8403

Apologies, I got it wrong. The commit that is causing the issue is [1]. If I revert it, the warning goes away. I'm also testing to see if this is the cause of the random freezing that occurs (which I can confirm is also happening with v4.2-rc5).

[1]: 15c1247953e8a45232ed5a5540f291d2d0a77665

The issue may be caused by uncore box initialization.

For preventing the potential issues of uncore box initialization, I once moved the uncore_box_init() out of driver initialization in commit c05199e5a57a579fea1e8fa65e2b511ceb524ffc.

However, it cause some desktop crash, because the box initialization codes were moved in IPI context.

For fixing the crash issue, we had two choice at that time.
- Simply revert the codes. That's where is
15c1247953e8a45232ed5a5540f291d2d0a77665 from.
- Move uncore_box_init out of IPI context to uncore event init. I provided a patch for it. https://lkml.org/lkml/2015/4/28/21
Stephane Eranian also verified it on his platform

At that time, we chose first option. But it looks there is some issue now. I guess we may try the second option this time.

Matthew,

Could you please revert 15c1247953e8a45232ed5a5540f291d2d0a77665
and apply the patch https://lkml.org/lkml/2015/4/26/294?
See if it works?

Thanks,
Kan

#4 lore raw
In reply to Liang, Kan
Quoted 19 lines · Kan

The issue may be caused by uncore box initialization.

For preventing the potential issues of uncore box initialization, I once moved the uncore_box_init() out of driver initialization in commit c05199e5a57a579fea1e8fa65e2b511ceb524ffc.

However, it cause some desktop crash, because the box initialization codes were moved in IPI context.

For fixing the crash issue, we had two choice at that time.
- Simply revert the codes. That's where is
15c1247953e8a45232ed5a5540f291d2d0a77665 from.
- Move uncore_box_init out of IPI context to uncore event init. I provided a patch for it. https://lkml.org/lkml/2015/4/28/21
Stephane Eranian also verified it on his platform

At that time, we chose first option. But it looks there is some issue now. I guess we may try the second option this time.

Quoted 6 lines

Matthew,

Could you please revert 15c1247953e8a45232ed5a5540f291d2d0a77665
and apply the patch https://lkml.org/lkml/2015/4/26/294?
See if it works?

That patch is wrong though; how can even publish a PMU which is not initialized?

#5 lore raw
Quoted 23 lines · Kan
Quoted 21 lines

The issue may be caused by uncore box initialization.

For preventing the potential issues of uncore box initialization, I once moved the uncore_box_init() out of driver initialization in commit c05199e5a57a579fea1e8fa65e2b511ceb524ffc.

However, it cause some desktop crash, because the box initialization codes were moved in IPI context.

For fixing the crash issue, we had two choice at that time.
- Simply revert the codes. That's where is
15c1247953e8a45232ed5a5540f291d2d0a77665 from.
- Move uncore_box_init out of IPI context to uncore event init. I provided a patch for it. https://lkml.org/lkml/2015/4/28/21
Stephane Eranian also verified it on his platform

At that time, we chose first option. But it looks there is some issue now. I guess we may try the second option this time.

Matthew,

Quoted 7 lines
Quoted 4 lines

Could you please revert 15c1247953e8a45232ed5a5540f291d2d0a77665
and apply the patch https://lkml.org/lkml/2015/4/26/294?
See if it works?

That patch is wrong though; how can even publish a PMU which is not initialized?

It's initialized but not in the driver initialization. We once encountered boot crashes which caused by uncore driver who trying to access non-existing boxes. Also this uncore boot warning.
So I think it's better to move the box init code out of driver initialization to prevent such potential boot failures. Uncore event init should be a good place to do box init. Only when the box is not initialized and user tries to use uncore event, we do box initialization.

Thanks,
Kan

#6 lore raw
Quoted 31 lines · Kan
Quoted 23 lines · Kan
Quoted 21 lines

The issue may be caused by uncore box initialization.

For preventing the potential issues of uncore box initialization, I once moved the uncore_box_init() out of driver initialization in commit c05199e5a57a579fea1e8fa65e2b511ceb524ffc.

However, it cause some desktop crash, because the box initialization codes were moved in IPI context.

For fixing the crash issue, we had two choice at that time.
- Simply revert the codes. That's where is
15c1247953e8a45232ed5a5540f291d2d0a77665 from.
- Move uncore_box_init out of IPI context to uncore event init. I provided a patch for it. https://lkml.org/lkml/2015/4/28/21
Stephane Eranian also verified it on his platform

At that time, we chose first option. But it looks there is some issue now. I guess we may try the second option this time.

Matthew,

Quoted 7 lines
Quoted 4 lines

Could you please revert 15c1247953e8a45232ed5a5540f291d2d0a77665
and apply the patch https://lkml.org/lkml/2015/4/26/294?
See if it works?

That patch is wrong though; how can even publish a PMU which is not initialized?

Quoted 9 lines

It's initialized but not in the driver initialization. We once encountered boot crashes which caused by uncore driver who trying to access non-existing boxes. Also this uncore boot warning.
So I think it's better to move the box init code out of driver initialization to prevent such potential boot failures. Uncore event init should be a good place to do box init. Only when the box is not initialized and user tries to use uncore event, we do box initialization.

We're still getting reports of this in Fedora with 4.1.y kernels. Was there any resolution to this?

josh