From: Ian Campbell Subject: Re: dom0 pvops boot crash on very ordinary Dell R310 Date: Wed, 27 Oct 2010 10:15:30 +0100 Message-ID: <1288170930.8361.163.camel@zakaz.uk.xensource.com> References: <19654.64100.877881.133331@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19654.64100.877881.133331@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2010-10-26 at 16:57 +0100, Ian Jackson wrote: > > mariner:~> ksymoops -d -K -m t -L -V symbol' > DEBUG (parse): 'K' '(null)' > DEBUG (parse): 'm' 't' > DEBUG (parse): 'L' '(null)' > DEBUG (parse): 'V' '(null)' > DEBUG (convert_uname): /lib/modules/*r/ in > DEBUG (convert_uname): /lib/modules/2.6.26-2-amd64/ out > ksymoops 2.4.11 on x86_64 2.6.26-2-amd64. Options used > -V (specified) > -K (specified) > -L (specified) > -o /lib/modules/2.6.26-2-amd64/ (default) > -m t (specified) Looks like this picked up a host 2.6.26-2-amd64 uname? The call trace still looks plausible so probably this is just bad logging from ksymoops and it did pickup the correct System.map. > >>EIP; c17d500b <===== > [snip] > Trace; c17d50fe This seems (based on the faulting address) to be the "639 * 0x400" case from: /* * FIXME: Linux assumes you have 640K of base ram.. * this continues the error... * * 1) Scan the bottom 1K for a signature * 2) Scan the top 1K of base RAM * 3) Scan the 64K of bios */ if (smp_scan_config(0x0, 0x400, reserve) || smp_scan_config(639 * 0x400, 0x400, reserve) || smp_scan_config(0xF0000, 0x10000, reserve)) return; Where smp_scan_config does: static int __init smp_scan_config(unsigned long base, unsigned long length, unsigned reserve) { unsigned int *bp = phys_to_virt(base); which doesn't seem likely to be valid under Xen on any hardware. This code is dependent on CONFIG_X86_MPPARSE so I guess if you disable it things will work, although of course that shouldn't be necessary. This code path already indirects through "x86_init.mpparse.find_smp_config" but I can't see where Xen overrides that hook, if indeed that would be the correct thing to do. I suspect it is right and that this hook should be a NOP under PV Xen. Ian. > Trace; c1745fb0 > Trace; c17cdd06 > Trace; c1063e9a > Trace; c1745fc0 > Trace; 0218a600 > Trace; 01a68000 > Trace; 01a68000 > Trace; c106439f > Trace; c1745f71 > Trace; c1745f78 > Trace; 205b0000 > Trace; 30202020 > Trace; 3030302e > Trace; 5d303030 > Trace; c1800020 > Trace; c174f350 > Trace; c1745f8c > Trace; c102d295 <__raw_callee_save_xen_restore_fl+9/c> > Trace; c1745fa0 > Trace; c14e5178 <_spin_unlock_irqrestore+43/48> > Trace; c1800670 > Trace; c174f350 > Trace; c1745fb0 > Trace; c1800670 > Trace; c174f350 > Trace; c1745fc8 > Trace; c17c75d9 > Trace; c1659dee > Trace; c14eb010 > Trace; c18019d0 > Trace; c1745fd4 > Trace; c17c70a2 > Trace; c220b490 > Trace; c1745ffc > Trace; c17cae57 > Trace; 1fc9dbf5 > Trace; 80980281 > Trace; c220b000 >