From: Boris Derzhavets Subject: Re: Cannot load latest 2.6.32.10 kernel on AMD quad-core Date: Fri, 23 Apr 2010 14:31:31 -0700 (PDT) Message-ID: <16456.68059.qm@web56101.mail.re3.yahoo.com> References: <4BD2052D.6070607@verizon.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1977865808==" Return-path: In-Reply-To: <4BD2052D.6070607@verizon.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, Gerry Reno List-Id: xen-devel@lists.xenproject.org --===============1977865808== Content-Type: multipart/alternative; boundary="0-1147511975-1272058291=:68059" --0-1147511975-1272058291=:68059 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Then i would try to disable backend drivers ( block,blktap,network) and rebuild the kernel for test in DomU. Boris. --- On Fri, 4/23/10, Gerry Reno wrote: From: Gerry Reno Subject: Re: [Xen-devel] Cannot load latest 2.6.32.10 kernel on AMD quad-co= re To: xen-devel@lists.xensource.com Date: Friday, April 23, 2010, 4:38 PM Boris Derzhavets wrote: > I skipped first instruction ( before kernel build ): > > # aptitude install build-essential libncurses5-dev dpkg-dev debhelper=20 > fakeroot > > Boris. > > --- On *Fri, 4/23/10, Boris Derzhavets //* wrote: > > >=A0 =A0=A0=A0From: Boris Derzhavets >=A0 =A0=A0=A0Subject: Re: [Xen-devel] Cannot load latest 2.6.32.10 kernel = on >=A0 =A0=A0=A0AMD quad-core >=A0 =A0=A0=A0To: xen-devel@lists.xensource.com, "Gerry Reno" >=A0 =A0=A0=A0Date: Friday, April 23, 2010, 2:27 PM > >=A0 =A0=A0=A0I've just was able to reproduce=A0 Thiago's=A0 instruction on= Lucid RC >=A0 =A0=A0=A0for Xen 4.0 & 2.6.32.10 pvops kernel ( C2D E8400 , ASUS P5Q-E= , 8 >=A0 =A0=A0=A0GB RAM) . ACPI Processor >=A0 =A0=A0=A0has been disabled, what is particular MB issue > >=A0 =A0=A0=A0Quote :- > >=A0 =A0=A0=A01.Clone JF's Git Repo: > >=A0 =A0 =A0 cd /usr/src >=A0 =A0 =A0 git clone >=A0 =A0=A0=A0git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git >=A0 =A0=A0=A0linux-2.6-xen >=A0 =A0 =A0 cd linux-2.6-xen >=A0 =A0 =A0 git checkout -b xen/stable origin/xen/stable > > >=A0 =A0=A0=A02. Configure, compile and install: >=A0 =A0 =A0=20 >=A0 =A0 =A0 make menuconfig # Enabled the dom0 support and the Xen backend= as >=A0 =A0=A0=A0usual on U=A0=A0=A09.10, F12 > >=A0 =A0 =A0 make -j2 >=A0 =A0 =A0 chmod g-s /usr/src -R=A0 =A0=20 >=A0 =A0 =A0 make deb-pkg >=A0 =A0 =A0 dpkg -i ../linux-image*2.6.32.10*.deb >=A0 =A0 =A0 depmod 2.6.32.10 >=A0 =A0 =A0 update-initramfs -c -k 2.6.32.10 >=A0 =A0 =A0 update-grub >=A0 =A0 =A0 echo "xen-evtchn" >> /etc/modules > >=A0 =A0=A0=A03- Download and install the latest Xen: > >=A0 =A0 =A0 Preparing your environment: > >=A0 =A0 =A0 apt-get build-dep xen-3.3 >=A0 =A0 =A0 aptitude install uuid-dev iasl texinfo > >=A0 =A0 =A0 Download and compile: > >=A0 =A0 =A0 cd /usr/src >=A0 =A0 =A0 Uncompress xen-4.0.0.tar.gz >=A0 =A0 =A0 cd xen-4.0.0 >=A0 =A0 =A0 make xen >=A0 =A0 =A0 make tools >=A0 =A0 =A0 make install-xen >=A0 =A0 =A0 make install-tools PYTHON_PREFIX_ARG=3D > >=A0 =A0 =A0 update-rc.d xend defaults 20 21 >=A0 =A0 =A0 update-rc.d xendomains defaults 21 20 > > >=A0 =A0=A0=A04. Add to /boot/grub/grub.cfg > >=A0 =A0=A0=A0# This file provides an easy way to add custom menu entries.= =20 >=A0 =A0=A0=A0Simply type the >=A0 =A0=A0=A0# menu entries you want to add after this comment.=A0 Be care= ful not >=A0 =A0=A0=A0to change >=A0 =A0=A0=A0# the 'exec tail' line above. >=A0 =A0=A0=A0menuentry "Xen 4.0 / Ubuntu 10.4 RC kernel 2.6.32.10 pvops" { >=A0 =A0=A0=A0insmod ext2 >=A0 =A0=A0=A0set root=3D(hd1,4) >=A0 =A0=A0=A0multiboot (hd1,4)/xen.gz dummy=3Ddummy >=A0 =A0=A0=A0module (hd1,4)/vmlinuz-2.6.32.10 dummy=3Ddummy root=3D/dev/sd= b5 ro >=A0 =A0=A0=A0console=3Dtty0 >=A0 =A0=A0=A0module (hd1,4)/initrd.img-2.6.32.10 > >=A0 =A0=A0=A0Quote ends. > > >=A0 =A0=A0=A0--- On *Fri, 4/23/10, Gerry Reno //* wrote= : > > >=A0 =A0 =A0 =A0=A0=A0From: Gerry Reno >=A0 =A0 =A0 =A0=A0=A0Subject: [Xen-devel] Cannot load latest 2.6.32.10 ker= nel on >=A0 =A0 =A0 =A0=A0=A0AMD quad-core >=A0 =A0 =A0 =A0=A0=A0To: xen-devel@lists.xensource.com >=A0 =A0 =A0 =A0=A0=A0Date: Friday, April 23, 2010, 1:50 PM > >=A0 =A0 =A0 =A0=A0=A0I previously had the pv_ops dom0 2.6.31.6 kernel buil= t and >=A0 =A0 =A0 =A0=A0=A0running on my hardware (amd phenom ii x4 quad-core) j= ust fine >=A0 =A0 =A0 =A0=A0=A0under karmic.=A0 But that kernel had issues with >=A0 =A0 =A0 =A0=A0=A0rxchecksumming.=A0 So I upgraded the server to lucid = and am now >=A0 =A0 =A0 =A0=A0=A0trying to compile a new pv_ops dom0 kernel for it. > >=A0 =A0 =A0 =A0=A0=A0Now, yesterday I carefully built the latest >=A0 =A0 =A0 =A0=A0=A02.6.32.10(xen/stable) pv_ops dom0 kernel twice.=A0 On= ce from the >=A0 =A0 =A0 =A0=A0=A0config in the email Lucid pv_ops dom0 howto and once = from the >=A0 =A0 =A0 =A0=A0=A0lucid server config modified by adding all the XEN >=A0 =A0 =A0 =A0=A0=A0configurations.=A0 I get the same result both ways.= =A0 After >=A0 =A0 =A0 =A0=A0=A0building the kernel, I try to start the pv_ops dom0 k= ernel as >=A0 =A0 =A0 =A0=A0=A0domU just to make sure it runs and it crashes right a= t the >=A0 =A0 =A0 =A0=A0=A0start of boot complaining like this: > >=A0 =A0 =A0 =A0=A0=A0__vmallic_node+0xa2/0xb0 >=A0 =A0 =A0 =A0=A0=A0? alloc_large_system_hash+0x15/0x21 >=A0 =A0 =A0 =A0=A0=A0? inet_init+0x0/0x209 >=A0 =A0 =A0 =A0=A0=A0__vmalloc+0x22/0x30 >=A0 =A0 =A0 =A0=A0=A0alloc_large_system_hash+0x15/0x21a >=A0 =A0 =A0 =A0=A0=A0? inet_init+0x0/0x209 >=A0 =A0 =A0 =A0=A0=A0? inet_init+0x0/0x209 >=A0 =A0 =A0 =A0=A0=A0tcp_init+0xa3//0x37e >=A0 =A0 =A0 =A0=A0=A0inet_init+0x14b/0x209 >=A0 =A0 =A0 =A0=A0=A0do_one_initcall+0x3c/0x10a >=A0 =A0 =A0 =A0=A0=A0kernel_init+0x159/0x1af >=A0 =A0 =A0 =A0=A0=A0child_rip+0xa/0x20 >=A0 =A0 =A0 =A0=A0=A0Code: d0 49 8b 04 24 48 85 c0 75 ec eb c5 55 48 89 e5= 48 8.... >=A0 =A0 =A0 =A0=A0=A09 5d e8 4c 89 65 f0 4c 89 6d f8 0f 1f 44 00 00 48 89 = e5 48 8.... >=A0 =A0 =A0 =A0=A0=A0RIP [] __free_pages+0x1f/0x90 >=A0 =A0 =A0 =A0=A0=A0---[ end trace e93713a9d40cd06d ]--- >=A0 =A0 =A0 =A0=A0=A0Kernel panic - not syncing: Attempted to kill init! >=A0 =A0 =A0 =A0=A0=A0Pid: 1, comm: swapper Tainted: G=A0 =A0 =A0 D=A0 W=A0= =A0 2.6.32.10 #4 >=A0 =A0 =A0 =A0=A0=A0panic+0x78/0x136 >=A0 =A0 =A0 =A0=A0=A0? mm_release+0x60/0x130 >=A0 =A0 =A0 =A0=A0=A0do_exit+0x6ca/0x7f0 >=A0 =A0 =A0 =A0=A0=A0oops_end+0xaf/0xf0 >=A0 =A0 =A0 =A0=A0=A0die+0x5b/0x90 >=A0 =A0 =A0 =A0=A0=A0do_general_protection+0x152/0x160 >=A0 =A0 =A0 =A0=A0=A0general_protection+0x25/0x30 >=A0 =A0 =A0 =A0=A0=A0? __free_pages+0x1f/0x90 >=A0 =A0 =A0 =A0=A0=A0__vunmap+0x7a/0x110 >=A0 =A0 =A0 =A0=A0=A0vfree+0x2a/0x30 >=A0 =A0 =A0 =A0=A0=A0__vmalloc_area_node+0x15c/0x190 >=A0 =A0 =A0 =A0=A0=A0? alloc_large_system_hash+0x15a/0x21a >=A0 =A0 =A0 =A0=A0=A0__vmalloc_node+0xa2/0xb0 >=A0 =A0 =A0 =A0=A0=A0? alloc_large_system_hash+0x15a/0x21a >=A0 =A0 =A0 =A0=A0=A0? inet_init+0x0/0x209 >=A0 =A0 =A0 =A0=A0=A0? inet_init+0x0/0x209 >=A0 =A0 =A0 =A0=A0=A0tcp_init+0xa3//0x37e >=A0 =A0 =A0 =A0=A0=A0inet_init+0x14b/0x209 >=A0 =A0 =A0 =A0=A0=A0do_one_initcall+0x3c/0x10a >=A0 =A0 =A0 =A0=A0=A0kernel_init+0x159/0x1af >=A0 =A0 =A0 =A0=A0=A0child_rip+0xa/0x20 >=A0 =A0 =A0 =A0=A0=A0? kernel_init+0x10/0x1af >=A0 =A0 =A0 =A0=A0=A0? child_rip+0x0/0x20 > >=A0 =A0 =A0 =A0=A0=A0I fired up the old 2.6.31.6 kernel with lucid and it = boots >=A0 =A0 =A0 =A0=A0=A0just fine as domU. > >=A0 =A0 =A0 =A0=A0=A0Can anyone shed some light on what may be the problem= here and >=A0 =A0 =A0 =A0=A0=A0how I can build a working 2.6.32.10 pv_ops dom0 kerne= l for >=A0 =A0 =A0 =A0=A0=A0this hardware?=20 > >=A0 =A0 =A0 =A0=A0=A0-Gerry > > > > >=A0 =A0=A0=A0-----Inline Attachment Follows----- > >=A0 =A0=A0=A0_______________________________________________ >=A0 =A0=A0=A0Xen-devel mailing list >=A0 =A0=A0=A0Xen-devel@lists.xensource.com >=A0 =A0=A0=A0 >=A0 =A0=A0=A0http://lists.xensource.com/xen-devel > > Boris, =A0 Those are the exact steps that I used to build the kernel.=A0 At the en= d=20 of step 2, I try to boot the new kernel as domU just to make sure it=20 works and this is where I get the stacktrace.=A0 I did not have this=20 problem building and running 2.6.31.6 as either domU or dom0.=A0 And I=20 think this may be related to this MB using AMD Phenom II Quad-Core. -Gerry _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1147511975-1272058291=:68059 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Then i would try to disable backend drivers (= block,blktap,network)
and rebuild the kernel for test in DomU.

