G450 support for matroxfb
Subsystems (2)
PATCH 1/1 G450 support for matroxfb
Hi,
if there are unhappy owners of Matrox G450, I have gift for them.
Patch below is for 2.4.0-test11, and works on my dualhead G450, 16MB, DDR.
Because of there are no specs for this piece of hardware, currently:
(1) BIOS have to initialize hardware. Although chip presents itself as G400, there is at least one additional PCI configuration register :-( Not talking about completely new RAMDAC portion, new memory interface, and so on... Hit them with big stick.
(2) Second head does not work. No spec, no game... Maybe after I find some spare time.
(3) DAC is limited to 500MHz. Mine goes up to 959MHz, but without datasheet I want to be conservative. It was very hard to get this one piece...
(4) Everything is based on my piece of hardware; if it does not work for you, complain loudly...
BTW, XF4.0.1e is also very unhappy on this hardware.
Best regards,
Petr Vandrovec [email protected]
Documentation/Configure.help +11 -9
@@ -3210,9 +3210,9 @@ CONFIG_FB_MATROX Say Y here if you have a Matrox Millennium, Matrox Millennium II, Matrox Mystique, Matrox Mystique 220, Matrox Productiva G100, Matrox - Mystique G200, Matrox Millennium G200, Matrox Marvel G200 video or - Matrox G400 card in your box. At this time, support for the G100, - Mystique G200 and Marvel G200 is untested. + Mystique G200, Matrox Millennium G200, Matrox Marvel G200 video, + Matrox G400 or G450 card in your box. At this time, support for the G100 + is untested and support for G450 is highly experimental. This driver is also available as a module ( = code which can be inserted and removed from the running kernel whenever you want).
@@ -3241,13 +3241,13 @@ packed pixel and 32 bpp packed pixel. You can also use font widths different from 8. -Matrox G100/G200/G400 support +Matrox G100/G200/G400/G450 support CONFIG_FB_MATROX_G100 - Say Y here if you have a Matrox Productiva G100, Matrox Mystique - G200, Matrox Marvel G200 or Matrox Millennium G200 video card. If - you select "Advanced lowlevel driver options", you should check 8 - bpp packed pixel, 16 bpp packed pixel, 24 bpp packed pixel and 32 - bpp packed pixel. You can also use font widths different from 8. + Say Y here if you have a Matrox G100, G200, G400 or G450 based + video card. If you select "Advanced lowlevel driver options", you + should check 8 bpp packed pixel, 16 bpp packed pixel, 24 bpp packed + pixel and 32 bpp packed pixel. You can also use font widths + different from 8. If you need support for G400 secondary head, you must first say Y to "I2C support" and "I2C bit-banging support" in the character devices
@@ -3270,6 +3270,8 @@ Matrox G400 second head support CONFIG_FB_MATROX_MAVEN + WARNING !!! This support does not work with G450 !!! + Say Y or M here if you want to use a secondary head (meaning two monitors in parallel) on G400 or MGA-TVO add-on on G200. Secondary head is not compatible with accelerated XFree 3.3.x SVGA servers -
drivers/video/Config.in +1 -1
@@ -104,7 +104,7 @@ if [ "$CONFIG_FB_MATROX" != "n" ]; then bool ' Millennium I/II support' CONFIG_FB_MATROX_MILLENIUM bool ' Mystique support' CONFIG_FB_MATROX_MYSTIQUE - bool ' G100/G200/G400 support' CONFIG_FB_MATROX_G100 + bool ' G100/G200/G400/G450 support' CONFIG_FB_MATROX_G100 if [ "$CONFIG_I2C" != "n" ]; then dep_tristate ' Matrox I2C support' CONFIG_FB_MATROX_I2C $CONFIG_FB_MATROX $CONFIG_I2C_ALGOBIT if [ "$CONFIG_FB_MATROX_G100" = "y" ]; then
drivers/video/matrox/matroxfb_DAC1064.c +34 -10
56 lines not on this page · raw message
drivers/video/matrox/matroxfb_base.c +11 -3
@@ -1421,12 +1421,14 @@#define DEVF_CRTC2 0x0800#define DEVF_MAVEN_CAPABLE 0x1000#define DEVF_PANELLINK_CAPABLE 0x2000 +#define DEVF_G450DAC 0x4000#define DEVF_GCORE (DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB | DEVF_DDC_8_2)#define DEVF_G2CORE (DEVF_GCORE | DEVF_ANY_VXRES | DEVF_MAVEN_CAPABLE | DEVF_PANELLINK_CAPABLE)#define DEVF_G100 (DEVF_GCORE)/* no doc, no vxres... */ #define DEVF_G200 (DEVF_G2CORE)#define DEVF_G400 (DEVF_G2CORE | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2) +#define DEVF_G450 (DEVF_G2CORE | DEVF_SUPPORT32MB | DEVF_TEXT16B | DEVF_CRTC2 | DEVF_G450DAC) static struct board { unsigned short vendor, device, rev, svid, sid;
@@ -1554,18 +1556,24 @@230000 , &vbG200, "unknown G200 (AGP)"}, - {PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0xFF, + {PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0x80,PCI_SS_VENDOR_ID_MATROX ,PCI_SS_ID_MATROX_MILLENNIUM_G400_MAX_AGP ,DEVF_G400 ,360000 , &vbG400, "Millennium G400 MAX (AGP)"}, - {PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0xFF, + {PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0x80,0 ,0 ,DEVF_G400 ,300000 , &vbG400, "unknown G400 (AGP)"}, + {PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0xFF, +0 ,0 , +DEVF_G450 , +500000 ,/* ??? vco goes up to 900MHz... */ + &vbG400, + "unknown G450 (AGP)"}, #endif {0, 0, 0xFF, 0, 0,
@@ -1627,7 +1635,7 @@if (dfp)ACCESS_FBINFO (output.ph) |=MATROXFB_OUTPUT_CONN_DFP ; } - +ACCESS_FBINFO (devflags.g450dac) = b->flags &DEVF_G450DAC ;ACCESS_FBINFO (devflags.textstep) =ACCESS_FBINFO (devflags.vgastep) *ACCESS_FBINFO (devflags.textmode);ACCESS_FBINFO (devflags.textvram) =65536 /ACCESS_FBINFO (devflags.textmode);
drivers/video/matrox/matroxfb_base.h +1 -0
@@ -531,6 +531,7 @@unsigned int ydstorg;/* offset in bytes from video start to usable memory */ /* 0 except for 6MB Millenium */ int memtype; +int g450dac; } devflags;struct display_switch dispsw;struct {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 4 lines
BTW, XF4.0.1e is also very unhappy on this hardware.
Best regards,
Petr Vandrovec [email protected]
does the Matrox driver work with it ? My G400 works very well with the one I found on this site, and the G450 is also referenced :
http://www.matrox.com/mga/support/drivers/latest/home.htm
Cheers,
Willy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 9 lines · Willy Tarreau
Quoted 4 lines
BTW, XF4.0.1e is also very unhappy on this hardware.
Best regards,
Petr Vandrovec [email protected]does the Matrox driver work with it ? My G400 works very well with the one I found on this site, and the G450 is also referenced :
Well, XF4.0.1e should work with it if compiled with mgaHALlib.a ... The Matrox driver referenced above uses this lib.
Signature · 6 lines
Vojtech Pavlik SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 9 lines · Willy Tarreau
Quoted 4 lines
BTW, XF4.0.1e is also very unhappy on this hardware.
Best regards,
Petr Vandrovec [email protected]does the Matrox driver work with it ? My G400 works very well with the one I found on this site, and the G450 is also referenced :
If you are talking about Matrox's few source + large BLOB driver, I have no idea. I do not use binary-only drivers if I do not have to...
Best regards,
Petr Vandrovec [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/