[Bug 32968] no support for VIA PT880ULTRA on amd64/xeon

Rafal Zawadzki bluszcz at jabberpl.org
Sun Feb 26 19:07:26 UTC 2006


Public bug reported:
https://launchpad.net/malone/bugs/32968

Affects: linux-meta linux-image-amd64-xeon (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed

Description:
Hi. I am using ati radeon 9250 card on agp pt880 ultra chipset, 64bit
architecture. There is no support for this chipset in kernel, so I
decided to add by myself this. My agp looks like:

0000:00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 0308
Subsystem: Asustek Computer, Inc.: Unknown device 8199
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
Latency: 8, Cache Line Size: 0x08 (32 bytes)
Region 0: Memory at f0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [80] AGP version 3.5
Status: RQ=32 Iso- ArqSz=0 Cal=2 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3+ Rate=x4,x8
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Unfortunately via-agp driver has dependency on x86_32. I have to remove
it in KConfig. Than add support fot my chipset:

bluszcz at akira:/usr/src/linux-source-2.6.15-2.6.15/include/linux$ grep -r PT880ULTRA .
./pci_ids.h:#define PCI_DEVICE_ID_VIA_PT880ULTRA 0x0308
./pci_ids.h:#define PCI_DEVICE_ID_VIA_PT880ULTRA_1 0x1308
bluszcz at akira:/usr/src/linux-source-2.6.15-2.6.15/include/linux$ cd ../../drivers/char/agp/
bluszcz at akira:/usr/src/linux-source-2.6.15-2.6.15/drivers/char/agp$ grep -r PT880ULTRA .
./via-agp.c: /* PT880ULTRA */
./via-agp.c: .device_id = PCI_DEVICE_ID_VIA_PT880ULTRA,
./via-agp.c: .chipset_name = "PT880ULTRA",
./via-agp.c: ID(PCI_DEVICE_ID_VIA_PT880ULTRA),
Plik binarny ./via-agp.ko pasuje do wzorca
Plik binarny ./via-agp.o pasuje do wzorca
bluszcz at akira:/usr/src/linux-source-2.6.15-2.6.15/drivers/char/agp$


After compile and reboot for the first look everything is great agp detected:

(II) fglrx(0): [drm] register handle = 0xff5f0000
(II) fglrx(0): [agp] Mode=0x1f000a1b bridge: 0x1106/0x0308
(II) fglrx(0): [agp] AGP v1/2 disable mask 0x00000000
(II) fglrx(0): [agp] AGP v3 disable mask 0x00000000
(II) fglrx(0): [agp] enabling AGP with mode=0x1f000b1a
(II) fglrx(0): [agp] AGP protocol is enabled for graphics board. (cmd=0x1f000312)
(II) fglrx(0): [agp] graphics chipset has AGP v3.0 (native mode)
(II) fglrx(0): [drm] ringbuffer size = 0x00100000 bytes
(II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 28672
(II) fglrx(0): [drm] texture shared area handle = 0x10881000
(II) fglrx(0): shared FSAAScale=1
(II) fglrx(0): DRI initialization successfull!
(II) fglrx(0): FBADPhys: 0xd0000000 FBMappedSize: 0x005cd000
(II) fglrx(0): FBMM initialized for area (0,0)-(1152,1320)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(1152,864) (front color buffer - assumption)
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(==) fglrx(0): Using hardware cursor (scanline 864)
(II) fglrx(0): Largest offscreen area available: 1152 x 448
(**) Option "dpms"
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)


I started KDE, then run glxinfo, and BANG. Everything hanged.

Hm, I noticed that there is also support for some garts ni fglrx. I hacked one driver to my id (using new pure kernel)
bluszcz at akira:/tmp/modules$ grep -ri 0308 .
./fglrx/agp.h: #define PCI_DEVICE_ID_VIA_8363_0 0x0308
bluszcz at akira:/tmp/modules$ sudo

recompile module, but it doesn't detect my agpgart again :/




More information about the kernel-bugs mailing list