KMS and TTM questions

Alex Deucher alexdeucher at gmail.com
Mon Oct 3 12:56:25 PDT 2011


On Mon, Oct 3, 2011 at 3:01 PM, James Simmons <jsimmons at infradead.org> wrote:
>
> Hi!
>
>        I been working on updating the VIA kernel driver to using KMS
> and TTM. So this weekend I started to implement a couple of buffer
> allocations internally to the driver from the video ram. So the first
> buffer I allocated was not the front buffer from the video vram but a
> virtual queue buffer of about 256K in size. The second allocation was
> the front buffer. The problem was the buffer offset for the second
> allocation was the same as the VQ buffer. I'm stump to what I'm doing
> wrong, so does anyone have a idea?
>        Second question I have is how are monochrome cursor images
> handled with KMS. Yes we need to support CLE266 which is used in a lot
> of POS devices. That chipset only supports monochrome cursors.

As far as I know, the KMS cursor API doesn't really care what type of
cursors are supported.  That's a client driver (ddx, etc.)
implementation detail.  The cursor interface just basically has on,
off, and position. The client driver (ddx, etc.) can choose to upload
a ARGB or mono image.  We should probably add some sort of flag to KMS
to ask the driver what types of cursors they support so this could be
supported in a generic way.

Alex


More information about the dri-devel mailing list