Hit assertion when writing my xorg driver: dixRegisterPrivateKey: Assertion `!keys[type].created' failed

2011-01-17 Thread Alex Villací­s Lasso
Hello. I am currently writing a display driver (UMS, not framebuffer or KMS) for a very ancient card, the Oak Spitfire OTI64111. This weekend I tried this code with the Fedora 14 xorg server (I previously wrote most of the code on Fedora 12). When I run the driver as the only card for the xorg

How should I deal with a PCI resource not aligned to a page boundary?

2010-02-17 Thread Alex Villací­s Lasso
After writing a somewhat functional xorg driver for the OAK Spitfire OTI64111 video card, I am trying to modify the driver to support the OTI64107 video card, which I have plugged in my test machine. The first strange thing that I notice about this card is that it reports a MMIO region that is

How do I force a particular KMS native resolution for a monitor that lacks EDID?

2009-12-16 Thread Alex Villací­s Lasso
Maybe this is not the proper list for this question. If this is so, please indicate the proper place for this question. I have a Fedora 12 x86_64 system, with an intel video chipset. This system uses a Princeton flat panel connected through a standard VGA cable. This flat panel is odd since it

Writing a xorg driver for OTI-64111, looking for documentation on OTI-088

2009-09-22 Thread Alex Villací­s Lasso
After a lot of googling, I found a PDF file of a photocopy of a datasheet for the OAK 64107 graphics chipset, which seems very similar to the 64111 that I have. With this, the OAK.TXT file from the VGADOC zipfile floating around the net, and examination of register settings on the card itself,

My savage test machine is now dead - last resend of patches

2009-05-19 Thread Alex Villací­s Lasso
Two weeks ago, my home computer with the integrated ProSavageDDR video chipset died on me. After several attempts to diagnose the problem, it seems that the mainboard itself is damaged. So I built myself a new machine with an Intel i915 video chipset. Therefore I am no longer able to develop

xf86-video-savage: (2/2) Do not use XAAGetCopyROP outside of XAA-specific code

2009-04-13 Thread Alex Villací­s Lasso
The DRI code attempts to use XAAGetCopyROP without checking whether XAA or EXA is in effect. This results in the server crashing with an undefined-symbol error when enabling EXA, then starting glxgears under GNOME/Metacity and attempting to drag the glxgears window. The EXA code happens to

xf86-video-savage: Fix crash by null pointer access on XVideo when DRI is not available

2009-03-16 Thread Alex Villací­s Lasso
The Linux kernel version 2.6.29-rc7 introduced a regression that makes a mmap2() call on /dev/dri/card0 fail with EAGAIN on Savage chipsets (don't know about other chipsets yet). I have not yet bisected it or filed a bug for it (since I want to check 2.6.29-rc8 for this bug), but this in turn

xorg-x11-drv-ati for Fedora 10 fails to setup DRI for 3520x1600x32 screen, is this normal?

2009-02-12 Thread Alex Villací­s Lasso
I am checking out what happens when I disable kernel modesetting for a radeon chipset (Xpress 200M RC410) with the xorg-x11-drv-ati package from updates-testing in Fedora 10. So far I have seen that the driver refuses to enable DRI support, as it claims that 64Mb is not enough memory. I added

Re: xorg-x11-drv-ati for Fedora 10 fails to setup DRI for 3520x1600x32 screen, is this normal?

2009-02-12 Thread Alex Villací­s Lasso
Alex Deucher escribió: On Thu, Feb 12, 2009 at 11:59 AM, Alex Villací­s Lasso a_villa...@palosanto.com wrote: As you can see, my primary (and only) screen is using a resolution of 1440x1080, the maximum one it supports. But the DRI calculation is being done on 3520 x 1600

Re: Compile error building xf86-input-keyboard from current git

2009-01-22 Thread Alex Villací­s Lasso
Alan Coopersmith escribió: Alex Villací­s Lasso wrote: kbd.c:154: error: 'XKB_DFLT_RULES' undeclared here (not in a function) This is from a recent git pulled this morning. I am pulling the changes from the last few hours, in the hope this is fixed by compiling an updated proto

Re: Compile error building xf86-input-keyboard from current git

2009-01-22 Thread Alex Villací­s Lasso
Alan Coopersmith escribió: Alex Villací­s Lasso wrote: Alan Coopersmith escribió: Alex Villací­s Lasso wrote: kbd.c:154: error: 'XKB_DFLT_RULES' undeclared here (not in a function) This is from a recent git pulled this morning. I am pulling the changes from the last

Re: Proper way to enable port access tracing with current xserver

2009-01-21 Thread Alex Villací­s Lasso
Tiago Vignatti escribió: Hi, Alex Villací­s Lasso escreveu: Another question I have is this: as far as I understand, PCI video cards have to run the POST (or do an equivalent operation) in order to execute the chipset-specific hocus-pocus that enables legacy vga port access (0x3c0

Compile error building xf86-input-keyboard from current git

2009-01-21 Thread Alex Villací­s Lasso
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -fvisibility=hidden -I/home/alex/xserver/include/xorg

Asking for review of patch for bug #19337

2009-01-19 Thread Alex Villací­s Lasso
A few days ago, I posted a patch for bug #19337, which affects the savage driver with current xserver git, and possibly many other non-xrandr 1.2 enabled drivers. I think this patch needs to be reviewed and possibly merged, because it fixes an annoying crashing regression with users not

Re: Proper way to enable port access tracing with current xserver

2009-01-16 Thread Alex Villací­s Lasso
Alex Deucher escribió: On Fri, Jan 16, 2009 at 3:21 PM, Alex Villací­s Lasso a_villa...@palosanto.com wrote: Alex Deucher escribió: From what I glean from the traces, it seems that using VESA to start up the primary Savage chipset works correctly. However, when trying

Proper way to enable port access tracing with current xserver

2009-01-15 Thread Alex Villací­s Lasso
I am trying to enable I/O port tracing on current xserver head in my home machine (Linux 2.6.28 on x86 Pentium 4 32-bits, ProSavageDDR-K as primary card, Oak OTI64111 as secondary card) in order to learn about the register initialization for the video BIOS of both the Savage and the Oak

Re: Proper way to enable port access tracing with current xserver

2009-01-15 Thread Alex Villací­s Lasso
Alex Deucher escribió: On Thu, Jan 15, 2009 at 3:10 PM, Alex Villací­s Lasso a_villa...@palosanto.com wrote: I am trying to enable I/O port tracing on current xserver head in my home machine (Linux 2.6.28 on x86 Pentium 4 32-bits, ProSavageDDR-K as primary card, Oak OTI64111 as secondary

xf86-video-savage: add missing xf86CrtcConfigInit in SavagePreInit

2009-01-13 Thread Alex Villací­s Lasso
With the latest git for xserver and the latest git for savage, an attempt to start up crashes the server unless this patch is applied. It seems that an explicit xf86CrtcConfigInit() is now required in the PreInit stage of the driver setup. I found via valgrind that the absence of this call

Re: xf86-video-savage: add missing xf86CrtcConfigInit in SavagePreInit

2009-01-13 Thread Alex Villací­s Lasso
Alex Deucher escribió: On Tue, Jan 13, 2009 at 11:36 AM, Alex Villací­s Lasso a_villa...@palosanto.com wrote: With the latest git for xserver and the latest git for savage, an attempt to start up crashes the server unless this patch is applied. It seems that an explicit xf86CrtcConfigInit

Re: xf86-video-savage: EXA: use memcpy instead of loop for UploadToScreen operation

2009-01-06 Thread Alex Villací­s Lasso
Alex Villací­s Lasso escribió: Optimization. Saves one compare per DWORD for common case where BCI queue has ample space for bitmap data. Changelog: * EXA: use memcpy instead of loop for UploadToScreen operation

xf86-video-savage: Document existence of IgnoreEDID option

2008-12-30 Thread Alex Villací­s Lasso
This flag was added by me in a patch, but forgot to update the man page. This patch adds such update. Changelog: Document existence of IgnoreEDID option. -- perl -e '$x=2.4;print sprintf(%.0f + %.0f = %.0f\n,$x,$x,$x+$x);' From c67186bbb0070f53f2e801a71967f5482ae76789 Mon Sep 17 00:00:00 2001

xf86-video-savage: (1/2) YUV packed buffer and YV12 planar buffer (if required) are now separate allocations

2008-12-30 Thread Alex Villací­s Lasso
This is a preparation for the next patch (placing XVideo YV12 data in AGP memory). Currently a single buffer is allocated for YV12 planar data and the YUY2 packed data that is the true format that the card can display. This patch splits the buffers into two separate allocations, and adds the

xf86-video-savage: (2/2) Implement AGPforXv option

2008-12-30 Thread Alex Villací­s Lasso
This patch adds the capability to place YV12 data in AGP memory while it is being converted to packed YUY2. The single most expensive operation in XVideo rendering on savage (on current implementation) is the upload to the framebuffer. By placing YV12 data in an AGP buffer, the CPU saves

xf86-video-savage: EXA: use memcpy instead of loop for UploadToScreen operation

2008-12-30 Thread Alex Villací­s Lasso
Optimization. Saves one compare per DWORD for common case where BCI queue has ample space for bitmap data. Changelog: * EXA: use memcpy instead of loop for UploadToScreen operation -- perl -e '$x=2.4;print sprintf(%.0f + %.0f = %.0f\n,$x,$x,$x+$x);' From

libpciaccess ROM read is thrice broken (was: X Hangs at Initializing int10) try 2

2008-12-05 Thread Alex Villací­s Lasso
Resending as previous attempt complains attachments are too big. All of the following applies to the stock linux 2.6 kernel from a fresh installation of Fedora 10. I have been looking into the int10 hang when initializing the BIOS of a secondary card. This is what I found: - The function

Re: X Hangs at Initializing int10

2008-12-02 Thread Alex Villací­s Lasso
Timothy S. Nelson escribió: Hi all. I'm upgrading from Fedora 6 to Fedora 10. I did a clean install of Fedora 10 and then, as the default X config didn't work, I copied across my old xorg.conf file. Naturally I had to comment out a few lines in that file. Now a word on my setup. I

Looking for API to possibly implement mastered image transfer for xf86-video-savage

2008-11-10 Thread Alex Villací­s Lasso
In the reference documents for the savage video card, there is an operation called a mastered image transfer, which looks like an accelerated pixmap upload into the framebuffer. This operation references registers with bit flags to select between framebuffer memory and system memory. However,

Trying to understand vertex format for savage EXA composite

2008-11-10 Thread Alex Villací­s Lasso
Good news! My machine rose itself from the dead while salvaging its memory chips, so now I can continue tinkering with the savage driver. Since a while ago, I am trying to write an EXA composite acceleration implementation for savage. I have gotten to the point that I can pipe a few vertices

xf86-video-savage: use xf86XVFillKeyHelperDrawable if available for colorkey filling

2008-11-06 Thread Alex Villací­s Lasso
A few days ago I reported a bug (https://bugs.freedesktop.org/show_bug.cgi?id=18378) about XV colorkeying breaking when Metacity compositing is enabled. Michel Dänzer was kind enough to explain the root issue to me, and I prepared a patch, here attached. Please review. -- perl -e

Looking for registers reference for Oak OTI64111 (Spitfire)

2008-10-07 Thread Alex Villací­s Lasso
Recently I dug up a very old graphics card, an Oak Spitfire OTI-64111 by Oak Technologies. After looking up information for it in Google, I found that there is no specific driver for xorg (although there are plenty of mirrors for windows drivers). I want to familiarize myself with graphics