From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: 2.6.29-rc8 pv_ops dom0 BUG / unable to handle kernel paging request Date: Sun, 22 Mar 2009 22:40:41 +0200 Message-ID: <20090322204041.GE5528@edu.joroinen.fi> References: <20090311212622.GK15052@edu.joroinen.fi> <49B84BE8.4020103@goop.org> <20090312083242.GM15052@edu.joroinen.fi> <49C3DC02.7010903@goop.org> <20090321201652.GT15052@edu.joroinen.fi> <20090321225031.GU15052@edu.joroinen.fi> <20090321231341.GV15052@edu.joroinen.fi> <49C5BE87.8040303@goop.org> <20090322115151.GW15052@edu.joroinen.fi> <20090322170423.GD5528@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20090322170423.GD5528@edu.joroinen.fi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sun, Mar 22, 2009 at 07:04:23PM +0200, Pasi K=E4rkk=E4inen wrote: > On Sun, Mar 22, 2009 at 01:51:51PM +0200, Pasi K=E4rkk=E4inen wrote: > > On Sat, Mar 21, 2009 at 09:28:55PM -0700, Jeremy Fitzhardinge wrote: > > > Pasi K=E4rkk=E4inen wrote: > > > >On Sun, Mar 22, 2009 at 12:50:31AM +0200, Pasi K=E4rkk=E4inen wrot= e: > > > > =20 > > > >>On Sat, Mar 21, 2009 at 10:16:52PM +0200, Pasi K=E4rkk=E4inen wro= te: > > > >> =20 > > > >>>>Also, do you see this problem before you've started any other d= omains? =20 > > > >>>>Or does it only happen once you've run a domU (or only while a = domU is=20 > > > >>>>running)? > > > >>>> > > > >>>> =20 > > > >>>I'm not running any other domains.. Only dom0 is running. > > > >>> > > > >>>Steps to reproduce this BUG on my pv_ops dom0 testbox: > > > >>> > > > >>>1) Reboot the box to pv_ops dom0 kernel > > > >>>2) Login to dom0 via ssh > > > >>>3) Start kernel compilation on dom0 (make bzImage && make module= s) > > > >>>4) Wait some minutes and pv_ops dom0 kernel BUGs > > > >>> > > > >>>So no other domains has been or is running when this happens.. > > > >>> > > > >>>I'll try disabling CONFIG_HIGHPTE now, and see if that makes any= =20 > > > >>>difference. > > > >>> > > > >>> =20 > > > >>CONFIG_HIGHPTE=3Dy and pv_ops dom0 survives up for maybe 30 mins,= and then > > > >>BUGs (during kernel compilation): > > > >>http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlo= g-22-xen331-linux-2.6.29-rc8-bug-with-highpte.txt > > > >> > > > >> > > > >>CONFIG_HIGHPTE=3Dn and I get BUG during system startup when udev = is started: > > > >>http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlo= g-23-xen331-linux-2.6.29-rc8-bug-no-highpte.txt > > > >> > > > >>Starting udev: BUG: unable to handle kernel paging request at 700= 07823 > > > >>IP: [] pdc_common_ops+0x171/0xfffffcfe [sata_promise] > > > >>*pdpt =3D 000000005f781001=20 > > > >>Oops: 0002 [#1] SMP=20 > > > >> > > > >>So yeah.. with CONFIG_HIGHPTE=3Dn it seems to happen when sata_p= romise is=20 > > > >>loaded.. What should I try next?=20 > > > >> =20 > > > > > > > >Actually it's not only sata_promise. I tried 2 more times with the > > > >CONFIG_HIGHPTE=3Dn pv_ops dom0 kernel: > > > > > > > >http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog= -23-xen331-linux-2.6.29-rc8-bug-no-highpte.txt > > > >http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog= -23-xen331-linux-2.6.29-rc8-bug-no-highpte-2.txt > > > >http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog= -23-xen331-linux-2.6.29-rc8-bug-no-highpte-3.txt > > > > > > > >BUG: unable to handle kernel paging request at a536462c > > > >IP: [] classes+0x688/0xfffffa30 [parport] > > > >*pdpt =3D 000000005f759001=20 > > > >Oops: 0002 [#1] SMP=20 > > > > =20 > > >=20 > > > Hm, OK. Something is clearly drastically amiss. I'll try to repro= . > > >=20 > >=20 > > Actually it seems CONFIG_HIGHPTE=3Dn kernel fails also on baremetal: > > http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-24= -baremetal-2.6.29-rc8-bug-no-highpte.txt > >=20 > > Starting udev: invalid opcode: 0000 [#1] SMP=20 > >=20 > > Summary: > > CONFIG_HIGHPTE=3Dn: both dom0 and baremetal fail during system startu= p when udev is started > > CONFIG_HIGHPTE=3Dy: baremetal works OK, dom0 fails with BUG after aro= und 30 mins of kernel compilation > >=20 >=20 > Please ignore this summary, there was something wrong with my kernel bu= ilds or > something.=20 >=20 > I'll post new summary soon when I'm finished with testing.=20 >=20 Ok, I did new fresh kernel+modules builds and re-tested everything. New summary: CONFIG_HIGHPTE=3Dn: both dom0 and baremetal work OK, both survive kernel = compilation. CONFIG_HIGHPTE=3Dy: baremetal works OK and survives kernel compilation, b= ut dom0 fails with BUG after around 20-30 mins of kernel compilation latest BUG with CONFIG_HIGHPTE=3Dy with dom0 kernel: http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-25-xen= 331-linux-2.6.29-rc8-bug-with-highpte.txt (XEN) mm.c:2006:d0 Bad type (saw 28000001 !=3D exp e0000000) for mfn 57f2= f (pfn 2892f) (XEN) mm.c:707:d0 Error getting mfn 57f2f (pfn 2892f) from L1 entry 00000= 00057f2f063 for dom0 (XEN) mm.c:3640:d0 ptwr_emulate: could not get_page_from_l1e() BUG: unable to handle kernel paging request at c020bc80 IP: [] xen_set_pte+0x8c/0x96 *pdpt =3D 000000003c984001=20 Oops: 0003 [#1] SMP=20 I tested all combinations multiple times now, and the results were consis= tent.=20 Another BUG with dom0 with CONFIG_HIGHPTE=3Dy: http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-25-xen= 331-linux-2.6.29-rc8-bug-with-highpte-2.txt (XEN) mm.c:2006:d0 Bad type (saw 28000001 !=3D exp e0000000) for mfn 4c1e= 1 (pfn 347e1) (XEN) mm.c:707:d0 Error getting mfn 4c1e1 (pfn 347e1) from L1 entry 00000= 0004c1e1063 for dom0 (XEN) mm.c:3640:d0 ptwr_emulate: could not get_page_from_l1e() BUG: unable to handle kernel paging request at c020bc80 IP: [] xen_set_pte+0x8c/0x96 *pdpt =3D 000000003c984001=20 Oops: 0003 [#1] SMP=20 -- Pasi