Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-23 Thread Benjamin Herrenschmidt
On Mon, 2006-01-23 at 23:12 +0100, Gerhard Pircher wrote: > > --- Ursprüngliche Nachricht --- > > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > > An: Gerhard Pircher <[EMAIL PROTECTED]> > > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > >

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-23 Thread Gerhard Pircher
Forgot to include the lspci log. So here it comes. Sorry! Gerhard -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner:00:00.0 Host bridge: Mai Logic Incorporated Articia S Host Bridge (rev 01) Control:

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-23 Thread Gerhard Pircher
> --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: Sun, 22 J

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-21 Thread Benjamin Herrenschmidt
On Sat, 2006-01-21 at 02:59 +0100, Gerhard Pircher wrote: > Yes, I see. :( The code mostly allocates the resources for the AGPGART > driver beyond the real memory space, thus preventing the X server to work. > Sometimes the resource is also mapped to where the resource of the graphic > card reside

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-20 Thread Gerhard Pircher
> --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: Sat, 21 J

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-20 Thread Benjamin Herrenschmidt
On Fri, 2006-01-20 at 12:16 +0100, Gerhard Pircher wrote: > > Nope... look at drivers/pci/setup-res.c how it does for allocating new > > resources for PCI devices. > I guess you mean something like this code snipped from the efficeon-agp.c > source code (with pci_assign_resource()): Something aro

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-20 Thread Gerhard Pircher
> --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: F

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-19 Thread Benjamin Herrenschmidt
On Thu, 2006-01-19 at 11:52 +0100, Gerhard Pircher wrote: > > > I set the AGP aperture base register and agp_bridge->gart_bus_addr to > > > 0x0100 (>=16MB) (trial and error :-) and it seems to work with > > > cant_use_aperture=1 > > > > Makes sense, since this value is right in the middle of

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-19 Thread Gerhard Pircher
> > I set the AGP aperture base register and agp_bridge->gart_bus_addr to > > 0x0100 (>=16MB) (trial and error :-) and it seems to work with > > cant_use_aperture=1 > > Makes sense, since this value is right in the middle of your RAM :) What > does the firmware sets the base register too ? I

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-19 Thread Benjamin Herrenschmidt
On Thu, 2006-01-19 at 09:50 +0100, Gerhard Pircher wrote: > > > Hmm, I'm not sure what value agp_bridge->gart_bus_addr should have. The > > > BIOS doesn't setup it and the VIA AGPGART driver even reads it out from > > > the northbridge's registers! Where does the value for > > > agp_bridge->gart_bu

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-19 Thread Gerhard Pircher
> > Hmm, I'm not sure what value agp_bridge->gart_bus_addr should have. The > > BIOS doesn't setup it and the VIA AGPGART driver even reads it out from > > the northbridge's registers! Where does the value for > > agp_bridge->gart_bus_addr come from? For now it is set to 0x0, which > > would requir

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-18 Thread Benjamin Herrenschmidt
On Wed, 2006-01-18 at 20:40 +0100, Gerhard Pircher wrote: > > > That's the problem: we don't have the datasheet for the ArticiaS. :-( > > > But the driver initializes correctly with the Uninorth code now and > > > with the DRI/DRM code changed. (The code in drm_vm.c checks for Apple's > > > PCI ve

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-18 Thread Gerhard Pircher
> > That's the problem: we don't have the datasheet for the ArticiaS. :-( > > But the driver initializes correctly with the Uninorth code now and > > with the DRI/DRM code changed. (The code in drm_vm.c checks for Apple's > > PCI vendor ID. Therefore I just added a check for MAI's PCI vendor ID.)

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-17 Thread Benjamin Herrenschmidt
> That's the problem: we don't have the datasheet for the ArticiaS. :-( > But the driver initializes correctly with the Uninorth code now and with the > DRI/DRM code changed. (The code in drm_vm.c checks for Apple's PCI vendor > ID. Therefore I just added a check for MAI's PCI vendor ID.) But the

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-17 Thread Gerhard Pircher
> --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: T

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-16 Thread Benjamin Herrenschmidt
> Ah, okay. So at least the approach to use the Uninorth code was a step in > the right direction. But that requires changes in the DRI and X server code, > right? Not you shouldn't... there are 2 different things here. One is how you access the GART table itself. One is how you access the AGP me

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-16 Thread Gerhard Pircher
> --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: M

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-15 Thread Benjamin Herrenschmidt
> Actually at least the bridge does everthing right until now (IMHO :-). The > bridge is detected and also the aperture size is read out correctly from the > registers. After that, the agp_backend_initialize() function in > drivers/cahr/agp/backend.c calls the create_gatt_table() function of the >

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-15 Thread Gerhard Pircher
> --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: Mon, 16

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-15 Thread Benjamin Herrenschmidt
> Please take a look at the end of my previous mail, where I included the > debug messages of the driver and the driver code itself. The log shows that > the physical address is mapped (IMHO) to the PCI memory range (> > 0x0c000). Is this correct? Shouldn't it be mapped to the system memory >

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-12 Thread Gerhard Pircher
Hi, > --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: T

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-12 Thread Gerhard Pircher
Hi, > --- Ursprüngliche Nachricht --- > Von: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum: T

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-11 Thread Benjamin Herrenschmidt
On Wed, 2006-01-11 at 22:00 +0100, Gerhard Pircher wrote: > Hi, > > David Bentam and I are trying to get a AGPGART driver working for the > AmigaOne and the Pegasos1. The driver detects the aperture size of the > ArticiaS AGP bridge, but fails at the ioremap() function in the generic GATT > table

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-11 Thread Gerhard Pircher
Hi, > --- Ursprüngliche Nachricht --- > Von: "John W. Linville" <[EMAIL PROTECTED]> > An: Gerhard Pircher <[EMAIL PROTECTED]> > Kopie: [EMAIL PROTECTED], debian-powerpc@lists.debian.org > Betreff: Re: AGPGART driver for ArticiaS - ioremap() problem > Datum:

Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-11 Thread John W. Linville
On Wed, Jan 11, 2006 at 10:00:32PM +0100, Gerhard Pircher wrote: > David Bentam and I are trying to get a AGPGART driver working for the > AmigaOne and the Pegasos1. The driver detects the aperture size of the > ArticiaS AGP bridge, but fails at the ioremap() function in the generic GATT > table c