linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: patch to get latest XFree 4.0 snapshot (xf3918) to work onppcwithr128
@ 2000-03-13 17:02 Michael Schmitz
  2000-03-14 10:58 ` patch to get latest XFree 4.0 snapshot (xf3918) to workonppcwithr128 Michel Dänzer
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Schmitz @ 2000-03-13 17:02 UTC (permalink / raw)
  To: Kostas Gewrgiou; +Cc: Michel Dänzer, Kevin B. Hendricks, linuxppc-dev


> > We'll see if that's a problem; right now it hangs earlier.
> >
>
>   Earlier than what ? The Xserver does its pci magic (badly in this
> case it seems) very early, by the time you reach fbdevHWModeInit
> its already done.

Earlier than screen init. fbScreenInit is what I get stuck at after
bypassing the ioctl.

> > > The PCI warnings that you get most likely will tell us where the problem
> > > is, can you send the logfile over ?
> >
> > Relevant log excerpt:
> >
> > (II) Loading /usr/X11R6/lib/modules/linux/libfbdevhw.a
> > (II) Module fbdevhw: vendor="The XFree86 Project"
> > 	compiled for 4.0, module version = 0.0.1
> > (II) FBDev(1): using default device
> > (**) FBDev(1): claimed PCI slot 0:17:0
> > (WW) ****INVALID MEM ALLOCATION**** b: 0x81000000 e: 0x81ffffff correcting
> > own
> >         [0] -1  0x81fff000 - 0x81ffffff (0x1000) MXB
> > 	[1] -1  0x00000c00 - 0x00000cff (0x100) IXB
> > (WW) ****INVALID IO ALLOCATION**** b: 0xc00 e: 0xcff correcting
>
>     Here is the problem, for some reason the xserver doesn't like
> the pci mem/io mappings for the card and "corrects" them :(

The PCI mappings should not prevent the fb ioctls from working. Anyway I
can try to mess with the code to leave the mapping untouched.

There's a lot more going on: in 32 bit mode the X server complains about
invalid weight (000) and refuses to probe OK. In 16 bit mode some part of
the server assumes 565 bit weighting but the kernel code only ever sees
000. I'm a bit confused here. In 8 bit mode, I get the X server to print a
message like:

fbdev trace: FBDevScreenInit: before screeninit8/16/32
fbdevHW: fbScreenInit: before fbSetupScreen 		< my trace message


	This should not happen!
	An unresolved function was called!

That's in programs/Xserver/fb/fbscreen.c. fbSetupScreen ought to print
another message on entry but that never happens. fbSetupScreen is defined
in the very same source file. Funny.

	Michael


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

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <Pine.LNX.4.10.10003141911250.17573-100000@opal.biophys.uni-duesseldorf.de>]
* Re: patch to get latest XFree 4.0 snapshot (xf3918) to workonppcwithr128
@ 2000-03-15  9:44 Michel Danzer
  2000-03-15 11:13 ` Michael Schmitz
  0 siblings, 1 reply; 10+ messages in thread
From: Michel Danzer @ 2000-03-15  9:44 UTC (permalink / raw)
  To: Michael Schmitz
  Cc: Alan Hourihane, Kostas Gewrgiou, Kevin B. Hendricks, linuxppc-dev


--- Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de> wrote:

> > > Possibly; I've also seen the X server convert XFree mode lines into
> > > fbdev timings, thereby overwriting the 565 with 000. Doesn't hurt for
16
> > > bits, only for 32 bits.
> >
> > Doesn't hurt for probing, but maybe for the ioctl?
>
> The ioctl has been disabled long time ago.

I meant when you hadn't disabled it. It hung there at the time, right? Now a
hang in an ioctl is a kernel bug, or am I missing something?


> I'll get back to poking around in there as soon as I can figure out how to
> see the kernel messages (i.e. how to switch back to the text console fast
> enough, or never let the X server switch to VT 7 in the first place).

A remote machine might be handy...


> Now I can't get beyond xf86HandleColormaps(). Another ioctl that barfs on
> me, perhaps.

Well possible, FBIOPUTCMAP in fbdevHWLoadPalette.

I don't understand the code there...

BTW I've just discovered that the fbdev driver sets the weight explicitly to
{0,0,0}... now I'm (really ;) confused.


> I guess it all boils down to PCI messups.

How do you come to this conclusion? Why should it influence ioctls?


Michel

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: patch to get latest XFree 4.0 snapshot (xf3918) to workonppcwithr128
@ 2000-03-15 11:22 Michel Danzer
  0 siblings, 0 replies; 10+ messages in thread
From: Michel Danzer @ 2000-03-15 11:22 UTC (permalink / raw)
  To: Michael Schmitz
  Cc: Alan Hourihane, Kostas Gewrgiou, Kevin B. Hendricks, linuxppc-dev


--- Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de> wrote:

> > > I'll get back to poking around in there as soon as I can figure out how
> > > to see the kernel messages (i.e. how to switch back to the text console
> > > fast enough, or never let the X server switch to VT 7 in the first
> > > place).
> >
> > A remote machine might be handy...
>
> That's what I'm using already. But the kernel messages that otherwise
> appear on the text screen won't get redirected to a remote machine.
> Nothing ever ends up in the syslog, anyway. I guess the klogd/syslogd
> combo is too slow in this case.

Can't you use kgdb?


> > BTW I've just discovered that the fbdev driver sets the weight explicitly
> > to {0,0,0}... now I'm (really ;) confused.
>
> So was I.

Wonder what the intention and effect(s) are. Alan?


> > > I guess it all boils down to PCI messups.
> >
> > How do you come to this conclusion? Why should it influence ioctls?
>
> Because these ioctls will, ultimately, write to the card again? If the X
> server actually messes with the PCI bridges, the card might no longer be
> mapped?

Can the X server mess with atyfb's mappings?


> I admit that I understand next to nothing about PCI, or how the X server
> uses PCI. Makes it a bit harder to spot the flaky code :-)

Same goes for me :-/


> Anyway, the X server appears to complete screen init OK but I never
> actually get to see the cross hatch pattern.

Not very astonishing without the FBIOPUTSCREEN ioctl, is it?

What _do_ you see if anything?


Michel

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <20000316112537.6597.qmail@web124.yahoomail.com>]

end of thread, other threads:[~2000-03-16 21:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <38CCC0A9.576D34FC@iiic.ethz.ch>
2000-03-13 13:00 ` patch to get latest XFree 4.0 snapshot (xf3918) to workonppcwithr128 Michael Schmitz
2000-03-13 13:55   ` Michel Dänzer
2000-03-13 17:34     ` Michael Schmitz
2000-03-13 17:02 patch to get latest XFree 4.0 snapshot (xf3918) to work onppcwithr128 Michael Schmitz
2000-03-14 10:58 ` patch to get latest XFree 4.0 snapshot (xf3918) to workonppcwithr128 Michel Dänzer
     [not found] <Pine.LNX.4.10.10003141911250.17573-100000@opal.biophys.uni-duesseldorf.de>
2000-03-14 21:10 ` Michael Schmitz
  -- strict thread matches above, loose matches on Subject: below --
2000-03-15  9:44 Michel Danzer
2000-03-15 11:13 ` Michael Schmitz
2000-03-15 14:09   ` Kostas Gewrgiou
2000-03-15 11:22 Michel Danzer
     [not found] <20000316112537.6597.qmail@web124.yahoomail.com>
2000-03-16 21:15 ` Michael Schmitz

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