B= oris.

--- On Fri, 4/23/10, Gerry Reno <greno@verizon.net>= ; wrote:

From: Gerry Reno <greno= @verizon.net>
Subject: Re: [Xen-devel] Cannot load latest 2.6.32.10 k= ernel on AMD quad-core
To: xen-devel@lists.xensource.com
Date: Friday= , April 23, 2010, 4:38 PM

Boris Derzhavets = wrote:
> I skipped first instruction ( before kernel build ):
>=
> # aptitude install build-essential libncurses5-dev dpkg-dev debhel= per
> fakeroot
>
> Boris.
>
> --- On *Fri, 4= /23/10, Boris Derzhavets /<bderzhavets@yahoo.com&= gt;/* wrote:
>
>
>     From: Boris De= rzhavets <bderzhavets@yahoo.com>
>  &= nbsp;  Subject: Re: [Xen-devel] Cannot load latest 2.6.32.10 kern= el on
>     AMD quad-core
>   &nb= sp; To: xen-devel@lists.xensource.com= , "Gerry Reno" <greno@verizon.net>
>  &nb= sp;  Date: Friday, April 23, 2010, 2:27 PM
>
>  =    I've just was able to reproduce  Thiago's  inst= ruction on Lucid RC
>     for Xen 4.0 & 2.6.3= 2.10 pvops kernel ( C2D E8400 , ASUS P5Q-E, 8
>     GB RAM)= . ACPI Processor
>     has been disabled, what i= s particular MB issue
>
>     Quote :-
&= gt;
>     1.Clone JF's Git Repo:
>
>&= nbsp;     cd /usr/src
>      git clone
&g= t;     git://git.kernel.org/pub/scm/linux/kernel/git/je= remy/xen.git
>     linux-2.6-xen
>  &n= bsp;   cd linux-2.6-xen
>      git checkout -b xe= n/stable origin/xen/stable
>
>
>     = 2. Configure, compile and install:
>     
>&nbs= p;     make menuconfig # Enabled the dom0 support and the Xen bac= kend as
>     usual on U   9.10, F= 12
>
>      make -j2
>      chmod g-s /usr/src -R   
>      mak= e deb-pkg
>      dpkg -i ../linux-image*2.6.32.10*.deb=
>      depmod 2.6.32.10
>      u= pdate-initramfs -c -k 2.6.32.10
>      update-grub
= >      echo "xen-evtchn" >> /etc/modules
>>     3- Download and install the latest Xen:
&g= t;
>      Preparing your environment:
>
>&= nbsp;     apt-get build-dep xen-3.3
>      a= ptitude install uuid-dev iasl texinfo
>
>      D= ownload and compile:
>
>      cd /usr/src
>= ;      Uncompress xen-4.0.0.tar.gz
>    &nbs= p; cd xen-4.0.0
>      make xen
>    &= nbsp; make tools
>      make install-xen
>      make install-tools PYTHON_PREFIX_A= RG=3D
>
>      update-rc.d xend defaults 20 21>      update-rc.d xendomains defaults 21 20
>>
>     4. Add to /boot/grub/grub.cfg
>=
>     # This file provides an easy way to add cu= stom menu entries.
>     Simply type the
>=      # menu entries you want to add after this comment.=   Be careful not
>     to change
>&nbs= p;    # the 'exec tail' line above.
>   &nbs= p; menuentry "Xen 4.0 / Ubuntu 10.4 RC kernel 2.6.32.10 pvops" {
&g= t;     insmod ext2
>     set = root=3D(hd1,4)
>     multiboot (hd1,4)/xen.gz dum= my=3Ddummy
>     module (hd1,4)/vmlinuz-2.6.32.10 dummy=3Ddummy root=3D/dev/sdb5 ro
>  =    console=3Dtty0
>     module (hd= 1,4)/initrd.img-2.6.32.10
>
>     Quote end= s.
>
>
>     --- On *Fri, 4/23/10, Ge= rry Reno /<greno@verizon.net>/* wrote:
>
>>         From: Gerry Reno <= greno@verizon.net>
>         Sub= ject: [Xen-devel] Cannot load latest 2.6.32.10 kernel on
>  &nbs= p;      AMD quad-core
>       = ;  To: xen-devel@lists.xe= nsource.com
>         Date: Friday,= April 23, 2010, 1:50 PM
>
>        &n= bsp;I previously had the pv_ops dom0 2.6.31.6 kernel built and
> = ;        running on my hardware (amd phenom ii x4 = quad-core) just fine
>         under ka= rmic.  But that kernel had issues with
>      &nb= sp;  rxchecksumming.  So I upgraded the server to lucid and = am now
>         trying to compile a ne= w pv_ops dom0 kernel for it.
>
>       &nbs= p; Now, yesterday I carefully built the latest
>    &n= bsp;    2.6.32.10(xen/stable) pv_ops dom0 kernel twice. = ; Once from the
>         config in the email Lucid pv_ops dom0 howto and once from the
>    &= nbsp;    lucid server config modified by adding all the XEN<= br>>         configurations.  I get t= he same result both ways.  After
>       &nb= sp; building the kernel, I try to start the pv_ops dom0 kernel as
&= gt;         domU just to make sure it runs an= d it crashes right at the
>         sta= rt of boot complaining like this:
>
>       = ;  __vmallic_node+0xa2/0xb0
>       &nb= sp; ? alloc_large_system_hash+0x15/0x21
>      &n= bsp;  ? inet_init+0x0/0x209
>       &nb= sp; __vmalloc+0x22/0x30
>         = alloc_large_system_hash+0x15/0x21a
>         ? inet_init+0x0/0x209
>       =   ? inet_init+0x0/0x209
>        &= nbsp;tcp_init+0xa3//0x37e
>         ine= t_init+0x14b/0x209
>         do_one_ini= tcall+0x3c/0x10a
>         kernel_init+= 0x159/0x1af
>         child_rip+0xa/0x2= 0
>         Code: d0 49 8b 04 24 48 85 = c0 75 ec eb c5 55 48 89 e5 48 8....
>        = ; 9 5d e8 4c 89 65 f0 4c 89 6d f8 0f 1f 44 00 00 48 89 e5 48 8....
= >         RIP [<ffffffff810f4f5f>] _= _free_pages+0x1f/0x90
>         ---[ en= d trace e93713a9d40cd06d ]---
>         = ;Kernel panic - not syncing: Attempted to kill init!
>         Pid: 1, comm: swapper Tainted: G  &nb= sp;   D  W    2.6.32.10 #4
>      =    panic+0x78/0x136
>        =  ? mm_release+0x60/0x130
>         = ;do_exit+0x6ca/0x7f0
>         oops_end= +0xaf/0xf0
>         die+0x5b/0x90
&= gt;         do_general_protection+0x152/0x160=
>         general_protection+0x25/0x30=
>         ? __free_pages+0x1f/0x90
= >         __vunmap+0x7a/0x110
> = ;        vfree+0x2a/0x30
>    &nbs= p;    __vmalloc_area_node+0x15c/0x190
>    &= nbsp;    ? alloc_large_system_hash+0x15a/0x21a
>       &nbs= p; __vmalloc_node+0xa2/0xb0
>        &n= bsp;? alloc_large_system_hash+0x15a/0x21a
>       = ;  ? inet_init+0x0/0x209
>        =  ? inet_init+0x0/0x209
>         t= cp_init+0xa3//0x37e
>         inet_init= +0x14b/0x209
>         do_one_initcall+= 0x3c/0x10a
>         kernel_init+0x159/= 0x1af
>         child_rip+0xa/0x20
&= gt;         ? kernel_init+0x10/0x1af
>&= nbsp;        ? child_rip+0x0/0x20
>
>&= nbsp;        I fired up the old 2.6.31.6 kernel wi= th lucid and it boots
>         just fine as domU.
>
>      &= nbsp;  Can anyone shed some light on what may be the problem here= and
>         how I can build a workin= g 2.6.32.10 pv_ops dom0 kernel for
>        =  this hardware?
>
>         = ;-Gerry
>
>
>
>
>     ---= --Inline Attachment Follows-----
>
>     __= _____________________________________________
>    &nb= sp;Xen-devel mailing list
>     Xen-devel@lists.xensource.com
>    = ; </mc/compose?to=3DXen-devel@lists.xe= nsource.com>
>     http://lists.xensource.com/xen-= devel
>
>

Boris,
  Those are the exact steps= that I used to build the kernel.  At the end
of step 2, I try to = boot the new kernel as domU just to make sure it
works and this is wher= e I get the stacktrace.  I did not have this
problem building and = running 2.6.31.6 as either domU or dom0.  And I
think this may be = related to this MB using AMD Phenom II Quad-Core.

-Gerry


= _______________________________________________
Xen-devel mailing listXen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

=0A=0A --0-1147511975-1272058291=:68059-- --===============1977865808== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1977865808==--