From owner-freebsd-x11@FreeBSD.ORG Fri May 21 01:09:34 2004 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE9DF16A4CE; Fri, 21 May 2004 01:09:34 -0700 (PDT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DFE243D2F; Fri, 21 May 2004 01:09:34 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from freebsd.org (junior-wifi.samsco.home [192.168.0.11]) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id i4L8FKwq041738; Fri, 21 May 2004 02:15:21 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <40ADB93A.4020504@freebsd.org> Date: Fri, 21 May 2004 02:09:30 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jung-uk Kim References: <200405181244.28716.jkim@niksun.com> In-Reply-To: <200405181244.28716.jkim@niksun.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-x11@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Test your agp(4) before blaming on DRM/DRI! X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 08:09:35 -0000 Jung-uk Kim wrote: > I was trying to make my Intel i815 and VIA K8T800 chipsets working > with agp(4) and I found that there were number of issues in the > driver. These issues were mainly from adding PCI IDs blindly without > verifying proper documentation. On top of that, some drivers do not > care whether the bridge is supported or not and just attach as > 'generic' bridge, e. g., agp_sis.c and agp_via.c. This gives users > false hope and I believe this is wrong. > > I found the following from DRI website: > > http://dri.sourceforge.net/res/testgart.c > > and SuSE Linux had little newer package: > > http://www.suse.de/us/private/products/suse_linux/prof/packages_professional/testgart.html > > I modified SuSE's to work with FreeBSD. Test your GART before blaming > on DRM/DRI! If aperture size is reported differently from BIOS > setting, that is not supported correctly, e. g., i815 - different > aperture size encoding and registers. If writeback test fails, > that's more serious problem, e. g., K8T800 - doesn't work at all for > me. > > BTW, you have to unload your drm driver (or recompile kernel if you > compiled it in) before you test agp. > > I hope this helps many confused users. > > Cheers, > > Jung-uk Kim > > > * PS: Is there anybody working on AMD64 on-CPU GART driver like this? > > http://fxr.watson.org/fxr/source/drivers/char/agp/amd64-agp.c?v=linux-2.6.1 > > Documentation is here (Section 3.6.11-14): > > http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/26094.PDF There has been talk about adding support for this into the busdma framework. Another nice TODO item if anyone wants it. Scott