Re: DRI integration

Egbert Eich <[email protected]>
Newsgroups gmane.comp.freedesktop.xserver
Message-ID <[email protected]>

Speaking of EDID1, EDID2, DDC etc. a lot of this code was in a generic
DDX layer in XFree86. 
There is probably a lot more stuff that could have gone into this
layer, however since it is relatively new and people still had 
little experience with it it went into the driver to test what
would be the best way to handle these things. 

A reasonable DDX design would look for code that is sharable between
drivers and place it in a common layer for reuse.

However to answer Jim's question: to support the full range of
available RADEON cards and their different OEM variants there still
will be a huge pile of code left after stripping out the generic parts.

Egbert.


Jon Smirl writes:
 > There is code for EDID1, EDID2, DDC, and mode lines from a file. Code for
 > accessing the I2C bus. There is support for two different kinds on internal
 > laptop displays (DFP and something else).  There is code for detecting what is
 > connected to each of the three video output ports. Code for dealing with wiring
 > mistakes in various OEM cards. Code for save/restore of a lot of registers on VT
 > switch. Code for enabling/disabling/save/restore of the VGA interface. Code for
 > dealing with about 20 different versions of Radeon chips. Code for dealing with
 > register save/restore during DPMS (power management) events. You have to set up
 > the PLL with values out of the ROM.
 > 
 > I probably missed a few things too
 > 
 > 
 > --- Jim Gettys <[email protected]> wrote:
 > > On Wed, 2003-11-12 at 20:42, Jon Smirl wrote:
 > > 
 > > > >  - Video card initialization, mode switching, etc.
 > > > I am working on that right now for Radeon.  This involves over 10,000 lines
 > > of
 > > > code so I am doing a lot of it in a user level library.  I think it is risky
 > > to
 > > > put 100KB of relatively infrequently used code into a device driver.
 > > > 
 > > 
 > > Can someone educate this naive person how it could possibly take
 > > this much code to get the chip set up?  I could believe a lot
 > > of tables, but code????
 > >                           Thanks,
 > >                               - Jim
 > > 
 > > -- 
 > > Jim Gettys <[email protected]>
 > > HP Labs, Cambridge Research Laboratory
 > > 
 > 
 > 
 > =====
 > Jon Smirl
 > jonsmirl-/[email protected]
 > 
 > __________________________________
 > Do you Yahoo!?
 > Protect your identity with Yahoo! Mail AddressGuard
 > http://antispam.yahoo.com/whatsnewfree
 > 
 > _______________________________________________
 > Xserver mailing list
 > Xserver-u7BhqnqprCWvj1b/[email protected]
 > http://pdx.freedesktop.org/cgi-bin/mailman/listinfo/xserver
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.