* Questions on more than one framebuffer device
@ 2003-05-13 23:23 Cheshire Cat Fish
0 siblings, 0 replies; 6+ messages in thread
From: Cheshire Cat Fish @ 2003-05-13 23:23 UTC (permalink / raw)
To: linux-fbdev-devel
I asked some questions about this earlier, and didn't see any replies, but
maybe I missed them.
Anyway, I am writing an framebuffer driver for my client's graphics card.
The driver needs to be able to driver multiple adapters, mapping one to
/dev/fb0, the next to /dev/fb1, the next to /dev/fb2, etc.
This seems to be working. I call "register_framebuffer" for each card I
find in the system, and the proper devices seem to be created.
The problem comes when I run X with two cards in the system. I can run X on
either card ok. When I try to run X on both devices at the same time, some
things don't get drawn, and the screen doesn't always repaint right. What
does get drawn, is drawn to the correct screen, just some drawing operations
seem to be dropped.
My problem is that I am not sure where to start looking for the problem.
Since each display works fine by itself, I don't understand why using them
together would cause some drawing operations not to happen.
I am wondering if I even have X configured right. I tried setting up X to
run on one of my cards plus an s3, and that also worked fine, so I think I
am setting things up right for multiple screens.
Below are the screen and device sections of my XF86Config file:
Section "Device"
Identifier "Videocard1"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
VendorName "Video Card Vender"
BoardName "Video Card Board"
VideoRam 8192
BusID "PCI:0:10:0"
EndSection
Section "Device"
Identifier "Videocard2"
Driver "fbdev"
Option "fbdev" "/dev/fb1"
VendorName "Video Card Vendor"
BoardName "Video Card Board"
VideoRam 8192
BusID "PCI:0:11:0"
EndSection
Section "Screen"
Identifier "ScreenCard1"
Device "Videocard1"
Monitor "Monitor0"
DefaultDepth 8
SubSection "Display"
Depth 8
Modes "1200x1600"
EndSubSection
EndSection
Section "Screen"
Identifier "ScreenCard2"
Device "Videocard2"
Monitor "Monitor0"
DefaultDepth 8
SubSection "Display"
Depth 8
Modes "1200x1600"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
# this works
# Screen 0 "ScreenCard1"
# this works too.
# Screen 0 "ScreenCard2"
# This doesn't work
Option "Xinerama" "on"
Screen 0 "ScreenCard1"
Screen 1 "ScreenCard2" LeftOf "ScreenCard1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection
To summarize:
X on my S3 - works fine.
X on my adapter on /dev/fb0 - works fine
X on my adapter on /dev/fb1 - works fine
X on S3 + /dev/fb0 - works fine
X on S3 + /dev/fb1 - works fine
X on /dev/fb0 + /dev/fb1 - doesn't work
X on S3 + /dev/db0 + /dev/db1 - doesn't work
If anyone could point me to some resources, or better yet a sample driver
that supports multiple adapters, that would be great.
Thanks,
Noel.
--
A precariously balanced mixture of myopic optimism and rampant paranoia.
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions on more than one framebuffer device
@ 2003-05-14 0:23 Cheshire Cat Fish
2003-05-14 22:44 ` James Simmons
0 siblings, 1 reply; 6+ messages in thread
From: Cheshire Cat Fish @ 2003-05-14 0:23 UTC (permalink / raw)
To: cat_fish, linux-fbdev-devel
>The problem comes when I run X with two cards in the system. I can run X
>on either card ok. When I try to run X on both devices at the same time,
>some things don't get drawn, and the screen doesn't always repaint right.
>What does get drawn, is drawn to the correct screen, just some drawing
>operations seem to be dropped.
One further piece of information. The drawing errors always happen on the
second screen.
It doesn't matter which screen (0 or 1) I map to which framebuffer (/dev/fb0
or /dev/fb1), the drawing on screen 0 is correct, the drawing on screen 1 is
corrupted.
I am wondering if it is even a problem with my driver now. Xfree86 should
be able to run with multiple fbdev drivers, right?
Thanks,
Noel.
--
A precariously balanced mixture of myopic optimism and rampant paranoia.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions on more than one framebuffer device
2003-05-14 0:23 Questions on more than one framebuffer device Cheshire Cat Fish
@ 2003-05-14 22:44 ` James Simmons
2003-05-14 23:07 ` Michel Dänzer
0 siblings, 1 reply; 6+ messages in thread
From: James Simmons @ 2003-05-14 22:44 UTC (permalink / raw)
To: Cheshire Cat Fish; +Cc: linux-fbdev-devel
> I am wondering if it is even a problem with my driver now. Xfree86 should
> be able to run with multiple fbdev drivers, right?
No :-( There exist a bunch of patches for this tho :-)
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions on more than one framebuffer device
2003-05-14 22:44 ` James Simmons
@ 2003-05-14 23:07 ` Michel Dänzer
0 siblings, 0 replies; 6+ messages in thread
From: Michel Dänzer @ 2003-05-14 23:07 UTC (permalink / raw)
To: James Simmons; +Cc: Cheshire Cat Fish, linux-fbdev-devel
On Don, 2003-05-15 at 00:44, James Simmons wrote:
> > I am wondering if it is even a problem with my driver now. Xfree86 should
> > be able to run with multiple fbdev drivers, right?
>
> No :-(
Yes, it should. :) It's a bug if it doesn't.
> There exist a bunch of patches for this tho :-)
I'd happily integrate them, any pointers?
--
Earthling Michel Dänzer \ Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast \ http://svcs.affero.net/rm.php?r=daenzer
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions on more than one framebuffer device
@ 2003-05-15 6:46 Cheshire Cat Fish
0 siblings, 0 replies; 6+ messages in thread
From: Cheshire Cat Fish @ 2003-05-15 6:46 UTC (permalink / raw)
To: linux-fbdev-devel
> > I am wondering if it is even a problem with my driver now. Xfree86
>should
> > be able to run with multiple fbdev drivers, right?
>
>No :-( There exist a bunch of patches for this tho :-)
ugh. What patches? Where do I get them from and how do I apply them?
Ok, here is what I have:
- Two graphics adapters, each of which supports two monitors (four screens
total)
- a frame buffer driver that creates four frame buffer devices: /dev/fb0 and
/dev/fb1 on the first card (PCI:0:10:0), and /dev/fb2 and /dev/fb3 on the
second card (PCI:0:11:0). It does this by calling "register_framebuffer"
four times
I was hoping that I would be able to run X on these four monitors using the
fvdev driver. I have tried many combinations of options in my XF86Config
file and have not hit upon the magic configuration.
I can run X on any one of the /dev/fb* devices and it works great. As soon
as I enable two or more things go wrong.
Now I have heard conflicting opinions on whether XFree86 and the fbdev
driver even support such a thing...
Noel.
--
A precariously balanced mixture of myopic optimism and rampant paranoia.
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Questions on more than one framebuffer device
@ 2003-05-15 22:06 Cheshire Cat Fish
0 siblings, 0 replies; 6+ messages in thread
From: Cheshire Cat Fish @ 2003-05-15 22:06 UTC (permalink / raw)
To: jsimmons; +Cc: linux-fbdev-devel
> > I am wondering if it is even a problem with my driver now. Xfree86
>should
> > be able to run with multiple fbdev drivers, right?
>
>No :-( There exist a bunch of patches for this tho :-)
How do I locate these patches?
Alternatively, where would I begin trying to fix this shortcoming of fbdev?
In the fbdev driver (fbdev.c) itself?
Or am I stuck writing an XFree86 driver for my cards?
Thanks,
Noel.
--
A precariously balanced mixture of myopic optimism and rampant paranoia.
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-05-15 22:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-14 0:23 Questions on more than one framebuffer device Cheshire Cat Fish
2003-05-14 22:44 ` James Simmons
2003-05-14 23:07 ` Michel Dänzer
-- strict thread matches above, loose matches on Subject: below --
2003-05-15 22:06 Cheshire Cat Fish
2003-05-15 6:46 Cheshire Cat Fish
2003-05-13 23:23 Cheshire Cat Fish
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).