* KMS and TTM questions
@ 2011-10-03 19:01 James Simmons
2011-10-03 19:10 ` Jerome Glisse
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: James Simmons @ 2011-10-03 19:01 UTC (permalink / raw)
To: DRI development list
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.
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: KMS and TTM questions
2011-10-03 19:01 KMS and TTM questions James Simmons
@ 2011-10-03 19:10 ` Jerome Glisse
2011-10-03 19:37 ` James Simmons
2011-10-03 19:14 ` Alan Cox
2011-10-03 19:56 ` Alex Deucher
2 siblings, 1 reply; 19+ messages in thread
From: Jerome Glisse @ 2011-10-03 19:10 UTC (permalink / raw)
To: James Simmons; +Cc: DRI development list
On Mon, Oct 3, 2011 at 3:01 PM, James Simmons <jsimmons@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?
Without code to look at we all can start guessing :) my guess is either
you are not using the proper offset field or you are allocating from
different memory pool.
> 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.
You can hide the cursor limitation from userspace and pretend supporting
rgb cursor.
Cheers,
Jerome
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:10 ` Jerome Glisse
@ 2011-10-03 19:37 ` James Simmons
2011-10-03 20:34 ` Jerome Glisse
0 siblings, 1 reply; 19+ messages in thread
From: James Simmons @ 2011-10-03 19:37 UTC (permalink / raw)
To: Jerome Glisse; +Cc: DRI development list
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1156 bytes --]
> > 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?
>
> Without code to look at we all can start guessing :) my guess is either
> you are not using the proper offset field or you are allocating from
> different memory pool.
http://cgit.freedesktop.org/~jsimmons/drm-openchrome
> > 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.
>
> You can hide the cursor limitation from userspace and pretend supporting
> rgb cursor.
So just return -ENXIO in that case.
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:37 ` James Simmons
@ 2011-10-03 20:34 ` Jerome Glisse
2011-10-04 14:43 ` James Simmons
0 siblings, 1 reply; 19+ messages in thread
From: Jerome Glisse @ 2011-10-03 20:34 UTC (permalink / raw)
To: James Simmons; +Cc: DRI development list
On Mon, Oct 3, 2011 at 3:37 PM, James Simmons <jsimmons@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?
>>
>> Without code to look at we all can start guessing :) my guess is either
>> you are not using the proper offset field or you are allocating from
>> different memory pool.
>
> http://cgit.freedesktop.org/~jsimmons/drm-openchrome
>
>From quick glimpse ttm_bo_allocate in via/init_ttm.c loose the
TTM_PL_FLAG_NO_EVICT so you vq buffer is not allocated with the no
evict flags, then i guess it got evicted on first bo allocation which
is strange, maybe first bo has some lpfn constraint.
>> > 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.
>>
>> You can hide the cursor limitation from userspace and pretend supporting
>> rgb cursor.
>
> So just return -ENXIO in that case.
No, so far there is no format specification for cursor, so userspace
can send monochrome or you can accept rgb from userspace and convert
to monochrome inside the kernel, but i think it's better to just
assume userspace sends you monochrome.
Cheers,
Jerome
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 20:34 ` Jerome Glisse
@ 2011-10-04 14:43 ` James Simmons
0 siblings, 0 replies; 19+ messages in thread
From: James Simmons @ 2011-10-04 14:43 UTC (permalink / raw)
To: Jerome Glisse; +Cc: DRI development list
> >> Without code to look at we all can start guessing :) my guess is either
> >> you are not using the proper offset field or you are allocating from
> >> different memory pool.
> >
> > http://cgit.freedesktop.org/~jsimmons/drm-openchrome
> >
>
> >From quick glimpse ttm_bo_allocate in via/init_ttm.c loose the
> TTM_PL_FLAG_NO_EVICT so you vq buffer is not allocated with the no
> evict flags, then i guess it got evicted on first bo allocation which
> is strange, maybe first bo has some lpfn constraint.
Tried it and it didn't help. Its the ttm_buffer_object offset that should
vary for each buffer object created from some memory pool. That
offset is set from bo->mem.mm_node if it is present. Looking at the
code ttm_bo_init should end up calling ttm_bo_move_buffer which should in
turn set up the bo->mem.mm_node. I guess I really need to debug the code
to see what is going on.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:01 KMS and TTM questions James Simmons
2011-10-03 19:10 ` Jerome Glisse
@ 2011-10-03 19:14 ` Alan Cox
2011-10-03 19:27 ` Dave Airlie
` (2 more replies)
2011-10-03 19:56 ` Alex Deucher
2 siblings, 3 replies; 19+ messages in thread
From: Alan Cox @ 2011-10-03 19:14 UTC (permalink / raw)
To: James Simmons; +Cc: DRI development list
> 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?
I gave up trying to understand TTM (they don't make happy pills that big)
and used GEM and a simple allocator. The private allocator GEM change
means you can now use GEM to magic up objects that are in on card or
stolen memory where applicable not just backed in system memory.
> 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
That depends on your libkms for the device. You can allocate a one bit
deep object if you want. Reading libkms source is probably what you need
if you've not already done os.
> of POS devices. That chipset only supports monochrome cursors.
Which I think means a modern X will not care about the hardware cursor ?
Alan
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: KMS and TTM questions
2011-10-03 19:14 ` Alan Cox
@ 2011-10-03 19:27 ` Dave Airlie
2011-10-03 23:07 ` Alan Cox
2011-10-04 14:08 ` James Simmons
2011-10-04 13:48 ` James Simmons
2011-10-04 16:58 ` Thomas Hellstrom
2 siblings, 2 replies; 19+ messages in thread
From: Dave Airlie @ 2011-10-03 19:27 UTC (permalink / raw)
To: Alan Cox; +Cc: DRI development list
On Mon, Oct 3, 2011 at 8:14 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
>> 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?
>
> I gave up trying to understand TTM (they don't make happy pills that big)
> and used GEM and a simple allocator. The private allocator GEM change
> means you can now use GEM to magic up objects that are in on card or
> stolen memory where applicable not just backed in system memory.
Thats fine as long as you don't want to do acceleration or object
migration between GTT
and VRAM type memory. Now I expect when you give out this advice you
should also state the limitations your advice leads to.
For a VIA device I think TTM is necessary as they preallocate large
piece of RAM to VRAM area like 128MB or so and you need to migrate
objects in/out of that area to use it.
Dave.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:27 ` Dave Airlie
@ 2011-10-03 23:07 ` Alan Cox
2011-10-04 13:42 ` James Simmons
2011-10-04 16:54 ` Thomas Hellstrom
2011-10-04 14:08 ` James Simmons
1 sibling, 2 replies; 19+ messages in thread
From: Alan Cox @ 2011-10-03 23:07 UTC (permalink / raw)
To: Dave Airlie; +Cc: DRI development list
> Thats fine as long as you don't want to do acceleration or object
> migration between GTT
> and VRAM type memory. Now I expect when you give out this advice you
Yes but the VIA doesn't if I recall correctly have any 'VRAM type memory'.
It's all effectively in the GART with the 'stolen' pages preloaded into
the translation tables by the BIOS at vga init time.
It has fake VRAM type memory but thats really an illusion (although one
the driver seems to like to keep up). The GEM changes do mean you can
plug the existing allocator in the VIA driver into GEM directly. Whether
that would be a good idea or not given the other things you then need to
do I don't know - but it does seem to be me to be a stepping stone in the
right direction that is much easier to make ?
I'm fairly sure the real problem is that we have no way to treat stolen
pages as generic kernel memory. The ideal case would be to simply put
that memory back into the kernel memory pools. I did a little poking at
this but it makes suspend/resume horribly exciting and while some
hardware puts it at civilised bus addresses (end of 'real' memory
usually) not everyone seems to do it that way.
You can migrate the physical pages under a GEM object as well - in fact
it happens every time pages get swapped out and back in.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 23:07 ` Alan Cox
@ 2011-10-04 13:42 ` James Simmons
2011-10-04 13:46 ` Alex Deucher
2011-10-04 16:54 ` Thomas Hellstrom
1 sibling, 1 reply; 19+ messages in thread
From: James Simmons @ 2011-10-04 13:42 UTC (permalink / raw)
To: Alan Cox; +Cc: DRI development list
> > Thats fine as long as you don't want to do acceleration or object
> > migration between GTT
> > and VRAM type memory. Now I expect when you give out this advice you
>
> Yes but the VIA doesn't if I recall correctly have any 'VRAM type memory'.
> It's all effectively in the GART with the 'stolen' pages preloaded into
> the translation tables by the BIOS at vga init time.
>
> It has fake VRAM type memory but thats really an illusion (although one
> the driver seems to like to keep up). The GEM changes do mean you can
> plug the existing allocator in the VIA driver into GEM directly. Whether
> that would be a good idea or not given the other things you then need to
> do I don't know - but it does seem to be me to be a stepping stone in the
> right direction that is much easier to make ?
That is correct. In fact the via driver detects what type of system ram is
used so I can limit what resolutions are supported. Its possible that the
memory doesn't have the bandwidth to support a very large resolution on
older systems.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-04 13:42 ` James Simmons
@ 2011-10-04 13:46 ` Alex Deucher
2011-10-04 13:58 ` James Simmons
0 siblings, 1 reply; 19+ messages in thread
From: Alex Deucher @ 2011-10-04 13:46 UTC (permalink / raw)
To: James Simmons; +Cc: DRI development list
On Tue, Oct 4, 2011 at 9:42 AM, James Simmons <jsimmons@infradead.org> wrote:
>
>> > Thats fine as long as you don't want to do acceleration or object
>> > migration between GTT
>> > and VRAM type memory. Now I expect when you give out this advice you
>>
>> Yes but the VIA doesn't if I recall correctly have any 'VRAM type memory'.
>> It's all effectively in the GART with the 'stolen' pages preloaded into
>> the translation tables by the BIOS at vga init time.
>>
>> It has fake VRAM type memory but thats really an illusion (although one
>> the driver seems to like to keep up). The GEM changes do mean you can
>> plug the existing allocator in the VIA driver into GEM directly. Whether
>> that would be a good idea or not given the other things you then need to
>> do I don't know - but it does seem to be me to be a stepping stone in the
>> right direction that is much easier to make ?
>
> That is correct. In fact the via driver detects what type of system ram is
> used so I can limit what resolutions are supported. Its possible that the
> memory doesn't have the bandwidth to support a very large resolution on
> older systems.
Is vram actually handled via a scatter/gather page table or is it just
a pointer to a contiguous chunk of stolen system memory at the top of
ram?
Alex
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-04 13:46 ` Alex Deucher
@ 2011-10-04 13:58 ` James Simmons
0 siblings, 0 replies; 19+ messages in thread
From: James Simmons @ 2011-10-04 13:58 UTC (permalink / raw)
To: Alex Deucher; +Cc: DRI development list
> >> > Thats fine as long as you don't want to do acceleration or object
> >> > migration between GTT
> >> > and VRAM type memory. Now I expect when you give out this advice you
> >>
> >> Yes but the VIA doesn't if I recall correctly have any 'VRAM type memory'.
> >> It's all effectively in the GART with the 'stolen' pages preloaded into
> >> the translation tables by the BIOS at vga init time.
> >>
> >> It has fake VRAM type memory but thats really an illusion (although one
> >> the driver seems to like to keep up). The GEM changes do mean you can
> >> plug the existing allocator in the VIA driver into GEM directly. Whether
> >> that would be a good idea or not given the other things you then need to
> >> do I don't know - but it does seem to be me to be a stepping stone in the
> >> right direction that is much easier to make ?
> >
> > That is correct. In fact the via driver detects what type of system ram is
> > used so I can limit what resolutions are supported. Its possible that the
> > memory doesn't have the bandwidth to support a very large resolution on
> > older systems.
>
> Is vram actually handled via a scatter/gather page table or is it just
> a pointer to a contiguous chunk of stolen system memory at the top of
> ram?
Stolen chuck. At the same time newer chipsets, VX900, have pcie gart
table to move data to and from the "vram".
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 23:07 ` Alan Cox
2011-10-04 13:42 ` James Simmons
@ 2011-10-04 16:54 ` Thomas Hellstrom
2011-10-04 19:10 ` James Simmons
1 sibling, 1 reply; 19+ messages in thread
From: Thomas Hellstrom @ 2011-10-04 16:54 UTC (permalink / raw)
To: Alan Cox; +Cc: DRI development list
On 10/04/2011 01:07 AM, Alan Cox wrote:
>> Thats fine as long as you don't want to do acceleration or object
>> migration between GTT
>> and VRAM type memory. Now I expect when you give out this advice you
>>
> Yes but the VIA doesn't if I recall correctly have any 'VRAM type memory'.
> It's all effectively in the GART with the 'stolen' pages preloaded into
> the translation tables by the BIOS at vga init time.
>
VRAM memory (at least on the older unichromes) is taken from on-board
RAM and set up by the BIOS, and from a device programmer's point of view
works like a discrete card VRAM, and is *not* part of the GART.
On some devices (K8M800) , the VRAM pages could be accessed by the CPU
directly at the top of VRAM, which was substantially faster.
There is a fully functional unichrome DRM on top of TTM, that together
with the 3D driver in mesa's openchrome branch worked like a charm (even
outperformed Intel's i965 with identical CPU at the time).
Problem was that it was not backwards compatible with via's old drm.
It should serve as a good starting point though, if I can remember where
I put it....
/Thomas
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-04 16:54 ` Thomas Hellstrom
@ 2011-10-04 19:10 ` James Simmons
0 siblings, 0 replies; 19+ messages in thread
From: James Simmons @ 2011-10-04 19:10 UTC (permalink / raw)
To: Thomas Hellstrom; +Cc: DRI development list
> There is a fully functional unichrome DRM on top of TTM, that together with
> the 3D driver in mesa's openchrome branch worked like a charm (even
> outperformed Intel's i965 with identical CPU at the time).
> Problem was that it was not backwards compatible with via's old drm.
>
> It should serve as a good starting point though, if I can remember where I put
> it....
I have a copy of your work already and yes I had to foward port it since
the TTM api changed quite a bit from when you wrote that code.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:27 ` Dave Airlie
2011-10-03 23:07 ` Alan Cox
@ 2011-10-04 14:08 ` James Simmons
1 sibling, 0 replies; 19+ messages in thread
From: James Simmons @ 2011-10-04 14:08 UTC (permalink / raw)
To: Dave Airlie; +Cc: DRI development list
> On Mon, Oct 3, 2011 at 8:14 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> >> 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?
> >
> > I gave up trying to understand TTM (they don't make happy pills that big)
> > and used GEM and a simple allocator. The private allocator GEM change
> > means you can now use GEM to magic up objects that are in on card or
> > stolen memory where applicable not just backed in system memory.
I did both as I like my cake and to eat it too :-)
> Thats fine as long as you don't want to do acceleration or object
> migration between GTT
> and VRAM type memory. Now I expect when you give out this advice you
> should also state the limitations your advice leads to.
The accelerated moves is what made me implement an TTM layer. I
wanted to try out using ttm_bo_move for the fbcon copyarea and
imageblit functions as a experiment. Also in the future I like
totry out tiling support for fbcon with my dri driver. Yes fbcon
supports tiles. All thats down the road. For now I just need to get a
working driver.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:14 ` Alan Cox
2011-10-03 19:27 ` Dave Airlie
@ 2011-10-04 13:48 ` James Simmons
2011-10-04 16:58 ` Thomas Hellstrom
2 siblings, 0 replies; 19+ messages in thread
From: James Simmons @ 2011-10-04 13:48 UTC (permalink / raw)
To: Alan Cox; +Cc: DRI development list
> > 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
>
> That depends on your libkms for the device. You can allocate a one bit
> deep object if you want. Reading libkms source is probably what you need
> if you've not already done os.
No special libkms for our hardware. Currently the via driver implements
dumb buffers so I can work with the generic libkms library. Once tile
support is implemented then a special buffer manager will need to be
implemented.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:14 ` Alan Cox
2011-10-03 19:27 ` Dave Airlie
2011-10-04 13:48 ` James Simmons
@ 2011-10-04 16:58 ` Thomas Hellstrom
2 siblings, 0 replies; 19+ messages in thread
From: Thomas Hellstrom @ 2011-10-04 16:58 UTC (permalink / raw)
To: Alan Cox; +Cc: DRI development list
On 10/03/2011 09:14 PM, Alan Cox wrote:
>> 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?
>>
> I gave up trying to understand TTM (they don't make happy pills that big)
> and used GEM and a simple allocator. The private allocator GEM change
> means you can now use GEM to magic up objects that are in on card or
> stolen memory where applicable not just backed in system memory.
>
IMHO people making that comment just don't understand the problems TTM
is trying to solve, but it usually dawns on them when they have worked
on their own specialized solution for a year or so...
/Thomas
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:01 KMS and TTM questions James Simmons
2011-10-03 19:10 ` Jerome Glisse
2011-10-03 19:14 ` Alan Cox
@ 2011-10-03 19:56 ` Alex Deucher
2011-10-04 13:45 ` James Simmons
2 siblings, 1 reply; 19+ messages in thread
From: Alex Deucher @ 2011-10-03 19:56 UTC (permalink / raw)
To: James Simmons; +Cc: DRI development list
On Mon, Oct 3, 2011 at 3:01 PM, James Simmons <jsimmons@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
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-03 19:56 ` Alex Deucher
@ 2011-10-04 13:45 ` James Simmons
2011-10-04 13:47 ` Alex Deucher
0 siblings, 1 reply; 19+ messages in thread
From: James Simmons @ 2011-10-04 13:45 UTC (permalink / raw)
To: Alex Deucher; +Cc: DRI development list
[-- Attachment #1: Type: TEXT/PLAIN, Size: 833 bytes --]
> > 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.
That is the bit missing. I seen recently you had a patch for passing info
to userland. It would be nice to add what color depths the cursor
supports.
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: KMS and TTM questions
2011-10-04 13:45 ` James Simmons
@ 2011-10-04 13:47 ` Alex Deucher
0 siblings, 0 replies; 19+ messages in thread
From: Alex Deucher @ 2011-10-04 13:47 UTC (permalink / raw)
To: James Simmons; +Cc: DRI development list
On Tue, Oct 4, 2011 at 9:45 AM, James Simmons <jsimmons@infradead.org> wrote:
>
>> > 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.
>
> That is the bit missing. I seen recently you had a patch for passing info
> to userland. It would be nice to add what color depths the cursor
> supports.
I think Dave proposed something like that for the generic KMS ddx.
Alex
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2011-10-04 19:10 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 19:01 KMS and TTM questions James Simmons
2011-10-03 19:10 ` Jerome Glisse
2011-10-03 19:37 ` James Simmons
2011-10-03 20:34 ` Jerome Glisse
2011-10-04 14:43 ` James Simmons
2011-10-03 19:14 ` Alan Cox
2011-10-03 19:27 ` Dave Airlie
2011-10-03 23:07 ` Alan Cox
2011-10-04 13:42 ` James Simmons
2011-10-04 13:46 ` Alex Deucher
2011-10-04 13:58 ` James Simmons
2011-10-04 16:54 ` Thomas Hellstrom
2011-10-04 19:10 ` James Simmons
2011-10-04 14:08 ` James Simmons
2011-10-04 13:48 ` James Simmons
2011-10-04 16:58 ` Thomas Hellstrom
2011-10-03 19:56 ` Alex Deucher
2011-10-04 13:45 ` James Simmons
2011-10-04 13:47 ` Alex Deucher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.