linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: AGP : ATI128,powerpc
       [not found] <20011114230308.04E9D18077@haven.ozlabs.ibm.com>
@ 2001-11-14 18:11 ` Paul Mackerras
  2001-11-15  9:20   ` Jörn Nettingsmeier
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Mackerras @ 2001-11-14 18:11 UTC (permalink / raw)
  To: Jrn Nettingsmeier
  Cc: Kevin B. Hendricks, Vincent Katz, jhartmann, linuxppc-dev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 789 bytes --]


J”rn Nettingsmeier writes:

> i've been using ben's tree for a powerbook for quite some time, and
> i used to see the same error, so i disabled agp and dri.
>
> has this been fixed lately ?
> i'm desperate for faster video. 2d performance under x is pathetic,
> and scrolling is a major pita.

Getting reasonable 2D performance for things like scrolling doesn't
need DRI and/or AGP, you just need an X server that knows how to drive
the rage 128 chip.  I'm using XFree86 4.1.0 (from debian unstable) on
my Ti powerbook and it works just fine.  I can send you my
XF86Config-4 if you like (you would need to tweak it a little for a
pismo) or you could ask Ben Herrenschmidt for the config he uses on
his pismo.

Paul.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* AGP : ATI128,powerpc
@ 2001-11-14 20:52 Vincent Katz
  2001-11-14 21:09 ` Kevin B. Hendricks
  2001-11-14 21:26 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 10+ messages in thread
From: Vincent Katz @ 2001-11-14 20:52 UTC (permalink / raw)
  To: jhartmann; +Cc: paulus, linuxppc-dev, paulus


Hi,

Linux version : 2.4.14
File with a supposed probleme : linux/drivers/char/agp/agpgart_be.c

I have a powerpc with an ati128 AGP.

When i compile the kernel i have this error : error "Please define
flush_cache."

this error come from the function flush_cache in agpgart_be.c where
definition for powerpc are not setting . Why ?



> static inline void flush_cache(void)
>{
>#if defined(__i386__) || defined(__x86_64__)
>        asm volatile ("wbinvd":::"memory");
>#elif defined(__alpha__) || defined(__ia64__) || defined(__sparc__)
>        /* ??? I wonder if we'll really need to flush caches, or if the
>           core logic can manage to keep the system coherent.  The ARM
>           speaks only of using `cflush' to get things in memory in
>           preparation for power failure.
>
>           If we do need to call `cflush', we'll need a target page,
>           as we can only flush one page at a time.
>
>           Ditto for IA-64. --davidm 00/08/07 */
>        mb();
>#else
>#error "Please define flush_cache."
>#endif
>}


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-14 20:52 AGP : ATI128,powerpc Vincent Katz
@ 2001-11-14 21:09 ` Kevin B. Hendricks
  2001-11-14 21:23   ` Jörn Nettingsmeier
  2001-11-14 21:26 ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 10+ messages in thread
From: Kevin B. Hendricks @ 2001-11-14 21:09 UTC (permalink / raw)
  To: Vincent Katz, jhartmann; +Cc: paulus, linuxppc-dev, paulus


Hi,

Try Ben Herrenschmidt's tree.  There is support for powerpc in that tree.

Kevin

On November 14, 2001 03:52, Vincent Katz wrote:
> Hi,
>
> Linux version : 2.4.14
> File with a supposed probleme : linux/drivers/char/agp/agpgart_be.c
>
> I have a powerpc with an ati128 AGP.
>
> When i compile the kernel i have this error : error "Please define
> flush_cache."
>
> this error come from the function flush_cache in agpgart_be.c where
> definition for powerpc are not setting . Why ?
>
> > static inline void flush_cache(void)
> >{
> >#if defined(__i386__) || defined(__x86_64__)
> >        asm volatile ("wbinvd":::"memory");
> >#elif defined(__alpha__) || defined(__ia64__) || defined(__sparc__)
> >        /* ??? I wonder if we'll really need to flush caches, or if the
> >           core logic can manage to keep the system coherent.  The ARM
> >           speaks only of using `cflush' to get things in memory in
> >           preparation for power failure.
> >
> >           If we do need to call `cflush', we'll need a target page,
> >           as we can only flush one page at a time.
> >
> >           Ditto for IA-64. --davidm 00/08/07 */
> >        mb();
> >#else
> >#error "Please define flush_cache."
> >#endif
> >}
>

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-14 21:09 ` Kevin B. Hendricks
@ 2001-11-14 21:23   ` Jörn Nettingsmeier
  2001-11-14 21:38     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 10+ messages in thread
From: Jörn Nettingsmeier @ 2001-11-14 21:23 UTC (permalink / raw)
  To: Kevin B. Hendricks; +Cc: Vincent Katz, jhartmann, paulus, linuxppc-dev, paulus


"Kevin B. Hendricks" wrote:
>
> Hi,
>
> Try Ben Herrenschmidt's tree.  There is support for powerpc in that tree.
>
> Kevin
>

i've been using ben's tree for a powerbook for quite some time, and
i used to see the same error, so i disabled agp and dri.

has this been fixed lately ?
i'm desperate for faster video. 2d performance under x is pathetic,
and scrolling is a major pita.

does anyone know how to speed up a pismo powerbook x server ?

regards,

jörn


--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://spunk.dnsalias.org
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-14 20:52 AGP : ATI128,powerpc Vincent Katz
  2001-11-14 21:09 ` Kevin B. Hendricks
