Re: PowerPC radeon KMS - is it possible?

2012-04-24 Thread Michel Dänzer
On Mon, 2012-04-23 at 18:45 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Fre, 2012-04-20 at 18:14 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Fre, 2012-04-20 at 13:15 +0200, Gerhard Pircher wrote: What I didn't

Re: PowerPC radeon KMS - is it possible?

2012-04-24 Thread Gerhard Pircher
Original-Nachricht Datum: Tue, 24 Apr 2012 16:15:00 +0200 Von: Michel Dänzer mic...@daenzer.net An: Gerhard Pircher gerhard_pirc...@gmx.net CC: linuxppc-dev@lists.ozlabs.org Betreff: Re: PowerPC radeon KMS - is it possible? On Mon, 2012-04-23 at 18:45 +0200, Gerhard

Re: PowerPC radeon KMS - is it possible?

2012-04-23 Thread Michel Dänzer
On Fre, 2012-04-20 at 18:14 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Fre, 2012-04-20 at 13:15 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Don, 2012-04-19 at 13:48 +0200, Gerhard Pircher wrote: The former case is an

Re: PowerPC radeon KMS - is it possible?

2012-04-23 Thread Gerhard Pircher
Original-Nachricht Datum: Mon, 23 Apr 2012 11:56:06 +0200 Von: Michel Dänzer mic...@daenzer.net An: Gerhard Pircher gerhard_pirc...@gmx.net CC: linuxppc-dev@lists.ozlabs.org Betreff: Re: PowerPC radeon KMS - is it possible? On Fre, 2012-04-20 at 18:14 +0200, Gerhard

Re: PowerPC radeon KMS - is it possible?

2012-04-20 Thread Gerhard Pircher
Original-Nachricht Datum: Thu, 19 Apr 2012 14:41:16 +0200 Von: Michel Dänzer mic...@daenzer.net An: Gerhard Pircher gerhard_pirc...@gmx.net CC: linuxppc-dev@lists.ozlabs.org, sch...@linux-m68k.org, ojordan12...@hotmail.co.uk Betreff: Re: PowerPC radeon KMS - is it possible

Re: PowerPC radeon KMS - is it possible?

2012-04-20 Thread Michel Dänzer
On Fre, 2012-04-20 at 13:15 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Don, 2012-04-19 at 13:48 +0200, Gerhard Pircher wrote: The former case is an explanation, why I see data corruption with my AGPGART driver (more or less a copy of the uninorth driver)

Re: PowerPC radeon KMS - is it possible?

2012-04-20 Thread Gerhard Pircher
Original-Nachricht Datum: Fri, 20 Apr 2012 15:18:16 +0200 Von: Michel Dänzer mic...@daenzer.net An: Gerhard Pircher gerhard_pirc...@gmx.net CC: linuxppc-dev@lists.ozlabs.org Betreff: Re: PowerPC radeon KMS - is it possible? On Fre, 2012-04-20 at 13:15 +0200, Gerhard

Re: PowerPC radeon KMS - is it possible?

2012-04-19 Thread Michel Dänzer
On Mit, 2012-04-18 at 18:23 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Mit, 2012-04-18 at 17:49 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Mit, 2012-04-18 at 16:55 +0200, Andreas Schwab wrote: Michel Dänzer

Re: PowerPC radeon KMS - is it possible?

2012-04-19 Thread Gerhard Pircher
Original-Nachricht Datum: Thu, 19 Apr 2012 08:32:51 +0200 Von: Michel Dänzer mic...@daenzer.net An: Gerhard Pircher gerhard_pirc...@gmx.net CC: ojordan12...@hotmail.co.uk, sch...@linux-m68k.org, linuxppc-dev@lists.ozlabs.org Betreff: Re: PowerPC radeon KMS

Re: PowerPC radeon KMS - is it possible?

