From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 11 20:44:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D254616A4C0 for ; Sat, 11 Oct 2003 20:44:59 -0700 (PDT) Received: from lewis.lclark.edu (lclark.edu [149.175.1.5]) by mx1.FreeBSD.org (Postfix) with SMTP id 0AE1543FB1 for ; Sat, 11 Oct 2003 20:44:59 -0700 (PDT) (envelope-from eta@lclark.edu) Received: from [149.175.34.250] ([149.175.34.250]) by lewis.lclark.edu (SAVSMTP 3.1.1.32) with SMTP id M2003101120445200501 ; Sat, 11 Oct 2003 20:44:52 -0700 From: Eric Anholt To: Igor Pokrovsky In-Reply-To: <20031012025658.GA1994@doom.homeunix.org> References: <20031009154030.GI2407@atrbg11.informatik.tu-muenchen.de> <20031012025658.GA1994@doom.homeunix.org> Content-Type: text/plain Message-Id: <1065930291.642.28.camel@leguin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 11 Oct 2003 20:44:51 -0700 Content-Transfer-Encoding: 7bit cc: "hackers@FreeBSD.ORG" cc: Daniel Lang Subject: Re: Matrox Parhelia XFree86 Busmastering kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2003 03:44:59 -0000 On Sat, 2003-10-11 at 19:56, Igor Pokrovsky wrote: > On Thu, Oct 09, 2003 at 05:40:30PM +0200, Daniel Lang wrote: > > Hiho, > > > > There seems no freebsd-xfree list, but this is only XFree related, > > it's rather kernel oriented. > > > > Matrox offers a RedHat-Linux driver for their Parhelia based boards > > (Parhelia, P650, P750). The XFree86 driver module mtx_drv.o itself > > is OS independent and works with FreeBSD, as successfully > > tested on my desk, even with a multihead configuration. :) > > > > Alas, to use acceleration (2D xaa as well as 3D dri, OpenGL, > > etc) it requires a kernel module to enable bus mastering on > > the card. (I don't know if this is a common thing with Linux, > > or with some graphic boards? I am not aware of bus mastering > > is required for AGP boards, isn't AGP a dedicated bus anyway?) > > AFAIK, you can enable bus mastering using pciconf(8) by setting appropriate registers. > Why do you need any additional kernel module? Or I'm completely missing the point? > > -ip Busmastering is not an important part of kernel modules used for aiding accelerating graphics, if it is at all. Notably, XFree86 enables busmastering itself for all the cards it supports that need it (radeon, r128, mga, i8x0, etc.). What that module is more likely for is doing things that require kernel support, such as handling of interrupts to efficiently use the card's DMA support and sharing of resources between various competing direct-rendering clients. I'm not aware of anyone working on Matrox binary driver support. -- Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org