linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* xfree86/fbdevhw not sending right mode to radeonfb.c
@ 2001-11-18 14:12 Kevin B. Hendricks
  2001-11-18 17:31 ` Michel Dänzer
  0 siblings, 1 reply; 8+ messages in thread
From: Kevin B. Hendricks @ 2001-11-18 14:12 UTC (permalink / raw)
  To: linuxppc-dev


Hi,

I am still working on the radeon driver for XFree86 and trying to get the
useFBDev options to work properly.

I have a properly constructued mode line in my XF86Config-4 which I
specifiy.

However when the XFree86 radeon_driver passes this initial mode to the
radeonfb.c kernel framebuffer driver, most of the mode information is
missing (no detailed timing info, just xres and yres, etc.

The radeonfb.c messes up when this incomplete mode information is passed
to it (from fbdevHWModeInit ?).

So where should I look to see where this is messing up.  It does not
appear to be an issue with the framebuffer kernel driver since it is the
victim of the receiving end of the bad data.

It is almost like the the xfree86 code that parses the XF86Config-4 config
file is not properly grabbing the specific mode information (or somehow
later it is being mangled).

Any hints or guidance of where to look in xfree86, would be greatly
appreciated.

Thanks,

Kevin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: xfree86/fbdevhw not sending right mode to radeonfb.c
@ 2001-11-19 15:28 Kevin Hendricks
  0 siblings, 0 replies; 8+ messages in thread
From: Kevin Hendricks @ 2001-11-19 15:28 UTC (permalink / raw)
  To: Kostas Gewrgiou; +Cc: Michel Dänzer, linuxppc-dev


Hi Kostas,

> > I am willing to dig deeper to track this one down if someone can point
> > me to the code that parses the mode info from the XF86Config-4 file
> and
> > loads it into the mode structure.
>
> Hello Kevin,
>
> Take a look at xf86parseModesSection(),xf86parseModeLine() etc
> in xc/programs/Xserver/hw/xfree86/parser/Monitor.c
> and also at configMonitor()
> in xc/programs/Xserver/hw/xfree86/common/xf86Config.c
>
> You might want to take a look at the  *Mode*.c files in ..../common
> as well.
>

Okay, I looked at that code and unless the xf86getSubToken is
broken somehow, then the correct info is being placed in the
linked list of modes.

So something is either stepping on that memory after that point
or  maybe the ValidateMode routine is messing it up somehow.

By the way, this has nothing to do with fbdevHW since I can see the
same missing mode information in RADEONModeInit when I do *NOT*
use useFBDev.  It is just that RADEONModeInit is better at filling in the
blanks properly given its access to the info structure timing info used
for
DFP.

Can anyone else confirm this?

To check, simply turn on DEBUG in xfree86 in the fbdevhw.c file and
include
your own custom modeline or mode and set useFBDev in your XF86Config-4
and
compare what xfree86 hands to fbdevhw.c in the form of the mode to your
original mode line.

I just want to make sure others are seeing the problem too before I jump
in
farther and try to find out why or how the mode info is being stepped on.

Thanks,

Kevin


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-11-24 18:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-18 14:12 xfree86/fbdevhw not sending right mode to radeonfb.c Kevin B. Hendricks
2001-11-18 17:31 ` Michel Dänzer
2001-11-18 18:45   ` Kevin B. Hendricks
2001-11-19 11:00     ` Kostas Gewrgiou
2001-11-21 19:42       ` Kevin B. Hendricks
2001-11-24 17:38         ` Michel Dänzer
2001-11-24 18:04           ` Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2001-11-19 15:28 Kevin Hendricks

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).