From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 21 11:23:29 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1B73106567B for ; Tue, 21 Oct 2008 11:23:29 +0000 (UTC) (envelope-from manfred.knick@t-online.de) Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by mx1.freebsd.org (Postfix) with ESMTP id 504BA8FC1A for ; Tue, 21 Oct 2008 11:23:29 +0000 (UTC) (envelope-from manfred.knick@t-online.de) Received: from fwd04.aul.t-online.de by mailout11.sul.t-online.de with smtp id 1KsF5U-0004BJ-00; Tue, 21 Oct 2008 13:07:44 +0200 Received: from [192.168.1.21] (b0W4CrZZwhXRhPoYp98bkigqhXgV31XCPyGN-a3tn3aK-PTHcHiFHyNxwMepVrMZg2@[79.239.198.30]) by fwd04.t-online.de with esmtp id 1KsF4t-2BVoJc0; Tue, 21 Oct 2008 13:07:07 +0200 Message-ID: <48FDB805.2070402@t-online.de> Date: Tue, 21 Oct 2008 13:07:49 +0200 From: Manfred Knick User-Agent: Thunderbird 2.0.0.17 (X11/20081010) MIME-Version: 1.0 To: freebsd-bugs@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-ID: b0W4CrZZwhXRhPoYp98bkigqhXgV31XCPyGN-a3tn3aK-PTHcHiFHyNxwMepVrMZg2 X-TOI-MSGID: ebdf1616-2859-4a8e-8d47-f792e00f08d5 Cc: Subject: [BUG-REPORT] Free-BSD release 7.1-BETA2 : nForce3-250 AGP not detected correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 11:23:29 -0000 ######################################################################### 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: port 0xcf8-0xcff on acpi0 (1) pci0: on pcib0 agp0: on hostb0 (2) device_attach: agp0 attach returned 6 (3) pcib1: at device 11.0 on pci0 (4) pci4: on pcib1 (5) vgapci0: mem 0xfa000000-0xfbffffff, 0xfebfc000-0xfebfffff,0xfe000000-0xfe7fffff irq 16 at device 0.0 on pci4 (6) drm0: 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: 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) #########################################################################