Re: How is drmAddBufs supposed to get called ?

2007-06-12 Thread Dave Airlie
>
>   When I load the drm and radeon modules (I have a 9200SE on my box)
> and start up X (Xorg 7.2.0) I see a series of calls to drmAddMap finishing
> with the message "added 8192 byte SAREA at 0xdf7c2000" then a call to
> drmMap which fails because dma->pagelist is NULL because drmAddBufs has
> never been called. The thing I can't see is how drmAddBufs is supposed to
> be called and with what parameters, or indeed if it should happen at a
> lower level inside the kernel module or as part of the open code perhaps.
> Could someone shed some light on this for me please.

It gets called by the RADEONDRIBufInit in the radeon Xorg DDC driver.

>   Once I get it all going I'll raise the question of what to do with
> my DragonFlyBSD patches

You send them here and either I or the FreeBSD maintainer will merge them 
in hopefully..

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


How is drmAddBufs supposed to get called ?

2007-06-12 Thread Steve O'Hara-Smith
Hi,

I'm in the process of adding DragonFlyBSD support to the BSD kernel
module which seems to be going pretty well except ...

When I load the drm and radeon modules (I have a 9200SE on my box)
and start up X (Xorg 7.2.0) I see a series of calls to drmAddMap finishing
with the message "added 8192 byte SAREA at 0xdf7c2000" then a call to
drmMap which fails because dma->pagelist is NULL because drmAddBufs has
never been called. The thing I can't see is how drmAddBufs is supposed to
be called and with what parameters, or indeed if it should happen at a
lower level inside the kernel module or as part of the open code perhaps.
Could someone shed some light on this for me please.

Once I get it all going I'll raise the question of what to do with
my DragonFlyBSD patches.

-- 
C:>WIN  |   Directable Mirror Arrays
The computer obeys and wins.| A better way to focus the sun
You lose and Bill collects. |licences available see
|http://www.sohara.org/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel