linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Cheshire Cat Fish" <cat_fish@hotmail.com>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Questions on more than one framebuffer device
Date: Tue, 13 May 2003 16:23:14 -0700	[thread overview]
Message-ID: <Law15-F5CBlGkVf370S0001c98e@hotmail.com> (raw)


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

             reply	other threads:[~2003-05-13 23:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-13 23:23 Cheshire Cat Fish [this message]
  -- strict thread matches above, loose matches on Subject: below --
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
2003-05-15  6:46 Cheshire Cat Fish
2003-05-15 22:06 Cheshire Cat Fish

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=Law15-F5CBlGkVf370S0001c98e@hotmail.com \
    --to=cat_fish@hotmail.com \
    --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).