userspace testing an ati fb driver

2 messages, 2 authors, 2003-12-04 · open the first message on its own page

userspace testing an ati fb driver

From: random <hidden>
Date: 2003-12-03 09:44:16

On my Powerbook, /proc/iomem lists 0xb0000000-0xb000ffff as the location
of the programming registers for my ATI Radeon R250 Lf.

This seems to be the same spot XFree86 finds in its log:
(II) RADEON(0): MMIO registers at 0xb0000000

I've been trying to mimic the XFree86 fb accel code to make a Linux 2.6 fb
port, but i've had little luck. To try to pare down the new code, I've
written a userspace program which will open "/dev/mem" and then mmap in
this file starting at '0xb0000000' going for 0x10000 bytes.  Poking at the
"registers" there seems to have no effect; reading from these "registers"
(for example, to verify the engine idling) indicates that I'm perhaps
reading from the wrong place in memory, i.e. the engine never indicates
that it's idle.  Any ideas?

-eger david

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: userspace testing an ati fb driver

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2003-12-04 00:06:46

On Wed, 2003-12-03 at 20:44, random wrote:
On my Powerbook, /proc/iomem lists 0xb0000000-0xb000ffff as the location
of the programming registers for my ATI Radeon R250 Lf.

This seems to be the same spot XFree86 finds in its log:
(II) RADEON(0): MMIO registers at 0xb0000000

I've been trying to mimic the XFree86 fb accel code to make a Linux 2.6 fb
port, but i've had little luck. To try to pare down the new code, I've
written a userspace program which will open "/dev/mem" and then mmap in
this file starting at '0xb0000000' going for 0x10000 bytes.  Poking at the
"registers" there seems to have no effect; reading from these "registers"
(for example, to verify the engine idling) indicates that I'm perhaps
reading from the wrong place in memory, i.e. the engine never indicates
that it's idle.  Any ideas?
That should work, make sure you are using proper memory barriers for
your IO accesses though (eieio instructions)

Enclosed is an example of a little program I use to dump the radeon
registers

Ben.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help