From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 17 17:58:23 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B5A416A41F; Sat, 17 Dec 2005 17:58:23 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E1243D7D; Sat, 17 Dec 2005 17:58:07 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id jBHHw6TG028026; Sat, 17 Dec 2005 10:58:06 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <43A451AE.9080601@samsco.org> Date: Sat, 17 Dec 2005 10:58:06 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anholt References: <43A1636A.6030108@mail.uni-mainz.de> <200512161230.41499.jkim@FreeBSD.org> <43A30B25.3030102@mail.uni-mainz.de> <200512161422.00688.jkim@FreeBSD.org> <43A34647.1030404@mail.uni-mainz.de> <1134778435.1404.100.camel@leguin> <43A3EC1A.5050209@mail.uni-mainz.de> <1134840201.1404.109.camel@leguin> In-Reply-To: <1134840201.1404.109.camel@leguin> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: "O. Hartmann" , Jung-uk Kim , freebsd-amd64@freebsd.org Subject: Re: device drm with PCIe? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2005 17:58:23 -0000 Eric Anholt wrote: > On Sat, 2005-12-17 at 11:44 +0100, O. Hartmann wrote: > >>>>>>Ok, but without AGP (device agp) in my kernel config file, I get a >>>>>>lot of errors while linking the kernel of missing agp_xxxxx >>>>>>routines (FreeBSD 6.0-STABLE/amd64). So, device drm alone seems to >>>>>>be useless (although in conjunction with device pci). >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>>Did you try 'make clean; make cleandepend; make depend; make'? >>>>> >>>>> >>>>> >>>>> >>>> >>>>Doesn't work without device agp in kernel config file! >>>> >>>>linking kernel >>>>drm_agpsupport.o(.text+0x22c): In function `drm_agp_info': >>>>: undefined reference to `agp_get_info' >>>>drm_agpsupport.o(.text+0x324): In function `drm_agp_acquire': >>>>: undefined reference to `agp_acquire' >>>>drm_agpsupport.o(.text+0x374): In function `drm_agp_release': >>>>: undefined reference to `agp_release' >>>>drm_agpsupport.o(.text+0x3cf): In function `drm_agp_enable': >>>>: undefined reference to `agp_enable' >>>>drm_agpsupport.o(.text+0x45b): In function `drm_agp_init': >>>>: undefined reference to `agp_find_device' >>>>drm_agpsupport.o(.text+0x4ed): In function `drm_agp_init': >>>>: undefined reference to `agp_get_info' >>>>drm_agpsupport.o(.text+0x534): In function `drm_agp_allocate_memory': >>>> >>>> >>> >>>Correct, the DRM module requires AGP. >>> >>> >>> >> >>So, due to this limitation, drm on any PCIe-based AMD64 platform is >>useless so far? > > > No, you simply need the agp device compiled into the kernel. It doesn't > mean it will actually be used with your specific card at runtime. > > And anyways, you never need to build drm and your device-specific drm > built into the kernel. X loads it for you so you don't have to worry. > Maybe it's time for an agp kobj interface? Scott