@ 2001-11-14 21:26 ` Benjamin Herrenschmidt
  2001-11-15 14:12   ` Vincent Katz
  1 sibling, 1 reply; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2001-11-14 21:26 UTC (permalink / raw)
  To: Vincent Katz; +Cc: jhartmann, paulus, linuxppc-dev


>Linux version : 2.4.14
>File with a supposed probleme : linux/drivers/char/agp/agpgart_be.c
>
>I have a powerpc with an ati128 AGP.
>
>When i compile the kernel i have this error : error "Please define
>flush_cache."
>
>this error come from the function flush_cache in agpgart_be.c where
>definition for powerpc are not setting . Why ?

What PPC machine is this ? I added support for Apple's UniNorth
chipset in my kernel (patch submited to dri-devel a few days ago)
along with the necessary r128 DRM changes to work around HW bugs.

(My rsync tree is at rsync.penguinppc.org::linux-2.4-benh).

If you are using a different chipset, then my code may not help

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-14 21:23   ` Jörn Nettingsmeier
@ 2001-11-14 21:38     ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2001-11-14 21:38 UTC (permalink / raw)
  To: Jörn Nettingsmeier; +Cc: linuxppc-dev


>i've been using ben's tree for a powerbook for quite some time, and
>i used to see the same error, so i disabled agp and dri.
>
>has this been fixed lately ?

Yes.

>i'm desperate for faster video. 2d performance under x is pathetic,
>and scrolling is a major pita.
>
>does anyone know how to speed up a pismo powerbook x server ?

XFree 4.1 should work fine. AGP won't help 2D accel, make sure
you use the "ati" driver and not "fbdev".

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-14 18:11 ` Paul Mackerras
@ 2001-11-15  9:20   ` Jörn Nettingsmeier
  0 siblings, 0 replies; 10+ messages in thread
From: Jörn Nettingsmeier @ 2001-11-15  9:20 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev


Paul Mackerras wrote:
>
> J?rn Nettingsmeier writes:
>
> > i've been using ben's tree for a powerbook for quite some time, and
> > i used to see the same error, so i disabled agp and dri.
> >
> > has this been fixed lately ?
> > i'm desperate for faster video. 2d performance under x is pathetic,
> > and scrolling is a major pita.
>
> Getting reasonable 2D performance for things like scrolling doesn't
> need DRI and/or AGP, you just need an X server that knows how to drive
> the rage 128 chip.  I'm using XFree86 4.1.0 (from debian unstable) on
> my Ti powerbook and it works just fine.  I can send you my
> XF86Config-4 if you like (you would need to tweak it a little for a
> pismo) or you could ask Ben Herrenschmidt for the config he uses on
> his pismo.

paul, ben, thanks a lot for your helpful replies.
i'm using a framebuffer xserver, which is of course the reason for
the sloppy scrolling.
somehow i thought you had to use a framebuffer (which, some reading
turned out, is only true for the console, not x).

best,

jörn


--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://spunk.dnsalias.org
http://www.linuxdj.com/audio/lad/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-14 21:26 ` Benjamin Herrenschmidt
@ 2001-11-15 14:12   ` Vincent Katz
  2001-11-15 14:45     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 10+ messages in thread
From: Vincent Katz @ 2001-11-15 14:12 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: jhartmann, paulus, linuxppc-dev


Hi,
thanks for your reply.

PPC machine : TiBook (Powerbook Titanium)
ATY : aty128fb: Rage Mobility M3 (AGP) [chip rev 0x0] 8M 128-bit SDR
SGRAM (1:1)

Is it possible to add in the flush_cache function a
"defined(__powerpc__)"  like alpha, sparc ..or i386 .. ?

When the function flush_cache in the file "agpgart_be.c" ll be updated
in the offical kernel for ppc cpu ?

thanks.

On 14 Nov 2001 22:26:29 +0100, Benjamin Herrenschmidt wrote:
> >Linux version : 2.4.14
> >File with a supposed probleme : linux/drivers/char/agp/agpgart_be.c
> >
> >I have a powerpc with an ati128 AGP.
> >
> >When i compile the kernel i have this error : error "Please define
> >flush_cache."
> >
> >this error come from the function flush_cache in agpgart_be.c where
> >definition for powerpc are not setting . Why ?
>
> What PPC machine is this ? I added support for Apple's UniNorth
> chipset in my kernel (patch submited to dri-devel a few days ago)
> along with the necessary r128 DRM changes to work around HW bugs.
>
> (My rsync tree is at rsync.penguinppc.org::linux-2.4-benh).
>
> If you are using a different chipset, then my code may not help
>
> Ben.
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-15 14:12   ` Vincent Katz
@ 2001-11-15 14:45     ` Benjamin Herrenschmidt
  2001-11-15 17:21       ` Vincent Katz
  0 siblings, 1 reply; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2001-11-15 14:45 UTC (permalink / raw)
  To: Vincent Katz; +Cc: linuxppc-dev, jhartmann, paulus


