* [BK updates] fbdev changes updates.
@ 2002-10-29 20:45 James Simmons
2002-10-29 20:08 ` Dave Jones
2002-10-29 20:46 ` James Simmons
0 siblings, 2 replies; 11+ messages in thread
From: James Simmons @ 2002-10-29 20:45 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Linux Kernel Mailing List, Linux Fbdev development list
Hi!!!
Here are the last series of fbdev changes. The console layer code has
been removed from the low level drivers. This it is possible to run fbdev
without the VT console system or with it using a different driver. I did
this with the VESA fbdev driver and MDA con!!!! This will save so much
time testing future fbdev drivers.
I also moved the agp and drm code over to drivers/video. The reason I
did this was to support fbdev drivers that will be strickly DMA/AGP
based. 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.
MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.
James Simmons [jsimmons@users.sf.net] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [BK updates] fbdev changes updates. 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 ` (2 more replies) 2002-10-29 20:46 ` James Simmons 1 sibling, 3 replies; 11+ messages in thread From: Dave Jones @ 2002-10-29 20:08 UTC (permalink / raw) To: James Simmons Cc: Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list 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) Dave -- | Dave Jones. http://www.codemonkey.org.uk ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 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 2 siblings, 0 replies; 11+ messages in thread From: James Simmons @ 2002-10-29 22:07 UTC (permalink / raw) To: Dave Jones Cc: Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list > 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) The reason I did this was to prevent adding another chuck of agp code. The current work around for AGP fbdev drivers to have there OWN AGP code. So we can leave the agp drivers where they are at or the framebuffer layer can have its own AGP code for itself. Which way do you think it should be done? 1) Fbdev layer has it own AGP layer 2) Use already existing AGP layer code. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 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 2 siblings, 0 replies; 11+ messages in thread From: Alan Cox @ 2002-10-29 22:31 UTC (permalink / raw) To: Dave Jones Cc: James Simmons, Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list On Tue, 2002-10-29 at 20:08, Dave Jones 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) The i8xx draws the frame buffer memory from AGP as well as the texture mappings and other goodies. The practical impact of that is that if you want any useful video mode you need AGP initialized first. For UMA video devices its an extremely neat way of avoiding pre-allocation of fixed size frame buffers before the OS boots ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 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 2 siblings, 1 reply; 11+ messages in thread From: James Simmons @ 2002-10-29 22:38 UTC (permalink / raw) To: Dave Jones Cc: Linux Kernel Mailing List, Linux Fbdev development list, Antonino Daplas > 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. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 2002-10-29 22:38 ` James Simmons @ 2002-10-30 5:32 ` Antonino Daplas 0 siblings, 0 replies; 11+ messages in thread From: Antonino Daplas @ 2002-10-30 5:32 UTC (permalink / raw) To: James Simmons Cc: Dave Jones, Linux Kernel Mailing List, Linux Fbdev development list 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 2002-10-29 20:45 [BK updates] fbdev changes updates James Simmons 2002-10-29 20:08 ` Dave Jones @ 2002-10-29 20:46 ` James Simmons 2002-10-29 20:55 ` Christoph Hellwig 1 sibling, 1 reply; 11+ messages in thread From: James Simmons @ 2002-10-29 20:46 UTC (permalink / raw) To: Linus Torvalds; +Cc: Linux Kernel Mailing List, Linux Fbdev development list OOps. Forgot the link. bk://fbdev.bkbits.net/fbdev-2.5 Thank you. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 2002-10-29 20:46 ` James Simmons @ 2002-10-29 20:55 ` Christoph Hellwig 2002-10-29 22:08 ` James Simmons 0 siblings, 1 reply; 11+ messages in thread From: Christoph Hellwig @ 2002-10-29 20:55 UTC (permalink / raw) To: James Simmons Cc: Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list On Tue, Oct 29, 2002 at 12:46:16PM -0800, James Simmons wrote: > > OOps. Forgot the link. > > bk://fbdev.bkbits.net/fbdev-2.5 Does it still contain the random file movearounds? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 2002-10-29 20:55 ` Christoph Hellwig @ 2002-10-29 22:08 ` James Simmons 2002-10-29 21:18 ` Christoph Hellwig 0 siblings, 1 reply; 11+ messages in thread From: James Simmons @ 2002-10-29 22:08 UTC (permalink / raw) To: Christoph Hellwig Cc: Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list > On Tue, Oct 29, 2002 at 12:46:16PM -0800, James Simmons wrote: > > > > OOps. Forgot the link. > > > > bk://fbdev.bkbits.net/fbdev-2.5 > > Does it still contain the random file movearounds? The reason I did this was to prevent adding another chuck of agp code. The current work around for AGP fbdev drivers to have there OWN AGP code. So we can leave the agp drivers where they are at or the framebuffer layer can have its own AGP code for itself. Which way do you think it should be done? 1) Fbdev layer has it own AGP layer 2) Use already existing AGP layer code. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 2002-10-29 22:08 ` James Simmons @ 2002-10-29 21:18 ` Christoph Hellwig 2002-10-29 22:23 ` James Simmons 0 siblings, 1 reply; 11+ messages in thread From: Christoph Hellwig @ 2002-10-29 21:18 UTC (permalink / raw) To: James Simmons Cc: Christoph Hellwig, Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list On Tue, Oct 29, 2002 at 02:08:37PM -0800, James Simmons wrote: > > > On Tue, Oct 29, 2002 at 12:46:16PM -0800, James Simmons wrote: > > > > > > OOps. Forgot the link. > > > > > > bk://fbdev.bkbits.net/fbdev-2.5 > > > > Does it still contain the random file movearounds? > > The reason I did this was to prevent adding another chuck of agp code. The > current work around for AGP fbdev drivers to have there OWN AGP code. So > we can leave the agp drivers where they are at or the framebuffer layer > can have its own AGP code for itself. Which way do you think it should be > done? > > 1) Fbdev layer has it own AGP layer > > 2) Use already existing AGP layer code. Well, I'd be very happy if you could separate different things abit. Everyone wants the console fixes in, but code placement is a bit more of a policy issue and wants more discussion.. Even when they are in different directories the drm drivers can always call into the fbdev drivers as "base modules", like sis currently does. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [BK updates] fbdev changes updates. 2002-10-29 21:18 ` Christoph Hellwig @ 2002-10-29 22:23 ` James Simmons 0 siblings, 0 replies; 11+ messages in thread From: James Simmons @ 2002-10-29 22:23 UTC (permalink / raw) To: Christoph Hellwig Cc: Linus Torvalds, Linux Kernel Mailing List, Linux Fbdev development list > > > On Tue, Oct 29, 2002 at 12:46:16PM -0800, James Simmons wrote: > > > > > > > > OOps. Forgot the link. > > > > > > > > bk://fbdev.bkbits.net/fbdev-2.5 > > > > > > Does it still contain the random file movearounds? > > > > The reason I did this was to prevent adding another chuck of agp code. The > > current work around for AGP fbdev drivers to have there OWN AGP code. So > > we can leave the agp drivers where they are at or the framebuffer layer > > can have its own AGP code for itself. Which way do you think it should be > > done? > > > > 1) Fbdev layer has it own AGP layer > > > > 2) Use already existing AGP layer code. > > Well, I'd be very happy if you could separate different things abit. > Everyone wants the console fixes in, but code placement is a bit more of a > policy issue and wants more discussion.. Even when they are in different > directories the drm drivers can always call into the fbdev drivers as "base > modules", like sis currently does. Fair enough. I'm moving agp and dri back to drivers/char. I would like to discuss a solution to how to initialize the AGP code quicker :-) ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-10-30 5:32 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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).