From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVmLp-00031k-5T for qemu-devel@nongnu.org; Fri, 26 Apr 2013 13:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVmLm-0000KA-Br for qemu-devel@nongnu.org; Fri, 26 Apr 2013 13:22:25 -0400 Date: Fri, 26 Apr 2013 12:06:52 -0500 From: Scott Wood References: <1366957045-21133-1-git-send-email-Bharat.Bhushan@freescale.com> <3D84FDF7-EBD3-4FBC-9E9B-1DE56CD76546@suse.de> <6A3DF150A5B70D4F9B66A25E3F7C888D06FFB0E0@039-SN2MPN1-011.039d.mgd.msft.net> <45844FC3-46B6-4BE5-9E4A-CBCEADBEB4B7@suse.de> In-Reply-To: <45844FC3-46B6-4BE5-9E4A-CBCEADBEB4B7@suse.de> (from agraf@suse.de on Fri Apr 26 01:59:10 2013) Message-ID: <1366996012.26749.1@snotra> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; delsp=Yes; format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] ppc: initialize GPRs as per epapr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Wood Scott-B07421 , Yoder Stuart-B08248 , "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" , Bhushan Bharat-R65777 On 04/26/2013 01:59:10 AM, Alexander Graf wrote: >=20 > On 26.04.2013, at 08:51, Bhushan Bharat-R65777 wrote: >=20 > > > > > >> -----Original Message----- > >> From: Alexander Graf [mailto:agraf@suse.de] > >> Sent: Friday, April 26, 2013 11:51 AM > >> To: Bhushan Bharat-R65777 > >> Cc: qemu-ppc@nongnu.org; qemu-devel@nongnu.org; Wood Scott-B07421; =20 > Bhushan > >> Bharat-R65777; Yoder Stuart-B08248 > >> Subject: Re: [PATCH] ppc: initialize GPRs as per epapr > >> > >> > >> On 26.04.2013, at 08:17, Bharat Bhushan wrote: > >> > >>> ePAPR defines the initial values of cpu registers. This patch > >>> initialize the GPRs as per ePAPR specification. > >>> > >>> This resolves the issue of guest reboot/reset (guest hang on =20 > reboot). > >> > >> Why does it hang only on reboot, not on initial bootup? > > > > may be memory pointed by env pointer are zero initialized initially. > > Reboot also not always hangs. I have seen reboot mostly working on =20 > e500v2/e500mc and mostly hanging on e5500. >=20 > Yes, they're all zero initialized. I'm surprised that got things =20 > working. head_64.S assumes it's being booted from Open Firmware if r5 is =20 non-zero -- this is why ePAPR requires r5 to be zero. -Scott=