home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 45 / cda45.iso / Linux / XFree86-4.0 / doc / README.chips < prev    next >
Encoding:
Text File  |  2000-03-09  |  45.0 KB  |  863 lines

  1.                  Information for Chips and Technologies Users
  2.  
  3.                 David Bateman (<dbateman@club-internet.fr>),
  4.                            Egbert Eich (<eich@xfree86.org>)
  5.  
  6.                                 19th July 1999
  7.  
  8. 1.  Introduction
  9.  
  10. With the release of XFree86 version 4.0, the Chips and Technologies driver
  11. has been extensively rewritten and contains many new features.  This driver
  12. must be considered work in progress, and those users wanting stability are
  13. encouraged to use the older XFree86 3.3.x versions. However this version of
  14. the Chips and Technologies driver has many new features and bug fixes that
  15. might make users prefer to use this version. These features include
  16.  
  17.    o The long standing black/blue screen problem that some people have had
  18.      should be fixed.
  19.  
  20.    o Hardware/Software cursor switching on the fly, that should fix many of
  21.      the known hardware cursor problems.
  22.  
  23.    o Gamma correction at all depths and DirectColor visuals for depths of 15
  24.      or greater with the HiQV series of chipsets.
  25.  
  26.    o Supports PsuedoColor overlays on 16bpp TrueColor screens for HiQV.
  27.  
  28.    o 32bpp pixmaps while using a framebuffer in 24bpp packed pixel mode.
  29.  
  30.    o Heaps more acceleration.
  31.  
  32.    o 1/4bpp support.
  33.  
  34.    o Multihead
  35.  
  36.    o Much more...
  37.  
  38. This document attempts to discuss the features of this driver, the options
  39. useful in configuring it and the known problems. Most of the Chips and Tech-
  40. nologies chipsets are supported by this driver to some degree.
  41.  
  42. 2.  Supported Chips
  43.  
  44. The Chips and Technologies chipsets supported by this driver have one of
  45. three basic architectures. A basic architecture, the WinGine architecture
  46. which is a modification on this basic architecture and a completely new HiQV
  47. architecture.
  48.  
  49. 2.1  Basic architecture
  50.  
  51.       ct65520
  52.             (Max Ram: 1Mb, Max Dclk: 68MHz@5V)
  53.  
  54.       ct65525
  55.             This chip is basically identical to the 65530. It has the same ID
  56.             and is identified as a 65530 when probed. See ct65530 for
  57.             details.
  58.  
  59.       ct65530
  60.             This is a very similar chip to the 65520. However it additionally
  61.             has the ability for mixed 5V and 3.3V operation and linear
  62.             addressing of the video memory.  (Max Ram: 1Mb, Max Dclk:
  63.             56MHz@3.3V, 68MHz@5V)
  64.  
  65.       ct65535
  66.             This is the first chip of the ct655xx series to support fully
  67.             programmable clocks. Otherwise it has the the same properties as
  68.             the 65530.
  69.  
  70.       ct65540
  71.             This is the first version of the of the ct655xx that was capable
  72.             of supporting Hi-Color and True-Color. It also includes a fully
  73.             programmable dot clock and supports all types of flat panels.
  74.             (Max Ram: 1Mb, Max Dclk: 56MHz@3.3V, 68MHz@5V)
  75.  
  76.       ct65545
  77.             The chip is very similar to the 65540, with the addition of H/W
  78.             cursor, pop-menu acceleration, BitBLT and support of PCI Buses.
  79.             PCI version also allow all the BitBLT and H/W cursor registers to
  80.             be memory mapped 2Mb above the Base Address.  (Max Ram: 1Mb, Max
  81.             Dclk: 56MHz@3.3V,68MHz@5V)
  82.  
  83.       ct65546
  84.             This chip is specially manufactured for Toshiba, and so documen-
  85.             tation is not widely available. It is believed that this is
  86.             really just a 65545 with a higher maximum dot-clock of 80MHz.
  87.             (Max Ram: 1Mb?, Max Dclk: 80MHz?)
  88.  
  89.       ct65548
  90.             This chip is similar to the 65545, but it also includes XRAM sup-
  91.             port and supports the higher dot clocks of the 65546.  (Max Ram:
  92.             1Mb, Max Dclk: 80MHz)
  93.  
  94. 2.2  WinGine architecture
  95.  
  96.       ct64200
  97.             This chip, also known as the WinGine, is used in video cards for
  98.             desktop systems. It often uses external DAC's and programmable
  99.             clock chips to supply additional functionally. None of these are
  100.             currently supported within the driver itself, so many cards will
  101.             only have limited support. Linear addressing is not supported for
  102.             this card in the driver.  (Max Ram: 2Mb, Max Dclk: 80MHz)
  103.  
  104.       ct64300
  105.             This is a more advanced version of the WinGine chip, with speci-
  106.             fication very similar to the 6554x series of chips. However there
  107.             are many differences at a register level. A similar level of
  108.             acceleration to the 65545 is included for this driver.  (Max Ram:
  109.             2Mb, Max Dclk: 80MHz)
  110.  
  111. 2.3  HiQV Architecture
  112.  
  113.       ct65550
  114.             This chip includes many new features, including improved BitBLT
  115.             support (24bpp color expansion, wider maximum pitch, etc), Multi-
  116.             media unit (video capture, zoom video port, etc) and 24bpp uncom-
  117.             pressed true color (i.e 32bpp mode). Also memory mapped I/O is
  118.             possible on all bus configurations.  (Max Ram: 2Mb, Max Dclk:
  119.             80MHz@3.3V,100MHz@5V)
  120.  
  121.       ct65554
  122.             This chip is similar to the 65550 but has a 64bit memory bus as
  123.             opposed to a 32bit bus. It also has higher limits on the maximum
  124.             memory and pixel clocks (Max Ram: 4Mb, Max Dclk: 100MHz@3.3V)
  125.  
  126.       ct65555
  127.             Similar to the 65554 but has yet higher maximum memory and pixel
  128.             clocks. It also includes a new DSTN dithering scheme that
  129.             improves the performance of DSTN screens.  (Max Ram: 4Mb, Max
  130.             Dclk: 110MHz@3.3V)
  131.  
  132.       ct68554
  133.             Similar to the 65555 but also incorporates "PanelLink" drivers.
  134.             This serial link allows an LCD screens to be located up to 100m
  135.             from the video processor. Expect to see this chip soon in LCD
  136.             desktop machines (Max Ram: 4Mb, Max Dclk: 110MHz@3.3V)
  137.  
  138.       ct69000
  139.             Similar to the 65555 but incorporates 2Mbytes of SGRAM on chip.
  140.             It is the first Chips and Technologies chipset where all of the
  141.             registers are accessible through MMIO, rather than just the Bit-
  142.             Blt registers.  (Max Ram: 2Mb Only, Max Dclk: 130MHz@3.3V)
  143.  
  144.       ct69030
  145.             Similar to the 69000 but incorporates 4Mbytes of SGRAM on chip
  146.             and has faster memory and pixel clock limits. Also includes a
  147.             second display channel so that the CRT can display independently
  148.             of the LCD.  (Max Ram: 4Mb Only, Max Dclk: 170MHz@3.3V)
  149.  
  150. 3.  XF86Config Options
  151.  
  152. The following options are of particular interest to the Chips and Technolo-
  153. gies driver. It should be noted that the options are case insensitive, and
  154. that  white space and "_" characters are ignored.  There are therefore a wide
  155. variety of possible forms for all options.  The forms given below are the
  156. preferred forms.
  157.  
  158. Options related to drivers can be present in the Screen, Device and Monitor
  159. sections and the Display subsections.  The order of precedence is Display,
  160. Screen, Monitor, Device.
  161.  
  162.       Option "NoAccel"
  163.             This option will disable the use of any accelerated functions.
  164.             This is likely to help with some problems related to DRAM timing,
  165.             high dot clocks, and bugs in accelerated functions, at the cost
  166.             of performance (which will still be reasonable on VLB/PCI).
  167.  
  168.       VideoRam 1024 (or another value)
  169.             This option will override the detected amount of video memory,
  170.             and pretend the given amount of memory is present on the card.
  171.  
  172.       Option "NoLinear"
  173.             By default linear addressing is used on all chips where it can be
  174.             set up automatically. The exception is for depths of 1 or 4bpp
  175.             where linear addressing is turned off by default.  It is possible
  176.             to turn the linear addressing off with this option. Note that H/W
  177.             acceleration is only supported with linear addressing.
  178.  
  179.       Option "Linear"
  180.             When the chipset is capable of linear addressing and it has been
  181.             turned off by default, this option can be used to turn it back
  182.             on. This is useful for the 65530 chipset where the base address
  183.             of the linear framebuffer must be supplied by the user, or at
  184.             depths 1 and 4bpp. Note that linear addressing at 1 and 4bpp is
  185.             not guaranteed to work correctly.
  186.  
  187.       MemBase 0x03b00000 (or a different address)
  188.             This sets the physical memory base address of the linear frame-
  189.             buffer. Typically this is probed correctly, but if you believe it
  190.             to be mis-probed, this option might help.  Also for non PCI
  191.             machines specifying this force the linear base address to be this
  192.             value, reprogramming the video processor to suit. Note that for
  193.             the 65530 this is required as the base address can't be correctly
  194.             probed.
  195.  
  196.       Option "HWcursor"
  197.             For chipsets that support hardware cursors, this option enforces
  198.             their use, even for cases that are known to cause problems on
  199.             some machines. Note that it is overridden by the "SWcursor"
  200.             option. Hardware cursors effectively speeds all graphics opera-
  201.             tions as the job of ensuring that the cursor remains on top is
  202.             now given to the hardware. It also reduces the effect of cursor
  203.             flashing during graphics operations.
  204.  
  205.       Option "SWcursor"
  206.             This disables use of the hardware cursor provided by the chip.
  207.             Try this if the cursor seems to have problems.
  208.  
  209.       Option "STN"
  210.             The server is unable to differentiate between SS STN and TFT dis-
  211.             plays. This forces it to identify the display as a SS STN rather
  212.             than a TFT.
  213.  
  214.       Option "UseModeline"
  215.             The flat panel timings are related to the panel size and not the
  216.             size of the mode specified in XF86Config. For this reason the
  217.             default behaviour of the server is to use the panel timings
  218.             already installed in the chip. The user can force the panel tim-
  219.             ings to be recalculated from the modeline with this option. How-
  220.             ever the panel size will still be probed.
  221.  
  222.       Option "FixPanelSize"
  223.             For some machines the LCD panel size is incorrectly probed from
  224.             the registers. This option forces the LCD panel size to be over-
  225.             ridden by the modeline display sizes. This will prevent the use
  226.             of a mode that is a different size than the panel. Before using
  227.             this check that the server reports an incorrect panel size. This
  228.             option can be used in conjunction with the option "UseModeline"
  229.             to program all the panel timings using the modeline values.
  230.  
  231.       Option "NoStretch"
  232.             When the size of the mode used is less than the panel size, the
  233.             default behaviour of the server is to stretch the mode in an
  234.             attempt to fill the screen. A "letterbox" effect with no stretch-
  235.             ing can be achieved using this option.
  236.  
  237.       Option "LcdCenter"
  238.             When the size of the mode used is less than the panel size, the
  239.             default behaviour of the server is to align the left hand edge of
  240.             the display with the left hand edge of the screen. Using this
  241.             option the mode can be centered in the screen. This option is
  242.             reported to have problems with some machines at 16/24/32bpp, the
  243.             effect of which is that the right-hand edge of the mode will be
  244.             pushed off the screen.
  245.  
  246.       Option "HWclocks"
  247.             For the chips either using the WinGine or basic architectures,
  248.             the chips generates a number of fixed clocks internally. With the
  249.             chips 65535 and later or the 64300, the default is to use the
  250.             programmable clock for all clocks. It is possible to use the
  251.             fixed clocks supported by the chip instead by using this option.
  252.             Typically this will give you some or all of the clocks 25.175,
  253.             28.322, 31.000 and 36.000MHz. The current programmable clock will
  254.             be given as the last clock in the list. On a cold-booted system
  255.             this might be the appropriate value to use at the text console
  256.             (see the "TextClockFreq" option), as many flat panels will need a
  257.             dot clock different than the default to synchronise. The pro-
  258.             grammable clock makes this option obsolete and so it's use isn't
  259.             recommended. It is completely ignored for HiQV chipsets.
  260.  
  261.       Option "UseVclk1"
  262.             The HiQV series of chips have three programmable clocks. The
  263.             first two are usually loaded with 25.175 and 28.322MHz for VGA
  264.             backward compatibility, and the third is used as a fully pro-
  265.             grammable clock. On at least one system (the Inside 686 LCD/S
  266.             single board computer) the third clock is unusable. This option
  267.             forces the use of VClk1 as the programmable clock.
  268.  
  269.       TextClockFreq 25.175
  270.             Except for the HiQV chipsets, it is impossible for the server to
  271.             read the value of the currently used frequency for the text con-
  272.             sole when using programmable clocks. Therefore the server uses a
  273.             default value of 25.175MHz as the text console clock. For some
  274.             LCDs, in particular DSTN screens, this clock will be wrong. This
  275.             allows the user to select a different clock for the server to use
  276.             when returning to the text console.
  277.  
  278.       Option "FPClock8"   "65.0"
  279.             Option "FPClock16"  "65.0" Option "FPClock24"  "65.0" Option
  280.             "FPClock32"  "65.0"" In general the LCD panel clock should be set
  281.             independently of the modelines supplied. Normally the chips BIOS
  282.             set the flat panel clock correctly and so the default behaviour
  283.             with HiQV chipset is to leave the flat panel clock alone, or
  284.             force it to be 90% of the maximum allowable clock if the current
  285.             panel clock exceeds the dotclock limitation due to a depth
  286.             change. This option allows the user to force the server the
  287.             reprogram the flat panel clock independently of the modeline with
  288.             HiQV chipset. The four options are for 8bpp or less, 16, 24 or
  289.             32bpp LCD panel clocks, where the options above set the clocks to
  290.             65MHz.
  291.  
  292.       Option "MMIO"
  293.             This has a different effect depending on the hardware on which it
  294.             is used. For the 6554x machines MMIO is only used to talk to the
  295.             BitBLT engine and is only usable with  PCI buses. It is enabled
  296.             by default for 65545 machines since the blitter    can not be
  297.             used otherwise. The HiQV series of chipsets must use MMIO with
  298.             their BitBLT engines, and so this is enabled by default. However
  299.             the 690xx chipsets can use MMIO for all communications with the
  300.             video processor. So using this option on a 690xx chipset forces
  301.             them to use MMIO for all communications. This only makes sense
  302.             when the 690xx is on a PCI bus so that normal PIO can be dis-
  303.             abled.  (WARNING!! 690xx MMIO is untested)
  304.  
  305.       Option "SuspendHack"
  306.             This option sets the centering and stretching to the BIOS default
  307.             values. This can fix suspend/resume problems on some machines. It
  308.             overrides the options "LcdCenter" and "NoStretch".
  309.  
  310.       Option "18bitBus"  (Chips 65540/45/46/48)
  311.             For 24bpp on TFT screens, the server assumes that a 24bit bus is
  312.             being used. This can result in a reddish tint to 24bpp mode.
  313.             This option, selects an 18 bit TFT bus. For other depths this
  314.             option has no effect.
  315.  
  316.       Chipset "ct65546" (or some other chip)
  317.             It is possible that the chip could be misidentified, particular
  318.             due to interactions with other drivers in the server. It is pos-
  319.             sible to force the server to identify a particular chip with this
  320.             option.
  321.  
  322.       Option "SyncOnGreen"
  323.             Composite sync on green. Possibly useful if you wish to use an
  324.             old workstation monitor. The HiQV internal RAMDAC's supports this
  325.             mode of operation, but whether a particular machine does depends
  326.             on the manufacturer.
  327.  
  328.       DacSpeed 80.000
  329.             The server will limit the maximum dotclock to a value as speci-
  330.             fied by the manufacturer. This might make certain modes impossi-
  331.             ble to obtain with a reasonable refresh rate. Using this option
  332.             the user can override the maximum dot-clock and specify any value
  333.             they prefer. Use caution with this option, as driving the video
  334.             processor beyond its specifications might cause damage.
  335.  
  336.       Option "SetMClk" "38.000MHz"
  337.             Option "SetMClk" "38000kHz"" This option sets the internal memory
  338.             clock (MCLK) registers of HiQV chipsets to 38MHz or some other
  339.             value. Use caution as excess heat generated by the video proces-
  340.             sor if its specifications are exceeded might cause damage. How-
  341.             ever careful use of this option might boost performance. This
  342.             option might also be used to reduce the speed of the memory clock
  343.             to preserve power in modes that don't need the full speed of the
  344.             memory to work correctly. This option might also be needed to
  345.             reduce the speed of the memory clock with the "Overlay" option.
  346.  
  347.       Option "RGBbits"  "8"
  348.             By default it is assumed that there are 6 significant bits in the
  349.             RGB representation of the colours in 4bpp and above. If the
  350.             colours seem darker than they should be, perhaps your ramdac is
  351.             has 8 significant bits. This option forces the server to assume
  352.             that there are 8 significant bits.
  353.  
  354.       Option "ShowCache"
  355.             This is a debugging option and general users have no need of it.
  356.             Using this option, when the virtual desktop is scrolled away from
  357.             the zero position, the pixmap cache becomes visible. This is use-
  358.             ful to see that pixmaps, tiles, etc have been properly cached.
  359.  
  360.       Option "ShadowFB"
  361.             This option is only useful when acceleration can't be used and
  362.             linear addressing can be used. With this option all of the graph-
  363.             ics are rendered into a copy of the framebuffer that is keep in
  364.             the main memory of the computer, and the screen is updated from
  365.             this copy. In this way the expensive operation of reading back to
  366.             contents of the screen is never performed and the performance is
  367.             improved. Because the rendering is all done into a virtual frame-
  368.             buffer acceleration can not be used.
  369.  
  370.       Option "Overlay"
  371.             The HiQV chipsets contain a multimedia engine that allow a 16bpp
  372.             window to be overlayed on the screen. This driver uses this capa-
  373.             bility to include a 16bpp framebuffer on top of an 8bpp frame-
  374.             buffer. In this way PseudoColor and TrueColor visuals can be used
  375.             on the same screen.  XFree86 believes that the 8bpp framebuffer
  376.             is overlayed on the 16bpp framebuffer. Therefore to use this
  377.             option the server must be started in either 15 or 16bpp depth.
  378.             Also the maximum size of the desktop with this option is
  379.             1024x1024, as this is the largest window that the HiQV multimedia
  380.             engine can display. Note that this option using the multimedia
  381.             engine to its limit, and some manufacturers have set a default
  382.             memory clock that will cause pixel errors with this option.  If
  383.             you get pixel error with this option try using the "SetMClk"
  384.             option to slow the memory clock.
  385.  
  386.       Option "ColorKey" "255"
  387.             Normally the color transparency key for the overlay is the 8bpp
  388.             lookup table entry 255. This might cause troubles with some
  389.             applications, and so this option allows the color transparency
  390.             key to be set to some other value. Legal values are 2 to 255
  391.             inclusive.
  392.  
  393.       Option "XaaNoScreenToScreenCopy",
  394.             Option "XaaNoSolidFillRect", Option "XaaNoSolidHorVertLine",
  395.             Option "XaaNoMono8x8PatternFillRect", Option "XaaNoColor8x8Pat-
  396.             ternFillRect", Option "XaaNoCPUToScreenColorExpandFill", Option
  397.             "XaaNoScreenToScreenColorExpandFill", Option "XaaNoIm-
  398.             ageWriteRect", Option "XaaNoImageReadRect", Option "XaaNoPixmap-
  399.             Cache", Option "XaaNoOffscreenPixmaps" " These option individu-
  400.             ally disable the features of the XAA acceleration code that the
  401.             Chips and Technologies driver uses. If you have a problem with
  402.             the acceleration and these options will allow you to isolation
  403.             the problem. This information will be invaluable in debugging any
  404.             problems.
  405.  
  406. 4.  Modelines
  407.  
  408. When constructing a modeline for use with the Chips and Technologies driver
  409. you'll needed to considered several points
  410.  
  411.       * Virtual Screen Size
  412.             It is the virtual screen size that determines the amount of mem-
  413.             ory used by a mode. So if you have a virtual screen size set to
  414.             1024x768 using a 800x600 at 8bpp, you use 768kB for the mode.
  415.             Further to this some of the XAA acceleration requires that the
  416.             display pitch is a multiple of 64 pixels. So the driver will
  417.             attempt to round-up the virtual X dimension to a multiple of 64,
  418.             but leave the virtual resolution untouched. This might further
  419.             reduce the available memory.
  420.  
  421.       * 16/24/32 Bits Per Pixel
  422.             Hi-Color and True-Color modes are implemented in the server. The
  423.             clocks in the 6554x series of chips are internally divided by 2
  424.             for 16bpp and 3 for 24bpp, allowing one modeline to be used at
  425.             all depths.  The effect of this is that the maximum dot clock
  426.             visible to the user is a half or a third of the value at 8bpp.
  427.             The HiQV series of chips doesn't need to use additional clock
  428.             cycles to display higher depths, and so the same modeline can be
  429.             used at all depths, without needing to divide the clocks.  Also
  430.             16/24/32 bpp modes will need 2 , 3 or 4 times respectively more
  431.             video ram.
  432.  
  433.       * Frame Acceleration
  434.             Many DSTN screens use frame acceleration to improve the perfor-
  435.             mance of the screen. This can be done by using an external frame
  436.             buffer, or incorporating the framebuffer at the top of video ram
  437.             depending on the particular implementation. The Xserver assumes
  438.             that the framebuffer, if used, will be at the top of video ram.
  439.             The amount of ram required for the framebuffer will vary depend-
  440.             ing on the size of the screen, and will reduce the amount of
  441.             video ram available to the modes. Typical values for the size of
  442.             the framebuffer will be 61440 bytes (640x480 panel), 96000 bytes
  443.             (800x600 panel) and 157287 bytes (1024x768 panel).
  444.  
  445.       * H/W Acceleration
  446.             The H/W cursor will need 1kB for the 6554x and 4kb for the 65550.
  447.             On the 64300 chips the H/W cursor is stored in registers and so
  448.             no allowance is needed for the H/W cursor. In addition to this
  449.             many graphics operations are speeded up using a "pixmap cache".
  450.             Leaving too little memory available for the cache will only have
  451.             a detrimental effect on the graphics performance.
  452.  
  453.       * PseudoColor Overlay
  454.             If you use the "overlay" option, then there are actually two
  455.             framebuffers in the video memory. An 8bpp one and a 16bpp one.
  456.             The total memory requirements in this mode of operation is there-
  457.             fore similar to a 24bpp mode. The overlay consumes memory band-
  458.             width, so that the maximum dotclock will be similar to a 24bpp
  459.             mode.
  460.  
  461.       * VESA like modes
  462.             We recommend that you try and pick a mode that is similar to a
  463.             standard VESA mode. If you don't a suspend/resume or LCD/CRT
  464.             switch might mess up the screen. This is a problem with the video
  465.             BIOS not knowing about all the funny modes that might be
  466.             selected.
  467.  
  468.       * Dot Clock
  469.             For LCD screens, the lowest clock that gives acceptable contrast
  470.             and flicker is usually the best one. This also gives more memory
  471.             bandwidth for use in the drawing operations. Some users prefer to
  472.             use clocks that are defined by their BIOS. This has the advantage
  473.             that the BIOS will probably restore the clock they specified
  474.             after a suspend/resume or LCD/CRT switch. For a complete discus-
  475.             sion on the dot clock limitations, see the next section.
  476.  
  477. The driver is capable of driving both a CRT and a flat panel display. In fact
  478. the timing for the flat panel are dependent on the specification of the panel
  479. itself and are independent of the particular mode chosen. For this reason it
  480. is recommended to use one of the programs that automatically generate
  481. XF86Config files, such as "xf86config" or "XF86Setup".
  482.  
  483. However there are many older machines, particularly those with 800x600 screen
  484. or larger, that need to reprogram the panel timings. The reason for this is
  485. that the manufacturer has used the panel timings to get a standard EGA mode
  486. to work on flat panel, and these same timings don't work for an SVGA mode.
  487. For these machines the "UseModeline" and/or possibly the "FixPanelSize"
  488. option might be needed. Some machines that are known to need these options
  489. include.
  490.  
  491.           Modeline "640x480@8bpp"    25.175  640  672  728  816   480  489  501  526
  492.           Modeline "640x480@16bpp"  25.175  640  672  728  816   480  489  501  526
  493.           Options: "UseModeline"
  494.           Tested on a Prostar 8200, (640x480, 65548, 1Mbyte)
  495.  
  496.           Modeline "800x600@8bpp"    28.322  800  808  848  936   600  600  604  628
  497.           Options: "FixPanelSize", "UseModeline"
  498.           Tested on a HP OmniBook 5000CTS (800x600 TFT, 65548, 1Mbyte)
  499.  
  500.           Modeline "800x600@8bpp"    30.150  800  896  960 1056   600  600  604  628
  501.           Options: "FixPanelSize", "UseModeline"
  502.           Test on a Zeos Meridan 850c (800x600 DSTN, 65545, 1Mbyte)
  503.  
  504. The NEC Versa 4080 just needs the "FixPanelSize" option. To the best of my
  505. knowledge no machine with a HiQV needs the "UseModeline" or "FixPanelSize"
  506. options.
  507.  
  508. 5.  The Full Story on Clock Limitations
  509.  
  510. There has been much confusion about exactly what the clock limitations of the
  511. Chips and Technologies chipsets are. Hence I hope that this section will
  512. clear up the misunderstandings.
  513.  
  514. In general there are two factors determining the maximum dotclock.  There is
  515. the limit of the maximum dotclock the video processor can handle, and there
  516. is another limitation of the available memory bandwidth. The memory bandwidth
  517. is determined by the clock used for the video memory.  For chipsets incapable
  518. of colour depths greater that 8bpp like the 65535, the dotclock limit is
  519. solely determined by the highest dotclock the video processor is capable of
  520. handling. So this limit will be either 56MHz or 68MHz for the 655xx chipsets,
  521. depending on what voltage they are driven with, or 80MHz for the 64200
  522. WinGine machines.
  523.  
  524. The 6554x and 64300 WinGine chipsets are capable of colour depths of 16 or
  525. 24bpp. However there is no reliable way of probing the memory clock used in
  526. these chipsets, and so a conservative limit must be taken for the dotclock
  527. limit. In this case the driver divides the video processors dotclock limita-
  528. tion by the number of bytes per pixel, so that the limitations for the vari-
  529. ous colour depths are
  530.  
  531.                              8bpp    16bpp   24bpp
  532.      64300                   85      42.5    28.33
  533.      65540/65545 3.3v        56      28      18.67
  534.      65540/65545 5v          68      34      22.67
  535.      65546/65548             80      40      26.67
  536.  
  537. For a CRT or TFT screen these limitations are conservative and the user might
  538. safely override them with the "DacSpeed" option to some extent. However these
  539. numbers take no account of the extra bandwidth needed for DSTN screens.
  540.  
  541. For the HiQV series of chips, the memory clock can be successfully probed.
  542. Hence you will see a line like
  543.  
  544.      (--) CHIPS(0): Probed memory clock of  40.090 MHz
  545.  
  546. in your startx log file. Note that many chips are capable of higher memory
  547. clocks than actually set by BIOS. You can use the "SetMClk" option in your
  548. XF86Config file to get a higher MClk. However some video ram, particularly
  549. EDO, might not be fast enough to handle this, resulting in drawing errors on
  550. the screen. The formula to determine the maximum usable dotclock on the HiQV
  551. series of chips is
  552.  
  553.      Max dotclock = min(MaxDClk,  0.70  * 4 * MemoryClk / (BytesPerPixel +
  554.                      (isDSTN == TRUE ? 1 : 0)))
  555.  
  556. which says that there are two limits on the dotclock. One the overall maxi-
  557. mum, and another due to the available memory bandwidth of the chip.  For the
  558. memory bandwidth 4 bytes are transfered every clock cycle (Hence the 4), but
  559. after accounting for the RAS/CAS signaling only about 70% of the bandwidth is
  560. available. The whole thing is divided by the bytes per pixel, plus an extra
  561. byte if you are using a DSTN. The extra byte with DSTN screens is used for
  562. the frame buffering/acceleration in these screens. So for the various Chips
  563. and Technologies chips the maximum specifications are
  564.  
  565.                          Max DClk MHz      Max Mem Clk MHz
  566.      65550 rev A 3.3v          80                38
  567.      65550 rev A 5v           110                38
  568.      65550 rev B               95                50
  569.      65554                     94.5              55
  570.      65555                    110                55
  571.      68554                    110                55
  572.      69000                    135                83
  573.      69030                    170               100
  574.  
  575. Note that all of the chips except the 65550 rev A are 3.3v only. Which is the
  576. reason for the drop in the dot clock. Now the maximum memory clock is just
  577. the maximum supported by the video processor, not the maximum supported by
  578. the video memory. So the value actually used for the memory clock might be
  579. significantly less than this maximum value. But assuming your memory clock is
  580. programmed to these maximum values the various maximum dot clocks for the
  581. chips are
  582.  
  583.                              ------CRT/TFT-------    --------DSTN--------
  584.                              8bpp    16bpp   24bpp   8bpp    16bpp   24bpp
  585.      65550 rev A 3.3v        80      53.2    35.47   53.2    35.47   26.6
  586.      65550 rev A 5v          106.2   53.2    35.47   53.2    35.47   26.6
  587.      65550 rev B             95      70      46.67   70      46.67   35.0
  588.      65554                   94.5    77      51.33   77      51.33   38.5
  589.      65555                   110     77      51.33   77      51.33   38.5
  590.      68554                   110     77      51.33   77      51.33   38.5
  591.      69000                   135    116.2    77.47  116.2    77.47   58.1
  592.      69030                   170    140      93.33  140      93.33   70
  593.  
  594. If you exceed the maximum set by the memory clock, you'll get corruption on
  595. the screen during graphics operations, as you will be starving the HW BitBlt
  596. engine of clock cycles. If you are driving the video memory too fast (too
  597. high a MemClk) you'll get pixel corruption as the data actually written to
  598. the video memory is corrupted by driving the memory too fast. You can proba-
  599. bly get away with exceeding the Max DClk at 8bpp on TFT's or CRT's by up to
  600. 10% or so without problems, it will just generate more heat, since the 8bpp
  601. clocks aren't limited by the available memory bandwidth.
  602.  
  603. If you find you truly can't achieve the mode you are after with the default
  604. clock limitations, look at the options "DacSpeed" and "SetMClk". Using these
  605. should give you all the capabilities you'll need in the server to get a par-
  606. ticular mode to work. However use caution with these options, because there
  607. is no guarantee that driving the video processor beyond it capabilities won't
  608. cause damage.
  609.  
  610. 6.  Troubleshooting
  611.  
  612.       The cursor appears as a white box, after switching modes
  613.             There is a known bug in the H/W cursor, that sometimes causes the
  614.             cursor to be redrawn as a white box, when the mode is changed.
  615.             This can be fixed by moving the cursor to a different region,
  616.             switching to the console and back again, or if it is too annoying
  617.             the H/W cursor can be disabled by removing the "HWcursor" option.
  618.  
  619.       The cursor hot-spot isn't at the same point as the cursor
  620.             With modes on the 6555x machines that are stretched to fill the
  621.             flat panel, the H/W cursor is not correspondingly stretched. This
  622.             is a small and long-standing bug in the current server. You can
  623.             avoid this by either using the "NoStretch" option or removing the
  624.             HWcursor" option.
  625.  
  626.       The lower part of the screen is corrupted
  627.             Many DSTN screens use the top of video ram to implement a frame
  628.             accelerator. This reduces the amount of video ram available to
  629.             the modes. The server doesn't prevent the user from specifying a
  630.             mode that will use this memory, it prints a warning on the con-
  631.             sole.  The effect of this problem will be that the lower part of
  632.             the screen will reside in the same memory as the frame accelera-
  633.             tor and will therefore be corrupt. Try reducing the amount of
  634.             memory consumed by the mode.
  635.  
  636.       There is a video signal, but the screen doesn't sync.
  637.             You are using a mode that your screen cannot handle. If it is a
  638.             non-standard mode, maybe you need to tweak the timings a bit. If
  639.             it is a standard mode and frequency that your screen should be
  640.             able to handle, try to find different timings for a similar mode
  641.             and frequency combination. For LCD modes, it is possible that
  642.             your LCD panel requires different panel timings at the text con-
  643.             sole than with a graphics mode. In this case you will need the
  644.             "UseModeline" and perhaps also the "FixPanelSize" options to
  645.             reprogram the LCD panel timings to sensible values.
  646.  
  647.       `Wavy' screen.
  648.             Horizontal waving or jittering of the whole screen, continuously
  649.             (independent from drawing operations).  You are probably using a
  650.             dot clock that is too high (or too low); it is also possible that
  651.             there is interference with a close MCLK. Try a lower dot clock.
  652.             For CRT's you can also try to tweak the mode timings; try
  653.             increasing the second horizontal value somewhat.
  654.  
  655.       Crash or hang after start-up (probably with a black screen).
  656.             Try the "NoAccel" or one of the XAA acceleration options dis-
  657.             cussed above. Check that the BIOS settings are OK; in particular,
  658.             disable caching of 0xa0000-0xaffff. Disabling hidden DRAM refresh
  659.             may also help.
  660.  
  661.       Hang as the first text is appearing on the screen on SVR4 machines.
  662.             This problem has been reported under UnixWare 1.x, but not
  663.             tracked down. It doesn't occur under UnixWare 2.x and only occurs
  664.             on the HiQV series of chips. It might affect some other SVR4
  665.             operating systems as well. The workaround is to turn off the use
  666.             of CPU to screen acceleration with the "XaaNoCPUToScreenCol-
  667.             orExapndFill" option.
  668.  
  669.       Crash, hang, or trash on the screen after a graphics operation.
  670.             This may be related to a bug in one of the accelerated functions,
  671.             or a problem with the BitBLT engine. Try the "NoAccel" or one of
  672.             the XAA acceleration options discussed above. Also check the BIOS
  673.             settings. It is also possible that with a high dot clock and
  674.             depth on a large screen there is very little bandwidth left for
  675.             using the BitBLT engine. Try reducing the clock.
  676.  
  677.       Chipset is not detected.
  678.             Try forcing the chipset to a type that is most similar to what
  679.             you have.
  680.  
  681.       The screen is blank when starting X
  682.             One possible cause of this problem with older linux kernels is
  683.             that the "APM_DISPLAY_BLANK" option didn't work correct. Either
  684.             upgrade your kernel or rebuild it with the "APM_DISPLAY_BLANK"
  685.             option disabled. If the problem remains, or you aren't using
  686.             linux, a CRT/LCD or switch to and from the virtual console will
  687.             often fix it.
  688.  
  689.       Textmode is not properly restored
  690.             This has been reported on some configurations. Many laptops use
  691.             the programmable clock of the 6554x chips at the console.  It is
  692.             not always possible to find out the setting that is used for this
  693.             clock if BIOS has written the MClk after the VClk. Hence the
  694.             server assumes a 25.175MHz clock at the console. This is correct
  695.             for most modes, but can cause some problems. Usually this is
  696.             fixed by switching between the LCD and CRT. Alternatively the
  697.             user can use the "TextClockFreq" option described above to select
  698.             a different clock for the text console. Another possible cause of
  699.             this problem is if linux kernels are compiled with the "APM_DIS-
  700.             PLAY_BLANK" option.  As mentioned before, try disabling this
  701.             option.
  702.  
  703.       I can't display 640x480 on my 800x600 LCD
  704.             The problem here is that the flat panel needs timings that are
  705.             related to the panel size, and not the mode size. There is no
  706.             facility in the current Xservers to specify these values, and so
  707.             the server attempts to read the panel size from the chip. If the
  708.             user has used the "UseModeline" or "FixPanelSize" options the
  709.             panel timings are derived from the mode, which can be different
  710.             than the panel size. Try deleting theses options  from XF86Config
  711.             or using an LCD/CRT switch.
  712.  
  713.       I can't get a 320x240 mode to occupy the whole 640x480 LCD
  714.             There is a bug in the 6554x's H/W cursor for modes that are dou-
  715.             bled vertically. The lower half of the screen is not accessible.
  716.             The servers solution to this problem is not to do doubling verti-
  717.             cally.  Which results in the 320x240 mode only expanded to
  718.             640x360. If this is a problem, a work around is to remove the
  719.             "HWcursor" option. The server will then allow the mode to occupy
  720.             the whole 640x480 LCD.
  721.  
  722.       After a suspend/resume my screen is messed up
  723.             During a suspend/resume, the BIOS controls what is read and writ-
  724.             ten back to the registers. If the screen is using a mode that
  725.             BIOS doesn't know about, then there is no guarantee that it will
  726.             be resumed correctly. For this reason a mode that is as close to
  727.             VESA like as possible should be selected. It is also possible
  728.             that the VGA palette can be affected by a suspend/resume.  Using
  729.             an 8bpp, the colour will then be displayed incorrectly. This
  730.             shouldn't affect higher depths, and is fixable with a switch to
  731.             the virtual console and back.
  732.  
  733.       The right hand edge of the mode isn't visible on the LCD
  734.             This is usually due to a problem with the "LcdCenter" option. If
  735.             this option is removed form XF86Config, then the problem might go
  736.             away. Alternatively the manufacturer could have incorrectly pro-
  737.             grammed the panel size in the EGA console mode. The "FixPanel-
  738.             Size" can be used to force the modeline values into the panel
  739.             size registers. Two machines that are known to have this problem
  740.             are the "HP OmniBook 5000" and the "NEC  Versa 4080".
  741.  
  742.       My TFT screen has a reddish tint in 24bpp mode
  743.             For 6554x chipsets the server assumes that the TFT bus width is
  744.             24bits. If this is not true then the screen will appear to have a
  745.             reddish tint. This can be fixed by using the "18BitBus" option.
  746.             Note that the reverse is also true. If the "18BitBus" is used and
  747.             the TFT bus width is 24bpp, then the screen will appear reddish.
  748.             Note that this option only has an effect on TFT screens.
  749.  
  750.       SuperProbe won't work with my chipset
  751.             At least one non-PCI bus system with a HiQV chipset has been
  752.             found to require the "-no_bios" option for SuperProbe to cor-
  753.             rectly detect the chipset with the factory default BIOS settings.
  754.             The server itself can correctly detect the chip in the same situ-
  755.             ation.
  756.  
  757.       My 690xx machine lockups when using the "MMIO" option
  758.             The 690xx MMIO mode has been implemented entirely from the manual
  759.             as I don't have the hardware to test it on. At this point no
  760.             testing has been done and it is entirely possible that the "MMIO
  761.             option will lockup your machine. You have been warned! However if
  762.             you do try this option and are willing to debug it, I'd like to
  763.             hear from you.
  764.  
  765.       My TrueColor windows are corrupted when using the "Overlay" option
  766.             Chips and Technologies specify that the memory clock used with
  767.             the multimedia engine running should be lower than that used
  768.             without. As use of the HiQV chipsets multimedia engine was sup-
  769.             posed to be for things like zoomed video overlays, its use was
  770.             supposed to be occasional and so most machines have their memory
  771.             clock set to a value that is too high for use with the "Overlay"
  772.             option. So with the "Overlay" option, using the "SetMClk" option
  773.             to reduce the speed of the memory clock is recommended.
  774.  
  775.       I can't start X-windows with 16, 24 or 32bpp
  776.             Firstly, is your machine capable of 16/24/32bpp with the mode
  777.             specified. Many LCD displays are incapable of using a 24bpp mode.
  778.             Also you need at least a 65540 to use 16/24bpp and at least a
  779.             65550 for 32bpp. The amount of memory used by the mode will be
  780.             doubled/tripled/quadrupled. The correct options to start the
  781.             server with these modes are
  782.  
  783.                         startx -- -depth 16             5-6-5 RGB ('64K color', XGA)
  784.                         startx -- -depth 15             5-5-5 RGB ('Hicolor')
  785.                         startx -- -depth 24             8-8-8 RGB truecolor
  786.  
  787.             or with the HiQV series of chips you might try
  788.  
  789.                         startx -- -depth 24 -fbbpp 32   8-8-8 RGB truecolor
  790.  
  791.             however as XFree86 version 4.0 allows 32bpp pixmaps to be used
  792.             with framebuffers operating in 24bpp, this mode of operating will
  793.             cost performance for no gain in functionality.
  794.  
  795.             Note that the "-bpp" option has been removed and replaced with a
  796.             "-depth" and "-fbbpp" option because of the confusion between the
  797.             depth and number of bits per pixel used to represent to frame-
  798.             buffer and the pixmaps in the screens memory.
  799.  
  800. A general problem with the server that can manifested in many way such as
  801. drawing errors, wavy screens, etc is related to the programmable clock. Many
  802. potential programmable clock register setting are unstable.  However luckily
  803. there are many different clock register setting that can give the same or
  804. very similar clocks. The clock code can be fooled into giving a different and
  805. perhaps more stable clock by simply changing the clock value slightly. For
  806. example 65.00MHz might be unstable while 65.10MHz is not. So for unexplained
  807. problems not addressed above, please try to alter the clock you are using
  808. slightly, say in steps of 0.05MHz and see if the problem goes away. Alterna-
  809. tively, using the "UseVClk1" option with HiQV chips might also help.
  810.  
  811. For other screen drawing related problems, try the "NoAccel" or one of the
  812. XAA acceleration options discussed above. A useful trick for all laptop com-
  813. puters is to switch between LCD/CRT (usually with something like Fn-F5), if
  814. the screen is having problems.
  815.  
  816. If you are having driver-related problems that are not addressed by this doc-
  817. ument, or if you have found bugs in accelerated functions, you can try con-
  818. tacting the XFree86 team (the current driver maintainer can be reached at
  819. <dbateman@club-internet.fr> or <eich@xfree86.org>), or post in the Usenet
  820. newsgroup "comp.windows.x.i386unix".
  821.  
  822. 7.  Disclaimer
  823.  
  824. XFree86, allows the user to do damage to their hardware with software.
  825. Although the authors of this software have tried to prevent this, they dis-
  826. claim all responsibility for any damage caused by the software. Use caution,
  827. if you think the Xserver is frying your screen, TURN THE COMPUTER OFF!!
  828.  
  829. 8.  Acknowledgement
  830.  
  831. The authors of this software wish to acknowledge the support supplied by
  832. Chips and Technologies during the development of this software.
  833.  
  834. 9.  Authors
  835.  
  836. Major Contributors (In no particular order)
  837.  
  838.    o Nozomi Ytow
  839.  
  840.    o Egbert Eich
  841.  
  842.    o David Bateman
  843.  
  844.    o Xavier Ducoin
  845.  
  846. Contributors (In no particular order)
  847.  
  848.    o Ken Raeburn
  849.  
  850.    o Shigehiro Nomura
  851.  
  852.    o Marc de Courville
  853.  
  854.    o Adam Sulmicki
  855.  
  856.    o Jens Maurer
  857.  
  858. We also thank the many people on the net who have contributed by reporting
  859. bugs and extensively testing this server.
  860.  
  861.      Generated from XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/chips.sgml,v 3.30 2000/03/05 16:59:11 dawes Exp $
  862.  
  863.