Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2005 12:35:05 -0500
From:      Jung-uk Kim <jkim@niksun.com>
To:        freebsd-amd64@freebsd.org
Subject:   Re: K8N-E deluxe / Nforce3 250 : no agp support yet ?
Message-ID:  <200504011235.05993.jkim@niksun.com>
In-Reply-To: <20050401090927.M62447@martymac.com>
References:  <20050401090927.M62447@martymac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-00=_JZYTCVKHiPq+FQk
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

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.

--Boundary-00=_JZYTCVKHiPq+FQk
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="agp_nforce3.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="agp_nforce3.diff"

Index: agp_amd64.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp_amd64.c,v
retrieving revision 1.5
diff -u -r1.5 agp_amd64.c
--- src/sys/pci/agp_amd64.c	24 Feb 2005 21:32:55 -0000	1.5
+++ src/sys/pci/agp_amd64.c	1 Apr 2005 17:31:33 -0000
@@ -82,6 +82,8 @@
 		return ("AMD 8151 AGP graphics tunnel");
 	case 0x07551039:
 		return ("SiS 755 host to AGP bridge");
+	case 0x00d110de:
+		return ("NVIDIA nForce3 AGP Controller");
 	case 0x02041106:
 		return ("VIA 8380 host to PCI bridge");
 	case 0x02821106:
Index: agp_nvidia.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp_nvidia.c,v
retrieving revision 1.8
diff -u -r1.8 agp_nvidia.c
--- src/sys/pci/agp_nvidia.c	24 Feb 2005 22:33:05 -0000	1.8
+++ src/sys/pci/agp_nvidia.c	1 Apr 2005 17:31:33 -0000
@@ -109,7 +109,7 @@
 	case NVIDIA_DEVICEID_NFORCE2:
 		return ("NVIDIA nForce2 AGP Controller");
 	}
-	return ("NVIDIA Generic AGP Controller");
+	return (NULL);
 }
 
 static int

--Boundary-00=_JZYTCVKHiPq+FQk--



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