From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 24 07:30:04 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19D2E1065679 for ; Fri, 24 Oct 2008 07:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E9A668FC1D for ; Fri, 24 Oct 2008 07:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9O7U3vC050865 for ; Fri, 24 Oct 2008 07:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9O7U3FF050862; Fri, 24 Oct 2008 07:30:03 GMT (envelope-from gnats) Resent-Date: Fri, 24 Oct 2008 07:30:03 GMT Resent-Message-Id: <200810240730.m9O7U3FF050862@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Manfred Knick Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B41461065675 for ; Fri, 24 Oct 2008 07:24:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A28B98FC12 for ; Fri, 24 Oct 2008 07:24:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9O7O0VJ017344 for ; Fri, 24 Oct 2008 07:24:00 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9O7NxuM017342; Fri, 24 Oct 2008 07:23:59 GMT (envelope-from nobody) Message-Id: <200810240723.m9O7NxuM017342@www.freebsd.org> Date: Fri, 24 Oct 2008 07:23:59 GMT From: Manfred Knick To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/128331: 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: Fri, 24 Oct 2008 07:30:04 -0000 >Number: 128331 >Category: kern >Synopsis: nForce3-250 AGP not detected correctly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 24 07:30:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Manfred Knick >Release: 7.1 BETA2 >Organization: >Environment: >Description: I have reported this issue as "[BUG-REPORT] Free-BSD release 7.1-BETA2 : nForce3-250 AGP not detected correctly" to freebsd-bugs@FreeBSD.org 21.10.2008 13:07 as follows: ######################################################################### .. main suspects: combination of a) handling of multiple host bridges on one MoBo b) agp / agp_amd64 .. ######################################################################### 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) ######################################################################### >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: