aty128fb and EDID
Hi,
I recently bought a Cube G4 and got a 17" Apple Studio Display (CRT, ADC) with it. However, that combination seems hard to use out of the box if you want to use something else than the open firmware framebuffer.
The thing is that the monitor only supports two modes:
1600x1200 64Hz
1280x1024 75Hz
This gives me no picture at all when I try to use the aty128 driver.
However, when I hardcode this video mode as default things work out ok:
/* default modedb mode */
/* 1600x1200, 64Hz, Non-Interlaced */
static struct fb_videomode defaultmode __initdata = {
refresh: 64,
xres: 1600,
yres: 1200,
pixclock: 5952,
left_margin: 304,
right_margin: 24,
upper_margin: 38,
lower_margin: 1,
hsync_len: 184,
vsync_len: 3,
sync: 3,
vmode: FB_VMODE_NONINTERLACED
};The information above was built from my EDID file.
To create some kind of generic solution I need to add EDID support to the aty128 driver, or even better - a generic framebuffer layer.
My question to you is:
All probing that is done by checking if "machine_is_compatible()", could that all be replaced by EDID code?
If you could send me your EDID files with together with information about your machine and monitor I would be really happy. Then I could parse them and see if they contain enough information. If you don't find any EDID file then I would be glad to know that too.
These machines are extra interesting:
* PowerMac2,1 first r128 iMacs
* PowerMac2,2 summer 2000 iMacs
* PowerMac4,1 january 2001 iMacs "flower power"
* iBook SE
* PowerBook Firewire (Pismo), iBook Dual USB
* PowerBook Titanium
I find my EDID file in /proc/device-tree/pci/ATY,Rage128Pd@10/EDID
Thanks.
/ magnus
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi,
Steal the code from the radeon dirver in the kernel. It finds and parses the EDID block in OF for ppc linux systems for LCD.
It works fine with my 17 in lcd display.
Kevin
Quoted 52 lines · Magnus Damm
Hi,
I recently bought a Cube G4 and got a 17" Apple Studio Display (CRT, ADC) with it. However, that combination seems hard to use out of the box if you want to use something else than the open firmware framebuffer.
The thing is that the monitor only supports two modes:
1600x1200 64Hz
1280x1024 75HzThis gives me no picture at all when I try to use the aty128 driver.
However, when I hardcode this video mode as default things work out ok:
/* default modedb mode */
/* 1600x1200, 64Hz, Non-Interlaced */static struct fb_videomode defaultmode __initdata = { refresh: 64, xres: 1600, yres: 1200, pixclock: 5952, left_margin: 304, right_margin: 24, upper_margin: 38, lower_margin: 1, hsync_len: 184, vsync_len: 3, sync: 3, vmode: FB_VMODE_NONINTERLACED };The information above was built from my EDID file.
To create some kind of generic solution I need to add EDID support to the aty128 driver, or even better - a generic framebuffer layer.
My question to you is:
All probing that is done by checking if "machine_is_compatible()", could that all be replaced by EDID code?If you could send me your EDID files with together with information about your machine and monitor I would be really happy. Then I could parse them and see if they contain enough information. If you don't find any EDID file then I would be glad to know that too.
These machines are extra interesting:
* PowerMac2,1 first r128 iMacs
* PowerMac2,2 summer 2000 iMacs
* PowerMac4,1 january 2001 iMacs "flower power"
* iBook SE
* PowerBook Firewire (Pismo), iBook Dual USB
* PowerBook Titanium
Quoted 6 lines
I find my EDID file in
/proc/device-tree/pci/ATY,Rage128Pd@10/EDIDThanks.
/ magnus
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Kevin B. Hendricks
Steal the code from the radeon dirver in the kernel. It finds and parses the EDID block in OF for ppc linux systems for LCD.
I guess you actually meant:
| Move the code out of the radeon driver and make it sufficiently generic so it | can be used by the aty128 and other drivers?
Quoted 58 lines
It works fine with my 17 in lcd display.
Kevin
Quoted 53 lines · Magnus Damm
Hi,
I recently bought a Cube G4 and got a 17" Apple Studio Display (CRT, ADC) with it. However, that combination seems hard to use out of the box if you want to use something else than the open firmware framebuffer.
The thing is that the monitor only supports two modes:
1600x1200 64Hz
1280x1024 75HzThis gives me no picture at all when I try to use the aty128 driver.
However, when I hardcode this video mode as default things work out ok:
/* default modedb mode */
/* 1600x1200, 64Hz, Non-Interlaced */static struct fb_videomode defaultmode __initdata = { refresh: 64, xres: 1600, yres: 1200, pixclock: 5952, left_margin: 304, right_margin: 24, upper_margin: 38, lower_margin: 1, hsync_len: 184, vsync_len: 3, sync: 3, vmode: FB_VMODE_NONINTERLACED };The information above was built from my EDID file.
To create some kind of generic solution I need to add EDID support to the aty128 driver, or even better - a generic framebuffer layer.
My question to you is:
All probing that is done by checking if "machine_is_compatible()", could that all be replaced by EDID code?If you could send me your EDID files with together with information about your machine and monitor I would be really happy. Then I could parse them and see if they contain enough information. If you don't find any EDID file then I would be glad to know that too.
These machines are extra interesting:
* PowerMac2,1 first r128 iMacs
* PowerMac2,2 summer 2000 iMacs
* PowerMac4,1 january 2001 iMacs "flower power"
* iBook SE
* PowerBook Firewire (Pismo), iBook Dual USB
* PowerBook TitaniumI find my EDID file in
/proc/device-tree/pci/ATY,Rage128Pd@10/EDID
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 3 lines
Quoted 3 lines
Steal the code from the radeon dirver in the kernel. It finds and parses the EDID block in OF for ppc linux systems for LCD.
Yes, thanks. That's the short-term solution.
The problem is that the radeon driver only parses the "detail timings". I want to support all timings including "established timings" and "detailed timings".
And then it gets more complex...
Quoted 4 lines
I guess you actually meant:
| Move the code out of the radeon driver and make it sufficiently generic so it | can be used by the aty128 and other drivers?
Yes. Here's my grand plan:
1. Rearrange modes from modedb.c/macmodes.c into separate files for:
* Standard VGA modes
* Tweaked VGA modes (modex)
* VESA modes
* Archtecture-specific modes
(* A mode calculator)
This includes adding add/remove functions to be able to insmod/rmmod modules runtime.
2. Add EDID parsing code.
The code should be able to list "established timings" and "standard timings". Modes should be built from "detail timings".
Getting the EDID structure could be done in several ways:
* Through Open Firmware (mac and maybe others)
* Through the BIOS
* Via I2C bitbanging (requires special support by the fb-driver)
3. Add code that gets information from the EDID parser and looks through the modes available and then creates a list of supported modes.
4. Add architecture-specific code that looks up the model and then returns a list of supported modes. This should be used if the machine doesn't have EDID information. (See aty128db.c and machine_is_compatible()).
5. Add code that takes the modes from 3 or 4 above and throws it at the fb-driver that looks them through and marks the supported modes with what colour- depths that are supported.
6. Add a "mode" variable for each framebuffer.
This should make it possible to switch between the following states:
* Safe - only modes that are listed by the monitor are accepted.
* Standard - old standard modes that might work
* Expert - funky timings that might blow your monitor
The "Safe" mode is default.
I don't know yet how the "mode"-variable should be controlled. /proc?
7. Add support to(/from) vga=ask. The user should be able to switch between the modes listed in 6 above.
And then we have VDIF... Feedback is very welcome.
/ magnus
BTW: I found some EDID data here:
http://www.google.com/search?hl=sv&ie=UTF-8&oe=UTF-8&q=EDID+site%3Aftp.penguinppc.org&lr=
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Geert Uytterhoeven
Quoted 2 lines · Kevin B. Hendricks
Steal the code from the radeon dirver in the kernel. It finds and parses the EDID block in OF for ppc linux systems for LCD.
I guess you actually meant:
| Move the code out of the radeon driver and make it sufficiently generic so it | can be used by the aty128 and other drivers?
That code is also shared by rivafb. It's rather LCD/DFP specific for now, I would _much_ prefer some more generic EDID parser. So far, I haven't been able to find any specification of the edid block, this is annoying as I'd like to deduce a proper default mode for CRTs as well, and some informations about backlight ranges (if any in the EDID).
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi,
When I contribuited it originally, I did not know that I should have made it generic.
It is simply one small routine, it could be duplicated easily as a first step.
Kevin
Quoted 66 lines · Geert Uytterhoeven
Quoted 2 lines · Kevin B. Hendricks
Steal the code from the radeon dirver in the kernel. It finds and parses the EDID block in OF for ppc linux systems for LCD.
I guess you actually meant:
| Move the code out of the radeon driver and make it sufficiently | generic so it can be used by the aty128 and other drivers? |Quoted 58 lines
It works fine with my 17 in lcd display.
Kevin
Quoted 53 lines · Magnus Damm
Hi,
I recently bought a Cube G4 and got a 17" Apple Studio Display (CRT, ADC) with it. However, that combination seems hard to use out of the box if you want to use something else than the open firmware framebuffer.
The thing is that the monitor only supports two modes:
1600x1200 64Hz
1280x1024 75HzThis gives me no picture at all when I try to use the aty128 driver.
However, when I hardcode this video mode as default things work out
ok: /* default modedb mode */
/* 1600x1200, 64Hz, Non-Interlaced */static struct fb_videomode defaultmode __initdata = { refresh: 64, xres: 1600, yres: 1200, pixclock: 5952, left_margin: 304, right_margin: 24, upper_margin: 38, lower_margin: 1, hsync_len: 184, vsync_len: 3, sync: 3, vmode: FB_VMODE_NONINTERLACED };The information above was built from my EDID file.
To create some kind of generic solution I need to add EDID support to the aty128 driver, or even better - a generic framebuffer layer.
My question to you is:
All probing that is done by checking if "machine_is_compatible()", could that all be replaced by EDID code?If you could send me your EDID files with together with information about your machine and monitor I would be really happy. Then I could parse them and see if they contain enough information. If you don't find any EDID file then I would be glad to know that too.
These machines are extra interesting:
* PowerMac2,1 first r128 iMacs
* PowerMac2,2 summer 2000 iMacs
* PowerMac4,1 january 2001 iMacs "flower power"
* iBook SE
* PowerBook Firewire (Pismo), iBook Dual USB
* PowerBook Titanium
Quoted 5 lines
Quoted 1 line
Quoted 1 line
I find my EDID file in
/proc/device-tree/pci/ATY,Rage128Pd@10/EDIDGr{oetje,eeting}s,
Geert
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi,
I found the code to decode the full block from a variety of source (X11 had some of it). The problem is the "established timings" block was empty in my EDID block (or I made a big mistake someplace).
My primary concern was just getting my DFP to work at all at the time.
I will dig up what I have about timings and post it if anyone wants it.
Kevin
Quoted 55 lines · Magnus Damm
Quoted 2 lines
Quoted 2 lines
Steal the code from the radeon dirver in the kernel. It finds and parses the EDID block in OF for ppc linux systems for LCD.
Yes, thanks. That's the short-term solution.
The problem is that the radeon driver only parses the "detail timings". I want to support all timings including "established timings" and "detailed timings".
And then it gets more complex...Quoted 3 lines
I guess you actually meant:
| Move the code out of the radeon driver and make it sufficiently | generic so it can be used by the aty128 and other drivers?Yes. Here's my grand plan:
1. Rearrange modes from
modedb.c/macmodes.cinto separate files for:
* Standard VGA modes
* Tweaked VGA modes (modex)
* VESA modes
* Archtecture-specific modes
(* A mode calculator)
This includes adding add/remove functions to be able to insmod/rmmod modules runtime.2. Add EDID parsing code.
The code should be able to list "established timings" and "standard
timings". Modes should be built from "detail timings".
Getting the EDID structure could be done in several ways:
* Through Open Firmware (mac and maybe others)
* Through the BIOS
* Via I2C bitbanging (requires special support by the fb-driver)3. Add code that gets information from the EDID parser and looks through the modes available and then creates a list of supported modes.
4. Add architecture-specific code that looks up the model and then returns a list of supported modes. This should be used if the machine doesn't have EDID information. (See
aty128db.candmachine_is_compatible()).5. Add code that takes the modes from 3 or 4 above and throws it at the fb-driver that looks them through and marks the supported modes with what colour- depths that are supported.
6. Add a "mode" variable for each framebuffer.
This should make it possible to switch between the following states:
* Safe - only modes that are listed by the monitor are accepted.
* Standard - old standard modes that might work
* Expert - funky timings that might blow your monitor
The "Safe" mode is default.
I don't know yet how the "mode"-variable should be controlled. /proc?7. Add support to(/from) vga=ask. The user should be able to switch between the modes listed in 6 above.
Quoted 7 lines
And then we have VDIF... Feedback is very welcome.
/ magnus
BTW: I found some EDID data here:
http://www.google.com/search?hl=sv&ie=UTF-8&oe=UTF-8&q=EDID+site%3Aftp.p
enguinppc.org&lr=
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Kevin B. Hendricks
Hi,
I found the code to decode the full block from a variety of source (X11 had some of it). The problem is the "established timings" block was empty in my EDID block (or I made a big mistake someplace).
iirc, LCD's don't have "established timings".
Quoted 1 line
My primary concern was just getting my DFP to work at all at the time.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi,
Well that explains that! ;-)
Thanks,
Kevin
Quoted 7 lines
Quoted 3 lines
I found the code to decode the full block from a variety of source (X11 had some of it). The problem is the "established timings" block was empty in my EDID block (or I made a big mistake someplace).
iirc, LCD's don't have "established timings".
Quoted 1 line
My primary concern was just getting my DFP to work at all at the time.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/