Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMqkD-0000h5-MW for qemu-devel@nongnu.org; Tue, 13 Jan 2009 16:24:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMqkC-0000fZ-Km for qemu-devel@nongnu.org; Tue, 13 Jan 2009 16:24:16 -0500 Received: from [199.232.76.173] (port=47234 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMqkC-0000fQ-10 for qemu-devel@nongnu.org; Tue, 13 Jan 2009 16:24:16 -0500 Received: from hall.aurel32.net ([88.191.82.174]:44711) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMqkB-0000w0-Hh for qemu-devel@nongnu.org; Tue, 13 Jan 2009 16:24:15 -0500 Date: Tue, 13 Jan 2009 22:24:10 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [6271] Use ESCC for PowerMac serial Message-ID: <20090113212410.GM31798@hall.aurel32.net> References: <20090112201836.GF29483@hall.aurel32.net> <20090112204049.GG29483@hall.aurel32.net> <20090112205042.GA23876@volta.aurel32.net> <20090113170333.GA8697@volta.aurel32.net> <496CCF54.4040109@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Aurelien Jarno Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On Tue, Jan 13, 2009 at 10:12:10PM +0200, Blue Swirl wrote: > On 1/13/09, Aurelien Jarno wrote: > > Blue Swirl a écrit : > > > > > On 1/13/09, Aurelien Jarno wrote: > > >> On Mon, Jan 12, 2009 at 10:59:11PM +0200, Blue Swirl wrote: > > >> > On 1/12/09, Aurelien Jarno wrote: > > >> > > On Mon, Jan 12, 2009 at 09:40:49PM +0100, Aurelien Jarno wrote: > > >> > > > On Mon, Jan 12, 2009 at 10:32:43PM +0200, Blue Swirl wrote: > > >> > > > > On 1/12/09, Aurelien Jarno wrote: > > >> > > > > > On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote: > > >> > > > > > > >> > > > > >> > > > > Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 > > >> > > > > (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like > > >> > > > > before. > > >> > > > > > >> > > > I have the same problem with a CDROM, an hard disk, -kernel. > > >> > > > > > >> > > > > What kind of setup do you have? At least OpenBIOS config is not > > >> > > > > standard, you have enabled PCI debugging. > > >> > > > > > >> > > > I have built OpenBIOS by hand, native build. This is the unmodified SVN. > > >> > > > > > >> > > > > >> > > > > >> > > The PCI debugging is enabled by default on the native build, and disable > > >> > > on the cross-build. Disabling the PCI code fixes (or workarounds?) the > > >> > > problem. > > >> > > > >> > It looks like the address of the boot serial is bad, if I change it to > > >> > 0x7f013000, PCI debug output works. Maybe something maps over the > > >> > address at some point. > > >> > > >> > > >> 0x80013000 is in the middle of the PCI space, so you are hitting another > > >> device, probably the VGA card. 0x7f013000 is unused but we have to limit > > >> the memory to 2032MiB > > > > > > How about some higher address then, like 0xef013000? > > > > > > > > > The PCI space uses 80000000-fdffffff. The ISA IO space uses > > fe000000-fe0200000. OpenBios uses 0xfff00000-0xffffffff. This leaves > > very few possibilities. > > > > Alternatively we can map the whole MacIO device at a fixed location > > which also makes the location of the serial ports fixed. The G3 beige > > uses f3000000-f307ffff for the MacIO device. > > I just wonder what this means for PCI mapping, will MacIO appear twice > (like ESCC now)? What I mean is to make QEMU assign the address f3000000 to the MacIO device like on the real machine. Then OpenBIOS should not modify this memory assignation while looping on the PCI devices. This way, the address of the serial port will be known (0xf3013020) and we can map the address of the serial port only once. This may be difficult technically though. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net