[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: che fare? [era Re: matrox + dri !lunga!]



On Sat, 20 Oct 2001, serena [qwerty] l. wrote:

> On Wed, Oct 17, 2001 at 09:32:07PM +0200, sesPi! wrote:
> > On Wed, 17 Oct 2001, serena [qwerty] l. wrote:
> [...]
> [...]
> purtroppo pciutils e' un equivalente ultraridotto di isapnptools ma 
> # lspci -vv | more  
> puo'darti un quadro più dettagliato
> del bus pci, della porta agp, dei loro bridges e dei
> dispositivi (qui aka pci devices) con relativo irq (agp e
> scheda video  non coincidono... e che gli interrupt non
> servano piu' ai _driver dei dispositivi_  a me pare una leggenda
> metropolitana) . Cosi' vedi meglio       
> come  e' stata individuata la tua scheda video (tutte le
> architetture pci hanno un meccanismo di autoconfigurazione 
> tramite registri che consente di individuare indirizzi
> di memoria, indirizzi i/o ecc dei dipositivi pci)
> Inoltre gli interrupts interni che usa il pci sono mappati
> agli interrupts regolari -- e questo insieme di cose spiega (anche se
> male per come l'ho scritto) come mai la scheda puo' funzionare in larga    
> misura anche senza irq, e mantenere accesso all'interfaccia agp
> 
> Altra cosa possibile che mi viene in mente: ls  /proc/bus/*   
> e in base all'output fai tutti i ''cat /proc/bus/.. `` che ti sembrano utili.
> Be', se non altro qualche informazione in più per prendere
> delle decisioni (per es. lo sharing)
> se ritieni di non lasciare temporanemaente irq 0 (ripeto, niente di grave,
> a parte il fatto che il polling e' uno spreco grandioso di cicli della CPU

ok, ho settato il BIOS per dare l'interrupt alla scheda VGA.
adesso ho questo:

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400
	AGP (rev 03) (
        Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb
	SGRAM
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV-
	VGASnoop- ParErr- Step
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium
	>TAbort- <TAbort
        Latency: 64 (4000ns min, 8000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 11
        			   ^^^^^^
	Region 0: Memory at e8000000 (32-bit,
	prefetchable) [size=32M]
        Region 1: Memory at e4000000 (32-bit,
	non-prefetchable) [size=16K]
        Region 2: Memory at e5000000 (32-bit,
	non-prefetchable) [size=8M]
        Expansion ROM at <unassigned> [disabled] [size=64K]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
		PME(D0-,D1-,D2-,D3hot
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [f0] AGP version 2.0
                Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
                Command: RQ=31 SBA+ AGP+ 64bit- FW- Rate=x2

quindi, alla fine, mi viene assegnato IRQ 11, e lanciando X
ottengo messaggi positivi e rassicuranti:

###########################################################################

XFree86 Version 4.0.3 / X Window System
(protocol Version 11, revision 0, vendor release 6400)
Release Date: 16 March 2001
	If the server is older than 6-12 months, or if your card is
	newer than the above date, look for a newer version before
	reporting problems.  (See http://www.XFree86.Org/FAQ)
Operating System: Linux 2.2.19 i686 [ELF] 
Module Loader present
(==) Log file: "/var/log/XFree86.1.log", Time: Sun Oct 21 01:06:22 2001
(==) Using config file: "/etc/X11/XF86Config-4"
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (??) unknown.
(==) ServerLayout "Matrox PowerDesk configured."
(**) |-->Screen "Display 1" (0)
(**) |   |-->Monitor "Hitachi CM640ET"
(**) |   |-->Device "Matrox G400 16M"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) XKB: rules: "xfree86"
(**) XKB: model: "pc104"
(**) XKB: layout: "us"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/X11/fonts/truetype/"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(++) using VT number 8

(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 0.1.0
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 0.1.0
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(--) PCI:*(1:0:0) Matrox MGA G400 AGP rev 3, Mem @ 0xe8000000/25, 0xe4000000/14, 0xe5000000/23
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
(II) Module freetype: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.1.9
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/drivers/mga_drv.o
(II) Module mga: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
	mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI, mgag400
(**) Chipset override: mgag400
(**) Chipset mgag400 found
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 0.1.0
(**) MGA(0): Depth 24, (**) framebuffer bpp 32
(==) MGA(0): RGB weight 888
(II) Loading /usr/X11R6/lib/modules/drivers/mga_hal_drv.o
(II) Module mga_hal: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) MGA(0): Matrox HAL module used
(**) MGA(0): Chipset: "mgag400"
(II) MGA(0): Offscreen memory usage will be limited to 512 lines if the DRI is enabled.
(**) MGA(0): Using AGP Mode 2x
(--) MGA(0): Linear framebuffer at 0xE8000000
(--) MGA(0): MMIO registers at 0xE4000000
(--) MGA(0): Pseudo-DMA transfer window at 0xE5000000
(==) MGA(0): BIOS at 0xC0000
(--) MGA(0): Video BIOS info block at offset 0x07C80
(WW) MGA(0): Video BIOS info block not detected!
(--) MGA(0): VideoRAM: 16384 kByte
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libi2c.a
(II) Module i2c: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.2.0
(II) MGA(0): I2C bus "DDC" initialized.
(II) MGA(0): I2C device "DDC:ddc2" registered.
(II) MGA(0): I2C device "DDC:ddc2" removed.
(II) MGA(0): I2C Monitor info: (nil)
(II) MGA(0): end of I2C Monitor info

(--) MGA(0): No DDC signal
(II) MGA(0): DDC Monitor info: (nil)
(II) MGA(0): end of DDC Monitor info

(==) MGA(0): Using gamma correction (1.0, 1.0, 1.0)
(==) MGA(0): Min pixel clock is 12 MHz
(==) MGA(0): Max pixel clock is 300 MHz
(II) MGA(0): Hitachi CM640ET: Using hsync range of 31.00-69.00 kHz
(II) MGA(0): Hitachi CM640ET: Using vrefresh range of 50.00-130.00 Hz
(II) MGA(0): Clock range:  12.00 to 300.00 MHz
(WW) MGA(0): Default mode "1024x768" deleted (bad mode clock/interlace/doublescan)
(WW) MGA(0): Default mode "1280x960" deleted (hsync out of range)
(WW) MGA(0): Default mode "1280x1024" deleted (hsync out of range)
(WW) MGA(0): Default mode "1280x1024" deleted (hsync out of range)
(WW) MGA(0): Default mode "1600x1200" deleted (hsync out of range)
(WW) MGA(0): Default mode "1600x1200" deleted (hsync out of range)
(WW) MGA(0): Default mode "1600x1200" deleted (hsync out of range)
(WW) MGA(0): Default mode "1600x1200" deleted (hsync out of range)
(WW) MGA(0): Default mode "1600x1200" deleted (hsync out of range)
(WW) MGA(0): Default mode "1792x1344" deleted (hsync out of range)
(WW) MGA(0): Default mode "1792x1344" deleted (hsync out of range)
(WW) MGA(0): Default mode "1856x1392" deleted (hsync out of range)
(WW) MGA(0): Default mode "1856x1392" deleted (hsync out of range)
(WW) MGA(0): Default mode "1920x1440" deleted (hsync out of range)
(WW) MGA(0): Default mode "1920x1440" deleted (hsync out of range)
(--) MGA(0): Virtual size is 1152x864 (pitch 1152)
(**) MGA(0): Default mode "1152x864": 108.0 MHz, 67.5 kHz, 75.0 Hz
(**) MGA(0): Default mode "1024x768": 94.5 MHz, 68.7 kHz, 85.0 Hz
(**) MGA(0): Default mode "800x600": 56.3 MHz, 53.7 kHz, 85.1 Hz
(==) MGA(0): DPI set to (75, 75)
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libxaa.a
(II) Module xaa: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 1.0.0
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor="The XFree86 Project"
	compiled for 4.0.3, module version = 0.1.0
(--) Depth 24 pixmap format is 32 bpp
(--) MGA(0): 16 DWORD fifo
(==) MGA(0): Default visual is TrueColor
(II) MGA(0): [drm] bpp: 32 depth: 24
(II) MGA(0): [drm] Sarea 2196+632: 2828
(0): [drm] created "mga" driver at busid "PCI:1:0:0"
(0): [drm] added 4096 byte SAREA at 0xd9967000
(0): [drm] mapped SAREA 0xd9967000 to 0x4001a000
(0): [drm] framebuffer handle = 0xe8000000
(0): [drm] added 1 reserved context for kernel
(II) MGA(0): [drm] Registers = 0xe4000000
[drm] drmAgpEnabled succeeded for AGP mode 2x
(II) MGA(0): WARP Microcode Loaded
(II) MGA(0): [drm] calced backoffset: 0x60e000
(II) MGA(0): [drm] added 31 65536 byte DMA buffers
(II) MGA(0): [drm] Mga Dma Initialization start
(II) MGA(0): [drm] Mga Dma Initialization done
(II) MGA(0): [drm] Initialized Dma Engine
(II) MGA(0): [drm] dma control initialized, using IRQ 11
(II) MGA(0): visual configs initialized
(II) MGA(0): Using 512 lines for offscreen memory.
(II) MGA(0): Using XFree86 Acceleration Architecture (XAA)
	Screen to screen bit blits
	Solid filled rectangles
	Solid filled trapezoids
	8x8 mono pattern filled rectangles
	8x8 mono pattern filled trapezoids
	Indirect CPU to Screen color expansion
	Screen to Screen color expansion
	Solid Lines
	Dashed Lines
	Scanline Image Writes
	Offscreen Pixmaps
	Driver provided FillMono8x8PatternRects replacement
	Setting up tile and stipple cache:
		20 128x128 slots
		4 256x256 slots
(==) MGA(0): Backing store disabled
(==) MGA(0): Silken mouse enabled
(II) MGA(0): Using overlay video
(0): X context handle = 0x00000001
(0): [drm] installed DRM signal handler
(0): [DRI] installation complete
(II) MGA(0): direct rendering enabled
(**) Mouse1: Protocol: "IMPS/2"
(**) Mouse1: Core Pointer
(**) Mouse1: Buttons: 5
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)

#######################################################################

quello che succede e` che non sembra esserci nessuna accelerazione
hardware, dato che tuxracer, gears, atlantis e compagnia bella
girano a un frame ogni quarto d'ora o giu` di li` :-((

dove sbaglio?
forse il DRI non c'entra niente?
come faccio a sapere se la scheda lavora come dovrebbe?

gia` che ci sono, posto anche il xf86conf...

######################################################################
Section "ServerLayout"
	Identifier     "Matrox PowerDesk configured."
	Screen         "Display 1"
	InputDevice    "Mouse1" "CorePointer"
	InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
#	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
#	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/truetype/"
EndSection

Section "Module"
	Load  "dbe"
	SubSection "extmod"
		Option "omit xfree86-dga"
	EndSubSection
	Load  "type1"
	Load  "freetype"
	Load  "glx"
	Load  "dri"
EndSection

Section "InputDevice"
	Identifier  "Keyboard1"
	Driver      "Keyboard"
	Option      "AutoRepeat" "500 30"
	Option      "XkbRules" "xfree86"
	Option      "XkbModel" "pc104"
	Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option      "Protocol" "IMPS/2"
	Option      "Device" "/dev/psaux"
	Option      "ZAxisMapping" "4 5"
	Option      "Buttons" "5"
EndSection

Section "Monitor"
	Identifier   "Hitachi CM640ET"
	HorizSync    31.0 - 69.0
	VertRefresh  50.0 - 130.0
EndSection

Section "Device"
	Identifier  "Matrox G400 16M"
	Driver      "mga"
	ChipSet     "mgag400"
	Option      "AGPMode2x"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Display 1"
	Device     "Matrox G400 16M"
	Monitor    "Hitachi CM640ET"
	DefaultDepth     24
	DefaultFbBPP     32
	SubSection "Display"
		Depth     16
		Modes    "1152x864" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1152x864" "1024x768" "800x600"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "1152x864" "1024x768" "800x600"
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection

####################################################################

> --- scusa la lunghezza 
scusata :-)

-- 
:::: sespiergi(at)iol(dot)it ::::
:::::::::::::::::::::::::::::::::
:::: GNU/Linux user # 190604 ::::



Reply to: