Problem with xorg-server and s3c2410fb driver
Adam Jackson
ajax at nwnk.net
Wed Aug 4 07:11:50 PDT 2010
On Wed, 2010-08-04 at 11:56 +0200, Michel Dänzer wrote:
> On Mon, 2010-08-02 at 13:56 -0400, Adam Jackson wrote:
> > On Mon, 2010-08-02 at 18:24 +0200, Michel Dänzer wrote:
> >
> > > AFAICT this will only work when using the 'built-in' mode, otherwise
> > > mode->PrivFlags will never be set? One possible solution for that could
> > > be
> > >
> > > - var->pixclock = mode->Clock ? 1000000000/mode->Clock : 0;
> > > + var->pixclock = mode->PrivFlags ? mode->PrivFlags :
> > > (mode->Clock ? 1000000000/mode->Clock : 0);
> > >
> > > in xfree2fbdev_timing().
> >
> > Right you are.
> >
> > So I guess the question is what we're trying to accomplish with the
> > fbdev_modes_equal() check at all.
>
> From commit f6815cb68b0f6698497348fc6e4214dacef33b95 which added it:
>
> The fbdev API allows the driver to 'accept' modes it doesn't really support by
> modifying it to the nearest supported mode. Without this check, e.g. vesafb
> would appear to accept all modes, even though it actually can't set any modes
> other than the bootup mode at all.
That sure does sound like a vesafb bug.
But I suppose in the absence of fixing that, just dropping the pixclock
check from fbdev_modes_equal is the least wrong thing.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20100804/34e6ccd0/attachment.pgp>
More information about the xorg
mailing list