* State of pm3fb driver
@ 2004-10-03 12:53 Thomas Jahns
2004-10-05 13:01 ` Romain Dolbeau
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Jahns @ 2004-10-03 12:53 UTC (permalink / raw)
To: Linux Fbdev
[-- Attachment #1: Type: text/plain, Size: 1832 bytes --]
Hello,
after I was quite unhappy with the support for my ATI Mach64 adapter in
my Powermac 7500 I aquired a Formac Proformance III adapter that
supposedly uses a Permedia 3 chip. Unfortunately it seems that the
driver is broken in kernel 2.6.8 (at least to my incomplete
understanding of the subject) for the following reasons:
a) drivers/video/pm3fb.c uses a number of includes no more present
(I could fix that as shown in the attached patch)
b) even if I fixed the compile time errors the resulting kernel does
not display anything to the console (but works without problems
otherwise). Also the kernel log is flooded with repetitions of the
following line (but that might have other reasons, because I noticed it
also happens when I boot an older kernel without the pm3 driver:
IN from bad port 64 at c01a22a
c) drivers/video/pm3fb.c and include/video/pm3fb.h contain a number of
#ifdef statements that check for KERNEL_2_2 and similar vars, but never
for KERNEL_2_6. So I assume the source has not seen any maintainance in
2.6?
The card identifies itself as follows in lspci -v -s 00:0e.0:
0000:00:0e.0 Display controller: 3DLabs GLINT R3 (rev 01)
Subsystem: 3DLabs GLINT R3
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 24
Memory at 80880000 (32-bit, non-prefetchable) [size=128K]
Memory at 84000000 (32-bit, prefetchable) [size=64M]
Memory at 90000000 (32-bit, prefetchable) [size=64M]
I/O ports at 0800 [disabled] [size=16]
Expansion ROM at 80840000 [disabled] [size=64K]
Capabilities: <available only to root>
Any comments what I should try from here?
Ciao, Thomas Jahns
--
"Computers are good at following instructions,
but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pm3_includes.patch --]
[-- Type: text/x-patch; charset=unknown-8bit, Size: 614 bytes --]
--- /tmp/kernel-source-2.6.8/drivers/video/pm3fb.c 2004-08-14 07:36:32.000000000 +0200
+++ /home/tjahns/tmp/debian_stuff/kernel-compile/2.6.8/kernel-source-2.6.8/drivers/video/pm3fb.c 2004-10-03 14:15:42.000000000 +0200
@@ -68,14 +68,7 @@
#include <linux/pci.h>
#include <linux/ioport.h>
-#include <video/fbcon.h>
-#include <video/fbcon-mfb.h>
-#include <video/fbcon-cfb2.h>
-#include <video/fbcon-cfb4.h>
-#include <video/fbcon-cfb8.h>
-#include <video/fbcon-cfb16.h>
-#include <video/fbcon-cfb24.h>
-#include <video/fbcon-cfb32.h>
+#include "console/fbcon.h"
#include <video/pm3fb.h>
#include <asm/io.h>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: State of pm3fb driver
2004-10-03 12:53 State of pm3fb driver Thomas Jahns
@ 2004-10-05 13:01 ` Romain Dolbeau
2004-10-05 19:06 ` Thomas Jahns
0 siblings, 1 reply; 4+ messages in thread
From: Romain Dolbeau @ 2004-10-05 13:01 UTC (permalink / raw)
To: Linux Fbdev
Thomas Jahns <Thomas.Jahns@epost.de> wrote:
> after I was quite unhappy with the support for my ATI Mach64 adapter in
> my Powermac 7500 I aquired a Formac Proformance III adapter that
> supposedly uses a Permedia 3 chip. Unfortunately it seems that the
> driver is broken in kernel 2.6.8 (at least to my incomplete
> understanding of the subject) for the following reasons:
Noone ever updated pm3fb to works with 2.6.x, so as you noticed,
it doesn't work. There was a lot of changes for FB driver in 2.6.x,
so the driver is in need of a complete rewrite.
You can try using the likely working (but surely slow) offb, the generic
OpenFirmware driver. Or (down|up)grade to 2.4.x.
--
Romain Dolbeau
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: State of pm3fb driver
2004-10-05 13:01 ` Romain Dolbeau
@ 2004-10-05 19:06 ` Thomas Jahns
2004-10-12 19:15 ` David Eger
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Jahns @ 2004-10-05 19:06 UTC (permalink / raw)
To: linux-fbdev-devel
On 10/05/04 15:01:23, Romain Dolbeau wrote:
> Noone ever updated pm3fb to works with 2.6.x, so as you noticed,
> it doesn't work. There was a lot of changes for FB driver in 2.6.x,
> so the driver is in need of a complete rewrite.
Is there a sufficiently complete description of these changes to
"mechanically" port them to the existing driver? I'd certainly try that
because it seems to me the changes to atyfb are just as hard to port to
the Macintosh. I think Benjamin Herrenschmidt is working on the latter
already but I'm unaware as to how much progress he has made.
> You can try using the likely working (but surely slow) offb, the
> generic OpenFirmware driver. Or (down|up)grade to 2.4.x.
Unfortunately offb doesn't work for me (it might be trying to use the
builtin control graphics (which is currently at 0MB VRAM), how would I
find out?).
Downgrading to 2.4.x isn't really an option because I want to use XFS.
I just don't want to be stuck with control graphics for my MacOS
installation and I also don't want to play around with the monitor
connection because Linux supports nothing but controlfb of the
alternatives I've tried.
Thomas Jahns
--
"Computers are good at following instructions,
but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: State of pm3fb driver
2004-10-05 19:06 ` Thomas Jahns
@ 2004-10-12 19:15 ` David Eger
0 siblings, 0 replies; 4+ messages in thread
From: David Eger @ 2004-10-12 19:15 UTC (permalink / raw)
To: linux-fbdev-devel
On Tue, Oct 05, 2004 at 09:06:04PM +0200, Thomas Jahns wrote:
> On 10/05/04 15:01:23, Romain Dolbeau wrote:
> >Noone ever updated pm3fb to works with 2.6.x, so as you noticed,
> >it doesn't work. There was a lot of changes for FB driver in 2.6.x,
> >so the driver is in need of a complete rewrite.
>
> Is there a sufficiently complete description of these changes to
> "mechanically" port them to the existing driver? I'd certainly try that
> because it seems to me the changes to atyfb are just as hard to port to
> the Macintosh. I think Benjamin Herrenschmidt is working on the latter
> already but I'm unaware as to how much progress he has made.
Upgrading a driver from 2.4 to 2.6 is a tedious task that takes about
two weeks if you know FB sorta well. I and Francois Romieu did this for
cirrusfb between 2.6.7 and 2.6.9; Geert fixed the amiga bits then too, but
there's been no testing of that code ;-)
A Pseudo-human readable description of the non-Amiga bits is at:
http://www.ussg.iu.edu/hypermail/linux/kernel/0406.2/1936.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0406.3/1040.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0406.3/1083.html
-dte
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-12 19:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-03 12:53 State of pm3fb driver Thomas Jahns
2004-10-05 13:01 ` Romain Dolbeau
2004-10-05 19:06 ` Thomas Jahns
2004-10-12 19:15 ` David Eger
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).