WARNING: at /build/buildd/linux-2.6.31/arch/x86/kernel/apic/apic.c:247 native_apic_write_dummy+0x33/0x40()

Bug #447852 reported by Matej Kenda
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Linux
Expired
Medium
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

The following message can be observed in dmesg on Compaq Evo N1015v. The system seems to work normally despite this message:

Oct 10 09:35:52 knd kernel: [ 0.004501] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
Oct 10 09:35:52 knd kernel: [ 0.004505] CPU: L2 Cache: 256K (64 bytes/line)
Oct 10 09:35:52 knd kernel: [ 0.004532] Performance Counters: AMD PMU driver.
Oct 10 09:35:52 knd kernel: [ 0.004540] ------------[ cut here ]------------
Oct 10 09:35:52 knd kernel: [ 0.004562] WARNING: at /build/buildd/linux-2.6.31/arch/x86/kernel/apic/apic.c:247 native_apic_write_dummy+0x33/0x40()
Oct 10 09:35:52 knd kernel: [ 0.004567] Hardware name: Presario
Oct 10 09:35:52 knd kernel: [ 0.004570] Modules linked in:
Oct 10 09:35:52 knd kernel: [ 0.004578] Pid: 0, comm: swapper Not tainted 2.6.31-11-generic #38-Ubuntu
Oct 10 09:35:52 knd kernel: [ 0.004582] Call Trace:
Oct 10 09:35:52 knd kernel: [ 0.004599] [<c014080d>] warn_slowpath_common+0x6d/0xa0
Oct 10 09:35:52 knd kernel: [ 0.004605] [<c011a123>] ? native_apic_write_dummy+0x33/0x40
Oct 10 09:35:52 knd kernel: [ 0.004610] [<c011a123>] ? native_apic_write_dummy+0x33/0x40
Oct 10 09:35:52 knd kernel: [ 0.004616] [<c0140855>] warn_slowpath_null+0x15/0x20
Oct 10 09:35:52 knd kernel: [ 0.004621] [<c011a123>] native_apic_write_dummy+0x33/0x40
Oct 10 09:35:52 knd kernel: [ 0.004631] [<c010d9ac>] perf_counters_lapic_init+0x2c/0x30
Oct 10 09:35:52 knd kernel: [ 0.004644] [<c078ca8c>] init_hw_perf_counters+0x159/0x21c
Oct 10 09:35:52 knd kernel: [ 0.004650] [<c078c6d3>] identify_boot_cpu+0x21/0x23
Oct 10 09:35:52 knd kernel: [ 0.004655] [<c078c855>] check_bugs+0xb/0xe9
Oct 10 09:35:52 knd kernel: [ 0.004660] [<c07858c3>] start_kernel+0x2dc/0x2ec
Oct 10 09:35:52 knd kernel: [ 0.004664] [<c0785406>] ? unknown_bootoption+0x0/0x1ab
Oct 10 09:35:52 knd kernel: [ 0.004669] [<c078507c>] __init_begin+0x7c/0x83
Oct 10 09:35:52 knd kernel: [ 0.004686] ---[ end trace a7919e7f17c0a725 ]---
Oct 10 09:35:52 knd kernel: [ 0.004694] ... version: 0
Oct 10 09:35:52 knd kernel: [ 0.004696] ... bit width: 48
Oct 10 09:35:52 knd kernel: [ 0.004699] ... generic counters: 4
Oct 10 09:35:52 knd kernel: [ 0.004702] ... value mask: 0000ffffffffffff
Oct 10 09:35:52 knd kernel: [ 0.004705] ... max period: 00007fffffffffff
Oct 10 09:35:52 knd kernel: [ 0.004707] ... fixed-purpose counters: 0
Oct 10 09:35:52 knd kernel: [ 0.004710] ... counter mask: 000000000000000f
Oct 10 09:35:52 knd kernel: [ 0.004719] Checking 'hlt' instruction... OK.
Oct 10 09:35:52 knd kernel: [ 0.020856] SMP alternatives: switching to UP code
Oct 10 09:35:52 knd kernel: [ 0.028043] Freeing SMP alternatives: 19k freed
Oct 10 09:35:52 knd kernel: [ 0.028103] ACPI: Core revision 20090521
Oct 10 09:35:52 knd kernel: [ 0.041861] ACPI: setting ELCR to 0200 (from 0c20)

