qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [6271] Use ESCC for PowerMac serial


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [6271] Use ESCC for PowerMac serial
Date: Tue, 13 Jan 2009 22:24:10 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Jan 13, 2009 at 10:12:10PM +0200, Blue Swirl wrote:
> On 1/13/09, Aurelien Jarno <address@hidden> wrote:
> > Blue Swirl a écrit :
> >
> > > On 1/13/09, Aurelien Jarno <address@hidden> wrote:
> >  >> On Mon, Jan 12, 2009 at 10:59:11PM +0200, Blue Swirl wrote:
> >  >>  > On 1/12/09, Aurelien Jarno <address@hidden> 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 <address@hidden> 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
 `. `'   address@hidden         | address@hidden
   `-    people.debian.org/~aurel32 | www.aurel32.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]