Bug 1292

Summary: Kernel panic when boot the qemumips kernel with minimal, sato and sato-sdk images.
Product: [Yocto Project Subprojects] Kernel Reporter: Liang Wang <liangliang.wang>
Component: kernel-toolingAssignee: Bruce Ashfield <bruce.ashfield>
Status: RESOLVED WONTFIX QA Contact:
Severity: critical    
Priority: Undecided CC: jiajun.xu, liang.li2, liangliang.wang, yi.zhao, yp.kernel.watcher, yp.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: mips   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Liang Wang 2011-07-25 19:12:46 UTC
Testing Environment
===============================
Image location: http://autobuilder.yoctoproject.org/nightly/20110723-2/machines/qemu/qemumips/
Tree/Branch: Poky/Master
Poky Commit: eea4bd731ef286516ee1fb934fe2222a09c06e70

Steps
===============================
1. $ source /opt/poky/1.0+snapshot/environment-setup-mips-poky-linux
2. $ runqemu qemumips vmlinux-3.0+git1+9010d1cbef2633dac7e559a7705c326b7601dd4c_1+e86282b3085c5310d1c43af66242845ddadd49b6-r0-qemumips-20110723233415.bin core-image-sato-qemumips-20110723233415.rootfs.ext3 ext3 nographic

Observed Result
===============================
$ runqemu qemumips vmlinux-3.0+git1+9010d1cbef2633dac7e559a7705c326b7601dd4c_1+e86282b3085c5310d1c43af66242845ddadd49b6-r0-qemumips-20110723233415.bin core-image-sato-qemumips-20110723233415.rootfs.ext3 ext3 nographic

Continuing with the following parameters:
KERNEL: [vmlinux-3.0+git1+9010d1cbef2633dac7e559a7705c326b7601dd4c_1+e86282b3085c5310d1c43af66242845ddadd49b6-r0-qemumips-20110723233415.bin]
ROOTFS: [core-image-sato-qemumips-20110723233415.rootfs.ext3]
FSTYPE: [ext3]
Acquiring lockfile for tap0...
WARNING: Stale lock file detected, deleting /tmp/qemu-tap-locks/tap0.lock.
Using preconfigured tap device 'tap0'
WARNING: distccd not present, no distcc support loaded.
Running qemu-system-mips...
/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-mips -kernel vmlinux-3.0+git1+9010d1cbef2633dac7e559a7705c326b7601dd4c_1+e86282b3085c5310d1c43af66242845ddadd49b6-r0-qemumips-20110723233415.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M malta -hda core-image-sato-qemumips-20110723233415.rootfs.ext3 -no-reboot -vga cirrus -show-cursor -usb -usbdevice wacom-tablet -no-reboot -nographic -m 128 --append "root=/dev/hda rw console=ttyS0 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M "
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.0.0-rc7-yocto-standard+ (pokybuild@autobuilder) (gcc version 4.6.1 20110627 (prerelease) (GCC) ) #1 PREEMPT Sat Jul 23 17:00:03 PDT 2011
bootconsole [early0] enabled
CPU revision is: 00019300 (MIPS 24Kc)
FPU revision is: 00000000
Determined physical RAM map:
 memory: 00001000 @ 00000000 (reserved)
 memory: 000ef000 @ 00001000 (ROM data)
 memory: 00690000 @ 000f0000 (reserved)
 memory: 0787f000 @ 00780000 (usable)
User-defined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  DMA      0x00000000 -> 0x00001000
  Normal   0x00001000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: root=/dev/hda rw console=ttyS0 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M 
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Primary instruction cache 2kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 2kB, 2-way, VIPT, no aliases, linesize 16 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
allocated 524288 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 121712k/131072k available (4946k kernel code, 9360k reserved, 1057k data, 308k init, 0k highmem)
SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:256
CPU 0 Unable to handle kernel paging request at virtual address 00000080, epc == 806e2b18, ra == 806e2afc
Oops[#1]:
Cpu 0
$ 0   : 00000000 8019c9d0 80730000 00000000
$ 4   : 1bdc0001 00000002 00000001 00000000
$ 8   : 00000000 007cffff 00000000 87c08460
$12   : 806b1dc4 00000003 00000000 00000001
$16   : 80730000 806b0000 80730000 80730000
$20   : 80730000 00000000 00000000 00000000
$24   : 00000000 00000008                  
$28   : 806b0000 806b1e88 806b1e88 806e2afc
Hi    : 00000000
Lo    : 00000000
epc   : 806e2b18 arch_init_irq+0x44/0x168
    Not tainted
ra    : 806e2afc arch_init_irq+0x28/0x168
Status: 10000002    KERNEL EXL 
Cause : 0080000c
BadVA : 00000080
PrId  : 00019300 (MIPS 24Kc)
Modules linked in:
Process swapper (pid: 0, threadinfo=806b0000, task=806b4d00, tls=00000000)
Stack : 806b1e90 806e9564 806b1ea4 80710c6b 10000000 806b1ea0 00000100 00000100
        806b1eb0 806e3b78 806b1eb8 806b0000 80710c6b 80710000 80730000 806b0000
        80710c6b 80710000 806b1ed8 806de8d8 00000000 8070b5f0 ffffffff 80730000
        806de2b4 00000000 80710c0c 00000000 8070b5f0 00000000 00000000 00000000
        00000000 00000000 00000000 00000000 00000000 805c4770 00000000 00000000
        ...
Call Trace:
[<806e2b18>] arch_init_irq+0x44/0x168
[<806e3b78>] init_IRQ+0x54/0x88
[<806de8d8>] start_kernel+0x274/0x480
[<805c4770>] kernel_entry+0x0/0xa0


Code: 8c63c044  3c041bdc  24840001 <ac640080> 24030001  081b8ad4  ae03c040  8c44c020  2403fffa 
Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Attempted to kill the idle task!
Comment 1 Bruce Ashfield 2011-07-25 19:17:09 UTC
This isn't a defect. The 3.0 kernel is being used incorrectly and qemumips isn't supposed to
work yet. When my patches from today are merged, this goes away.
Comment 2 Bruce Ashfield 2011-07-25 19:17:56 UTC
I'm marking this as won't fix. I don't want to track issues for a feature that isn't complete yet in bugzilla. The qemppc bug is enough to track my preferred version change.