Revision history for this message
Matej Kenda (matejken) wrote : apport-collect data

Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: A5451 [ALI 5451], device 0: ALI 5451 [ALI 5451]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: matej 2324 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'A5451'/'ALI 5451 at 0x8400, irq 5'
   Mixer name : 'Analog Devices AD1886A'
   Components : 'AC97a:41445363'
   Controls : 38
   Simple ctrls : 24
CheckboxSubmission: a0a8efcb80a155e52ca5b8ad1ad95fbc
CheckboxSystem: 79d4f9e1ffc31ae443cb2de53cd33e42
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=1acb9326-c302-4009-a940-8d92412448c2
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
Lsusb:
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Compaq Presario
Package: linux (not installed)
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-11-generic root=UUID=737a8285-476e-4d78-9849-96d939d64b95 ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=sl_SI.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
RelatedPackageVersions: linux-firmware 1.21
RfKill:

Uname: Linux 2.6.31-11-generic i686
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev powerdev scanner tape video www-data
WpaSupplicantLog:

XsessionErrors:
 (gnome-settings-daemon:2381): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2381): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2465): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2454): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (gnome-panel:2411): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.2/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
dmi.bios.date: 11/25/2003
dmi.bios.vendor: Phoenix
dmi.bios.version: 0F0B
dmi.board.name: 07D4h
dmi.board.vendor: Compaq
dmi.board.version: KBC Revision: 1328
dmi.chassis.type: 10
dmi.chassis.vendor: Compaq
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenix:bvr0F0B:bd11/25/2003:svnCompaq:pnPresario:pvr0100:rvnCompaq:rn07D4h:rvrKBCRevision1328:cvnCompaq:ct10:cvrN/A:
dmi.product.name: Presario
dmi.product.version: 0100
dmi.sys.vendor: Compaq

Revision history for this message
Matej Kenda (matejken) wrote : AlsaDevices.txt
Revision history for this message
Matej Kenda (matejken) wrote : AplayDevices.txt
Revision history for this message
Matej Kenda (matejken) wrote : BootDmesg.txt
Revision history for this message
Matej Kenda (matejken) wrote : Card0.Amixer.values.txt
Revision history for this message
Matej Kenda (matejken) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt
Revision history for this message
Matej Kenda (matejken) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt
Revision history for this message
Matej Kenda (matejken) wrote : CurrentDmesg.txt
Revision history for this message
Matej Kenda (matejken) wrote : Lspci.txt
Revision history for this message
Matej Kenda (matejken) wrote : PciMultimedia.txt
Revision history for this message
Matej Kenda (matejken) wrote : ProcCpuinfo.txt
Revision history for this message
Matej Kenda (matejken) wrote : ProcInterrupts.txt
Revision history for this message
Matej Kenda (matejken) wrote : ProcModules.txt
Revision history for this message
Matej Kenda (matejken) wrote : UdevDb.txt
Revision history for this message
Matej Kenda (matejken) wrote : UdevLog.txt
Revision history for this message
Matej Kenda (matejken) wrote : WifiSyslog.txt
tags: added: apport-collected
Revision history for this message
Matej Kenda (matejken) wrote :

The warning is not reported any more after the latest kernel update.

$ cat /proc/version_signature
Ubuntu 2.6.31-13.44-generic

Changed in linux (Ubuntu):
status: New → Invalid
Revision history for this message
Krishna E. Bera (keb) wrote :

i also get the message and i have "Ubuntu 2.6.31-14.48-generic".
here is the trace from kern.log:

