[BUG-REPORT] Free-BSD release 7.1-BETA2 : nForce3-250 AGP not detected correctly

Manfred Knick manfred.knick at t-online.de
Tue Oct 21 11:23:29 UTC 2008


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

    BUG REPORT

    FreeBSD release 7.1-BETA2

    main suspects:
        combination of
                              a) handling of multiple host bridges on
one MoBo
                              b) agp / agp_amd64

    manfred . knick < at > T - Online . de

    2008 - 10 - 21

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

Hardware involved:

    ASRock ALiveDUAL-eSATA2
    "Northbridge":    NVIDIA ( former ULi / ALi ) M1695
    Southbridge:    NVIDIA nForce3 250        <-- incl. AGPA

    AMD 64 Phenom

    Matrox G550 AGP

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

Procedure to reproduce:

1.) Clean fresh install from CD-ROM 1,
    select "All" ==> including X11

2.) install xf86-video-mga ( sysconfig / ftp )

3.) add drm and mga to /boot/loader.conf

4.) create /etc/xorg.conf via "X -configure"

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

Observations, as far as I can interpret:

(A) from dmesg:

(1) "Northbridge" --> PCI-express seems to be recognized correctly.
(2) agp_amd64 correctly identifies the  G550 with chip 2527 from vendor
102b,
    but on pcib0 !?!                                       <== !!!
(3) agp fails to finish loading

(4) Southbridge gets recognized on pcib1
(5) Matrox gets recognized on pci slot pci4 on pcib1
(6) vga driver detects Matrox as vgapci0 in pci4
(7) drm binds to this vgapci,
(8) but cannot initialize this vga device as AGP

(9) consequently, the system continues with VGA as minimal working
configuratgion.


(B) from /var/log/Xorg.0.log:

    Starting X, the consecutive errors are as expected:

(10) The modules dri and mga get initially loaded

(11) The mgag550 can be contacted, but not successfully initialized

(12) In consequence, initializing drm fails.

(13) In consequence, initializing dri fails.


My subjective guess / impression :
    This may have to do with agp / agp_amd64
        being called on the PCI-e,
        but not on the AGP bridge.

If additional special information is needed,
reply your request via above private e-mail address
(I'm not on any FreeBSD mailing lists yet),
and I'll try to provide it.

Looking forward to your answers.
Kind regards!

P.S.: Yes, I have searched ... and ... and ...
Closest I could discover:
There were some hints to vga and agp mis-interfering ~ 2 years ago,
but that has been sorted out and doesn't seem to apply to this problem ...

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

CROSS-CHECKING the HARDWARE:

Gentoo GNU/Linux amd64,
64-bit kernel gentoo-sources-2.6.27 : AGP and DRM work.


########   (A)  
#################################################################

FreeBSD 7.1-BETA2 #0: Sun Oct 12 20:59:28 UTC 2008

CPU: AMD Phenom(tm) 9350e Quad-Core Processor (2009.02-MHz K8-class CPU)

pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0        (1)
pci0: <ACPI PCI bus> on pcib0

agp0: <NVIDIA nForce3-250 AGP Controller> on hostb0        (2)
device_attach: agp0 attach returned 6                (3)

pcib1: <ACPI PCI-PCI bridge> at device 11.0 on pci0        (4)
pci4: <ACPI PCI bus> on pcib1                    (5)
vgapci0: <VGA-compatible display> mem 0xfa000000-0xfbffffff,
    0xfebfc000-0xfebfffff,0xfe000000-0xfe7fffff irq 16
    at device 0.0 on pci4                    (6)
drm0: <Matrox G550 (AGP)> on vgapci0                (7)
error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't
initialize AGP.    (8)
device_attach: drm0 attach returned 12

vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0    (9)

########   (B)  
#################################################################

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 7.1-RELEASE amd64

Build Date: 12 September 2008  10:01:27AM
 
(II) PCI: 04:00:0: chip 102b,2527 card 102b,0f84 rev 01 class 03,00,00
hdr 00

(II) LoadModule: "dri"                        (10)
(II) Loading /usr/local/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.0.0
    ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI

(II) LoadModule: "mga"                        (10)
(II) Loading /usr/local/lib/xorg/modules/drivers//mga_drv.so
(II) Module mga: vendor="X.Org Foundation"
    compiled for 1.4.2, module version = 1.4.7
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 2.0

(--) Chipset mgag550 found

(--) MGA(0): Chipset: "mgag550"                    (11)
(==) MGA(0): Depth 24, (==) framebuffer bpp 32
(==) MGA(0): RGB weight 888
(==) MGA(0): Using AGP 1x mode                    (11)
(==) MGA(0): Using XAA acceleration
(--) MGA(0): Linear framebuffer at 0xFA000000
(==) MGA(0): MMIO registers at 0xFEBFC000
(--) MGA(0): Pseudo-DMA transfer window at 0xFE000000
(--) MGA(0): BIOS at 0xFEBC0000
Requesting insufficient memory window!: start: 0xfe000000 end:
0xfebfffff size 0x2000000
(EE) Cannot find empty range to map base to            (11)
(WW) MGA(0): Video BIOS info block not detected!
(==) MGA(0): Write-combining range (0xfebfc000,0x4000) was already clear
(==) MGA(0): Write-combining range (0xfa000000,0x2000000)
(==) MGA(0): Write-combining range (0xfe000000,0x800000) was already clear
(--) MGA(0): VideoRAM: 32768 kByte

drmOpenDevice: node name is /dev/dri/card0            (12)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
[drm] failed to load kernel module "mga"            (12)
(EE) [drm] drmOpen failed.

(EE) MGA(0): [drm] DRIScreenInit failed.  Disabling DRI.    (13)

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



More information about the freebsd-bugs mailing list