From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Ville Syrjälä" <syrjala@sci.fi>
Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
linux-fbdev-devel@lists.sourceforge.net,
"Antonino A. Daplas" <adaplas@gmail.com>
Subject: Re: deprecating fix->mmio_start and smem_start
Date: Wed, 23 Apr 2008 08:23:22 +1000 [thread overview]
Message-ID: <1208903002.9640.140.camel@pasglop> (raw)
In-Reply-To: <20080422184141.GI16619@sci.fi>
On Tue, 2008-04-22 at 21:41 +0300, Ville Syrjälä wrote:
> DirectFB uses both.
>
> smem_start is used to get the physical address of the frambuffer for v4l
> capture purposes at least. It's also used by several of the hw specific
> gfxdrivers for various reasons. For example the matrox driver uses it to
> figure out the offset from the beginning of the video memory to the
> portion allocated for CRTC2 by matroxfb. This only applies when matroxfb
> is left in control of CRTC2. I doubt may people use DirectFB this way
> since DirectFB can drive CRTC2+TVout itself and manage the full memory
> for both heads. But the support is still there in the code FWIW. I'm
> not actually sure what the other gfxdrivers use it for but I see several
> references when I grep for it.
>
> mmio_start is used to figure out where the registers actually lie within
> the mmapped MMIO area. atyfb is the only fb driver that I know to need
> this. The problem is that with new chips the aux register aperture is
> used and the registers are at the beginning of that aperture but when the
> aux register aperture is not used the registers occupy the last 2K
> of the framebuffer. That means an offset of 2K on typical systems.
So DirectFB can be fixed to use the "new" structure with 64 bits offsets
if we define such a thing right ? (with new ioctl's to access it).
Cheers,
Ben.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
prev parent reply other threads:[~2008-04-22 22:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 1:17 deprecating fix->mmio_start and smem_start Benjamin Herrenschmidt
2008-04-22 8:00 ` Geert Uytterhoeven
2008-04-22 8:48 ` Benjamin Herrenschmidt
2008-04-22 12:38 ` Geert Uytterhoeven
2008-04-23 5:21 ` Benjamin Herrenschmidt
2008-04-22 16:03 ` Scott D. Davilla
2008-04-22 18:11 ` Geert Uytterhoeven
2008-04-22 18:28 ` Scott D. Davilla
2008-04-22 18:44 ` Geert Uytterhoeven
2008-04-22 18:52 ` Scott D. Davilla
2008-04-22 18:41 ` Ville Syrjälä
2008-04-22 22:23 ` Benjamin Herrenschmidt [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=1208903002.9640.140.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=adaplas@gmail.com \
--cc=geert@linux-m68k.org \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=syrjala@sci.fi \
/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).