Nov 1 20:26:51 peace kernel: [ 0.002001] ------------[ cut here ]------------
Nov 1 20:26:51 peace kernel: [ 0.002025] WARNING: at /build/buildd/linux-2.6.31/arch/x86/kernel/apic/apic.c:247 native_apic_write_dummy+0x33/0x40()
Nov 1 20:26:51 peace kernel: [ 0.002033] Hardware name: P4VXASD2+
Nov 1 20:26:51 peace kernel: [ 0.002038] Modules linked in:
Nov 1 20:26:51 peace kernel: [ 0.002050] Pid: 0, comm: swapper Not tainted 2.6.31-14-generic #48-Ubuntu
Nov 1 20:26:51 peace kernel: [ 0.002057] Call Trace:
Nov 1 20:26:51 peace kernel: [ 0.002078] [<c014518d>] warn_slowpath_common+0x6d/0xa0
Nov 1 20:26:51 peace kernel: [ 0.002091] [<c011d7e3>] ? native_apic_write_dummy+0x33/0x40
Nov 1 20:26:51 peace kernel: [ 0.002102] [<c011d7e3>] ? native_apic_write_dummy+0x33/0x40
Nov 1 20:26:51 peace kernel: [ 0.002113] [<c01451d5>] warn_slowpath_null+0x15/0x20
Nov 1 20:26:51 peace kernel: [ 0.002125] [<c011d7e3>] native_apic_write_dummy+0x33/0x40
Nov 1 20:26:51 peace kernel: [ 0.002139] [<c011278c>] intel_init_thermal+0xac/0x1a0
Nov 1 20:26:51 peace kernel: [ 0.002150] [<c0111dbb>] mce_intel_feature_init+0xb/0x60
Nov 1 20:26:51 peace kernel: [ 0.002161] [<c010fcf0>] mce_cpu_features+0x10/0x40
Nov 1 20:26:51 peace kernel: [ 0.002178] [<c056ac3c>] mcheck_init+0x14a/0x188
Nov 1 20:26:51 peace kernel: [ 0.002189] [<c0569078>] ? init_hypervisor+0xb/0x2c
Nov 1 20:26:51 peace kernel: [ 0.002200] [<c0569030>] identify_cpu+0x20e/0x21d
Nov 1 20:26:51 peace kernel: [ 0.002214] [<c0795732>] identify_boot_cpu+0xd/0x23
Nov 1 20:26:51 peace kernel: [ 0.002225] [<c07958c8>] check_bugs+0xb/0xe9
Nov 1 20:26:51 peace kernel: [ 0.002238] [<c078e8c3>] start_kernel+0x2dc/0x2ec
Nov 1 20:26:51 peace kernel: [ 0.002250] [<c078e406>] ? unknown_bootoption+0x0/0x1ab
Nov 1 20:26:51 peace kernel: [ 0.002261] [<c078e07c>] i386_start_kernel+0x7c/0x83
Nov 1 20:26:51 peace kernel: [ 0.002284] ---[ end trace a7919e7f17c0a725 ]---

TJ (tj)
Changed in linux (Ubuntu):
status: Invalid → Confirmed
Changed in linux:
status: Unknown → Incomplete
Revision history for this message
Fahad Sadah (fahadsadah) wrote :

A WARNING can always be ignored.
It's an ERROR you have to worry about.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
TJ (tj) wrote :
Download full text (3.2 KiB)

Experienced the same here and traced it to the kernel incorrectly thinking that lapic is disabled by the BIOS when there is no such option (in BIOS). The upstream bug-report suggests that commit 48b1fddbb100a may be responsible.

I've found the workaround is to add "lapic" (use Local Advanced Programmable Interrupt Controller) to the kernel boot options. That requires you to edit "/etc/default/grub" (with superuser privileges) and add the option to GRUB_CMDLINE_LINUX:

GRUB_CMDLINE_LINUX="lapic"

Then update the grub configuration:

$ sudo update-grub

Reboot and the lapic should be used. Check dmesg to be sure:

$ grep -i apic /var/log/dmesg
[ 0.000000] Using APIC driver default
[ 0.000000] Local APIC disabled by BIOS -- reenabling.
[ 0.000000] Found and enabled local APIC!
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-2.6.31-14-generic root=UUID=4930abd5-48d4-4bf5-996e-ea96df9a2d95 ro lapic quiet splash
-----

$ uname -a
Linux mythbuntu 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux

----- cpuinfo -----
$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(TM) XP1800+
stepping : 2
cpu MHz : 1544.739
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up
bogomips : 3089.47
clflush size : 32
power management: ts
-----

