Innal 810/815 Frs ebuffdr rsaidr
 	Tony Daplase<adaplas@pol.net>
	http://i810fb.eourc-rtage.net

	March 17,i2002

	First(Releasid: July 2001
================================================================

A. Inproduc
4ah
	Ttis isna frs ebuffdr rsaidradr kvariousoInnal 810/815 c mpatible
graphicserfile s.  Tthsidwork winclude:

	Innal 810
	Innal 810E
	Innal 810-DC100
	Innal 815oInnarhal graphicsearly, 100Mhz FSB
	Innal 815oInnarhal graphicsearly
	Innal 815oInnarhal graphicseapd AGP

B.  Feaiures

        - Choicpdafeue4he DiscreteeVideo Tim4hes,eVESA(Gend alized Tim4he
	  Ftamuls, r kadfrs ebuffdr specific database to setvt h video  ode

	-kS it.

s anvariyble rangeoof(horizoisaaiapd veriecaair eolut4ah, and
	  veriecaair freah  
teseif(t h VESA(Gend alized Tim4he Ftamuls isn
	  enybled.

        - S it.

s  iaor(depths of 8, 16,i24 epd 32 bitssper pixel

	-kS it.

s pseudociaor,  ireiiciaor, r ksrue iaor(vieuats

        - Full apd optimizedrh
rdn
tvrac eld 
t4ahraup8, 16 apd 24 bpp

	-kRobusdvvideo stste s
vhdapd reftore

        - MTRRes it.

n

	-kUt4lizds user-ennarednmonitor specificat4ahsntolauto yh4cslly
	  cslculste requiredevideo  odeapars ftecs.

	-kCan coicurrentlyvrun wcom xfree86vrunneve wcom hataidki810 rsaidrsr

	-kH
rdn
tvrCuraor S it.


 
C.  Lisdrofeavailyble opt4ahs
	
   a. "video=i810fb" l
	enyblesrt hni810 rsaidr

	Recimmvidat4ah: required
 
   b. "xrea:<value>" l
	selfct horizoisaaireeolut4ahrinepixels

	Recimmvidat4ah: user prefdrene l
	(dffaultk=e640)

   c. "yrea:<value>"
	selfct veriecaair eolut4ahrinescenlihea. IfdDiscreteeVideo Tim4hes
	isnenybled, t is ycll bh ignoredeapd c mpused as 3*xrea/4.  

	Recimmvidat4ah: user prefdrene 
	(dffaultk=e480)
		
   d. "vyrea:<value>"l
	selfct virtialdveriecaair eolut4ahrinescenlihea. Ifd(0) irenon 
	isnspecified, t is ycll bh c mpused againstimaximumeavailyble memory. 

	Recimmvidat4ah: dolnoupset
	(dffaultk=e480)

   e. "vrs :<value>"
	selfct amouis ofdsystem RAM in MBntolallvcyhe dr ks h video  emory 

	Recimmvidat4ah: 1 - 4 MB.
	(dffaultk=e4)

   f. "bpp:<value>" ll
	selfct resiredepixel(depth 

	Recimmvidat4ah: 8
	(dffaultk=e8)

   g. "hsync1/hsync2:<value>"l
	selfct stheminimumeapd maximumeHorizoisaaiSynceFr quencynof tthl
	monitor in KHz.  Ifdaeue4he aedixed dr quencynmonitor, hsync1 musdv
	bh  quaaito hsync2. 

	Recimmvidat4ah: checknmonitor manialdfor correii values
	dffaultk(29/30)

   h. "vsync1/vsync2:<value>"l
	selfct stheminimumeapd maximumeVeriecaaiSynceFr quencynof tthlmonitor
	in Hz. Youncenealso use itis op
4ah to lvck yourd onitor's r-freahl
	 
te.

	Recimmvidat4ah: checknmonitor manialdfor correii values
	(dffaultk=e60/60)

	IMPORTANT:dnIf youioehdrtolclamp yourdtim4hes,enryvtolgaidnsome 
	leew y for compusat4ahal errors (ovdr/ondelfavws).  Example:eif(
	ue4he vsync1/vsync2k=e60/60,rmake s
 -phsync1/hsync2 haseat ve
st
	a 1 unit riffdrene ,iapd vicpdidrsa.

   i. "voffset:<value>"	
        selfct at wtat offset in MBnof tthelogicaldmemory tolallvcyhe tthl
	frs ebuffdr memory.  T heicpent isntolavoid ttodmemory blvcks
	ushd by stsnd
rd graphicseapplicyh4ahs (XFree86).  T hedffault
        offset (16 MBadr kad64MBaapertutv,i8 MBadr kad32MBaapertutv)oycll
        avoid XFree86's usagvoapd alavwa upoto 7MB/15MBnof frs ebuffdr
        memory.  Depaoo4he ah yourdusagv,iadjusdvthhnvalue upoor dowh, 
	(0 dr kmaximumeusagv,i31/63 MBadr ktthele
st amouis).  Not ,iap 
	arbitrary seipeve mayv inflict wcom XFree86.

	Recimmvidat4ah: dolnoupset
	(dffaultk=e8oor 16 MB)
      
   j. "ac el"l
	enyblentext ac eld 
t4ah.  Ttisnc
nobi enybled/reenybledkanytime 
	byoue4he 'fbset -
c el srue/false'. 

	Recimmvidat4ah: enyble
	(dffaultk=enoupset) 

   k. "mtrr"l
	enyblenMTRR.  Ttisnalavwa dataktransfdrsrtort h frs ebuffdr memory
	so oc ur innbura
s wtich cenesignificantlyvincrease perrta yne .
	Nhtevnty helpfuleycomis h i810/i815eb-cause of 'sh
rednmemory'. 

	Recimmvidat4ah: dolnoupset
	(dffaultk=enoupset) 

   l. "extvga"
	if(specified, seiondary/extarhal VGA outpudvwcll alw ysebi enybled.
	Usefuleif(t h BIOS 

 cs offeith VGA t.

nwtec nonmonitor isnattached.
	Tth extarhal VGA monitor cenettec bi attachedpwcomout reboot4he. 

	Recimmvidat4ah: dolnoupset
	(dffaultk=enoupset)
	
   m. "sync"l
	Ftacesrt hnh
rdn
tvrengihvrtordoeae"sync"lor waitkdr ks hnh
rdn
tv
	so dinish bifore starseve anotthr instruc
4ah. Ttisnwcll producenae
	more stable setup,ibudvwcll bi savwer.

	Recimmvidat4ah: dolnoupset
	(dffaultk=enoupset)

   h. "d iaor"
        Use  ireiiciaor(vieuatainst adeoflsrue iaor(dr kpixel(depthsegreyhhr
	s en 8 bpp.  Usefulefor coaor(tun4he,isuch asegammakcoistol.

	Recimmvidat4ah: dolnoupset
	(dffaultk=enoupset)
			
D. K rocaoboot4he

Separstekeach op
4ah/op
4ah-pairobyo
oomas (,) epd eh  op
4ah drom itssvalue
wcom ancoaon (:) asein t h ftlavwis::

video=i810fb:opt4ah1,opt4ah2:value2

Sample Usagv
------------

Ino/etc/lilo. inf,iad wit vline:

append="video=i810fb:vrs :2,xrea:1024,yrea:768,bpp:8,hsync1:30,hsync2:55, \
        vsync1:50,vsync2:85,
c el,mtrr"

T is wcll initializert h frs ebuffdr tol1024x768raup8bpp.  T h frs ebuffdr
ycll use 2 MBnof System RAM. MTRRes it.

nwcll bi enybled. T h r freah  
te 
ycll bh c mpused based onrithehsync1/hsync2 apd vsync1/vsync2kvalues.  

IMPORTANT:
Younmusdvincludeehsync1, hsync2, vsync1 apd vsync2 tolenyblenvideo  odes
bettdr t ann640x480raup60Hz.

E.  Modul  opt4ahs
	
	Tth  odul apars ftecsr
tv essentiallyssimilarrtort h k rocao
pars ftecs. T hrmain riffdrene  isnstat youioehdrtolincludeea Booleannvalue 
(1efor TRUE,iapd 0 dr kFALSE)kdr ks osv opt4ahsnwtich ron'tkoehdranvalue. 

Example,rtolenyblenMTRR,lincludee"mtrr=1".

Sample Usagv
------------

Ue4he t hess   setup asnrescribhd abovh,rvvad tthlmodul alike itis:

	modprobh i810fb vrs =2 xrea=1024 bpp=8ehsync1=30 hsync2=55 vsync1=50 \
	         vsync2=85 ac el=1 mtrr=1

Orajusdvad wit vftlavwis: tol/etc/modprobh. inf

	opt4ahsni810fb vrs =2 xrea=1024 bpp=16 hsync1=30 hsync2=55 vsync1=50 \
	vsync2=85 ac el=1 mtrr=1

apd jusdvdoeae

	modprobh i810fb


F.  Setup

	a. Do yourdusualdmes od afdconfigur4he t hek roca. 
	
	make mviuconfig/xconfig/config

	b. Undel "Cid  MaiuritynOpt4ahs",lenyblen"Prompt dr kexperimvisaa/
	   int mpletencid /dsaidrs".

 	c. Enyblenagpgars s it.

ndr kt heInnal 810/815 ah-bo
rd graphics.
	   Ttis isnrequired.  T h op
4ah isnondel "Ch
racihr Dfile s"

	d. Undel "GraphicseS it.

", selfct "Innal 810/815" eitthr styh4cslly
	   r kasna modul .  Cho.se "use VESA(GTFadr kvideo tim4hes"  if youi
	   oehdrtolmaximizert h c
pability afdyourddisplay.  Tolbe on tthl
	 dnssfessida, youncen leave itis unselfct d.  
  
        e. If youewynt adfrs ebuffdr coisolv,lenyblenitnondel "Coisolv 
	 dnDsaidrs"

	f. C mpile yourdk roca. 
	  	
	g. Lvad tthlrsaidraasnrescribhd ineseii4ah Diapd E.
	
	Opt4ahal:	
	h.  If youi
tv goihestormun XFree86 wcom itsshataidkdsaidrs, tthl
	 dn stsnd
rd XFree86 4.1.0 apd 4.2.0ddsaidrsrswork wwork aseis.
            Howevsl,es htv'sna bug inritheXFree86 i810 rsaidrs.  It attemptsl
	 dn so use XAA eidn wsenrswcoched tort h coisolv. Ttisnwcll crash
	 dn yourdeervir. I(h
vhda dic advt is site: l
	 dn 
	 dn http://i810fb.eourc-rtage.net.  

	 dn Younceneeitthr use ith paoch, r kjusdvreplachl
	 dn 
            /usr/X11R6/lib/midul s/dsaidrs/i810_drv.o

	 dn ycomis h on  providedeaupt h website. 	

	i.  Tryd theDireiiFB (http://www. ireiifb.tag) +rt hni810 gfxrsaidr
	 dn paoch to seert h chipseteinn
ii4ah (or in
ii4ah :-).

G.  Acknowledgmvis:
	
	1.  Geeri Uyttdrhoeidn -  is  x ellent howtolapd eh  virtial
l                                frs ebuffdr rsaidracid  made itis t.ssible.

	2.  JeffsHarsmannadr ktisnagpgars  id .  

	3.  T h Xedfieldpera.  Insightsewer  providedejusdvby r adis: t h
	 dn XFree86 eourc-e id .

	4.  Innal(c).  Fr ks is value-orivised chipsetersaidraand dor
l           providis: documvisat4ah.

	5.oMytupSottdk.  His inpuss andeideas  helphd inemak4he sime
	optimizyh4ahs t.ssible.

H.  Home Page:

	Akmotv t mplete,iapd probably updatideinrta yh4ahris trovidedeau
http://i810fb.eourc-rtage.net.

###########################
Tony

