linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonino Daplas <adaplas@pol.net>
To: James Simmons <jsimmons@infradead.org>
Cc: Dave Jones <davej@codemonkey.org.uk>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [BK updates] fbdev changes updates.
Date: 30 Oct 2002 13:32:49 +0800	[thread overview]
Message-ID: <1035955910.575.42.camel@daplas> (raw)
In-Reply-To: <Pine.LNX.4.33.0210291437050.1363-100000@maxwell.earthlink.net>

On Wed, 2002-10-30 at 06:38, James Simmons wrote:
> 
> > On Tue, Oct 29, 2002 at 12:45:10PM -0800, James Simmons wrote:
> >  > The reason for this is we will see in the future embedded ix86
> >  > boards with things like i810 framebuffers with NO vga core. In this case
> >  > we will need a fbdev driver for a graphical console. Thus the agp code
> >  > must be started before the fbdev layer.
> >
> > Can you explain exactly what the agpgart code is doing that needs
> > to be done earlier than framebuffer ? I don't see any reason for this
> > change. There should be no GART mappings until we've booted userspace
> > (except for the case of IOMMU)
> 
> Best to ask the author of the i810 framebuffer driver. He can tell you his
> need for AGP stuff. I CC.
> 
> 

Hi,

James is right, I have been tackling with this for ages.  I have an
i810  driver (http://i810fb.sourceforge.net) that's been "ready" for
some time now, but never submitted it for kernel inclusion precisely
because of this issue.  

The i810/1815 has no video memory of it's own, except for memory stolen
from system RAM (512 to 1024K).  Unfortunately, entire memory is
accessible only through bank switching and is primarily used for legacy
VGA.  Linear memory is availably only through GART mappings.

I've seen/done/been thinking of the following approaches:

1.  Do custom GART mappings only - abandoned

2.  Fake a linear framebuffer by bank switching the 'stolen memory' -
this idea is by Matt Sottek, but he might have some problems with this

3.  Force loading of agpgart before the console/framebuffer - my current
approach in 2.4

4.  Do custom GART mappings, wait for agpgart to be available, then use
kernel GART mapping routines - my current approach for 2.5

5.  Create a fake framebuffer from System RAM, wait for agpgart to be
loaded, then map the GART - been toying with this idea

The easiest solution for me is to initialize the agpgart ahead of the
framebuffer.  Since I'm not a kernel hacker, I don't really get a clear
picture of the issues involved and I'll be grateful for any input.

Thanks

Tony 

  reply	other threads:[~2002-10-30  5:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 20:45 [BK updates] fbdev changes updates James Simmons
2002-10-29 20:08 ` Dave Jones
2002-10-29 22:07   ` James Simmons
2002-10-29 22:31   ` Alan Cox
2002-10-29 22:38   ` James Simmons
2002-10-30  5:32     ` Antonino Daplas [this message]
2002-10-29 20:46 ` James Simmons
2002-10-29 20:55   ` Christoph Hellwig
2002-10-29 22:08     ` James Simmons
2002-10-29 21:18       ` Christoph Hellwig
2002-10-29 22:23         ` 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=1035955910.575.42.camel@daplas \
    --to=adaplas@pol.net \
    --cc=davej@codemonkey.org.uk \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.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).