linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Armada DRM driver on OLPC XO
Date: Fri, 28 Jun 2013 22:55:12 +0100	[thread overview]
Message-ID: <20130628215512.GM4283@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAMLZHHSmoxDamhW6vcdfqhWH=FKR1m5-Z95P8LSZ+SFDO=yVhA@mail.gmail.com>

On Fri, Jun 28, 2013 at 03:36:37PM -0600, Daniel Drake wrote:
> On Fri, Jun 28, 2013 at 3:27 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Tue, Jun 25, 2013 at 04:47:26PM -0400, Daniel Drake wrote:
> >> I have tested it on OLPC XO-1.75 (MMP2 aka Armada610) and OLPC XO-4 (MMP3
> >> aka PXA2128). After a bit of fighting, I have it running. Could you share your
> >> X driver, or your methodology for testing hardware cursors? I'd like to test
> >> your work there too.
> >
> > BTW... a point on this.  As you don't have the LCD_SPU_ADV_REG register,
> > you probably don't have support for ARGB cursors.  DRM only supports ARGB
> > cursors.  You can't down-convert an ARGB cursor to something which looks
> > reasonable in the kernel, so I'd suggest forgetting hardware cursors.
> > Even converting ARGB to transparency + RGB looks rubbish and wrong.
> 
> Interesting. Yes, a previous developer battled unsuccessfully with
> hardware cursors and in the end we ended up using low color depth ones
> which don't look great. I was wondering if you had found something
> new, but it sounds like that we really are limited by the hardware.

The "something new" is that the Armada 510 has support for ARGB, not
quite in the size that X and DRM prefers (64x64), but nevertheless
it's full alpha-blended RGB.  64x32 seems to work and X seems to be
happy with it - but there's no way at the moment for DRM to tell X
about that kind of capability (so a generic kms driver can't use it.)

However, as I say, that's not available on your SoC if you don't have
the LCD_SPU_ADV_REG register.

My plan is to push the cursor support out to the growing variant
backends, and leave it unimplemented on anything but Armada 510.

      reply	other threads:[~2013-06-28 21:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-25 20:47 Armada DRM driver on OLPC XO Daniel Drake
2013-06-26 16:42 ` Jean-Francois Moine
2013-06-26 16:50   ` Russell King - ARM Linux
2013-06-28 19:54   ` Daniel Drake
2013-06-28 20:05     ` Russell King - ARM Linux
2013-06-27  9:59 ` Russell King - ARM Linux
2013-06-28 21:27 ` Russell King - ARM Linux
2013-06-28 21:36   ` Daniel Drake
2013-06-28 21:55     ` Russell King - ARM Linux [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130628215512.GM4283@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).