Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: g.liakhovetski@gmx.de (Guennadi Liakhovetski)
To: linux-arm-kernel@lists.infradead.org
Subject: What's inside the pxa tree for this merge window
Date: Thu, 10 Sep 2009 15:05:51 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0909101459370.4458@axis700.grange> (raw)
In-Reply-To: <20090910124401.GW9410@buzzloop.caiaq.de>

On Thu, 10 Sep 2009, Daniel Mack wrote:

> On Thu, Sep 10, 2009 at 08:35:51PM +0800, Eric Miao wrote:
> > On Thu, Sep 10, 2009 at 8:32 PM, Daniel Mack <daniel@caiaq.de> wrote:
> > > Hmm, I'd say you don't want fb.fix.accel set unless the driver is
> > > enabled, right?
> > >
> > 
> > I'm not sure if it can be set anyway without the driver being
> > built.
> 
> DirectFB userspace applications take that value to decide whether to
> enable the acceleration driver or go for software fallbacks. If that
> field is set, the kernel is expected to come along with the driver
> interface.
> 
> Hence, it should really only be set if the driver is enabled, otherwise
> the userspace logic breaks.
> 
> > I mean - I don't want Kconfig option to cross modules.
> 
> I agree, and it would be even better to only set that field in case the
> driver has actually been probed (and not just enabled in the kernel
> config). But I see no clean way to do that - the gcu driver has no
> access to the framebuffer driver and its data structs either.

Yeah, that doesn't look pretty. Maybe add a field to struct 
pxafb_mach_info? You can put its assignment in respective platform data 
instances under an #ifdef - that's more acceptable, IMHO. Of course, it is 
still worse than beeing able to switch this at run-time. But you could 
trick by setting that field at run-time if acceleration is available, 
provided you have that info before pxafb initialises. Also consider, there 
might be more PXA SoCs in the future using pxafb and providing hardware 
acceleration.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

  reply	other threads:[~2009-09-10 13:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 11:46 What's inside the pxa tree for this merge window Eric Miao
2009-09-10 11:54 ` Daniel Mack
2009-09-10 12:15   ` Guennadi Liakhovetski
2009-09-10 12:23   ` Eric Miao
2009-09-10 12:32     ` Daniel Mack
2009-09-10 12:35       ` Eric Miao
2009-09-10 12:44         ` Daniel Mack
2009-09-10 13:05           ` Guennadi Liakhovetski [this message]
2009-09-10 13:09             ` Daniel Mack
2009-09-14 11:03 ` Guennadi Liakhovetski
2009-09-14 11:11   ` Russell King - ARM Linux
2009-09-15  6:30     ` Guennadi Liakhovetski
2009-09-15  6:50       ` Eric Miao
2009-09-15  7:34         ` Russell King - ARM Linux
2009-09-15  7:55           ` Guennadi Liakhovetski
2009-09-18  6:43 ` Matej Kenda
2009-09-18  6:47   ` Eric Miao
2009-09-18  7:45   ` Russell King - ARM Linux
2009-09-21 19:19     ` Guennadi Liakhovetski
2009-09-21 20:09       ` Russell King - ARM Linux
2009-09-21 20:32         ` Jamie Lokier
2009-09-30 12:09         ` arm tree in broken state (was Re: What's inside the pxa tree for this merge window) Pavel Machek
2009-09-30 12:16           ` Guennadi Liakhovetski

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=Pine.LNX.4.64.0909101459370.4458@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --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