Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Apr 2005 01:53:23 +0000
From:      "Ganael Laplanche" <ganael.laplanche@martymac.com>
To:        freebsd-amd64@lists.freebsd.org
Subject:   Re: [PATCH test] K8N-E deluxe / Nforce3 250 : no agp support yet ?
Message-ID:  <20050402013119.M28803@martymac.com>
In-Reply-To: <200504011235.05993.jkim@niksun.com>
References:  <20050401090927.M62447@martymac.com> <200504011235.05993.jkim@niksun.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=OPENWEBMAIL_ATT_0.172811147291213
Content-Type: text/plain;
	charset=iso-8859-1

Hi Kim,

Thank you very much for you answer.

I tried your patch, but unfortunately, no agp device was detected... so I
modified it a bit and managed to get this :

# dmesg
[...]
Apr  2 03:00:13 odie kernel: Copyright (c) 1992-2005 The FreeBSD Project.
Apr  2 03:00:13 odie kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989,
1991, 1992, 1993, 1994
Apr  2 03:00:13 odie kernel: The Regents of the University of California. All
rights reserved.
Apr  2 03:00:13 odie kernel: FreeBSD 5.4-PRERELEASE #0: Sat Apr  2 02:48:51 CEST
2005
Apr  2 03:00:13 odie kernel:
martymac@odie.martymac.com:/usr/src/sys/amd64/compile/MYKERNEL
Apr  2 03:00:13 odie kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
Apr  2 03:00:13 odie kernel: CPU: AMD Athlon(tm) 64 Processor 3200+ (2210.77-MHz
K8-class CPU)
Apr  2 03:00:13 odie kernel: Origin = "AuthenticAMD"  Id = 0xfc0  Stepping = 0
Apr  2 03:00:13 odie kernel:
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
Apr  2 03:00:13 odie kernel: AMD
Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
Apr  2 03:00:13 odie kernel: real memory  = 536608768 (511 MB)
Apr  2 03:00:13 odie kernel: avail memory = 509628416 (486 MB)
Apr  2 03:00:13 odie kernel: netsmb_dev: loaded
Apr  2 03:00:13 odie kernel: cpu0 on motherboard
Apr  2 03:00:13 odie kernel: pcib0: <Host to PCI bridge> pcibus 0 on motherboard
Apr  2 03:00:13 odie kernel: pci0: <PCI bus> on pcib0
Apr  2 03:00:13 odie kernel: agp0: <nForce3 250 AGP Host> mem
0xe0000000-0xefffffff at device 0.0 on pci0
Apr  2 03:00:13 odie kernel: isab0: <PCI-ISA bridge> at device 1.0 on pci0
Apr  2 03:00:13 odie kernel: isa0: <ISA bus> on isab0
Apr  2 03:00:13 odie kernel: pci0: <serial bus, SMBus> at device 1.1 (no driver
attached)
Apr  2 03:00:13 odie kernel: ohci0: <OHCI (generic) USB controller> mem
0xff6fd000-0xff6fdfff irq 5 at device 2.0 on pci0
Apr  2 03:00:13 odie kernel: usb0: OHCI version 1.0, legacy support
Apr  2 03:00:13 odie kernel: usb0: SMM does not respond, resetting
Apr  2 03:00:13 odie kernel: usb0: <OHCI (generic) USB controller> on ohci0
Apr  2 03:00:13 odie kernel: usb0: USB revision 1.0
Apr  2 03:00:13 odie kernel: uhub0: nVidia OHCI root hub, class 9/0, rev
1.00/1.00, addr 1
Apr  2 03:00:13 odie kernel: uhub0: 4 ports with 4 removable, self powered
Apr  2 03:00:13 odie kernel: ohci1: <OHCI (generic) USB controller> mem
0xff6fe000-0xff6fefff irq 9 at device 2.1 on pci0
Apr  2 03:00:13 odie kernel: usb1: OHCI version 1.0, legacy support
Apr  2 03:00:13 odie kernel: usb1: SMM does not respond, resetting
Apr  2 03:00:13 odie kernel: usb1: <OHCI (generic) USB controller> on ohci1
Apr  2 03:00:13 odie kernel: usb1: USB revision 1.0
Apr  2 03:00:13 odie kernel: uhub1: nVidia OHCI root hub, class 9/0, rev
1.00/1.00, addr 1
Apr  2 03:00:13 odie kernel: uhub1: 4 ports with 4 removable, self powered
Apr  2 03:00:13 odie kernel: pci0: <serial bus, USB> at device 2.2 (no driver
attached)
Apr  2 03:00:13 odie kernel: pci0: <bridge, PCI-unknown> at device 5.0 (no
driver attached)
Apr  2 03:00:13 odie kernel: pcm0: <nVidia nForce3 250> port
0xe400-0xe47f,0xe800-0xe8ff mem 0xff6fb000-0xff6fbfff irq 4 at device 6.0 on pci0
Apr  2 03:00:13 odie kernel: pcm0: <Avance Logic ALC850 AC97 Codec>
[...]

# pciconf -vl
[...]
agp0@pci0:0:0:  class=0x060000 card=0x813f1043 chip=0x00e110de rev=0xa1 hdr=0x00
    vendor   = 'NVIDIA Corporation'
    class    = bridge
    subclass = HOST-PCI
[...]

It seems that your patch can manage nforce3, not nforce3-250. My patch makes
nforce3-250 detected, but unfortunately, the system hangs at X startup... so it
is not yet usable.

Here it is (also attached) :

--- src/sys/pci/agp_amd64.c.orig        Sat Apr  2 03:37:51 2005
+++ src/sys/pci/agp_amd64.c     Sat Apr  2 03:38:16 2005
@@ -82,6 +82,10 @@
                return ("AMD 8151 AGP graphics tunnel");
        case 0x07551039:
                return ("SiS 755 host to AGP bridge");
+       case 0x00d110de:
+               return ("nForce3 AGP Host");
+       case 0x00e110de:
+               return ("nForce3 250 AGP Host");
        case 0x02041106:
                return ("VIA 8380 host to PCI bridge");
        case 0x02821106:
--- src/sys/pci/agp_nvidia.c.orig       Sat Apr  2 03:38:03 2005
+++ src/sys/pci/agp_nvidia.c    Sat Apr  2 03:40:53 2005
@@ -67,6 +67,8 @@
 #define        NVIDIA_VENDORID         0x10de
 #define        NVIDIA_DEVICEID_NFORCE  0x01a4
 #define        NVIDIA_DEVICEID_NFORCE2 0x01e0
+#define        NVIDIA_DEVICEID_NFORCE3 0x00d1
+#define        NVIDIA_DEVICEID_NFORCE3_250     0x00e1

 struct agp_nvidia_softc {
        struct agp_softc        agp;
@@ -108,6 +110,10 @@
                return ("NVIDIA nForce AGP Controller");
        case NVIDIA_DEVICEID_NFORCE2:
                return ("NVIDIA nForce2 AGP Controller");
+       case NVIDIA_DEVICEID_NFORCE3:
+               return ("NVIDIA nForce3 AGP Controller");
+       case NVIDIA_DEVICEID_NFORCE3_250
+               return ("NVIDIA nForce3 250 AGP Controller");
        }
        return ("NVIDIA Generic AGP Controller");
 }

I must be missing something, maybe someone can help in correcting these
patches... and finally getting nforce-3 (250) agp support ?!?

Thank you,

Ganaël LAPLANCHE
ganael.laplanche@martymac.com
http://www.martymac.com
Tel : (+33)6.84.03.57.24.

---------- Original Message -----------
From: Jung-uk Kim <jkim@niksun.com>
To: freebsd-amd64@freebsd.org
Cc: "Ganael Laplanche" <ganael.laplanche@martymac.com>
Sent: Fri, 1 Apr 2005 12:35:05 -0500
Subject: Re: K8N-E deluxe / Nforce3 250 : no agp support yet ?