----- dmesg with default boot configuration -----
[ 0.000000] Local APIC disabled by BIOS -- you can enable it with "lapic"
[ 0.000000] APIC: disable apic facility
...
[ 0.002171] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[ 0.002175] CPU: L2 Cache: 256K (64 bytes/line)
[ 0.002183] mce: CPU supports 4 MCE banks
[ 0.002212] Performance Counters: AMD PMU driver.
[ 0.002219] ------------[ cut here ]------------
[ 0.002239] WARNING: at /build/buildd/linux-2.6.31/arch/x86/kernel/apic/apic.c:247 native_apic_write_dummy+0x33/0x40()
[ 0.002244] Hardware name: System Name
[ 0.002246] Modules linked in:
[ 0.002253] Pid: 0, comm: swapper Not tainted 2.6.31-14-generic #48-Ubuntu
[ 0.002257] Call Trace:
[ 0.002273] [<c014518d>] warn_slowpath_common+0x6d/0xa0
[ 0.002279] [<c011d7e3>] ? native_apic_write_dummy+0x33/0x40
[ 0.002285] [<c011d7e3>] ? native_apic_write_dummy+0x33/0x40
[ 0.002291] [<c01451d5>] warn_slowpath_null+0x15/0x20
[ 0.002297] [<c011d7e3>] native_apic_write_dummy+0x33/0x40
[ 0.002305] [<c010dcec>] perf_counters_lapic_init+0x2c/0x30
[ 0.002315] [<c0795aff>] init_hw_perf_counters+0x159/0x21c
[ 0.002321] [<c0795746>] identify_boot_cpu+0x21/0x23
[ 0.002326] [<c07958c8>] check_bugs+0xb/0xe9
[ 0.002337] [<c078e8c3>] start_kernel+0x2dc/0x2ec
[ 0.002342] [<c078e406>] ? unknown_bootoption+0x0/0x1ab
[ 0.002348] [<c078e07c>] i386_start_kernel+0x7c/0x83
[ 0.002364] ---[ end trace a7919e7f17c0a725 ]---
...
[ 0.031243] weird, boot CPU (#0) not listed by the BIOS.
[ 0.031246] SMP motherboard not detected.
[ 0.031251] Local ...

Read more...

Changed in linux (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
TJ (tj) wrote :

Fahad, please leave the bug status as I've set it.

In this case a warning CANNOT be ignored since the system has no APIC which leads to other stability problems.

Revision history for this message
Timothy W. Tacker (tim-tacker) wrote :

Please note that the following Ubuntu forum topic also references this issue:

http://ubuntuforums.org/showthread.php?p=8357698

Revision history for this message
Tony Kernan (ackernan) wrote :

I use 2.6.31-17 kernel and get a trace msg during reboot. I've made the changes in #20. Sometimes I can reboot w/o a problem, other times I get a trace msg.

Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

The required patch (mentioned in upstream bugreport) was in 2.6.32.5

Tested with 2.6.32-12.17; no more warning on my machine.

Revision history for this message
Teemu Kiviniemi (teemuki) wrote :

Ubuntu 9.10. linux-image-2.6.31-19-generic 2.6.31-19.56. Fujitsu Amilo M 7400 laptop.

I can confirm that adding the "lapic" kernel parameter works around the problem. Before adding the parameter, dummy APIC emulation was used and the CPU was running hot. With the "lapic" parameter, the warning disappeared and CPU temperature dropped considerably. The laptop runs silent again.

Revision history for this message
Jerome (jerome-jolimont) wrote :

Same as comment #20. Using a K7S5A MB with ACPI enabled. Kernel fais to detect that :
Mar 21 10:03:08 bouzin kernel: [ 0.000000] Local APIC disabled by BIOS -- you can enable it with "lapic"
Mar 21 10:03:08 bouzin kernel: [ 0.000000] APIC: disable apic facility

Adding lapic to the default boot options makes the warning disappear.

---- WORKAROUND ----
On ubuntu, you need to modify /boot/grub/menu.lst (needs root privileges) :

it's the kopt line (or the defoptions line, if you're unsure what you're doing)
# kopt=root=UUID=a251989a-0f6a-4ac2-b496-3420bb7c23ba ro (the line will differ on your system)

make it (add lapic at the end)
# kopt=root=UUID=a251989a-0f6a-4ac2-b496-3420bb7c23ba ro lapic

Then run update-grub again (needs root privileges). If asked about a conflict between modified local version and developper version, chose developper version to allow grub-update to modify the entries.
------------------------------

I guess it's the kernel's fault. It should detect ACPI properly in the first place.

Revision history for this message
Timothy W. Tacker (tim-tacker) wrote :

I confirm that I no longer have this warning in dmesg on Ubuntu 10.04 LTS with lapic on the end of the kernel command line.

Changed in linux:
importance: Unknown → Medium
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
Changed in linux:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.