Hi Jon,

I'm going to start writing the code for permanent maps in the Savage
driver now. I'm becoming aware of the practical problems now and I'd
like to know if my understanding is correct so far.

The first problem I have is that I need to find out the size of the
video memory in order to create the framebuffer map correctly. Since
permanent maps are supposed to be created when the driver is loaded in
the preinit or postinit hooks, X can't provide that information in the
init ioctl. So I'll have to copy some pretty magic (to me at least) code
from the DDX to the kernel driver in order to do the hardware and video
memory detection. The code in the Savage DDX uses MMIO register access
in order to find out the amount of video ram. This means I'll have to
enable MMIO in the kernel driver now. I hope that won't interfere with
the DDX driver that probably expects MMIO to be disabled when it is
first loaded.

I havn't found any example of a driver using permanent maps in the
current DRM sources. You referred to the radeon driver sometimes, but
the only thing I could find was a comment above radeon_preinit. Grep
doesn't find any call to initmap in any of the drivers. Is this
something you forgot to commit? I'd really like to take a look at an
example, since this is the first time I'm working with a DRM driver.

Regards,
  Felix

| Felix Kühling <[EMAIL PROTECTED]>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to