> On Friday 01 April 2005 04:32 am, Ganael Laplanche wrote:
> > Hi all,
> >
> > I'm running 5.4-PRERELEASE #13 for AMD64 and can't get agp working.
> >
> > My graphic card is an ATI Radeon 9000. Xorg works well, but drm
> > can't load because of the lack of agp device. I get these errors
> > each time I start X :
> >
> > # dmesg
> > [...]
> > error: [drm:pid564:radeon_cp_init] *ERROR* radeon_cp_init called
> > without lock held error: [drm:pid564:radeon_unlock] *ERROR* Process
> > 564 using kernel context 0 [...]
> >
> > However, an agp device should be detected ; here is my kernel conf
> > file :
> >
> > [...]
> > device          acpi
> > device          isa
> > device          pci
> > device          agp
> >
> > device          vga
> > device          splash
> > device          radeondrm       # ATI Radeon 9000
> > [...]
> >
> > But no device is detected at boot :
> > # dmesg | grep -i agp
> > doesn't show anything
> >
> > Isn't nforce3 250 agp controller supported yet ?
> 
> Try the attached patch.  I had it for long time but I forgot to file a 
> PR. ;-)
> 
> Jung-uk Kim
> 
> > I know I'm not the only one, since I saw a thread on a forum a few
> > weeks ago (I can't remember the URL...). I also went to
> > http://dri.freedesktop.org/wiki/DriTroubleshooting but without
> > success...
> >
> > Any idea ? Does someone get the same errors ?
> >
> > Ganaël LAPLANCHE
> > ganael.laplanche@martymac.com
> > http://www.martymac.com
> > Tel : (+33)6.84.03.57.24.
------- End of Original Message -------


------=OPENWEBMAIL_ATT_0.172811147291213
Content-Type: text/x-patch;
	name="patch-nvidia.diff"
Content-Disposition: attachment; filename="patch-nvidia.diff"
Content-Transfer-Encoding: base64

LS0tIHNyYy9zeXMvcGNpL2FncF9hbWQ2NC5jLm9yaWcJU2F0IEFwciAgMiAwMzozNzo1MSAyMDA1
CisrKyBzcmMvc3lzL3BjaS9hZ3BfYW1kNjQuYwlTYXQgQXByICAyIDAzOjM4OjE2IDIwMDUKQEAg
LTgyLDYgKzgyLDEwIEBACiAJCXJldHVybiAoIkFNRCA4MTUxIEFHUCBncmFwaGljcyB0dW5uZWwi
KTsKIAljYXNlIDB4MDc1NTEwMzk6CiAJCXJldHVybiAoIlNpUyA3NTUgaG9zdCB0byBBR1AgYnJp
ZGdlIik7CisJY2FzZSAweDAwZDExMGRlOgorCQlyZXR1cm4gKCJuRm9yY2UzIEFHUCBIb3N0Iik7
CisJY2FzZSAweDAwZTExMGRlOgorCQlyZXR1cm4gKCJuRm9yY2UzIDI1MCBBR1AgSG9zdCIpOwog
CWNhc2UgMHgwMjA0MTEwNjoKIAkJcmV0dXJuICgiVklBIDgzODAgaG9zdCB0byBQQ0kgYnJpZGdl
Iik7CiAJY2FzZSAweDAyODIxMTA2OgotLS0gc3JjL3N5cy9wY2kvYWdwX252aWRpYS5jLm9yaWcJ
U2F0IEFwciAgMiAwMzozODowMyAyMDA1CisrKyBzcmMvc3lzL3BjaS9hZ3BfbnZpZGlhLmMJU2F0
IEFwciAgMiAwMzo0MDo1MyAyMDA1CkBAIC02Nyw2ICs2Nyw4IEBACiAjZGVmaW5lCU5WSURJQV9W
RU5ET1JJRAkJMHgxMGRlCiAjZGVmaW5lCU5WSURJQV9ERVZJQ0VJRF9ORk9SQ0UJMHgwMWE0CiAj
ZGVmaW5lCU5WSURJQV9ERVZJQ0VJRF9ORk9SQ0UyCTB4MDFlMAorI2RlZmluZQlOVklESUFfREVW
SUNFSURfTkZPUkNFMwkweDAwZDEKKyNkZWZpbmUJTlZJRElBX0RFVklDRUlEX05GT1JDRTNfMjUw
CTB4MDBlMQogCiBzdHJ1Y3QgYWdwX252aWRpYV9zb2Z0YyB7CiAJc3RydWN0IGFncF9zb2Z0Ywlh
Z3A7CkBAIC0xMDgsNiArMTEwLDEwIEBACiAJCXJldHVybiAoIk5WSURJQSBuRm9yY2UgQUdQIENv
bnRyb2xsZXIiKTsKIAljYXNlIE5WSURJQV9ERVZJQ0VJRF9ORk9SQ0UyOgogCQlyZXR1cm4gKCJO
VklESUEgbkZvcmNlMiBBR1AgQ29udHJvbGxlciIpOworCWNhc2UgTlZJRElBX0RFVklDRUlEX05G
T1JDRTM6CisJCXJldHVybiAoIk5WSURJQSBuRm9yY2UzIEFHUCBDb250cm9sbGVyIik7CisJY2Fz
ZSBOVklESUFfREVWSUNFSURfTkZPUkNFM18yNTAKKwkJcmV0dXJuICgiTlZJRElBIG5Gb3JjZTMg
MjUwIEFHUCBDb250cm9sbGVyIik7CiAJfQogCXJldHVybiAoIk5WSURJQSBHZW5lcmljIEFHUCBD
b250cm9sbGVyIik7CiB9Cg==

------=OPENWEBMAIL_ATT_0.172811147291213--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050402013119.M28803>