>PPC machine : TiBook (Powerbook Titanium)
>ATY : aty128fb: Rage Mobility M3 (AGP) [chip rev 0x0] 8M 128-bit SDR
>SGRAM (1:1)
>
>Is it possible to add in the flush_cache function a
>"defined(__powerpc__)"  like alpha, sparc ..or i386 .. ?
>
>When the function flush_cache in the file "agpgart_be.c" ll be updated
>in the offical kernel for ppc cpu ?

It's more than flush cache that is needed ;) flush_cache alone will
eventually allow AGP to compile, not to work.

Get my current rsync tree from rsync.penguinppc.org::linux-2.4-benh,
it has complete support for UniNorth AGP on r128. (the M3 you have in
your Pismo is an r128). Beware however that accelerated GL via DRI
is known to crash with this chip for reasons not yet determined.

I've sent my current patches to the DRI mailing list, I can't say
yet when all this will appear upstream as some merging has to be
done with other archs using the "special" agp_ioremap. I will submit
the AGP part of the patch directly to linus/marcello once I'm in sync
with DRI people, there's no need to send it until something can use it ;)

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AGP : ATI128,powerpc
  2001-11-15 14:45     ` Benjamin Herrenschmidt
@ 2001-11-15 17:21       ` Vincent Katz
  0 siblings, 0 replies; 10+ messages in thread
From: Vincent Katz @ 2001-11-15 17:21 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, jhartmann, paulus


Ok thanks, i understand the problem ;-)
this, go against my frame of mind but i yield (i m not narrow-minded ;-)
), meanwhile the update of the official, i'll use your rsync.
 thx for all, good luck.

thx also for my gpm problem :-)

vince.

On 15 Nov 2001 15:45:02 +0100, Benjamin Herrenschmidt wrote:
> >PPC machine : TiBook (Powerbook Titanium)
> >ATY : aty128fb: Rage Mobility M3 (AGP) [chip rev 0x0] 8M 128-bit SDR
> >SGRAM (1:1)
> >
> >Is it possible to add in the flush_cache function a
> >"defined(__powerpc__)"  like alpha, sparc ..or i386 .. ?
> >
> >When the function flush_cache in the file "agpgart_be.c" ll be updated
> >in the offical kernel for ppc cpu ?
>
> It's more than flush cache that is needed ;) flush_cache alone will
> eventually allow AGP to compile, not to work.
>
> Get my current rsync tree from rsync.penguinppc.org::linux-2.4-benh,
> it has complete support for UniNorth AGP on r128. (the M3 you have in
> your Pismo is an r128). Beware however that accelerated GL via DRI
> is known to crash with this chip for reasons not yet determined.
>
> I've sent my current patches to the DRI mailing list, I can't say
> yet when all this will appear upstream as some merging has to be
> done with other archs using the "special" agp_ioremap. I will submit
> the AGP part of the patch directly to linus/marcello once I'm in sync
> with DRI people, there's no need to send it until something can use it ;)
>
> Ben.
>
>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-11-15 17:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-14 20:52 AGP : ATI128,powerpc Vincent Katz
2001-11-14 21:09 ` Kevin B. Hendricks
2001-11-14 21:23   ` Jörn Nettingsmeier
2001-11-14 21:38     ` Benjamin Herrenschmidt
2001-11-14 21:26 ` Benjamin Herrenschmidt
2001-11-15 14:12   ` Vincent Katz
2001-11-15 14:45     ` Benjamin Herrenschmidt
2001-11-15 17:21       ` Vincent Katz
     [not found] <20011114230308.04E9D18077@haven.ozlabs.ibm.com>
2001-11-14 18:11 ` Paul Mackerras
2001-11-15  9:20   ` Jörn Nettingsmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).