From owner-freebsd-questions@FreeBSD.ORG Tue Nov 27 15:49:53 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13BEDD4C for ; Tue, 27 Nov 2012 15:49:53 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id C61528FC08 for ; Tue, 27 Nov 2012 15:49:52 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so15131964iec.13 for ; Tue, 27 Nov 2012 07:49:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mlabTHtm/Hc9SPcmNgrLtW6WrPyX8bX5rhE3v6GSXn8=; b=ffvxPqa7xVFN+QE1IvmArlHWuhWQGluVS8kr6BRQaAJdQDe8jmHAvkr5SGzPA9AhLr 8u2837UZE8dcVc2iX7FV9eMq834DSygh4tr0W/9fVOhOkren71PTVdGL3U3ysM9lseMo rhC0wXwLb0PLoCOZC37MFOOIlY9JZue8seQ06Amu2jtRM7PM7TZDP7q3gz9y4j9fOhrV IqMDOVSjqn4WdOqkQTcCvPD7i4kl/CE+tIPK7vPotkPsna34KrSI5lITjORwYAGKF0x8 mvt7DT6SdB+zw2qodI7vbMSq0XtR1LnDBcjgvx2Bxo4ihUfiSa5EbQeg5BnjxIqg3fKy WF1w== MIME-Version: 1.0 Received: by 10.50.182.230 with SMTP id eh6mr15793966igc.39.1354031392255; Tue, 27 Nov 2012 07:49:52 -0800 (PST) Received: by 10.64.30.11 with HTTP; Tue, 27 Nov 2012 07:49:51 -0800 (PST) In-Reply-To: <201211251111.qAPBBZBT031088@mech-cluster241.men.bris.ac.uk> References: <201211251111.qAPBBZBT031088@mech-cluster241.men.bris.ac.uk> Date: Tue, 27 Nov 2012 10:49:51 -0500 Message-ID: Subject: Re: do I need agp(4) on my amd64 laptop From: "illoai@gmail.com" To: mexas@bristol.ac.uk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 15:49:53 -0000 On 25 November 2012 06:11, Anton Shterenlikht wrote: > From illoai@gmail.com Sat Nov 24 16:09:29 2012 > > On 22 November 2012 06:19, Anton Shterenlikht wrote: > >> It is not clear for me from the agp(4) man page, > >> whether I need this device in the kernel or not. ... > >> hostb4@pci0:0:24:3: class=0x060000 card=0x00000000 chip=0x11031022 rev=0x00 hdr=0x00 > >> vendor = 'Advanced Micro Devices [AMD]' > >> device = 'K8 [Athlon64/Opteron] Miscellaneous Control' > >> class = bridge > >> subclass = HOST-PCI > >> vgapci0@pci0:1:5:0: class=0x030000 card=0x30c2103c chip=0x791f1002 rev=0x00 hdr=0x00 > >> vendor = 'Advanced Micro Devices [AMD] nee ATI' > >> device = 'RS690M [Radeon X1200 Series]' > >> class = display > >> subclass = VGA > >> bge0@pci0:16:0:0: class=0x020000 card=0x30c2103c chip=0x171314e4 rev=0x02 hdr=0x00 > >> vendor = 'Broadcom Corporation' > >> device = 'NetLink BCM5906M Fast Ethernet PCI Express' > >> class = network > >> subclass = ethernet > >> siba_bwn0@pci0:48:0:0: class=0x028000 card=0x1371103c chip=0x431214e4 rev=0x02 hdr=0x00 > >> vendor = 'Broadcom Corporation' > >> device = 'BCM4311 802.11a/b/g' > >> class = network > >> cbb0@pci0:2:4:0: class=0x060700 card=0x30c2103c chip=0x04761180 rev=0xb6 hdr=0x02 > >> vendor = 'Ricoh Co Ltd' > >> device = 'RL5c476 II' > >> class = bridge > >> subclass = PCI-CardBus > > > > You bring up a good point. Your laptop is almost the same as mine, > > & the graphics chip is connected via PCI Express. > > I should see if it builds & runs without agp. > > > > Looks like drm requires agp for the kernel to link correctly. > Oh well. > > ... > drm_agpsupport.o: In function `drm_agp_free_memory': > /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xcba): > undefined reference to `agp_fi > nd_device' > /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xcd4): > undefined reference to `agp_fr > ee_memory' > drm_agpsupport.o: In function `drm_agp_init': > /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xdb8): > undefined reference to `agp_fi > nd_device' > /home/svn/9.1/src/sys/dev/drm/drm_agpsupport.c:(.text+0xe2f): > undefined reference to `agp_ge > t_info' > *** [kernel] Error code 1 > ... > > ok, I get it. I think I built drm and agp > together, hence I haven't encountered this > error. > > Do you use radeon video driver? > Do you use radeondrm device in kernel? > This only place I see this is in > src/sys/amd64/conf/NOTES. > My understanding is that to get drm > working with the radeon driver, I need > to add radeondrm to the kernel, but again, > I'm not sure. Yes, I use the radeon driver in xorg, & I have radeondrm in kernel. I don't think you need to build it in, as loading the module should work, I just got in the habit a while back & can't seem to quit now. -- --