From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 17 08:32:43 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B42241065673 for ; Mon, 17 Mar 2008 08:32:43 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mx1.freebsd.org (Postfix) with ESMTP id F2ECD8FC16 for ; Mon, 17 Mar 2008 08:32:42 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.6/8.12.6) with ESMTP id m2H7vLen002080 for ; Mon, 17 Mar 2008 08:57:21 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail1.siemens.de (8.12.6/8.12.6) with ESMTP id m2H7vL3w001306 for ; Mon, 17 Mar 2008 08:57:21 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.2/8.14.2) id m2H7vLWa044542; Date: Mon, 17 Mar 2008 08:57:21 +0100 From: Andre Albsmeier To: freebsd-multimedia@freebsd.org Message-ID: <20080317075721.GA30606@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.14 (2007-02-12) Subject: Problems with fxtv and bktr cards on modern hardware X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 08:32:43 -0000 I have problems using fxtv (without -disableDirectV) on modern hardware (Asus P5W, BrookTree 878 PCI, Matrox G550 PCIe). On an older board (Asus CUBX-L) with the same BrookTree 878 PCI card and a Matrox G550 AGP everything works. I have found two test programmes on http://people.freebsd.org/~rhh/fxtv/: 1. dgafbtest tests the functionality of the DGA extensions. It draws some lines in the corners of the screen using DGA. This programme works perfectly on the Asus P5W. 2. tv-dgatest switches the bktr-card into a mode where it generates colourbars (instead of video). The result is written directly to the graphics card's memory using DGA. This doesn't work on the P5W but it works on the CUBX-L. tv-dgatest outputs some diagnostic data. In the case of the P5W these are: XF86 DGA Extension Test Version = 2.00 Direct Video = NO-DirectGraphics NO-DirectMouse NO-DirectKeyb XF86DGAGetVideo: Video Address = 0x48400000 Width = 1280 BankSize = 32768K MemSize = 32768K XF86DGAGetVideoLL: Video Address = 0xfa000000 Width = 1280 BankSize = 32768K MemSize = 32768K The data for the CUBX-L is the same except for the "Video Address" which changes from 0xfa000000 to 0xe2000000. Since dgafbtest works we can assume that the address of the video memory is correct in both cases. In tv-dgatest, it seems that the call ioctl( fd, METEORSVIDEO, &video ) instructs the bktr driver to tell the card where to copy its output. Then, the lines larg = METEOR_CAP_SINGLE; ioctl( fd, METEORCAPTUR, &larg ) actually tell the card to send its colour bars to graphics adapter. Could it be that the bktr driver (or the card) has problems with the METEORSVIDEO ioctl() with a video address 0xfa000000? Or could it be, that the old PCI-based BrookTree 878 card can't work together with a PCIe-based G550? Any ideas? Thanks, -Andre