[MPlayer-dev-eng] vidix - Rage 128 (radeon_vid.c): base2 size

sustmi sustmidown at centrum.cz
Thu Mar 15 00:38:10 CET 2007


Hello,
First of all I don't know if I'm posting the patch in correct way, but I didn't
want to spam bugzilla and I don't svn access.
Recently I wanted to get work vidix even for non-root users.
I have ATI AIW Rage 128.
The problem was the gained error: 

So I have looked for the reason of this and found that 'mmap' function for
'base2' memory (registers I think) is called with length 0xFFFF (64k),
but 'lspci -v' gives this:

01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF (prog-if 00 [VGA])
        Subsystem: ATI Technologies Inc Rage 128 AIW Pro AGP
        Flags: bus master, stepping, 66MHz, medium devsel, latency 64, IRQ9
        Memory at e4000000 (32-bit, prefetchable) [size=64M]
        I/O ports at d000 [size=256]
        Memory at e9000000 (32-bit, non-prefetchable) [size=16K]         <<<< HERE
        [virtual] Expansion ROM at e8000000 [disabled] [size=128K]
        Capabilities: [50] AGP version 2.0
        Capabilities: [5c] Power Management version 2

Then I googled a little and I've realized that Rage128 has 16kB base2
memory unlike Radeon's 64kB.
So I did this patch and 'plötzlich' :) it works.

(This 'bug' occurs only when using svgalib_helper for memory access, but
when you don't use the helper you must have access to /dev/mem (root))

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 904 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070315/885bb448/attachment.obj>


More information about the MPlayer-dev-eng mailing list