xserver-multidpi/hw/xfree86/fbdevhw
Adam Jackson 22605effd1 fbdevhw: iterate over all modes that match a mode. (v3)
So on RHEL5 anaconda sets an xorg.conf with a fixed 800x600 mode in it,
we run radeonfb and fbdev since ati won't work in userspace due to domain
issues in the older codebase.

On certain pseries blades the built-in KVM can't accept an 800x600-43 mode,
it requires the 800x600-60 mode, so we have to have the kernel radeonfb
driver reject the 800x600-43 mode when it sees it. However then fbdev
doesn't try any of the other 800x600 modes in the modelist, and we end up
getting a default 640x480 mode we don't want.

This patch changes the mode validation loop to continue on with the other modes
that match to find one that works.

v2: move code around to avoid extra loop, after comment from Jamey.
v3: move loop setup back into loop as per Jeremy's review.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-12-06 16:00:35 +00:00
..
man man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
fbdevhw.c fbdevhw: iterate over all modes that match a mode. (v3) 2011-12-06 16:00:35 +00:00
fbdevhw.h xfree86: fbdevhw: Remove unused include of pciaccess.h 2011-10-15 21:18:47 -07:00
fbdevhwstub.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
fbpriv.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
README Initial revision 2003-11-14 16:48:57 +00:00

This is a submodule to access linux framebuffer devices.
It is supported to work as helper module (like vgahw)
for the chipset drivers.  There are functions for
saving/restoring/setting video modes, set palette entries,
and a few more helper functions.  Some of them can be
hooked directly into ScrnInfoRec.

In ../drivers/fbdev is a "chipset" driver.  It is a simple,
non-accelerated and hardware-independent driver which works
on top of this fbdevhw submodule.

  Gerd

--
Gerd Knorr <kraxel@goldbach.in-berlin.de>