2012-04-19 Thread Michel Dänzer
On Don, 2012-04-19 at 13:48 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Mit, 2012-04-18 at 18:23 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Mit, 2012-04-18 at 17:49 +0200, Gerhard Pircher wrote: That may be a stupid

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Die, 2012-04-17 at 20:49 +0100, o jordan wrote: I've been trying to get Kernel Mode Setting working on my iBook with Ubuntu 12.04. I can only get it working by forcing PCI mode (agpmode=-1). Setting agpmode=1 or a higher number just results in freezing and a flashing screen. At which

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Tue, 2012-04-17 at 20:49 +0100, o jordan wrote: Hi list, Firstly let me say thanks for the great work you do!!! I've been trying to get Kernel Mode Setting working on my iBook with Ubuntu 12.04. I can only get it working by forcing PCI mode (agpmode=-1). Setting agpmode=1 or a

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: Not sure it's a good idea to set both of these =y: It will prevent the radeon driver from initializing at all by default if radeonfb is active. You can say video=radeonfb:off. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint =

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Benjamin Herrenschmidt b...@kernel.crashing.org writes: Note also that KMS doesn't afaik have the power management code that radeonfb has for those old Mac chipsets, so suspend/resume won't work. How hard would it be to add it? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 09:42 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Not sure it's a good idea to set both of these =y: It will prevent the radeon driver from initializing at all by default if radeonfb is active. You can say video=radeonfb:off. I know, I'm

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: Probably not (AGP is flaky in general, but in particular with older UniNorth bridges), but it might be interesting to see some kernel output from booting without agpmode=-1. If you can't get it via ssh, maybe you can via netconsole or so. While

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 09:54 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Probably not (AGP is flaky in general, but in particular with older UniNorth bridges), but it might be interesting to see some kernel output from booting without agpmode=-1. If you can't get

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 10:02 +0200, Michel Dänzer wrote: GPU lockup appears to be a common problem with the radeon driver. It's what happens when anything goes wrong with the GPU. If it doesn't happen with agpmode=-1, it's probably an AGP related coherency issue. I had some success

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 20:20 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 10:02 +0200, Michel Dänzer wrote: GPU lockup appears to be a common problem with the radeon driver. It's what happens when anything goes wrong with the GPU. If it doesn't happen with agpmode=-1,

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 09:46 +0200, Andreas Schwab wrote: Benjamin Herrenschmidt b...@kernel.crashing.org writes: Note also that KMS doesn't afaik have the power management code that radeonfb has for those old Mac chipsets, so suspend/resume won't work. How hard would it be to add it?

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 20:35 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 09:46 +0200, Andreas Schwab wrote: Benjamin Herrenschmidt b...@kernel.crashing.org writes: Note also that KMS doesn't afaik have the power management code that radeonfb has for those old Mac

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 12:34 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 20:20 +1000, Benjamin Herrenschmidt wrote: I suspect there's a fundamental design issue with apple bridge in that the CPU to memory path isn't coherent at all with the GPU to memory path ie. even vs. cache

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 20:37 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 20:35 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 09:46 +0200, Andreas Schwab wrote: Benjamin Herrenschmidt b...@kernel.crashing.org writes: Note also that KMS doesn't afaik have

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 12:34 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 20:20 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 10:02 +0200, Michel Dänzer wrote: GPU lockup appears to be a common problem with the radeon driver. It's what happens when anything goes

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 12:44 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 12:34 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 20:20 +1000, Benjamin Herrenschmidt wrote: I suspect there's a fundamental design issue with apple bridge in that the CPU to memory path isn't

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 12:54 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 20:37 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 20:35 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 09:46 +0200, Andreas Schwab wrote: Benjamin Herrenschmidt

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 09:42 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Not sure it's a good idea to set both of these =y: It will prevent the radeon driver from initializing at all by default if radeonfb is active.

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 09:54 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Probably not (AGP is flaky in general, but in particular with older UniNorth bridges), but it might be interesting to see some kernel output from

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: -#define map_page_into_agp(page) +#define map_page_into_agp(page) \ + flush_dcache_range((unsigned long)page_address(page), \ +(unsigned long)page_address(page) + PAGE_SIZE) That didn't help. Andreas. -- Andreas

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 13:25 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 09:42 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Not sure it's a good idea to set both of these =y: It will prevent the radeon driver

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 21:23 +1000, Benjamin Herrenschmidt wrote: Right, we might be able to easily port my old code over by simply making it ppc specific. In radeonfb, it's also used for some thinkpads among others but KMS does that with the BIOS on these no ? (ie. D2 state). KMS doesn't

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 21:19 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 12:44 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 12:34 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 20:20 +1000, Benjamin Herrenschmidt wrote: I suspect there's a fundamental design

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: You do understand that 'prevent the radeon driver from initializing at all' means direct rendering won't work at all, even with older Mesa drivers? Until radeondrmfb has suspend support, this is what I want. Andreas. -- Andreas Schwab,

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 15:22 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: You do understand that 'prevent the radeon driver from initializing at all' means direct rendering won't work at all, even with older Mesa drivers? Until radeondrmfb has suspend support,

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 21:17 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 12:34 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 20:20 +1000, Benjamin Herrenschmidt wrote: On Wed, 2012-04-18 at 10:02 +0200, Michel Dänzer wrote: GPU lockup appears to be a common

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 13:30 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 09:54 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: This was a test with agpmode=1: Linux agpgart interface v0.103 agpgart-uninorth

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 15:22 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: You do understand that 'prevent the radeon driver from initializing at all' means direct rendering won't work at all, even with older Mesa drivers?

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: Have you tried smaller aperture sizes (uninorth_agp.aperture) and/or radeon.test=1? (See commit 52f072cb084bbb460d3a4ae09f0b6efc3e7e8a8c) Neither changes anything. You might be able to get more information via netconsole. This *is* netconsole.

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 16:28 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Have you tried smaller aperture sizes (uninorth_agp.aperture) and/or radeon.test=1? (See commit 52f072cb084bbb460d3a4ae09f0b6efc3e7e8a8c) Neither changes anything. How small aperture sizes

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 16:28 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Have you tried smaller aperture sizes (uninorth_agp.aperture) and/or radeon.test=1? (See commit 52f072cb084bbb460d3a4ae09f0b6efc3e7e8a8c) Neither

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 16:55 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 16:28 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: Have you tried smaller aperture sizes (uninorth_agp.aperture) and/or radeon.test=1?

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Andreas Schwab
FWIW, I just got a GPU lockup also in PCI mode, but at least it isn't as fatal (system still up apart from the unusable X display). radeon :00:10.0: GPU lockup CP stall for more than 1msec GPU lockup (waiting for 0x0C3C last fence id 0x0C34) Failed to wait GUI idle while

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Gerhard Pircher
Original-Nachricht Datum: Wed, 18 Apr 2012 17:01:20 +0200 Von: Michel Dänzer mic...@daenzer.net An: Andreas Schwab sch...@linux-m68k.org CC: o jordan ojordan12...@hotmail.co.uk, linuxppc-dev@lists.ozlabs.org Betreff: Re: PowerPC radeon KMS - is it possible? On Mit, 2012

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 17:49 +0200, Gerhard Pircher wrote: Von: Michel Dänzer mic...@daenzer.net On Mit, 2012-04-18 at 16:55 +0200, Andreas Schwab wrote: Michel Dänzer mic...@daenzer.net writes: On Mit, 2012-04-18 at 16:28 +0200, Andreas Schwab wrote: Michel Dänzer

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Gerhard Pircher
Original-Nachricht Datum: Wed, 18 Apr 2012 18:06:36 +0200 Von: Michel Dänzer mic...@daenzer.net An: Gerhard Pircher gerhard_pirc...@gmx.net CC: linuxppc-dev@lists.ozlabs.org, sch...@linux-m68k.org, ojordan12...@hotmail.co.uk Betreff: Re: PowerPC radeon KMS

Re: PowerPC radeon KMS - is it possible?

2012-04-18 Thread Benjamin Herrenschmidt
On Wed, 2012-04-18 at 15:07 +0200, Michel Dänzer wrote: On Mit, 2012-04-18 at 21:23 +1000, Benjamin Herrenschmidt wrote: Right, we might be able to easily port my old code over by simply making it ppc specific. In radeonfb, it's also used for some thinkpads among others but KMS does

PowerPC radeon KMS - is it possible?

2012-04-17 Thread o jordan
Hi list, Firstly let me say thanks for the great work you do!!! I've been trying to get Kernel Mode Setting working on my iBook with Ubuntu 12.04. I can only get it working by forcing PCI mode (agpmode=-1). Setting agpmode=1 or a higher number just results in freezing and a flashing screen.