[cxgb4i] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:586
by Fengguang Wu
Hi Anish,
FYI, here is another bisect result for
commit 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6
Author: Anish Bhatt <anish(a)chelsio.com>
AuthorDate: Thu Jul 17 00:18:18 2014 -0700
Commit: David S. Miller <davem(a)davemloft.net>
CommitDate: Thu Jul 17 16:06:03 2014 -0700
cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api
Signed-off-by: Anish Bhatt <anish(a)chelsio.com>
Signed-off-by: Karen Xie <kxie(a)chelsio.com>
Signed-off-by: Manoj Malviya <manojmalviya(a)chelsio.com>
Signed-off-by: David S. Miller <davem(a)davemloft.net>
===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
+-----------------------------------------------------------------------------+------------+------------+------------------+
| | fc8d0590d9 | 759a0cc5a3 | v3.16-rc5_071821 |
+-----------------------------------------------------------------------------+------------+------------+------------------+
| boot_successes | 495 | 11 | 0 |
| boot_failures | 825 | 319 | 11 |
| BUG:kernel_boot_hang | 798 | 114 | 1 |
| general_protection_fault | 13 | 2 | |
| RIP:__lock_acquire | 13 | 2 | |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 13 | 2 | |
| backtrace:free_reserved_area | 13 | 2 | |
| backtrace:free_init_pages | 13 | 2 | |
| backtrace:populate_rootfs | 13 | 2 | |
| backtrace:kernel_init_freeable | 13 | 2 | |
| BUG:kernel_boot_crashed | 14 | | |
| BUG:sleeping_function_called_from_invalid_context_at_kernel/locking/mutex.c | 0 | 203 | 10 |
| backtrace:do_vfs_ioctl | 0 | 203 | 10 |
| backtrace:SyS_ioctl | 0 | 203 | 10 |
+-----------------------------------------------------------------------------+------------+------------+------------------+
/etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 172: can't open /proc/cmdline: no such file
grep: /proc/filesystems: No such file or directory
Configuring network interfaces...
[ 7.138372] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:586
[ 7.140148] in_atomic(): 0, irqs_disabled(): 0, pid: 261, name: ifconfig
[ 7.141280] 3 locks held by ifconfig/261:
[ 7.141947] #0: (rtnl_mutex){+.+.+.}, at: [<ffffffff87901830>] rtnl_lock+0x12/0x14
[ 7.143427] #1: (rcu_read_lock){......}, at: [<ffffffff8689976a>] rcu_lock_acquire+0x0/0x23
[ 7.144976] #2: (rcu_read_lock){......}, at: [<ffffffff870bf4a4>] rcu_read_lock+0x0/0x69
[ 7.146558] Preemption disabled at:[<ffffffff8682a7ea>] smp_apic_timer_interrupt+0x21/0x3c
[ 7.147977]
[ 7.148266] CPU: 0 PID: 261 Comm: ifconfig Not tainted 3.16.0-rc5-01126-g759a0cc #8
[ 7.149535] 0000000000000000 ffff880010927a48 ffffffff87ad0d0c ffff880010910550
[ 7.150862] ffff880010927a78 ffffffff868a15f3 ffffffff886cd160 0000000000000000
[ 7.152216] ffff88001375a000 ffff880010910550 ffff880010927af8 ffffffff87ae6dbb
[ 7.153533] Call Trace:
[ 7.153969] [<ffffffff87ad0d0c>] dump_stack+0x4e/0x7a
[ 7.154841] [<ffffffff868a15f3>] __might_sleep+0x1f2/0x1fb
[ 7.155792] [<ffffffff87ae6dbb>] mutex_lock_nested+0x37/0x414
[ 7.156784] [<ffffffff868ae892>] ? __lock_acquire+0x3a8/0xde4
[ 7.157764] [<ffffffff870b8441>] cxgbi_device_find_by_netdev+0x5e/0xfd
[ 7.158866] [<ffffffff870bf549>] cxgbi_inet6addr_handler+0x3c/0x99
[ 7.159915] [<ffffffff86899859>] notifier_call_chain+0x94/0xc0
[ 7.160912] [<ffffffff8689997c>] __atomic_notifier_call_chain+0x7c/0xe2
[ 7.162031] [<ffffffff868999f1>] atomic_notifier_call_chain+0xf/0x11
[ 7.163110] [<ffffffff879c95f6>] inet6addr_notifier_call_chain+0x16/0x18
[ 7.164241] [<ffffffff879966e1>] ipv6_add_addr+0x105/0x404
[ 7.165174] [<ffffffff8799aa38>] add_addr+0x2c/0x6e
[ 7.165980] [<ffffffff8799bcd9>] addrconf_notify+0x3b0/0x6ec
[ 7.166951] [<ffffffff868abcf8>] ? __lock_is_held+0x38/0x50
[ 7.167904] [<ffffffff86899859>] notifier_call_chain+0x94/0xc0
[ 7.168898] [<ffffffff86899b7b>] raw_notifier_call_chain+0xf/0x11
[ 7.169938] [<ffffffff878f0363>] call_netdevice_notifiers_info+0x4d/0x54
[ 7.171068] [<ffffffff878f3484>] call_netdevice_notifiers+0xe/0x10
[ 7.172114] [<ffffffff878f647e>] __dev_notify_flags+0x4f/0x7d
[ 7.173091] [<ffffffff878f6a28>] dev_change_flags+0x48/0x53
[ 7.174040] [<ffffffff879661c3>] devinet_ioctl+0x289/0x5b9
[ 7.174950] [<ffffffff87966a92>] inet_ioctl+0x8c/0xa6
[ 7.175822] [<ffffffff878e10be>] sock_ioctl+0x1a7/0x1c9
[ 7.176731] [<ffffffff86929882>] do_vfs_ioctl+0x3a7/0x470
[ 7.177652] [<ffffffff869317f4>] ? rcu_read_lock_held+0x36/0x38
[ 7.178658] [<ffffffff869319d4>] ? __fcheck_files.isra.8+0x4b/0x57
[ 7.179712] [<ffffffff86929996>] SyS_ioctl+0x4b/0x76
[ 7.180561] [<ffffffff87aea869>] system_call_fastpath+0x16/0x1b
ifup: can't open '/var/run/ifstate': No such file or directory
done.
hwclock: can't open '/dev/misc/rtc': No such file or directory
git bisect start 9931f57b978a5b5ff5934ece85cf8bf7db5d2f67 1795cd9b3a91d4b5473c97f491d63892442212ab --
git bisect bad 64f2bc8ec801297316bf7189c640e5da60c5b77b # 01:06 0- 341 Merge 'renesas/devel' into devel-hourly-2014071821
git bisect bad 3f322c0abf13c5644ff308cd5f72c08e398878e6 # 01:09 31- 263 Merge 'pm/pm-sleep' into devel-hourly-2014071821
git bisect bad 9326a554df9c49570ff4c69ed8b28f9bff72b9ad # 01:13 11- 26 Merge 'usb/usb-linus' into devel-hourly-2014071821
git bisect good 5bc464435ec4aca3288a75c503280cedc875f72d # 01:54 330+ 192 Merge 'microblaze/next' into devel-hourly-2014071821
git bisect good 366124999766417afff537a44e74c695aede3f04 # 02:10 330+ 110 Merge 'pm/acpi-video' into devel-hourly-2014071821
git bisect bad 67ba0ca140433b242d9cb0920cf0572856b3dd38 # 02:18 1- 105 Merge 'can/master' into devel-hourly-2014071821
git bisect good 90fb5679e568b11b89e02b87f7f4fe00c7589ce0 # 02:38 330+ 85 Merge branch 'sctp_command_queue'
git bisect good 95d01a669bd35d0e8eb28dd8a946876c00a9a61a # 02:54 330+ 115 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
git bisect good b6603fe574af289dbe9eb9fb4c540bca04f5a053 # 03:07 330+ 194 Merge tag 'for-linus-20140716' of git://git.infradead.org/linux-mtd
git bisect good f54424412b6b2f64cae4d7c39d981ca14ce0052c # 03:27 330+ 173 bonding: permit enslaving interfaces without set_mac support
git bisect good 2dc41cff7545d55c6294525c811594576f8e119c # 03:40 330+ 185 udp: Use hash2 for long hash1 chains in __udp*_lib_mcast_deliver.
git bisect bad 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6 # 03:53 0- 4 cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api
git bisect good 4bbe3f5c7174e989989c04d41e6640ac0b944dac # 04:08 330+ 154 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next
git bisect good 92abf75033d2677a684c623d60f093b130c4b38f # 04:30 330+ 147 bonding: update bonding.txt for Layer2 hash factors
git bisect good a3e3b2857d35988819bc396c012c53898b8223e6 # 04:46 330+ 222 cxgb4: Export symbols required by cxgb4i for ipv6 support and required defines
git bisect good fc8d0590d9142d01e4ccea3aa57c894bd6e53662 # 04:59 330+ 173 libcxgbi: Add ipv6 api to driver
# first bad commit: [759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6] cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api
git bisect good fc8d0590d9142d01e4ccea3aa57c894bd6e53662 # 05:14 990+ 825 libcxgbi: Add ipv6 api to driver
git bisect bad 9931f57b978a5b5ff5934ece85cf8bf7db5d2f67 # 05:14 0- 11 0day head guard for 'devel-hourly-2014071821'
git bisect good f83971912231fe5390d2357442b6c25bb8076d9b # 05:56 990+ 300 Merge tag 'gfs2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/blob/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-initrd $initrd
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=10
softlockup_panic=1
nmi_watchdog=panic
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 11 months
[sched/numa] a43455a1d57: +94.1% proc-vmstat.numa_hint_faults_local
by Aaron Lu
FYI, we noticed the below changes on
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit a43455a1d572daf7b730fe12eb747d1e17411365 ("sched/numa: Ensure task_numa_migrate() checks the preferred node")
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
94500 ~ 3% +115.6% 203711 ~ 6% ivb42/hackbench/50%-threads-pipe
67745 ~ 4% +64.1% 111174 ~ 5% lkp-snb01/hackbench/50%-threads-socket
162245 ~ 3% +94.1% 314885 ~ 6% TOTAL proc-vmstat.numa_hint_faults_local
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
147474 ~ 3% +70.6% 251650 ~ 5% ivb42/hackbench/50%-threads-pipe
94889 ~ 3% +46.3% 138815 ~ 5% lkp-snb01/hackbench/50%-threads-socket
242364 ~ 3% +61.1% 390465 ~ 5% TOTAL proc-vmstat.numa_pte_updates
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
147104 ~ 3% +69.5% 249306 ~ 5% ivb42/hackbench/50%-threads-pipe
94431 ~ 3% +43.9% 135902 ~ 5% lkp-snb01/hackbench/50%-threads-socket
241535 ~ 3% +59.5% 385209 ~ 5% TOTAL proc-vmstat.numa_hint_faults
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
308 ~ 8% +24.1% 382 ~ 5% lkp-snb01/hackbench/50%-threads-socket
308 ~ 8% +24.1% 382 ~ 5% TOTAL numa-vmstat.node0.nr_page_table_pages
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
1234 ~ 8% +24.0% 1530 ~ 5% lkp-snb01/hackbench/50%-threads-socket
1234 ~ 8% +24.0% 1530 ~ 5% TOTAL numa-meminfo.node0.PageTables
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
381 ~ 6% -17.9% 313 ~ 6% lkp-snb01/hackbench/50%-threads-socket
381 ~ 6% -17.9% 313 ~ 6% TOTAL numa-vmstat.node1.nr_page_table_pages
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
1528 ~ 6% -18.0% 1253 ~ 6% lkp-snb01/hackbench/50%-threads-socket
1528 ~ 6% -18.0% 1253 ~ 6% TOTAL numa-meminfo.node1.PageTables
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
24533 ~ 2% -16.2% 20560 ~ 3% ivb42/hackbench/50%-threads-pipe
13551 ~ 2% -10.7% 12096 ~ 2% lkp-snb01/hackbench/50%-threads-socket
38084 ~ 2% -14.2% 32657 ~ 3% TOTAL proc-vmstat.numa_pages_migrated
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
24533 ~ 2% -16.2% 20560 ~ 3% ivb42/hackbench/50%-threads-pipe
13551 ~ 2% -10.7% 12096 ~ 2% lkp-snb01/hackbench/50%-threads-socket
38084 ~ 2% -14.2% 32657 ~ 3% TOTAL proc-vmstat.pgmigrate_success
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
3538 ~ 7% +11.6% 3949 ~ 7% lkp-snb01/hackbench/50%-threads-socket
3538 ~ 7% +11.6% 3949 ~ 7% TOTAL numa-vmstat.node0.nr_anon_pages
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
14154 ~ 7% +11.6% 15799 ~ 7% lkp-snb01/hackbench/50%-threads-socket
14154 ~ 7% +11.6% 15799 ~ 7% TOTAL numa-meminfo.node0.AnonPages
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
3511 ~ 7% +11.0% 3898 ~ 7% lkp-snb01/hackbench/50%-threads-socket
3511 ~ 7% +11.0% 3898 ~ 7% TOTAL numa-vmstat.node0.nr_active_anon
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
14044 ~ 7% +11.1% 15597 ~ 7% lkp-snb01/hackbench/50%-threads-socket
14044 ~ 7% +11.1% 15597 ~ 7% TOTAL numa-meminfo.node0.Active(anon)
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
187958 ~ 2% +56.6% 294375 ~ 5% ivb42/hackbench/50%-threads-pipe
124490 ~ 2% +35.0% 168004 ~ 4% lkp-snb01/hackbench/50%-threads-socket
312448 ~ 2% +48.0% 462379 ~ 5% TOTAL time.minor_page_faults
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
11.47 ~ 1% -2.8% 11.15 ~ 1% ivb42/hackbench/50%-threads-pipe
11.47 ~ 1% -2.8% 11.15 ~ 1% TOTAL turbostat.RAM_W
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
3.649e+08 ~ 0% -2.4% 3.562e+08 ~ 0% lkp-snb01/hackbench/50%-threads-socket
3.649e+08 ~ 0% -2.4% 3.562e+08 ~ 0% TOTAL time.involuntary_context_switches
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
1924472 ~ 0% -2.6% 1874425 ~ 0% ivb42/hackbench/50%-threads-pipe
1924472 ~ 0% -2.6% 1874425 ~ 0% TOTAL vmstat.system.in
ebe06187bf2aec1 a43455a1d572daf7b730fe12e
--------------- -------------------------
1.38e+09 ~ 0% -1.8% 1.355e+09 ~ 0% lkp-snb01/hackbench/50%-threads-socket
1.38e+09 ~ 0% -1.8% 1.355e+09 ~ 0% TOTAL time.voluntary_context_switches
Legend:
~XX% - stddev percent
[+-]XX% - change percent
[*] bisect-good sample
[O] bisect-bad sample
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Aaron
7 years, 11 months
[x86] BUG: unable to handle kernel paging request at ffff880012770000
by Fengguang Wu
Hi Artem,
FYI, this bisect has noise errors, so I'm not sure if it's a correct bisect.
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 825600c0f20e595daaa7a6dd8970f84fa2a2ee57
Author: Artem Fetishev <artem_fetishev(a)epam.com>
AuthorDate: Fri Mar 28 13:33:39 2014 -0700
Commit: Linus Torvalds <torvalds(a)linux-foundation.org>
CommitDate: Fri Mar 28 13:56:58 2014 -0700
x86: fix boot on uniprocessor systems
On x86 uniprocessor systems topology_physical_package_id() returns -1
which causes rapl_cpu_prepare() to leave rapl_pmu variable uninitialized
which leads to GPF in rapl_pmu_init().
See arch/x86/kernel/cpu/perf_event_intel_rapl.c.
It turns out that physical_package_id and core_id can actually be
retreived for uniprocessor systems too. Enabling them also fixes
rapl_pmu code.
Signed-off-by: Artem Fetishev <artem_fetishev(a)epam.com>
Cc: Stephane Eranian <eranian(a)google.com>
Cc: Ingo Molnar <mingo(a)elte.hu>
Cc: "H. Peter Anvin" <hpa(a)zytor.com>
Cc: Thomas Gleixner <tglx(a)linutronix.de>
Cc: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
Cc: <stable(a)vger.kernel.org>
Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds(a)linux-foundation.org>
===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
+-----------------------------------------------------------+------------+------------+---------------+
| | d9060742fb | 825600c0f2 | next-20140723 |
+-----------------------------------------------------------+------------+------------+---------------+
| boot_successes | 167 | 48 | 9 |
| boot_failures | 97 | 18 | 2 |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference | 97 | 14 | 2 |
| Oops | 97 | 3 | 2 |
| RIP:rapl_pmu_init | 97 | | |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 97 | | |
| backtrace:rapl_pmu_init | 97 | | |
| backtrace:kernel_init_freeable | 97 | 3 | |
| BUG:unable_to_handle_kernel_paging_request | 0 | 17 | 2 |
| BUG:unable_to_handle_kernel_NULL_pointer | 0 | 1 | |
| RIP:slob_page_alloc | 0 | 3 | |
| backtrace:proc_create_data | 0 | 3 | |
| backtrace:init_timer_list_procfs | 0 | 3 | |
| BUG:unable_to_handle | 0 | 1 | |
| BUG:unable_to_handl | 0 | 1 | |
| BUG:unable_to_handle_ker | 0 | 1 | |
| BUG:kernel_boot_hang | 0 | 1 | |
| RIP:memset | 0 | 0 | 2 |
| RIP:__rmqueue | 0 | 0 | 2 |
| backtrace:cryptomgr_test | 0 | 0 | 2 |
| backtrace:do_fork | 0 | 0 | 2 |
+-----------------------------------------------------------+------------+------------+---------------+
[ 1.026545] cryptomgr_test (20) used greatest stack depth: 5632 bytes left
[ 1.030491] AVX version of gcm_enc/dec engaged.
[ 1.033812] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[ 1.038806] BUG: unable to handle kernel paging request at ffff880012770000
[ 1.040058] IP: [<ffffffff8161d18f>] memset+0x1f/0xb0
[ 1.040058] PGD 4170067 PUD 4171067 PMD 13bee067 PTE 8000000012770060
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] BUG: unable to handle kernel paging request at ffff880012776440
[ 1.040058] IP: [<ffffffff810fb846>] match_held_lock+0x16/0x2f0
[ 1.040058] PGD 4170067 PUD 4171067 PMD 13bee067 PTE 8000000012776060
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 0000000000000072
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
[ 1.040058] IP: [<ffffffff820d66f6>] no_context+0x34e/0x3f4
[ 1.040058] PGD 0
[ 1.040058] BUG: unable to handle kernel NULL pointer dereference at 000000000000006a
git bisect start v3.14 v3.13 --
git bisect good 494479038d97f1b9f76fc633a360a681acdf035c # 20:32 66+ 28 Merge tag 'pinctrl-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
git bisect good 751a03c3728ed393287374078b98c3094a0b3bd2 # 20:36 66+ 67 Merge tag 'pm+acpi-3.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect good 18f2af2d68815e1c4d5c275ebd030e27ef627582 # 20:43 66+ 55 Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
git bisect good 708f04d2abf4e90abee61d9ffb1f165038017ecf # 20:46 66+ 58 block: free q->flush_rq in blk_init_allocated_queue error paths
git bisect good 75c5a52da3fc2a06abb6c6192bdf5d680e56d37d # 20:48 66+ 31 vfs: Allocate anon_inode_inode in anon_inode_init()
git bisect bad 0f2776e6151a123552fd06b666fe755fa780a967 # 20:48 0- 18 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
git bisect good 1fac1fa965a9fbdb38d8a4b945db3521f801c946 # 20:57 66+ 26 Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect bad bc53267e97e4942e7f22c31cd8cf87840796accb # 21:01 1- 5 Merge branch 'akpm' (patches from Andrew Morton)
git bisect good 2946369ee277fa9fcc3372aabddc9c15dfabf744 # 21:11 66+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
git bisect bad 825600c0f20e595daaa7a6dd8970f84fa2a2ee57 # 21:30 0- 7 x86: fix boot on uniprocessor systems
git bisect good d9060742fbf630fe31951dfc10b798deb2813f01 # 22:39 66+ 29 ocfs2: check if cluster name exists before deref
# first bad commit: [825600c0f20e595daaa7a6dd8970f84fa2a2ee57] x86: fix boot on uniprocessor systems
git bisect good d9060742fbf630fe31951dfc10b798deb2813f01 # 22:49 198+ 97 ocfs2: check if cluster name exists before deref
git bisect bad 5eb00b037d9bb650b18b8f331bb9fb7a66559b5f # 22:51 0- 2 Add linux-next specific files for 20140723
git bisect bad 82e13c71bc655b6dc7110da4e164079dadb44892 # 23:12 0- 77 Merge branch 'for-3.16' of git://linux-nfs.org/~bfields/linux
git bisect bad 1a58d9909611972fd1c081bb04a9f7dc2571e612 # 23:23 2- 1 Add linux-next specific files for 20140724
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/blob/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-initrd $initrd
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=10
softlockup_panic=1
nmi_watchdog=panic
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 11 months
[cxgb4i] INFO: suspicious RCU usage. ]
by Aaron Lu
FYI, we noticed the below changes on
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6 ("cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api")
[ 7.671997] Key type encrypted registered
[ 7.676647]
[ 7.676874] ===============================
[ 7.677354] [ INFO: suspicious RCU usage. ]
[ 7.677867] 3.16.0-rc6-01233-gac3d2e5 #1272 Not tainted
[ 7.678466] -------------------------------
[ 7.678973] include/linux/rcupdate.h:513 Illegal context switch in RCU read-side critical section!
[ 7.680252]
[ 7.680252] other info that might help us debug this:
[ 7.680252]
[ 7.681194]
[ 7.681194] rcu_scheduler_active = 1, debug_locks = 1
[ 7.682071] 3 locks held by swapper/1:
[ 7.682667] #0: (rtnl_mutex){+.+.+.}, at: [<ffffffff87bb12fc>] rtnl_lock+0x17/0x19
[ 7.683990] #1: (rcu_read_lock){......}, at: [<ffffffff86ca617e>] __atomic_notifier_call_chain+0x5/0x105
[ 7.685606] #2: (rcu_read_lock){......}, at: [<ffffffff8769aa05>] cxgbi_inet6addr_handler+0x5/0x202
[ 7.687150]
[ 7.687150] stack backtrace:
[ 7.687837] CPU: 0 PID: 1 Comm: swapper Not tainted 3.16.0-rc6-01233-gac3d2e5 #1272
[ 7.689016] 0000000000000000 ffff880100d639f8 ffffffff87e25ccc ffff880100d63a28
[ 7.690951] ffffffff86cbc38c ffffffff885d9370 000000000000024a 0000000000000000
[ 7.692164] ffff880100c66000 ffff880100d63a50 ffffffff86cadfd4 ffffffff88ad4d90
[ 7.693375] Call Trace:
[ 7.693795] [<ffffffff87e25ccc>] dump_stack+0x19/0x1b
[ 7.694579] [<ffffffff86cbc38c>] lockdep_rcu_suspicious+0xe9/0xf2
[ 7.695533] [<ffffffff86cadfd4>] __might_sleep+0x58/0x1e9
[ 7.696372] [<ffffffff87e3da83>] mutex_lock_nested+0x3b/0x3d3
[ 7.697265] [<ffffffff86caf1b6>] ? sched_clock_local.constprop.2+0x34/0xa1
[ 7.698323] [<ffffffff87690861>] cxgbi_device_find_by_netdev+0x63/0x102
[ 7.699359] [<ffffffff8769aaa1>] cxgbi_inet6addr_handler+0xa1/0x202
[ 7.700380] [<ffffffff8769aa05>] ? cxgbi_inet6addr_handler+0x5/0x202
[ 7.701384] [<ffffffff86ca60c2>] notifier_call_chain+0xf4/0x126
[ 7.702322] [<ffffffff86ca6215>] __atomic_notifier_call_chain+0x9c/0x105
[ 7.703366] [<ffffffff86ca617e>] ? __atomic_notifier_call_chain+0x5/0x105
[ 7.704241] [<ffffffff86ca6292>] atomic_notifier_call_chain+0x14/0x16
[ 7.705234] [<ffffffff87ce2e9c>] inet6addr_notifier_call_chain+0x1b/0x1d
[ 7.706505] [<ffffffff87c9f6e1>] ipv6_add_addr+0x218/0x544
[ 7.707539] [<ffffffff87c9f52e>] ? ipv6_add_addr+0x65/0x544
[ 7.708484] [<ffffffff87ca4a92>] add_addr+0x31/0x93
[ 7.709420] [<ffffffff87ca61ad>] addrconf_notify+0x65e/0x9b9
[ 7.710559] [<ffffffff87e414e2>] ? _raw_read_unlock+0x27/0x31
[ 7.711523] [<ffffffff86cba29c>] ? __lock_is_held+0x37/0x4f
[ 7.712588] [<ffffffff86ca60c2>] notifier_call_chain+0xf4/0x126
[ 7.713683] [<ffffffff86ca6487>] raw_notifier_call_chain+0x14/0x16
[ 7.714706] [<ffffffff87b9c1a1>] call_netdevice_notifiers_info+0x71/0x7a
[ 7.715987] [<ffffffff87b9f800>] call_netdevice_notifiers+0x13/0x15
[ 7.717071] [<ffffffff87ba39e6>] __dev_notify_flags+0x54/0x82
[ 7.718127] [<ffffffff87ba4039>] dev_change_flags+0x4d/0x58
[ 7.719187] [<ffffffff88d4cd83>] ip_auto_config+0x177/0xdbf
[ 7.720146] [<ffffffff86d4eee6>] ? slob_free+0x2cb/0x2d8
[ 7.721173] [<ffffffff88d4cc00>] ? root_nfs_parse_addr+0xa3/0xaf
[ 7.722309] [<ffffffff88cda08f>] ? do_one_initcall+0x98/0x1d0
[ 7.723252] [<ffffffff88d4cc0c>] ? root_nfs_parse_addr+0xaf/0xaf
[ 7.724522] [<ffffffff88cda1b2>] do_one_initcall+0x1bb/0x1d0
[ 7.725547] [<ffffffff86c9fe00>] ? param_array_set+0x82/0x11e
[ 7.726539] [<ffffffff86ca00a0>] ? parse_args+0x1a5/0x27f
[ 7.727463] [<ffffffff88cda2bf>] kernel_init_freeable+0xf8/0x17d
[ 7.728598] [<ffffffff88cd97fd>] ? initcall_blacklist+0x9f/0x9f
[ 7.729585] [<ffffffff87e0c212>] ? rest_init+0x136/0x136
[ 7.730678] [<ffffffff87e0c220>] kernel_init+0xe/0xda
[ 7.731661] [<ffffffff87e41eba>] ret_from_fork+0x7a/0xb0
[ 7.732532] [<ffffffff87e0c212>] ? rest_init+0x136/0x136
[ 7.734390] IP-Config: Failed to open gretap0
[ 7.735138] IP-Config: No network devices available
[ 7.736057] ALSA device list:
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Aaron
7 years, 11 months
[scheduler] BUG: unable to handle kernel paging request at 000000000000ce50
by Fengguang Wu
Hi Christoph,
FYI, this commit seems to convert some kernel boot hang bug into
different BUG messages.
git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-3.17-consistent-ops
commit 9b0c63851edaf54e909475fe2a0946f57810e98a
Author: Christoph Lameter <cl(a)linux.com>
AuthorDate: Fri Jun 20 14:31:18 2014 -0500
Commit: Tejun Heo <tj(a)kernel.org>
CommitDate: Fri Jul 18 19:21:39 2014 -0400
scheduler: Replace __get_cpu_var with this_cpu_ptr
Convert all uses of __get_cpu_var for address calculation to use
this_cpu_ptr instead.
Cc: Peter Zijlstra <peterz(a)infradead.org>
Acked-by: Ingo Molnar <mingo(a)kernel.org>
Signed-off-by: Christoph Lameter <cl(a)linux.com>
Signed-off-by: Tejun Heo <tj(a)kernel.org>
===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
+-----------------------------------------------------------+------------+------------+------------+
| | 9dfcba84af | 9b0c63851e | e65347f54c |
+-----------------------------------------------------------+------------+------------+------------+
| boot_successes | 1058 | 129 | 38 |
| boot_failures | 302 | 231 | 3 |
| BUG:kernel_boot_hang | 302 | | |
| BUG:unable_to_handle_kernel_paging_request | 0 | 230 | 3 |
| Oops | 0 | 230 | 3 |
| RIP:load_balance | 0 | 230 | 3 |
| backtrace:__alloc_workqueue_key | 0 | 214 | 3 |
| backtrace:usermodehelper_init | 0 | 214 | 3 |
| backtrace:kernel_init_freeable | 0 | 214 | 3 |
| backtrace:schedule | 0 | 16 | |
| backtrace:smpboot_thread_fn | 0 | 2 | |
| kernel_BUG_at_kernel/smpboot.c | 0 | 1 | |
| invalid_opcode | 0 | 1 | |
| RIP:smpboot_thread_fn | 0 | 1 | |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 0 | 1 | |
+-----------------------------------------------------------+------------+------------+------------+
[ 0.260658] Good, all 2 testcases passed! |
[ 0.261298] ---------------------------------
[ 0.261951] smpboot: Total of 2 processors activated (10773.32 BogoMIPS)
[ 0.263759] BUG: unable to handle kernel paging request at 000000000000ce50
[ 0.263759] IP: [<ffffffff8110d4e8>] load_balance+0x48/0xce0
[ 0.263759] PGD 0
[ 0.263759] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
[ 0.263759] Modules linked in:
[ 0.263777] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.16.0-rc5-00154-g9b0c638 #2
[ 0.264811] task: ffff880000188000 ti: ffff88000018c000 task.ti: ffff88000018c000
[ 0.265805] RIP: 0010:[<ffffffff8110d4e8>] [<ffffffff8110d4e8>] load_balance+0x48/0xce0
[ 0.267010] RSP: 0000:ffff88000018fa18 EFLAGS: 00010002
[ 0.267856] RAX: 0000000000000000 RBX: ffff88000020d7a0 RCX: 0000000000000002
[ 0.269009] RDX: ffff88000020d7a0 RSI: ffff8800123d1840 RDI: 0000000000000000
[ 0.270000] RBP: ffff88000018faf8 R08: ffff88000018fb3c R09: 0000000000000001
[ 0.270000] R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000
[ 0.270000] R13: 00000000ffff8b4e R14: 0000000000000000 R15: ffff88000020d7a0
[ 0.270000] FS: 0000000000000000(0000) GS:ffff880012200000(0000) knlGS:0000000000000000
[ 0.270000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.270000] CR2: 000000000000ce50 CR3: 0000000001f2f000 CR4: 00000000000406b0
[ 0.270000] Stack:
[ 0.270000] ffff88000018fb3c 0000000200188710 ffff88000018fa38 0000000000000000
[ 0.270000] ffff88000020d7a0 ffffffff00000000 ffff880000188000 0000000000000000
[ 0.270000] ffff88000018fa90 0000000000000002 0000000000000006 ffff8800123d1840
[ 0.270000] Call Trace:
[ 0.270000] [<ffffffff81048f85>] ? kvm_clock_read+0x35/0x50
[ 0.270000] [<ffffffff81010c80>] ? sched_clock+0x10/0x20
[ 0.270000] [<ffffffff810ff564>] ? sched_clock_local+0x64/0xe0
[ 0.270000] [<ffffffff8110eebe>] pick_next_task_fair+0x50e/0xb30
[ 0.270000] [<ffffffff8110ece0>] ? pick_next_task_fair+0x330/0xb30
[ 0.270000] [<ffffffff81a2f402>] __schedule+0x1e2/0xca0
[ 0.270000] [<ffffffff81a303fc>] schedule+0x1c/0x30
[ 0.270000] [<ffffffff81a2ec4c>] schedule_timeout+0x1fc/0x260
[ 0.270000] [<ffffffff810ff95f>] ? sched_clock_cpu+0x10f/0x140
[ 0.270000] [<ffffffff810ff9c2>] ? local_clock+0x32/0x60
[ 0.270000] [<ffffffff81a37c5a>] ? _raw_spin_unlock_irq+0x4a/0x80
[ 0.270000] [<ffffffff81125a04>] ? trace_hardirqs_on_caller+0x1f4/0x2c0
[ 0.270000] [<ffffffff81a31836>] wait_for_completion_killable+0x116/0x230
[ 0.270000] [<ffffffff810fb080>] ? try_to_wake_up+0x5c0/0x5c0
[ 0.270000] [<ffffffff810d9aa0>] ? process_one_work+0x6d0/0x6d0
[ 0.270000] [<ffffffff810e59de>] kthread_create_on_node+0x13e/0x240
[ 0.270000] [<ffffffff810ff95f>] ? sched_clock_cpu+0x10f/0x140
[ 0.270000] [<ffffffff81a31774>] ? wait_for_completion_killable+0x54/0x230
[ 0.270000] [<ffffffff81125a04>] ? trace_hardirqs_on_caller+0x1f4/0x2c0
[ 0.270000] [<ffffffff810ddec7>] __alloc_workqueue_key+0x717/0x940
[ 0.270000] [<ffffffff8133eb3f>] ? alloc_cpumask_var_node+0x4f/0xa0
[ 0.270000] [<ffffffff8133ebf6>] ? zalloc_cpumask_var_node+0x16/0x20
[ 0.270000] [<ffffffff82541860>] ? sched_init_smp+0x51d/0x533
[ 0.270000] [<ffffffff8253fc2f>] usermodehelper_init+0x38/0x5d
[ 0.270000] [<ffffffff82523911>] kernel_init_freeable+0x249/0x427
[ 0.270000] [<ffffffff81a1fe50>] ? kernel_init+0x10/0x190
[ 0.270000] [<ffffffff81a1fe40>] ? rest_init+0x220/0x220
[ 0.270000] [<ffffffff81a1fe50>] kernel_init+0x10/0x190
[ 0.270000] [<ffffffff81a391fc>] ret_from_fork+0x7c/0xb0
[ 0.270000] [<ffffffff81a1fe40>] ? rest_init+0x220/0x220
[ 0.270000] Code: 48 ff 05 7c dd 57 01 89 bd 58 ff ff ff 48 8b 02 48 89 95 40 ff ff ff 89 8d 2c ff ff ff 4c 89 85 20 ff ff ff 48 89 85 38 ff ff ff <48> 8b 05 61 f9 ef 7e 65 48 03 04 25 18 ca 00 00 4c 8d 6d 80 48
[ 0.270000] RIP [<ffffffff8110d4e8>] load_balance+0x48/0xce0
[ 0.270000] RSP <ffff88000018fa18>
[ 0.270000] CR2: 000000000000ce50
[ 0.270000] ---[ end trace e47ac2652bc5a17c ]---
[ 0.270000] ---[ end trace e47ac2652bc5a17c ]---
git bisect start e65347f54cfc1a17a3b734a0e268433dad019f3f 1795cd9b3a91d4b5473c97f491d63892442212ab --
git bisect bad 5a346c7c81b1e10381e5790134b79b4e6fb4434a # 11:00 0- 72 Merge 'pm/bleeding-edge' into devel-lkp-hsx01-x86_64-201407191600
git bisect bad 8024b4314b39f7d45c621a6492a6b49078f8da5a # 11:00 120- 2 Merge 'percpu/for-3.17-consistent-ops' into devel-lkp-hsx01-x86_64-201407191600
git bisect good deebbfe3e05e145d25b065a792b3f57436ea9e06 # 11:10 360+ 51 0day base guard for 'devel-lkp-hsx01-x86_64-201407191600'
git bisect good d672f939bc81513d28a5bfc570ed2f17d8f5b34a # 11:31 360+ 16 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
git bisect good d14aef3872bd25af5355a10ad5235556ac83fcfd # 11:50 360+ 75 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 6b233d1fb6da79d7bf86e0cb7c03e56ef7c6d39b # 11:53 0- 14 drivers/cpuidle: Replace __get_cpu_var uses for address calculation
git bisect good 22d368544b0ed9093a3db3ee4e00a842540fcecd # 12:15 360+ 69 Merge tag 'trace-fixes-v3.16-rc5-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
git bisect good 9dfcba84af450d8685e3b7af9eea98bf1bea5b1e # 12:22 360+ 157 kernel misc: Replace __get_cpu_var uses
git bisect bad 2c20d34275287784397fdeb995c9686f3208fc5e # 12:24 0- 10 block: Replace __this_cpu_ptr with raw_cpu_ptr
git bisect bad 9b0c63851edaf54e909475fe2a0946f57810e98a # 12:27 1- 71 scheduler: Replace __get_cpu_var with this_cpu_ptr
# first bad commit: [9b0c63851edaf54e909475fe2a0946f57810e98a] scheduler: Replace __get_cpu_var with this_cpu_ptr
git bisect good 9dfcba84af450d8685e3b7af9eea98bf1bea5b1e # 13:48 1000+ 302 kernel misc: Replace __get_cpu_var uses
git bisect bad e65347f54cfc1a17a3b734a0e268433dad019f3f # 13:48 0- 3 0day head guard for 'devel-lkp-hsx01-x86_64-201407191600'
git bisect good f83971912231fe5390d2357442b6c25bb8076d9b # 13:57 1000+ 262 Merge tag 'gfs2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes
git bisect good 58e323c3ee94f1abcecdeeef211a27d1c106c2b3 # 14:10 1000+ 100 Add linux-next specific files for 20140718
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-m 320
-smp 2
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=10
softlockup_panic=1
nmi_watchdog=panic
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 11 months
[x86_64, vsyscall] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/vsyscall
commit 442aba0c6131f0c41dfc5edb6bfb88335556523f
Author: Andy Lutomirski <luto(a)amacapital.net>
AuthorDate: Mon Jun 16 18:50:12 2014 -0700
Commit: Andy Lutomirski <luto(a)amacapital.net>
CommitDate: Mon Jun 30 14:32:44 2014 -0700
x86_64,vsyscall: Make vsyscall emulation configurable
This adds CONFIG_X86_VSYSCALL_EMULATION, guarded by CONFIG_EXPERT.
Turning it off completely disables vsyscall emulation, saving ~3.5k
for vsyscall_64.c, 4k for vsyscall_emu_64.S (the fake vsyscall
page), some tiny amount of core mm code that supports a gate area,
and possibly 4k for a wasted pagetable. The latter is because the
vsyscall addresses are misaligned and fit poorly in the fixmap.
Signed-off-by: Andy Lutomirski <luto(a)amacapital.net>
===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
+-----------------------------------------------------------+------------+------------+------------------+
| | e1656ab2ad | 442aba0c61 | v3.16-rc4_071018 |
+-----------------------------------------------------------+------------+------------+------------------+
| boot_successes | 1160 | 99 | 3 |
| boot_failures | 160 | 231 | 8 |
| BUG:kernel_boot_hang | 160 | 51 | 2 |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 0 | 180 | 6 |
| INFO:suspicious_RCU_usage | 0 | 180 | 6 |
+-----------------------------------------------------------+------------+------------+------------------+
mount: can't read '/proc/mounts': No such file or directory
[ 33.736413] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff2894a8a8 error 15
[ 33.737608] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff28949eb8 error 15
[ 33.739046] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 33.739046]
[ 33.740015] CPU: 0 PID: 1 Comm: init Not tainted 3.16.0-rc3-00010-g442aba0 #4
[ 33.740015] 0000000000000000 ffff880000033cc0 ffffffff81ff485f ffff880000033d38
[ 33.740015] ffffffff81ff1342 ffff880000000010 ffff880000033d48 ffff880000033ce8
[ 33.740015] ffffffff82c440c0 000000000000000b 8c6318c6318c6320 00000007db00a678
[ 33.740015] Call Trace:
[ 33.740015] [<ffffffff81ff485f>] dump_stack+0x19/0x1b
[ 33.740015] [<ffffffff81ff1342>] panic+0xcb/0x1fb
[ 33.740015] [<ffffffff81093b2f>] do_exit+0x3dd/0x80f
[ 33.740015] [<ffffffff810b071d>] ? local_clock+0x14/0x1d
[ 33.740015] [<ffffffff81094002>] do_group_exit+0x75/0xb4
[ 33.740015] [<ffffffff8109c7e7>] get_signal_to_deliver+0x48a/0x4aa
[ 33.740015] [<ffffffff8100231a>] do_signal+0x43/0x5ba
[ 33.740015] [<ffffffff810b4b79>] ? lock_release_holdtime+0x6c/0x77
[ 33.740015] [<ffffffff810b83b5>] ? lock_release_non_nested+0xd0/0x21e
[ 33.740015] [<ffffffff810b0646>] ? sched_clock_cpu+0x4e/0x62
[ 33.740015] [<ffffffff810fd465>] ? might_fault+0x4f/0x9c
[ 33.740015] [<ffffffff810b6163>] ? trace_hardirqs_off_caller+0x36/0xa5
[ 33.740015] [<ffffffff82004298>] ? retint_signal+0x11/0x99
[ 33.740015] [<ffffffff810028b5>] do_notify_resume+0x24/0x53
[ 33.740015] [<ffffffff820042d4>] retint_signal+0x4d/0x99
[ 33.740015] Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffff9fffffff)
[ 33.740015] drm_kms_helper: panic occurred, switching back to text console
[ 33.740015]
[ 33.740015] ===============================
[ 33.740015] [ INFO: suspicious RCU usage. ]
[ 33.740015] 3.16.0-rc3-00010-g442aba0 #4 Not tainted
[ 33.740015] -------------------------------
[ 33.740015] include/linux/rcupdate.h:539 Illegal context switch in RCU read-side critical section!
[ 33.740015]
[ 33.740015] other info that might help us debug this:
[ 33.740015]
[ 33.740015]
[ 33.740015] rcu_scheduler_active = 1, debug_locks = 0
[ 33.740015] 3 locks held by init/1:
[ 33.740015] #0: (panic_lock){....+.}, at: [<ffffffff81ff12ba>] panic+0x43/0x1fb
[ 33.740015] #1: (rcu_read_lock){......}, at: [<ffffffff810ab879>] rcu_lock_acquire+0x0/0x23
[ 33.740015] #2: (&dev->mode_config.mutex){+.+.+.}, at: [<ffffffff814a74d7>] drm_fb_helper_panic+0x5d/0xab
[ 33.740015]
[ 33.740015] stack backtrace:
[ 33.740015] CPU: 0 PID: 1 Comm: init Not tainted 3.16.0-rc3-00010-g442aba0 #4
[ 33.740015] 0000000000000000 ffff8800000339d0 ffffffff81ff485f ffff880000033a00
[ 33.740015] ffffffff810b8824 ffffffff82836248 000000000000024a 0000000000000000
[ 33.740015] ffff88001012e008 ffff880000033a10 ffffffff810adce3 ffff880000033a38
[ 33.740015] Call Trace:
[ 33.740015] [<ffffffff81ff485f>] dump_stack+0x19/0x1b
[ 33.740015] [<ffffffff810b8824>] lockdep_rcu_suspicious+0xf6/0xff
[ 33.740015] [<ffffffff810adce3>] rcu_preempt_sleep_check+0x45/0x47
[ 33.740015] [<ffffffff810afedf>] __might_sleep+0x17/0x19a
[ 33.740015] [<ffffffff8200019e>] mutex_lock_nested+0x2e/0x369
[ 33.740015] [<ffffffff810b8657>] ? lock_release+0x154/0x185
[ 33.740015] [<ffffffff810b61df>] ? trace_hardirqs_off+0xd/0xf
[ 33.740015] [<ffffffff814b4ad3>] _object_find+0x25/0x6c
[ 33.740015] [<ffffffff814b5283>] drm_mode_object_find+0x38/0x53
[ 33.740015] [<ffffffff81593f6e>] cirrus_connector_best_encoder+0x21/0x2f
[ 33.740015] [<ffffffff814a5382>] drm_crtc_helper_set_config+0x38c/0x83c
[ 33.740015] [<ffffffff814b6c44>] drm_mode_set_config_internal+0x53/0xca
[ 33.740015] [<ffffffff814a731f>] restore_fbdev_mode+0x91/0xad
[ 33.740015] [<ffffffff814a74e3>] drm_fb_helper_panic+0x69/0xab
[ 33.740015] [<ffffffff810ab92c>] notifier_call_chain+0x61/0x8b
[ 33.740015] [<ffffffff810aba4f>] __atomic_notifier_call_chain+0x7e/0xe6
[ 33.740015] [<ffffffff810abac6>] atomic_notifier_call_chain+0xf/0x11
[ 33.740015] [<ffffffff81ff1367>] panic+0xf0/0x1fb
[ 33.740015] [<ffffffff81093b2f>] do_exit+0x3dd/0x80f
[ 33.740015] [<ffffffff810b071d>] ? local_clock+0x14/0x1d
[ 33.740015] [<ffffffff81094002>] do_group_exit+0x75/0xb4
[ 33.740015] [<ffffffff8109c7e7>] get_signal_to_deliver+0x48a/0x4aa
[ 33.740015] [<ffffffff8100231a>] do_signal+0x43/0x5ba
[ 33.740015] [<ffffffff810b4b79>] ? lock_release_holdtime+0x6c/0x77
[ 33.740015] [<ffffffff810b83b5>] ? lock_release_non_nested+0xd0/0x21e
[ 33.740015] [<ffffffff810b0646>] ? sched_clock_cpu+0x4e/0x62
[ 33.740015] [<ffffffff810fd465>] ? might_fault+0x4f/0x9c
[ 33.740015] [<ffffffff810b6163>] ? trace_hardirqs_off_caller+0x36/0xa5
[ 33.740015] [<ffffffff82004298>] ? retint_signal+0x11/0x99
[ 33.740015] [<ffffffff810028b5>] do_notify_resume+0x24/0x53
[ 33.740015] [<ffffffff820042d4>] retint_signal+0x4d/0x99
[ 33.740015] Rebooting in 10 seconds..
Elapsed time: 40
qemu-system-x86_64 -cpu kvm64 -enable-kvm -kernel /kernel/x86_64-randconfig-hsxa0-07110255/442aba0c6131f0c41dfc5edb6bfb88335556523f/vmlinuz-3.16.0-rc3-00010-g442aba0 -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-hsxa0-07110255/linux-devel:devel-hourly-2014071018:442aba0c6131f0c41dfc5edb6bfb88335556523f:bisect-linux9/.vmlinuz-442aba0c6131f0c41dfc5edb6bfb88335556523f-20140711073043-10-ivb41 branch=linux-devel/devel-hourly-2014071018 BOOT_IMAGE=/kernel/x86_64-randconfig-hsxa0-07110255/442aba0c6131f0c41dfc5edb6bfb88335556523f/vmlinuz-3.16.0-rc3-00010-g442aba0 drbd.minor_count=8' -initrd /kernel-tests/initrd/yocto-minimal-x86_64.cgz -m 320 -smp 1 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-yocto-ivb41-17 -serial file:/dev/shm/kboot/serial-yocto-ivb41-17 -daemonize -display none -monitor null
git bisect start c80be3ae11770011071103d3e920864c275472a8 cd3de83f147601356395b57a8673e9c5ff1e59d1 --
git bisect bad 6e36d433610a3ebfdef000f1fb283e3f218a8a32 # 20:54 0- 19 Merge 'omap/omap-for-v3.16/fixes' into devel-hourly-2014071018
git bisect bad 14604ab36faba88a89cb2c9611509f5a1c1cac21 # 20:54 0- 222 Merge 'ulf.hansson-mmc/next' into devel-hourly-2014071018
git bisect good 9141a68d71aa193f78aac5306fc728fba8fb59f4 # 21:50 330+ 94 Merge 'm68k/for-linus' into devel-hourly-2014071018
git bisect bad 13987d1746951b727146fef187406b7be00a3fd0 # 22:12 0- 7 Merge 'luto/x86/vsyscall' into devel-hourly-2014071018
git bisect good 7104a2e08de8bddb52d4714fad63d8a7977ea7f2 # 23:19 330+ 22 x86_64: Move getcpu code from vsyscall_64.c to vdso/vma.c
git bisect good e1656ab2adfd1891f62610abe3e85ad992ee0cbf # 23:26 330+ 113 arm64,ia64,ppc,s390,sh,tile,um,x86,mm: Remove default gate area
git bisect bad 465c34985bb9823bb4536eb6751197f2d295ca32 # 23:29 54- 91 x86,vdso: Set VM_MAYREAD for the vvar vma
git bisect bad 442aba0c6131f0c41dfc5edb6bfb88335556523f # 23:31 0- 37 x86_64,vsyscall: Make vsyscall emulation configurable
# first bad commit: [442aba0c6131f0c41dfc5edb6bfb88335556523f] x86_64,vsyscall: Make vsyscall emulation configurable
git bisect good e1656ab2adfd1891f62610abe3e85ad992ee0cbf # 12:09 990+ 160 arm64,ia64,ppc,s390,sh,tile,um,x86,mm: Remove default gate area
git bisect bad c80be3ae11770011071103d3e920864c275472a8 # 12:10 0- 8 0day head guard for 'devel-hourly-2014071018'
git bisect good 85d90faed31ec74fb28a450fbc368d982a785924 # 13:11 990+ 518 Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect good 47cf0ce945c8310228ff2d4bd756e5313f4659c1 # 13:21 990+ 418 Add linux-next specific files for 20140710
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 11 months
[perf/x86/RAPL] BUG: unable to handle kernel NULL pointer dereference at 00000028
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 4788e5b4b2338f85fa42a712a182d8afd65d7c58
Author: Stephane Eranian <eranian(a)google.com>
AuthorDate: Tue Nov 12 17:58:50 2013 +0100
Commit: Ingo Molnar <mingo(a)kernel.org>
CommitDate: Wed Nov 27 11:16:40 2013 +0100
perf/x86: Add Intel RAPL PMU support
This patch adds a new uncore PMU to expose the Intel
RAPL energy consumption counters. Up to 3 counters,
each counting a particular RAPL event are exposed.
The RAPL counters are available on Intel SandyBridge,
IvyBridge, Haswell. The server skus add a 3rd counter.
The following events are available and exposed in sysfs:
- power/energy-cores: power consumption of all cores on socket
- power/energy-pkg: power consumption of all cores + LLc cache
- power/energy-dram: power consumption of DRAM (servers only)
For each event both the unit (Joules) and scale (2^-32 J)
is exposed in sysfs for use by perf stat and other tools.
The files are:
/sys/devices/power/events/energy-*.unit
/sys/devices/power/events/energy-*.scale
The RAPL PMU is uncore by nature and is implemented such
that it only works in system-wide mode. Measuring only
one CPU per socket is sufficient. The /sys/devices/power/cpumask
file can be used by tools to figure out which CPUs to monitor
by default. For instance, on a 2-socket system, 2 CPUs
(one on each socket) will be shown.
All the counters measure in the same unit (exposed via sysfs).
The perf_events API exposes all RAPL counters as 64-bit integers
counting in unit of 1/2^32 Joules (about 0.23 nJ). User level tools
must convert the counts by multiplying them by 2^-32 to obtain
Joules. The reason for this is that the kernel avoids
doing floating point math whenever possible because it is
expensive (user floating-point state must be saved). The method
used avoids kernel floating-point usage. There is no loss of
precision. Thanks to PeterZ for suggesting this approach.
To convert the raw count in Watt:
W = C * 2.3 / (1e10 * time)
or ldexp(C, -32).
RAPL PMU is a new standalone PMU which registers with the
perf_event core subsystem. The PMU type (attr->type) is
dynamically allocated and is available from /sys/device/power/type.
Sampling is not supported by the RAPL PMU. There is no
privilege level filtering either.
Signed-off-by: Stephane Eranian <eranian(a)google.com>
Reviewed-by: Maria Dimakopoulou <maria.n.dimakopoulou(a)gmail.com>
Reviewed-by: Andi Kleen <ak(a)linux.intel.com>
Signed-off-by: Peter Zijlstra <peterz(a)infradead.org>
Cc: acme(a)redhat.com
Cc: jolsa(a)redhat.com
Cc: zheng.z.yan(a)intel.com
Cc: bp(a)alien8.de
Link: http://lkml.kernel.org/r/1384275531-10892-4-git-send-email-eranian@google...
Signed-off-by: Ingo Molnar <mingo(a)kernel.org>
+-----------------------------------------------------------+------------+------------+---------------+
| | 410136f5dd | 4788e5b4b2 | next-20140724 |
+-----------------------------------------------------------+------------+------------+---------------+
| boot_successes | 1000 | 751 | 78 |
| boot_failures | 0 | 149 | 3 |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference | 0 | 132 | 2 |
| Oops | 0 | 132 | 2 |
| EIP_is_at_rapl_pmu_init | 0 | 132 | |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 0 | 132 | 2 |
| backtrace:rapl_pmu_init | 0 | 132 | |
| backtrace:kernel_init_freeable | 0 | 132 | 2 |
| BUG:kernel_boot_hang | 0 | 17 | 1 |
| EIP_is_at_validate_chain | 0 | 0 | 2 |
| backtrace:free_reserved_area | 0 | 0 | 2 |
| backtrace:free_init_pages | 0 | 0 | 2 |
| backtrace:populate_rootfs | 0 | 0 | 2 |
+-----------------------------------------------------------+------------+------------+---------------+
[ 0.613305] PCI: CLS 0 bytes, default 64
[ 0.614699] Unpacking initramfs...
[ 0.732188] Freeing initrd memory: 3276K (d3cbd000 - d3ff0000)
[ 0.733895] BUG: unable to handle kernel NULL pointer dereference at 00000028
[ 0.735603] IP: [<c09b20cb>] rapl_pmu_init+0x11e/0x139
[ 0.736012] *pdpt = 0000000000000000 *pde = f000ff53f000ff53
[ 0.736012] Oops: 0000 [#1] PREEMPT
[ 0.736012] Modules linked in:
[ 0.736012] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.0-05711-g4788e5b #11
[ 0.736012] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.736012] task: d244c020 ti: d244e000 task.ti: d244e000
[ 0.736012] EIP: 0060:[<c09b20cb>] EFLAGS: 00010202 CPU: 0
[ 0.736012] EIP is at rapl_pmu_init+0x11e/0x139
[ 0.736012] EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000001
[ 0.736012] ESI: c09b1fad EDI: 000000cc EBP: d244ff00 ESP: d244fef0
[ 0.736012] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[ 0.736012] CR0: 80050033 CR2: 00000028 CR3: 00a16000 CR4: 000406b0
[ 0.736012] Stack:
[ 0.736012] c04ddabe 00000000 00000002 00000000 d244ff74 c0200477 c0251b16 d244ff2c
[ 0.736012] c025467d d3ff63cb d244ff34 c02410cb d3ff63cb d244ff00 c09aa512 c080d71c
[ 0.736012] 000000cc d244ff74 c02412d5 c0829fe0 00000286 c023b6d8 00000246 00060006
[ 0.736012] Call Trace:
[ 0.736012] [<c04ddabe>] ? register_syscore_ops+0x32/0x35
[ 0.736012] [<c0200477>] do_one_initcall+0xdf/0x138
[ 0.736012] [<c0251b16>] ? lock_release_holdtime.part.20+0x93/0xf8
[ 0.736012] [<c025467d>] ? trace_hardirqs_on_caller+0xeb/0x1ad
[ 0.736012] [<c02410cb>] ? parameq+0x13/0x5e
[ 0.736012] [<c09aa512>] ? repair_env_string+0x12/0x51
[ 0.736012] [<c02412d5>] ? parse_args+0x1bf/0x2f8
[ 0.736012] [<c023b6d8>] ? __usermodehelper_set_disable_depth+0x3e/0x44
[ 0.736012] [<c09aab46>] kernel_init_freeable+0xde/0x178
[ 0.736012] [<c09aa500>] ? do_early_param+0x78/0x78
[ 0.736012] [<c064bd10>] kernel_init+0xb/0xed
[ 0.736012] [<c0249199>] ? schedule_tail+0xc/0x3a
[ 0.736012] [<c0659637>] ret_from_kernel_thread+0x1b/0x28
[ 0.736012] [<c064bd05>] ? rest_init+0xb5/0xb5
[ 0.736012] Code: 99 87 ff 89 5c 24 04 c7 04 24 90 bf 76 c0 e8 dd e9 c9 ff 83 c8 ff eb 28 a1 44 bc a1 c0 f3 0f b8 c0 90 89 44 24 08 a1 80 73 82 c0 <8b> 40 28 89 44 24 04 c7 04 24 d4 bf 76 c0 e8 b2 e9 c9 ff 31 c0
[ 0.736012] EIP: [<c09b20cb>] rapl_pmu_init+0x11e/0x139 SS:ESP 0068:d244fef0
[ 0.736012] CR2: 0000000000000028
[ 0.736012] ---[ end trace 0a81712c9fb36a0a ]---
[ 0.736012] swapper (1) used greatest stack depth: 5800 bytes left
git bisect start v3.14 v3.13 --
git bisect bad 09df7c4c8097ca4a11393b1edd4997d786daad52 # 16:18 0- 3 x86: Remove CONFIG_X86_OOSTORE
git bisect bad 15c81026204da897a05424c79263aea861a782cc # 16:24 2- 5 Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad a0fa1dd3cdbccec9597fe53b6177a9aa6e20f2f8 # 16:33 0- 15 Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good edde1fb8c41d0db7c8ce17fb32886da2e389b0cc # 17:48 900+ 0 Merge tag 'localmodconfig-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig
git bisect good a693c46e14c9fdadbcd68ddfa94a4f72495531a9 # 17:55 900+ 0 Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 2cc3f16cad1561c6fc551aefff559e53726efc8b # 18:12 900+ 0 Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 9326657abe1a83ed4b4f396b923ca1217fd50cba # 18:21 9- 2 Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 7bb73553e2490ac6667387ee723e0faa61e9d999 # 18:38 0- 1 tools lib traceevent: Get rid of die() in reparent_op_arg()
git bisect bad 3d7c0144491bd8c21d53b43032274a85efdfe434 # 18:41 11- 4 perf tools: Add build and install plugins targets
git bisect bad ba1ddf42f3c3af111d3adee277534f73c1ef6a9b # 18:43 0- 15 perf script: Print mmap[2] events also
git bisect bad a8b4c7014cadfdacd4e1f4c963128593be6f20de # 18:49 0- 2 perf completion: Rename file to reflect zsh support
git bisect bad 4788e5b4b2338f85fa42a712a182d8afd65d7c58 # 18:53 0- 1 perf/x86: Add Intel RAPL PMU support
git bisect good c912dae60ae6f659455f239298110adc67a5f3e9 # 19:33 900+ 14 uprobes: Cleanup !CONFIG_UPROBES decls, unexport xol_area
git bisect good 09897d78dbc3a544426f2272b5601c62922ccab9 # 19:44 900+ 0 Merge branch 'uprobes/core' of git://git.kernel.org/pub/scm/linux/kernel/git/oleg/misc into perf/core
git bisect good 410136f5dd96b6013fe6d1011b523b1c247e1ccb # 19:52 900+ 0 tools/perf/stat: Add event unit and scale support
# first bad commit: [4788e5b4b2338f85fa42a712a182d8afd65d7c58] perf/x86: Add Intel RAPL PMU support
git bisect good 410136f5dd96b6013fe6d1011b523b1c247e1ccb # 19:56 1000+ 0 tools/perf/stat: Add event unit and scale support
git bisect bad 1a58d9909611972fd1c081bb04a9f7dc2571e612 # 19:58 0- 3 Add linux-next specific files for 20140724
git bisect bad 82e13c71bc655b6dc7110da4e164079dadb44892 # 20:07 448- 10 Merge branch 'for-3.16' of git://linux-nfs.org/~bfields/linux
git bisect bad 5a7439efd1c5c416f768fc550048ca130cf4bf99 # 20:14 2- 6 Add linux-next specific files for 20140725
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-i386.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/blob/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-initrd $initrd
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=10
softlockup_panic=1
nmi_watchdog=panic
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 11 months
[x86, kaslr] [ 0.000000] general protection fault: 0000 [#1] SMP DEBUG_PAGEALLOC
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
commit d07c7f1ed61789e175fa975134855be32263be2c
Author: Andy Lutomirski <luto(a)amacapital.net>
AuthorDate: Tue Jul 15 18:34:20 2014 -0700
Commit: Andy Lutomirski <luto(a)amacapital.net>
CommitDate: Wed Jul 16 10:01:27 2014 -0700
x86,kaslr: Use MSR_KVM_GET_RNG_SEED for KASLR if available
It's considerably better than any of the alternatives on KVM.
Rather than reinventing all of the cpu feature query code, this fixes
native_cpuid to work in PIC objects.
I haven't combined it with boot/cpuflags.c's cpuid implementation:
including asm/processor.h from boot/cpuflags.c results in a flood of
unrelated errors, and fixing it might be messy.
Signed-off-by: Andy Lutomirski <luto(a)amacapital.net>
+------------------------------------------+------------+------------+
| | c6f07a6360 | d07c7f1ed6 |
+------------------------------------------+------------+------------+
| boot_successes | 705 | 124 |
| boot_failures | 0 | 111 |
| general_protection_fault | 0 | 111 |
| RIP:setup_init_fpu_buf | 0 | 111 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 111 |
| backtrace:setup_init_fpu_buf | 0 | 111 |
| backtrace:xstate_enable_boot_cpu | 0 | 111 |
| backtrace:xsave_init | 0 | 111 |
| backtrace:fpu_init | 0 | 111 |
| backtrace:cpu_init | 0 | 111 |
| backtrace:trap_init | 0 | 111 |
+------------------------------------------+------------+------------+
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-s0-07170233/linux-devel:devel-hourly-2014071701:d07c7f1ed61789e175fa975134855be32263be2c:bisect-linux0/.vmlinuz-d07c7f1ed61789e175fa975134855be32263be2c-20140717182236-14-kbuild branch=linux-devel/devel-hourly-2014071701 BOOT_IMAGE=/kernel/x86_64-randconfig-s0-07170233/d07c7f1ed61789e175fa975134855be32263be2c/vmlinuz-3.16.0-rc5-00004-gd07c7f1 drbd.minor_count=8
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] general protection fault: 0000 [#1] SMP DEBUG_PAGEALLOC
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.16.0-rc5-00004-gd07c7f1 #1
[ 0.000000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.000000] task: ffffffff81c10490 ti: ffffffff81c00000 task.ti: ffffffff81c00000
[ 0.000000] RIP: 0010:[<ffffffff81e9757c>] [<ffffffff81e9757c>] setup_init_fpu_buf+0x104/0x122
[ 0.000000] RSP: 0000:ffffffff81c03e30 EFLAGS: 00010086
[ 0.000000] RAX: 00000000ffffffff RBX: 0000000000000003 RCX: 0000000000000000
[ 0.000000] RDX: 00000000ffffffff RSI: ffffffff81c03e34 RDI: ffff880013ff9000
[ 0.000000] RBP: ffffffff81c03e68 R08: 0000000000000040 R09: ffffffff81c03e38
[ 0.000000] R10: ffffffff81c03e3c R11: 0000000000000040 R12: ffffffff81c03e3c
[ 0.000000] R13: ffffffff81c03e38 R14: ffffffff81c03e34 R15: ffffffff81c03e30
[ 0.000000] FS: 0000000000000000(0000) GS:ffff880011000000(0000) knlGS:0000000000000000
[ 0.000000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.000000] CR2: ffff8800127ff000 CR3: 0000000001c0b000 CR4: 00000000000406a0
[ 0.000000] Stack:
[ 0.000000] 0000000000000000 0000000000000000 ffffffff81c03e80 ffffffff81c03e84
[ 0.000000] ffffffff81c03e7c ffffffff81c03e78 0000000000000000 ffffffff81c03ea8
[ 0.000000] ffffffff81e97711 0000000000000007 0000034000000340 0000000000000008
[ 0.000000] Call Trace:
[ 0.000000] [<ffffffff81e97711>] xstate_enable_boot_cpu+0x177/0x1f6
[ 0.000000] [<ffffffff8100c13e>] xsave_init+0x26/0x28
[ 0.000000] [<ffffffff8100b0c2>] fpu_init+0x96/0x9d
[ 0.000000] [<ffffffff810111e9>] cpu_init+0x2bc/0x2f3
[ 0.000000] [<ffffffff81e93b06>] trap_init+0x543/0x5eb
[ 0.000000] [<ffffffff81e91c2f>] start_kernel+0x1e2/0x3e6
[ 0.000000] [<ffffffff81e917c2>] ? set_init_arg+0x55/0x55
[ 0.000000] [<ffffffff81e91120>] ? early_idt_handlers+0x120/0x120
[ 0.000000] [<ffffffff81e91471>] x86_64_start_reservations+0x2a/0x2c
[ 0.000000] [<ffffffff81e91561>] x86_64_start_kernel+0xee/0xfb
[ 0.000000] Code: cc 48 8b 15 d7 a3 0d 00 48 63 c3 ff c3 89 0c 82 48 8b 15 c0 a3 0d 00 8b 4d c8 89 0c 82 eb bc 83 c8 ff 48 8b 3d 96 a3 0d 00 89 c2 <48> 0f ae 2f 48 8b 3d 89 a3 0d 00 89 c2 48 0f ae 27 58 5a 5b 41
[ 0.000000] RIP [<ffffffff81e9757c>] setup_init_fpu_buf+0x104/0x122
[ 0.000000] RSP <ffffffff81c03e30>
[ 0.000000] ---[ end trace 9ac76427702d2536 ]---
[ 0.000000] Kernel panic - not syncing: Fatal exception
git bisect start 5e60c2af7a8bde5cfaee8ffd77cfc5b62db0a04e 1795cd9b3a91d4b5473c97f491d63892442212ab --
git bisect good bc1f2f93f68bccd988af7e6f73384860ac241b78 # 09:45 135+ 0 Merge 'socfpga-nex/nios2-upstream' into devel-hourly-2014071701
git bisect bad 0d7e1ca40ef16fce5297579121717fc793761b38 # 09:45 0- 8 Merge 'dynticks/nohz/sysidle' into devel-hourly-2014071701
git bisect good 33c13bf2487a42efa1ac9bcce5623ab74a375c93 # 09:48 135+ 0 Merge 'ubifs/linux-next' into devel-hourly-2014071701
git bisect good 1032f73a32951d7f14ed7fdadedb0fef3c6d0f49 # 09:50 135+ 0 Merge 'spi/for-next' into devel-hourly-2014071701
git bisect bad 1f2859f0786338fe4c2a18ea518a5b2a2f1b5491 # 09:51 0- 2 Merge 'shawnguo/for-next' into devel-hourly-2014071701
git bisect good 73c47688a039158a6d395629d3ab32e606e13d1a # 09:53 235+ 0 Merge 'regulator/for-next' into devel-hourly-2014071701
git bisect bad b973fdf5e6e6fe84b51f79919e5dc8574ae859da # 09:53 0- 8 Merge 'luto/sync_rand_seed' into devel-hourly-2014071701
git bisect good 5778e65d5ca52bebbaa023e177d863e44f098e96 # 10:16 235+ 0 random,x86: Add arch_get_slow_rng_u64
git bisect bad d07c7f1ed61789e175fa975134855be32263be2c # 10:23 0- 50 x86,kaslr: Use MSR_KVM_GET_RNG_SEED for KASLR if available
git bisect good c6f07a63601fbb36c09bf250b5538abb47b51e44 # 10:35 235+ 0 random: Seed pools from arch_get_slow_rng_u64 at startup
# first bad commit: [d07c7f1ed61789e175fa975134855be32263be2c] x86,kaslr: Use MSR_KVM_GET_RNG_SEED for KASLR if available
git bisect good c6f07a63601fbb36c09bf250b5538abb47b51e44 # 10:47 705+ 0 random: Seed pools from arch_get_slow_rng_u64 at startup
git bisect bad 5e60c2af7a8bde5cfaee8ffd77cfc5b62db0a04e # 10:47 0- 4 0day head guard for 'devel-hourly-2014071701'
git bisect good b6603fe574af289dbe9eb9fb4c540bca04f5a053 # 12:16 705+ 0 Merge tag 'for-linus-20140716' of git://git.infradead.org/linux-mtd
git bisect good d4f4d1d45cd1b9aa60e61c2eab25a5d9a79a26f3 # 12:42 705+ 0 Add linux-next specific files for 20140716
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-m 320
-smp 2
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=10
softlockup_panic=1
nmi_watchdog=panic
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 11 months
[mm] b72fd1470c9: -41.7% perf-profile.cpu-cycles.get_page_from_freelist.__alloc_pages_nodemask.alloc_pages_current.__page_cache_alloc.pagecache_get_page
by Aaron Lu
FYI, we noticed the below changes on
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit b72fd1470c9735f53485d089aa918dc327a86077 ("mm: rearrange zone fields into read-only, page alloc, statistics and page reclaim lines")
test case: lkp-st02/dd-write/5m-11HDD-JBOD-cfq-xfs-10dd
e28c951ff01a805 b72fd1470c9735f53485d089a
--------------- -------------------------
1.06 ~ 6% -41.7% 0.62 ~ 3% TOTAL perf-profile.cpu-cycles.get_page_from_freelist.__alloc_pages_nodemask.alloc_pages_current.__page_cache_alloc.pagecache_get_page
1.34 ~ 2% -19.8% 1.07 ~ 2% TOTAL perf-profile.cpu-cycles.__block_write_begin.xfs_vm_write_begin.generic_perform_write.xfs_file_buffered_aio_write.xfs_file_write_iter
1.19 ~ 5% -12.1% 1.05 ~ 4% TOTAL perf-profile.cpu-cycles.copy_from_user_atomic_iovec.iov_iter_copy_from_user_atomic.generic_perform_write.xfs_file_buffered_aio_write.xfs_file_write_iter
2.78 ~ 1% -16.3% 2.32 ~ 4% TOTAL perf-profile.cpu-cycles.__clear_user.read_zero.read_zero.vfs_read.sys_read
2.96e+09 ~ 4% -5.2% 2.806e+09 ~ 0% TOTAL perf-stat.cache-misses
3.86e+12 ~ 5% -5.2% 3.658e+12 ~ 1% TOTAL perf-stat.ref-cycles
Legend:
~XX% - stddev percent
[+-]XX% - change percent
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Aaron
7 years, 11 months
[drm/i915] WARNING: CPU: 3 PID: 248 at drivers/gpu/drm/i915/intel_pm.c:6427 check_power_well_state+0x60/0x90 [i915]()
by Aaron Lu
FYI, we noticed the below changes on
git://people.freedesktop.org/~danvet/drm colder-fusion
commit 571484b4d8c2f23feebcd7e0d9259174650b5da0 ("drm/i915: Add chv cmnlane power wells")
+-----------------+------------+------------+
| | ad593b242a | 571484b4d8 |
+-----------------+------------+------------+
| boot_successes | 10 | 10 |
| early-boot-hang | 1 | 1 |
+-----------------+------------+------------+
[ 11.884746] fbcon: inteldrmfb (fb0) is primary device
[ 12.012144] [drm:vlv_set_power_well] *ERROR* timout setting power well state 03000000 (00000000)
[ 12.012146] ------------[ cut here ]------------
[ 12.012179] WARNING: CPU: 3 PID: 248 at drivers/gpu/drm/i915/intel_pm.c:6427 check_power_well_state+0x60/0x90 [i915]()
[ 12.012180] state mismatch for 'dpio-common-d' (always_on 0 hw state 1 use-count 0 disable_power_well 1
[ 12.012189] Modules linked in: ata_generic(+) snd_hda_intel(+) snd_hda_controller i915(+) snd_hda_codec firewire_ohci video firewire_core drm_kms_helper nuvoton_cir crc_itu_t pata_acpi snd_hwdep ahci serio_raw snd_pcm libahci snd_timer parport_pc snd floppy(+) parport pcspkr libata rc_core soundcore i2c_i801 drm
[ 12.012191] CPU: 3 PID: 248 Comm: modprobe Not tainted 3.16.0-rc7-02031-g4efe1515 #1
[ 12.012192] Hardware name: /DQ67SW, BIOS SWQ6710H.86A.0047.2011.0222.1058 02/22/2011
[ 12.012194] 0000000000000009 ffff88007fabb2f8 ffffffff8182e6de ffff88007fabb340
[ 12.012195] ffff88007fabb330 ffffffff8106d0ed ffffffffa0294860 ffffffffa0294860
[ 12.012196] 0000000001000000 ffff88007f0e8568 ffff88007f0e0000 ffff88007fabb390
[ 12.012197] Call Trace:
[ 12.012201] [<ffffffff8182e6de>] dump_stack+0x4d/0x66
[ 12.012204] [<ffffffff8106d0ed>] warn_slowpath_common+0x7d/0xa0
[ 12.012206] [<ffffffff8106d15c>] warn_slowpath_fmt+0x4c/0x50
[ 12.012218] [<ffffffffa01d885d>] ? vlv_power_well_enabled+0x7d/0xa0 [i915]
[ 12.012228] [<ffffffffa01d9160>] check_power_well_state+0x60/0x90 [i915]
[ 12.012241] [<ffffffffa01e05c5>] intel_display_power_put+0xe5/0x160 [i915]
[ 12.012259] [<ffffffffa022a73a>] intel_display_set_init_power+0x2a/0x50 [i915]
[ 12.012273] [<ffffffffa022a852>] modeset_update_crtc_power_domains+0xf2/0x150 [i915]
[ 12.012286] [<ffffffffa022ac1e>] snb_modeset_global_resources+0xe/0x10 [i915]
[ 12.012297] [<ffffffffa022bf48>] __intel_set_mode+0x5d8/0xab0 [i915]
[ 12.012310] [<ffffffffa0233c06>] intel_set_mode+0x16/0x30 [i915]
[ 12.012321] [<ffffffffa0234b4c>] intel_crtc_set_config+0x91c/0xe50 [i915]
[ 12.012333] [<ffffffffa00191b4>] drm_mode_set_config_internal+0x64/0xf0 [drm]
[ 12.012338] [<ffffffffa0108803>] restore_fbdev_mode+0xb3/0xe0 [drm_kms_helper]
[ 12.012341] [<ffffffffa0108853>] drm_fb_helper_restore_fbdev_mode_unlocked+0x23/0x40 [drm_kms_helper]
[ 12.012344] [<ffffffffa010a418>] drm_fb_helper_set_par+0x28/0x70 [drm_kms_helper]
[ 12.012359] [<ffffffffa023e40a>] intel_fbdev_set_par+0x1a/0x60 [i915]
[ 12.012361] [<ffffffff81438994>] fbcon_init+0x4f4/0x580
[ 12.012363] [<ffffffff814afbc8>] visual_init+0xb8/0x120
[ 12.012365] [<ffffffff814b20c3>] do_bind_con_driver+0x163/0x330
[ 12.012367] [<ffffffff814b2844>] do_take_over_console+0x114/0x1c0
[ 12.012368] [<ffffffff814340e3>] do_fbcon_takeover+0x63/0xd0
[ 12.012369] [<ffffffff8143943d>] fbcon_event_notify+0x68d/0x7e0
[ 12.012371] [<ffffffff810951fc>] notifier_call_chain+0x4c/0x70
[ 12.012373] [<ffffffff8109556d>] __blocking_notifier_call_chain+0x4d/0x70
[ 12.012374] [<ffffffff810955a6>] blocking_notifier_call_chain+0x16/0x20
[ 12.012376] [<ffffffff8143f97b>] fb_notifier_call_chain+0x1b/0x20
[ 12.012378] [<ffffffff81441ba6>] register_framebuffer+0x1e6/0x320
[ 12.012381] [<ffffffffa010a75e>] drm_fb_helper_initial_config+0x2fe/0x4b0 [drm_kms_helper]
[ 12.012394] [<ffffffffa02171ca>] ? gen6_write32+0x6a/0x120 [i915]
[ 12.012408] [<ffffffffa023f59f>] intel_fbdev_initial_config+0x1f/0x30 [i915]
[ 12.012424] [<ffffffffa0263c2d>] i915_driver_load+0xfbd/0x1050 [i915]
[ 12.012427] [<ffffffff813df1f8>] ? kobject_uevent_env+0x178/0x690
[ 12.012429] [<ffffffff814e05c7>] ? get_device+0x17/0x30
[ 12.012431] [<ffffffff814e5c55>] ? klist_class_dev_get+0x15/0x20
[ 12.012433] [<ffffffff8181c3ba>] ? klist_add_tail+0x3a/0x40
[ 12.012434] [<ffffffff814e1cf9>] ? device_add+0x1f9/0x610
[ 12.012442] [<ffffffffa0017156>] ? drm_sysfs_device_add+0xd6/0x120 [drm]
[ 12.012448] [<ffffffffa001377d>] drm_dev_register+0xad/0x100 [drm]
[ 12.012455] [<ffffffffa001624f>] drm_get_pci_dev+0x8f/0x1f0 [drm]
[ 12.012467] [<ffffffffa01d359b>] i915_pci_probe+0x3b/0x60 [i915]
[ 12.012469] [<ffffffff81413b05>] local_pci_probe+0x45/0xa0
[ 12.012470] [<ffffffff81414c95>] ? pci_match_device+0xe5/0x110
[ 12.012472] [<ffffffff81414dd1>] pci_device_probe+0xd1/0x130
[ 12.012474] [<ffffffff814e4d90>] driver_probe_device+0x90/0x3c0
[ 12.012475] [<ffffffff814e5193>] __driver_attach+0x93/0xa0
[ 12.012476] [<ffffffff814e5100>] ? __device_attach+0x40/0x40
[ 12.012477] [<ffffffff814e2e13>] bus_for_each_dev+0x63/0xa0
[ 12.012479] [<ffffffff814e482e>] driver_attach+0x1e/0x20
[ 12.012480] [<ffffffff814e4440>] bus_add_driver+0x180/0x250
[ 12.012481] [<ffffffff814e5964>] driver_register+0x64/0xf0
[ 12.012483] [<ffffffff8141349c>] __pci_register_driver+0x4c/0x50
[ 12.012489] [<ffffffffa00164ba>] drm_pci_init+0x10a/0x140 [drm]
[ 12.012490] [<ffffffffa02bb000>] ? 0xffffffffa02bafff
[ 12.012502] [<ffffffffa02bb089>] i915_init+0x89/0x90 [i915]
[ 12.012503] [<ffffffff8100212c>] do_one_initcall+0xbc/0x1f0
[ 12.012505] [<ffffffff811aa7d5>] ? kfree+0x125/0x160
[ 12.012507] [<ffffffff81190a52>] ? __vunmap+0xb2/0x100
[ 12.012510] [<ffffffff810ed15c>] load_module+0x15fc/0x1a30
[ 12.012511] [<ffffffff810e8cf0>] ? store_uevent+0x40/0x40
[ 12.012514] [<ffffffff810ed651>] SyS_init_module+0xc1/0x110
[ 12.012517] [<ffffffff81837569>] system_call_fastpath+0x16/0x1b
[ 12.012517] ---[ end trace e371d25afd03c5d0 ]---
[ 12.065249] ata1: SATA link down (SStatus 0 SControl 300)
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Aaron
7 years, 11 months