linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: James Simmons <jsimmons@www.infradead.org>, adaplas@pol.net
Cc: Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>,
	James Simmons <jsimmons@pentafluge.infradead.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: Resource management.
Date: Fri, 25 Feb 2005 07:05:47 +0800	[thread overview]
Message-ID: <200502250705.48630.adaplas@hotpop.com> (raw)
In-Reply-To: <Pine.LNX.4.56.0502241951001.5491@pentafluge.infradead.org>

On Friday 25 February 2005 03:57, James Simmons wrote:
> > If you intend to insist on doing this, this is my proposal:
> >
> > The linked list of resources per fb_info can be kept. However, instead
> > of doing an fb_find_resource() per call to putcs and cursor, this can
> > be done only once, during initialization of fbcon or set_con2fb_map.
> > This resource can then be stored in an fbcon-private area.
>
> I fixed this in my latest work. Alot of cleanups has happened. Still a few
> issues to work out.

Looks much better. And yes, I also see a few issues but is not your fault.

>
> > The advantage of this is that fbcon will only look for the resource that
> > it needs, ie "scratchpad" but not, for example, "overlay". Similarly,
> > a user video application can totally ignore "scratchpad" but will search
> > for "overlay".  Secondly, the performance penalty suffered by the your
> > initial patch will be eliminated. We also eliminate one or two more
> > fields in fb_info directly accessed by fbcon.
>
> I removed the scratch pad. We use the data reflecting the "drawable"
> properties.
>
> > Also, instead of storing the resource type as a string, why not use a
> > constant?
>
> We would run out very fast. 

With a u32?

> Plus we would need a index field in the case
> we have more than one of the same kind.

Then use a u32 for type, u32 for index.

Tony




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  reply	other threads:[~2005-02-24 23:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-21 19:11 Resource management James Simmons
2005-02-21 22:53 ` Antonino A. Daplas
2005-02-21 23:25   ` James Simmons
2005-02-22  1:01     ` Jon Smirl
2005-02-22  3:53       ` James Simmons
2005-02-22  4:46         ` [Linux-fbdev-devel] " Dave Airlie
2005-02-22  5:13           ` James Simmons
2005-02-22  5:59             ` [Linux-fbdev-devel] " Jon Smirl
2005-02-22  5:23           ` Jon Smirl
2005-02-22 17:23             ` James Simmons
2005-02-22 18:59               ` [Linux-fbdev-devel] " Alex Deucher
2005-02-22 13:25     ` Antonino A. Daplas
2005-02-22 14:06     ` Antonino A. Daplas
2005-02-24 19:57       ` James Simmons
2005-02-24 23:05         ` Antonino A. Daplas [this message]
2005-02-28 20:01           ` Resource management II James Simmons

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=200502250705.48630.adaplas@hotpop.com \
    --to=adaplas@hotpop.com \
    --cc=adaplas@pol.net \
    --cc=geert@linux-m68k.org \
    --cc=jsimmons@pentafluge.infradead.org \
    --cc=jsimmons@www.infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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).