[PATCH test] K8N-E deluxe / Nforce3 250 : no agp support yet ?
Ganael Laplanche
ganael.laplanche at martymac.com
Fri Apr 1 17:52:09 PST 2005
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 at 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 at 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 at martymac.com
http://www.martymac.com
Tel : (+33)6.84.03.57.24.
---------- Original Message -----------
From: Jung-uk Kim <jkim at niksun.com>
To: freebsd-amd64 at freebsd.org
Cc: "Ganael Laplanche" <ganael.laplanche at 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 at martymac.com
> > http://www.martymac.com
> > Tel : (+33)6.84.03.57.24.
------- End of Original Message -------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-nvidia.diff
Type: text/x-patch
Size: 1156 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20050402/034fdb00/patch-nvidia.bin
More information about the freebsd-amd64
mailing list