From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPS2A-0006La-Rj for qemu-devel@nongnu.org; Fri, 10 Jul 2009 22:09:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPS28-0006IB-23 for qemu-devel@nongnu.org; Fri, 10 Jul 2009 22:09:49 -0400 Received: from [199.232.76.173] (port=35174 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPS27-0006I8-Sn for qemu-devel@nongnu.org; Fri, 10 Jul 2009 22:09:47 -0400 Received: from hall.aurel32.net ([88.191.82.174]:37102) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPS27-0007RZ-E9 for qemu-devel@nongnu.org; Fri, 10 Jul 2009 22:09:47 -0400 Date: Sat, 11 Jul 2009 04:09:23 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] Powerpc regressions? Message-ID: <20090711020923.GA16615@hall.aurel32.net> References: <200907071748.03623.rob@landley.net> <20090710234252.GC23268@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20090710234252.GC23268@hall.aurel32.net> Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley , Gerd Hoffmann , Paul Brook Cc: qemu-devel@nongnu.org On Sat, Jul 11, 2009 at 01:42:52AM +0200, Aurelien Jarno wrote: > On Tue, Jul 07, 2009 at 05:48:02PM -0500, Rob Landley wrote: > > If you grab this tarball: > > > > http://impactlinux.com/fwl/downloads/binaries/system-image/system-image-powerpc.tar.bz2 > > > > Extract it, and ./run-emulator.sh. > > > > This ran fine under svn 6657 (which is git 2d18e637e5ec). The next commit screwed up openbios, but > > reverting openbios worked for a while. > > > > In the last couple months, two problems have cropped up: > > > > 1) -hda sets /dev/hdc instead of /dev/hda (which is the cdrom). > > Wrong. -hda sets the first hard drive, that is on the internal PowerMAC > controller. -hdc sets the first drive of the add-on IDE card that is > used in this emulation to connect the CD-ROM, as the PowerMAC IDE > controller emulation has still some bugs. > > Then the Linux kernel decide to call the cdrom hda and the hard-disk > hdc. You will get exactly the same result if you put an add-on card > on a real PowerMAC machine. If you consider that a bug, you should > report the bug to the Linux kernel. > > > 2) The kernel panics running init: > > This is a bug I don't reproduce with my Debian installation, but that I > am able to reproduce with your image. > > You listed commit 6657 as the culprit, but is it only for both 1) and/or > 2). It would be nice to know the first bad commit for 2). > > If the problem lies in OpenBIOS, then the solution is to bisect on the > OpenBIOS side. > After some more tries, I am able to reproduce a similar problem using my Debian image. The problem has been caused by this commit, which is not directly related to PowerPC. Something is wrong with the irq handling there. 10c4c98ab7dc18169b37b76f6ea5e60ebe65222b is first bad commit commit 10c4c98ab7dc18169b37b76f6ea5e60ebe65222b Author: Gerd Hoffmann Date: Tue Jun 30 14:12:08 2009 +0200 qdev: replace bus_type enum with bus_info struct. BusInfo is filled with name and size (pretty much like I did for DeviceInfo as well). There is also a function pointer to print bus-specific device information to the monitor. sysbus is hooked up there, I've also added a print function for PCI. Device creation is slightly modified as well: The device type search loop now also checks the bus type while scanning the list instead of complaining thereafter in case of a mismatch. This effectively gives each bus a private namespace for device names. Signed-off-by: Gerd Hoffmann Signed-off-by: Paul Brook :040000 040000 10e33f4d7e538e49ef5de43c1a519b374e2f8678 69eaad1e16e461a411a69d4ed2b5d97e7633adff M hw -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net