2002-08-14 19:12:06

by Petr Vandrovec

[permalink] [raw]
Subject: Fwd: [BKPATCH] matroxfb is broken by recent fbdev updates

Hello,
if you want working matroxfb in the latest 2.5.31-bk tree, please
either pull from the bk://matroxfb.bkbits.net/linux-2.5, or
download patch from
ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/linux-2.5.31bk-matroxfb.gz.
Petr Vandrovec
[email protected]

----- Forwarded message from Petr Vandrovec <[email protected]> -----

Date: Wed, 14 Aug 2002 21:13:32 +0200
From: Petr Vandrovec <[email protected]>
To: [email protected]
Subject: [BKPATCH] matroxfb is broken by recent fbdev updates

Hi Linus,
please either do pull by using

bk pull bk://matroxfb.bkbits.net/linux-2.5

or apply bk-patch below. Matroxfb (and couple of other drivers) is broken
by recent fbdev update from JSimmons.
Thanks,
Petr Vandrovec
[email protected]

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


[email protected], 2002-08-14 17:53:32+02:00, [email protected]
Update matroxfb to current fbdev API.

[email protected], 2002-08-14 16:38:36+02:00, [email protected]
Set system PLL vcomax correctly in matroxfb. Discovered by Dirk Uffmann.

[email protected], 2002-08-14 16:38:04+02:00, [email protected]
matroxfb: Do not store results of bitwise AND directly in variables which are
treated as a booleans. Comparsion does not work correctly on them.

[email protected], 2002-08-14 16:37:23+02:00, [email protected]
Add support for MGA-TVO-B into matroxfb. By Mike Pieper.

[email protected], 2002-08-14 16:36:45+02:00, [email protected]
Return ENOTTY instead of EINVAL for unknown ioctl ops in matroxfb.

[email protected], 2002-08-14 16:36:06+02:00, [email protected]
Use sizeof(*var) instead of sizeof(struct xxx) in matroxfb.

[email protected], 2002-08-14 16:35:29+02:00, [email protected]
Remove currcon field from private fb_info in matroxfb. It was moved to the
generic layer long ago.

[email protected], 2002-08-14 16:34:44+02:00, [email protected]
Make debug printouts in matroxfb G400 TV-out disabled by default.
OUTPUT_MODE are values, not a bitmap, so use compare instead of bitwise AND.

[email protected], 2002-08-14 16:32:33+02:00, [email protected]
Add TV-Out support for Matrox G450/G550. Due to the hardware only secondary
CRTC can be used as a source for TV output.

[email protected], 2002-08-14 16:30:01+02:00, [email protected]
matroxfb DVI updates:
Handle DVI output on G450/G550.
Powerdown unused portions of G450/G550 DAC.
Split G450/G550 DAC from older DAC1064 handling.
Modify PLL setting when both CRTCs use same pixel clocks.

[email protected], 2002-08-14 16:24:08+02:00, [email protected]
Initialize Matrox G100 and G400 hardware with values read from BIOS instead of
with failsafe settings discovered in the past.
Fixes corrupted screen display on some G100.

[email protected], 2002-08-14 16:23:10+02:00, [email protected]
Use container_of instead of simple typecast when we convert pointers from
pointer to fb_info to pointers to matrox_fb_info.

[email protected], 2002-08-14 16:21:59+02:00, [email protected]
Store pointer to matroxfb specific fb information instead of universal
fb_info* pointer for secondary head. Saves some typecasts.

[email protected], 2002-08-14 16:20:37+02:00, [email protected]
Use arrays for holding Matrox output drivers, it is nicer and more extensible
than current solution with per-CRTC bitmaps.

[email protected], 2002-08-14 16:19:37+02:00, [email protected]
Simplify rules for writting secondary output drivers to matroxfb.
Update some initializations to use C99 initializers.

[email protected], 2002-08-14 16:11:17+02:00, [email protected]
matroxfb: Find appropriate setting for specified color depth by looking through
table instead of using if-else branches in code. Source is cleaner, and generated
code is smaller with this change. By Denis Zaitsev <[email protected]>

[email protected], 2002-08-14 16:08:09+02:00, [email protected]
Remove structure holding state of secondary output in the matroxfb driver.
We do not have any state stored here.

[email protected], 2002-08-14 16:04:20+02:00, [email protected]
Make secondary output support mandatory for Matrox G450/G550.

[email protected], 2002-08-14 16:01:28+02:00, [email protected]
Support secondary head DDC on G450/G550.
Simplify i2c-matroxfb code.


Config.help | 58 ++--
Config.in | 9
matrox/Makefile | 6
matrox/g450_pll.c | 85 +++---
matrox/g450_pll.h | 2
matrox/matroxfb_DAC1064.c | 332 +++++++++++++++++--------
matrox/matroxfb_DAC1064.h | 4
matrox/matroxfb_Ti3026.c | 22 +
matrox/matroxfb_accel.c | 34 +-
matrox/matroxfb_accel.h | 2
matrox/matroxfb_base.c | 590 ++++++++++++++++++++++------------------------
matrox/matroxfb_base.h | 55 ++--
matrox/matroxfb_crtc2.c | 381 ++++++++++++++++-------------
matrox/matroxfb_crtc2.h | 3
matrox/matroxfb_g450.c | 467 ++++++++++++++++++++++++++++--------
matrox/matroxfb_g450.h | 14 -
matrox/matroxfb_maven.c | 123 ++++-----
matrox/matroxfb_misc.c | 14 -
18 files changed, 1331 insertions(+), 870 deletions(-)