intel810.txt 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. Intel 810/815 Framebuffer driver
  2. Tony Daplas <adaplas@pol.net>
  3. http://i810fb.sourceforge.net
  4. March 17, 2002
  5. First Released: July 2001
  6. Last Update: September 12, 2005
  7. ================================================================
  8. A. Introduction
  9. This is a framebuffer driver for various Intel 810/815 compatible
  10. graphics devices. These include:
  11. Intel 810
  12. Intel 810E
  13. Intel 810-DC100
  14. Intel 815 Internal graphics only, 100Mhz FSB
  15. Intel 815 Internal graphics only
  16. Intel 815 Internal graphics and AGP
  17. B. Features
  18. - Choice of using Discrete Video Timings, VESA Generalized Timing
  19. Formula, or a framebuffer specific database to set the video mode
  20. - Supports a variable range of horizontal and vertical resolution and
  21. vertical refresh rates if the VESA Generalized Timing Formula is
  22. enabled.
  23. - Supports color depths of 8, 16, 24 and 32 bits per pixel
  24. - Supports pseudocolor, directcolor, or truecolor visuals
  25. - Full and optimized hardware acceleration at 8, 16 and 24 bpp
  26. - Robust video state save and restore
  27. - MTRR support
  28. - Utilizes user-entered monitor specifications to automatically
  29. calculate required video mode parameters.
  30. - Can concurrently run with xfree86 running with native i810 drivers
  31. - Hardware Cursor Support
  32. - Supports EDID probing either by DDC/I2C or through the BIOS
  33. C. List of available options
  34. a. "video=i810fb"
  35. enables the i810 driver
  36. Recommendation: required
  37. b. "xres:<value>"
  38. select horizontal resolution in pixels. (This parameter will be
  39. ignored if 'mode_option' is specified. See 'o' below).
  40. Recommendation: user preference
  41. (default = 640)
  42. c. "yres:<value>"
  43. select vertical resolution in scanlines. If Discrete Video Timings
  44. is enabled, this will be ignored and computed as 3*xres/4. (This
  45. parameter will be ignored if 'mode_option' is specified. See 'o'
  46. below)
  47. Recommendation: user preference
  48. (default = 480)
  49. d. "vyres:<value>"
  50. select virtual vertical resolution in scanlines. If (0) or none
  51. is specified, this will be computed against maximum available memory.
  52. Recommendation: do not set
  53. (default = 480)
  54. e. "vram:<value>"
  55. select amount of system RAM in MB to allocate for the video memory
  56. Recommendation: 1 - 4 MB.
  57. (default = 4)
  58. f. "bpp:<value>"
  59. select desired pixel depth
  60. Recommendation: 8
  61. (default = 8)
  62. g. "hsync1/hsync2:<value>"
  63. select the minimum and maximum Horizontal Sync Frequency of the
  64. monitor in kHz. If using a fixed frequency monitor, hsync1 must
  65. be equal to hsync2. If EDID probing is successful, these will be
  66. ignored and values will be taken from the EDID block.
  67. Recommendation: check monitor manual for correct values
  68. (default = 29/30)
  69. h. "vsync1/vsync2:<value>"
  70. select the minimum and maximum Vertical Sync Frequency of the monitor
  71. in Hz. You can also use this option to lock your monitor's refresh
  72. rate. If EDID probing is successful, these will be ignored and values
  73. will be taken from the EDID block.
  74. Recommendation: check monitor manual for correct values
  75. (default = 60/60)
  76. IMPORTANT: If you need to clamp your timings, try to give some
  77. leeway for computational errors (over/underflows). Example: if
  78. using vsync1/vsync2 = 60/60, make sure hsync1/hsync2 has at least
  79. a 1 unit difference, and vice versa.
  80. i. "voffset:<value>"
  81. select at what offset in MB of the logical memory to allocate the
  82. framebuffer memory. The intent is to avoid the memory blocks
  83. used by standard graphics applications (XFree86). The default
  84. offset (16 MB for a 64 MB aperture, 8 MB for a 32 MB aperture) will
  85. avoid XFree86's usage and allows up to 7 MB/15 MB of framebuffer
  86. memory. Depending on your usage, adjust the value up or down
  87. (0 for maximum usage, 31/63 MB for the least amount). Note, an
  88. arbitrary setting may conflict with XFree86.
  89. Recommendation: do not set
  90. (default = 8 or 16 MB)
  91. j. "accel"
  92. enable text acceleration. This can be enabled/reenabled anytime
  93. by using 'fbset -accel true/false'.
  94. Recommendation: enable
  95. (default = not set)
  96. k. "mtrr"
  97. enable MTRR. This allows data transfers to the framebuffer memory
  98. to occur in bursts which can significantly increase performance.
  99. Not very helpful with the i810/i815 because of 'shared memory'.
  100. Recommendation: do not set
  101. (default = not set)
  102. l. "extvga"
  103. if specified, secondary/external VGA output will always be enabled.
  104. Useful if the BIOS turns off the VGA port when no monitor is attached.
  105. The external VGA monitor can then be attached without rebooting.
  106. Recommendation: do not set
  107. (default = not set)
  108. m. "sync"
  109. Forces the hardware engine to do a "sync" or wait for the hardware
  110. to finish before starting another instruction. This will produce a
  111. more stable setup, but will be slower.
  112. Recommendation: do not set
  113. (default = not set)
  114. n. "dcolor"
  115. Use directcolor visual instead of truecolor for pixel depths greater
  116. than 8 bpp. Useful for color tuning, such as gamma control.
  117. Recommendation: do not set
  118. (default = not set)
  119. o. <xres>x<yres>[-<bpp>][@<refresh>]
  120. The driver will now accept specification of boot mode option. If this
  121. is specified, the options 'xres' and 'yres' will be ignored. See
  122. Documentation/fb/modedb.txt for usage.
  123. D. Kernel booting
  124. Separate each option/option-pair by commas (,) and the option from its value
  125. with a colon (:) as in the following:
  126. video=i810fb:option1,option2:value2
  127. Sample Usage
  128. ------------
  129. In /etc/lilo.conf, add the line:
  130. append="video=i810fb:vram:2,xres:1024,yres:768,bpp:8,hsync1:30,hsync2:55, \
  131. vsync1:50,vsync2:85,accel,mtrr"
  132. This will initialize the framebuffer to 1024x768 at 8bpp. The framebuffer
  133. will use 2 MB of System RAM. MTRR support will be enabled. The refresh rate
  134. will be computed based on the hsync1/hsync2 and vsync1/vsync2 values.
  135. IMPORTANT:
  136. You must include hsync1, hsync2, vsync1 and vsync2 to enable video modes
  137. better than 640x480 at 60Hz. HOWEVER, if your chipset/display combination
  138. supports I2C and has an EDID block, you can safely exclude hsync1, hsync2,
  139. vsync1 and vsync2 parameters. These parameters will be taken from the EDID
  140. block.
  141. E. Module options
  142. The module parameters are essentially similar to the kernel
  143. parameters. The main difference is that you need to include a Boolean value
  144. (1 for TRUE, and 0 for FALSE) for those options which don't need a value.
  145. Example, to enable MTRR, include "mtrr=1".
  146. Sample Usage
  147. ------------
  148. Using the same setup as described above, load the module like this:
  149. modprobe i810fb vram=2 xres=1024 bpp=8 hsync1=30 hsync2=55 vsync1=50 \
  150. vsync2=85 accel=1 mtrr=1
  151. Or just add the following to a configuration file in /etc/modprobe.d/
  152. options i810fb vram=2 xres=1024 bpp=16 hsync1=30 hsync2=55 vsync1=50 \
  153. vsync2=85 accel=1 mtrr=1
  154. and just do a
  155. modprobe i810fb
  156. F. Setup
  157. a. Do your usual method of configuring the kernel.
  158. make menuconfig/xconfig/config
  159. b. Under "Code maturity level options" enable "Prompt for development
  160. and/or incomplete code/drivers".
  161. c. Enable agpgart support for the Intel 810/815 on-board graphics.
  162. This is required. The option is under "Character Devices".
  163. d. Under "Graphics Support", select "Intel 810/815" either statically
  164. or as a module. Choose "use VESA Generalized Timing Formula" if
  165. you need to maximize the capability of your display. To be on the
  166. safe side, you can leave this unselected.
  167. e. If you want support for DDC/I2C probing (Plug and Play Displays),
  168. set 'Enable DDC Support' to 'y'. To make this option appear, set
  169. 'use VESA Generalized Timing Formula' to 'y'.
  170. f. If you want a framebuffer console, enable it under "Console
  171. Drivers".
  172. g. Compile your kernel.
  173. h. Load the driver as described in sections D and E.
  174. i. Try the DirectFB (http://www.directfb.org) + the i810 gfxdriver
  175. patch to see the chipset in action (or inaction :-).
  176. G. Acknowledgment:
  177. 1. Geert Uytterhoeven - his excellent howto and the virtual
  178. framebuffer driver code made this possible.
  179. 2. Jeff Hartmann for his agpgart code.
  180. 3. The X developers. Insights were provided just by reading the
  181. XFree86 source code.
  182. 4. Intel(c). For this value-oriented chipset driver and for
  183. providing documentation.
  184. 5. Matt Sottek. His inputs and ideas helped in making some
  185. optimizations possible.
  186. H. Home Page:
  187. A more complete, and probably updated information is provided at
  188. http://i810fb.sourceforge.net.
  189. ###########################
  190. Tony