WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [GIT PULL tip/x86/mm] xen/x86 fixes

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [GIT PULL tip/x86/mm] xen/x86 fixes
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Fri, 11 Mar 2011 17:21:29 -0500
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>
Delivery-date: Fri, 11 Mar 2011 14:24:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1103111201470.2968@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.DEB.2.00.1103111201470.2968@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Fri, Mar 11, 2011 at 01:17:23PM +0000, Stefano Stabellini wrote:
> Hello,
> recently we had a couple of long discussions with Yinghai about boot
> crashes on xen, related to pagetable initialization.
> As a result we came up with three patches, two of them fix the first [1]
> boot crash and provide a nice cleanup on native:

I don't know why this is happening now, but it could be very well
related to the build config. Smaller builds don't seem to encounter this, while
this is a distro type build. If I use:

> Stefano Stabellini (1):
>       xen: set max_pfn_mapped to the last pfn mapped

it hangs during bootup. The machine hangs during the box (no keyboard 
interaction)
and I can see this in the bootup.

Mar 11 16:30:08 phenom kernel: [    9.060569] lp: driver loaded but no devices 
found
Mar 11 16:30:08 phenom kernel: [    9.065769] piix4_smbus 0000:00:14.0: SMBus 
Host Controller at 0xb00, revision 0
Mar 11 16:30:08 phenom kernel: [    9.075831] SP5100 TCO timer: SP5100 TCO 
WatchDog Timer Driver v0.01
Mar 11 16:30:08 phenom kernel: [    9.075984] ------------[ cut here 
]------------
Mar 11 16:30:08 phenom kernel: [    9.075993] WARNING: at 
/home/konrad/ssd/linux/arch/x86/mm/ioremap.c:109 __ioremap_caller+0x3a3/0x3b0()
Mar 11 16:30:08 phenom kernel: [    9.075997] Hardware name: TA890FXE
Mar 11 16:30:08 phenom kernel: [    9.075999] Modules linked in: sp5100_tco(+) 
i2c_piix4 i2c_algo_bit video lp parport usb_storage usbhid hid uas btrfs r8169 
ahci libahci zlib_deflate libcrc32c
Mar 11 16:30:08 phenom kernel: [    9.076024] Pid: 449, comm: modprobe Tainted: 
G        W   2.6.38-rc8-master-00310-gecfaad3 #40
Mar 11 16:30:08 phenom kernel: [    9.076027] Call Trace:
Mar 11 16:30:08 phenom kernel: [    9.076034]  [<ffffffff8106214f>] ? 
warn_slowpath_common+0x7f/0xc0
Mar 11 16:30:08 phenom kernel: [    9.076039]  [<ffffffff81007b4f>] ? 
xen_restore_fl_direct_end+0x0/0x1
Mar 11 16:30:08 phenom kernel: [    9.076045]  [<ffffffff810621aa>] ? 
warn_slowpath_null+0x1a/0x20
Mar 11 16:30:08 phenom kernel: [    9.076049]  [<ffffffff8103e9a3>] ? 
__ioremap_caller+0x3a3/0x3b0
Mar 11 16:30:08 phenom kernel: [    9.076055]  [<ffffffff815c157a>] ? 
error_exit+0x2a/0x60
Mar 11 16:30:08 phenom kernel: [    9.076059]  [<ffffffff815c10a1>] ? 
retint_restore_args+0x5/0x6
Mar 11 16:30:08 phenom kernel: [    9.076064]  [<ffffffffa012257d>] ? 
sp5100_tco_init+0xfc/0xb7f [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076068]  [<ffffffff8103ea77>] ? 
ioremap_nocache+0x17/0x20
Mar 11 16:30:08 phenom kernel: [    9.076072]  [<ffffffffa012257d>] ? 
sp5100_tco_init+0xfc/0xb7f [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076077]  [<ffffffff813b7417>] ? 
platform_drv_probe+0x17/0x20
Mar 11 16:30:08 phenom kernel: [    9.076081]  [<ffffffff813b6116>] ? 
driver_probe_device+0x96/0x1c0
Mar 11 16:30:08 phenom kernel: [    9.076084]  [<ffffffff813b62e0>] ? 
__device_attach+0x0/0x60
Mar 11 16:30:08 phenom kernel: [    9.076087]  [<ffffffff813b6333>] ? 
__device_attach+0x53/0x60
Mar 11 16:30:08 phenom kernel: [    9.076091]  [<ffffffff813b51a8>] ? 
bus_for_each_drv+0x68/0x90
Mar 11 16:30:08 phenom kernel: [    9.076094]  [<ffffffff813b63ff>] ? 
device_attach+0x8f/0xb0
Mar 11 16:30:08 phenom kernel: [    9.076097]  [<ffffffff813b4f7d>] ? 
bus_probe_device+0x2d/0x50
Mar 11 16:30:08 phenom kernel: [    9.076101]  [<ffffffff813b38e9>] ? 
device_add+0x639/0x710
Mar 11 16:30:08 phenom kernel: [    9.076105]  [<ffffffff813b2121>] ? 
dev_set_name+0x41/0x50
Mar 11 16:30:08 phenom kernel: [    9.076109]  [<ffffffff813b7e98>] ? 
platform_device_add+0x138/0x1f0
Mar 11 16:30:08 phenom kernel: [    9.076112]  [<ffffffff813b82ce>] ? 
platform_device_register_resndata+0xae/0xc0
Mar 11 16:30:08 phenom kernel: [    9.076117]  [<ffffffffa0006000>] ? 
sp5100_tco_init_module+0x0/0x1000 [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076121]  [<ffffffffa0006051>] ? 
sp5100_tco_init_module+0x51/0x1000 [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076125]  [<ffffffffa0006000>] ? 
sp5100_tco_init_module+0x0/0x1000 [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076129]  [<ffffffff8100214c>] ? 
do_one_initcall+0x13c/0x190
Mar 11 16:30:08 phenom kernel: [    9.076133]  [<ffffffff8109fd8b>] ? 
sys_init_module+0xfb/0x250
Mar 11 16:30:08 phenom kernel: [    9.076137]  [<ffffffff8100bfc2>] ? 
system_call_fastpath+0x16/0x1b
Mar 11 16:30:08 phenom kernel: [    9.076140] ---[ end trace a7919e7f17c0a727 
]---
Mar 11 16:30:08 phenom kernel: [    9.076310] PGD 1f0827067 PUD 1f0828067 PMD 
1dcdfd067 PTE 0
Mar 11 16:30:08 phenom kernel: [    9.076329] CPU 0 
Mar 11 16:30:08 phenom kernel: [    9.076332] Modules linked in: sp5100_tco(+) 
i2c_piix4 i2c_algo_bit video lp parport usb_storage usbhid hid uas btrfs r8169 
ahci libahci zlib_deflate libcrc32c
Mar 11 16:30:08 phenom kernel: [    9.076359] 
Mar 11 16:30:08 phenom kernel: [    9.076364] Pid: 449, comm: modprobe Tainted: 
G        W   2.6.38-rc8-master-00310-gecfaad3 #40 BIOSTAR Group 
TA890FXE/TA890FXE
Mar 11 16:30:08 phenom kernel: [    9.076380] RIP: e030:[<ffffffffa0122616>]  
[<ffffffffa0122616>] sp5100_tco_init+0x195/0xb7f [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076392] RSP: e02b:ffff8801cfe1dce8  
EFLAGS: 00010202
Mar 11 16:30:08 phenom kernel: [    9.076400] RAX: ffffc90012658e00 RBX: 
0000000000000cd7 RCX: 0000000000b8fe08
Mar 11 16:30:08 phenom kernel: [    9.076407] RDX: 0000000000000cd7 RSI: 
00000000000000a0 RDI: ffff8801dde1c000
Mar 11 16:30:08 phenom kernel: [    9.076411] RBP: ffff8801cfe1dd08 R08: 
ffff8801c8a8c800 R09: ffff880000000000
Mar 11 16:30:08 phenom kernel: [    9.076417] R10: 0000000000000010 R11: 
0000000000000000 R12: 00000000ffffffed
Mar 11 16:30:08 phenom kernel: [    9.076424] R13: ffffffffa0124088 R14: 
0000000000000000 R15: 0000000000000000
Mar 11 16:30:08 phenom kernel: [    9.076436] FS:  00007ff69583f700(0000) 
GS:ffff8800bfed1000(0000) knlGS:0000000000000000
Mar 11 16:30:08 phenom kernel: [    9.076442] CS:  e033 DS: 0000 ES: 0000 CR0: 
000000008005003b
Mar 11 16:30:08 phenom kernel: [    9.076450] CR2: ffffc90012658e00 CR3: 
00000001cfe7c000 CR4: 0000000000000660
Mar 11 16:30:08 phenom kernel: [    9.076458] DR0: 0000000000000000 DR1: 
0000000000000000 DR2: 0000000000000000
Mar 11 16:30:08 phenom kernel: [    9.076465] DR3: 0000000000000000 DR6: 
00000000ffff0ff0 DR7: 0000000000000400
Mar 11 16:30:08 phenom kernel: [    9.076470] Process modprobe (pid: 449, 
threadinfo ffff8801cfe1c000, task ffff8801cca516c0)
Mar 11 16:30:08 phenom kernel: [    9.076483]  ffff8801cfe1dd18 
0000000e813b5fba ffff8801dcef6c10 ffff8801dcef6c10
Mar 11 16:30:08 phenom kernel: [    9.076495]  ffff8801cfe1dd18 
ffffffff813b7417 ffff8801cfe1dd48 ffffffff813b6116
Mar 11 16:30:08 phenom kernel: [    9.076505]  ffff8801cfe1dd68 
ffffffffa0124088 ffff8801dcef6c10 ffffffff813b62e0
Mar 11 16:30:08 phenom kernel: [    9.076525]  [<ffffffff813b7417>] 
platform_drv_probe+0x17/0x20
Mar 11 16:30:08 phenom kernel: [    9.076532]  [<ffffffff813b6116>] 
driver_probe_device+0x96/0x1c0
Mar 11 16:30:08 phenom kernel: [    9.076538]  [<ffffffff813b62e0>] ? 
__device_attach+0x0/0x60
Mar 11 16:30:08 phenom kernel: [    9.076545]  [<ffffffff813b6333>] 
__device_attach+0x53/0x60
Mar 11 16:30:08 phenom kernel: [    9.076550]  [<ffffffff813b51a8>] 
bus_for_each_drv+0x68/0x90
Mar 11 16:30:08 phenom kernel: [    9.076555]  [<ffffffff813b63ff>] 
device_attach+0x8f/0xb0
Mar 11 16:30:08 phenom kernel: [    9.076560]  [<ffffffff813b4f7d>] 
bus_probe_device+0x2d/0x50
Mar 11 16:30:08 phenom kernel: [    9.076566]  [<ffffffff813b38e9>] 
device_add+0x639/0x710
Mar 11 16:30:08 phenom kernel: [    9.076573]  [<ffffffff813b2121>] ? 
dev_set_name+0x41/0x50
Mar 11 16:30:08 phenom kernel: [    9.076578]  [<ffffffff813b7e98>] 
platform_device_add+0x138/0x1f0
Mar 11 16:30:08 phenom kernel: [    9.076584]  [<ffffffff813b82ce>] 
platform_device_register_resndata+0xae/0xc0
Mar 11 16:30:08 phenom kernel: [    9.076590]  [<ffffffffa0006000>] ? 
sp5100_tco_init_module+0x0/0x1000 [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076597]  [<ffffffffa0006051>] 
sp5100_tco_init_module+0x51/0x1000 [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076603]  [<ffffffffa0006000>] ? 
sp5100_tco_init_module+0x0/0x1000 [sp5100_tco]
Mar 11 16:30:08 phenom kernel: [    9.076609]  [<ffffffff8100214c>] 
do_one_initcall+0x13c/0x190
Mar 11 16:30:08 phenom kernel: [    9.076614]  [<ffffffff8109fd8b>] 
sys_init_module+0xfb/0x250
Mar 11 16:30:08 phenom kernel: [    9.076620]  [<ffffffff8100bfc2>] 
system_call_fastpath+0x16/0x1b
Mar 11 16:30:08 phenom kernel: [    9.076722]  RSP <ffff8801cfe1dce8>
Mar 11 16:30:08 phenom kernel: [    9.076730] ---[ end trace a7919e7f17c0a728 
]---
Mar 11 16:30:08 phenom kernel: [    9.129655] [drm] Initialized drm 1.1.0 
20060810
Mar 11 16:30:08 phenom kernel: [    9.163789] EXT4-fs (sdd1): mounted 
filesystem with ordered data mode. Opts: errors=remount-ro
Mar 11 16:30:08 phenom kernel: [    9.169000] MCE: In-kernel MCE decoding 
enabled.
Mar 11 16:30:08 phenom kernel: [    9.180697] udev[419]: renamed network 
interface eth0 to eth2
Mar 11 16:30:08 phenom kernel: [    9.190273] EDAC MC: Ver: 2.1.0 Mar 11 2011

A normal boot has this in /proc/ioports:

  0b00-0b1f : pnp 00:09
    0b00-0b07 : piix4_smbus

(there is no sp5100_tco, even thought it is loaded).

If I back out that patch, the machine boots fine.
> Yinghai Lu (1):
>       x86: Cleanup highmap after brk is concluded

If I use this one above, the machine crashes right away. I tried
a build with just that patch and had the same failure.

Attached is the config I used.

Attachment: .config
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel