Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: Re: [XFree86(TM) Bug Report] S3 on Alphastation
Date: Sat, 19 Apr 1997 11:38:11 +0200	[thread overview]
Message-ID: <525b0ba8b87bd19fc1558257ece78f65.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.95.970418194937.209A-100000@hal.ge.infn.it>

Hi Marco and Paolo,

On Apr 18, Marco Corte wrote:

> >> Here is what we (I and my friend paolo@hal.ge.infn.it which is working
> >> with me on this) found in a debugging session. We followed your
> >> instructions (breakpoints, ...).

great!  finally someone's trying to locate the problem.

> (gdb) b 2837
> Breakpoint 3 at 0x12005e938: file s3init.c, line 2837.
> 
> (gdb) cont
> Continuing.
> 
> Breakpoint 3, s3Init () at s3init.c:2837
> 2837          outb(vgaCRReg, n);

> >> Other very :-) interesting numbers

are there any things I should realize?  looks ok to me at a first glance...

> >> many 'step's...
> >>
> >> The last line gdb prints is
> 
> 2847  mode->CrtcVTotal /= interlacedived

this should be only 10 steps (or even much less?) from line 2837 to 2847.
or what am I missing ?!

and around line 2847 there is nothing special/dengerous etc.  

> >> As you see, we are able to use many tools. We are your humble
> >> servants and we are waiting for your orders :-)

great! thanks!!

ok, first please send a full server output for plain 3.2 server using

	X -probeonly >& outfile

I hope this won't hang the machine.  then apply the small patch below
and try again (maybe specifing `MemBase 0x1800000' (value from /proc/pci)
in a 2nd run).

if this doesn't help, we need to further trace why/where the machine cashes
as line 2847 doesn't seem to be the correct location.

which compiler options did you use to compile the S3 code with debug ?
did you use  

	make "CDEBUGFLAGS = -O2 -g" ?

using -O2 may give debug problems due to code rearangements, please try using

	make "CDEBUGFLAGS = -O0 -g3"

if possible or at least

	make "CDEBUGFLAGS = -O -g3"

maybe this gives a better localisation of "the last step"...

also, there have been some problems before with interference of some
PCI SCSI controllers and S3 chips (which all should be fixed, but ne never knows...)
so please run the following commands in background (using bash)
when single-stepping though the server so that there is always "some" disk activity.
otherwise the server might crash e.g. only 10 or more seconds later when "sync"
tries to write some blocks to the disk next time:

	while true ; do cat /dev/sda > /dev/null ; done &
	while sleep 1 ; do sync ; done &

if this doesn't give more details, we have to start stepping on asm-instruction level
to check what's really executed.  you should run 
	
	script logfile

before entering gdb so that everything will be captured in a file (maybe even
on the remote host to avoid file corruption, but the 'sync' every second should
be ok too).

ok, then maybe start with a breakpoint in line 2837, then use

	set heuristic-fence-post 10000
	display/i $pc

and then use

	stepi 

to single-step through every instruction until "boooom"...
that's all, I'm running out of ideas and hints for now (read: need more input
or even better a success report;)

thanks again for volunteering and for your help!

Harald

*** xc/programs/Xserver/hw/xfree86/accel/s3/s3.c~	Thu Mar 13 12:31:07 1997
--- xc/programs/Xserver/hw/xfree86/accel/s3/s3.c	Sat Apr 19 11:11:39 1997
***************
*** 673,682 ****
      * S3 868/968 only pretend to need 32MB and thus fool 
      * the BIOS PCI auto configuration :-(  */
   
!    if (   info.ChipType == S3_868 
!        || info.ChipType == S3_968 
!        || info.ChipType == S3_TRIO_32_64  /* only needed for Trio64V+ */
!        /* || info.ChipType == S3_ViRGE */) {
        unsigned long base0;
        char *probed;
        char map_64m[64];
--- 673,684 ----
      * S3 868/968 only pretend to need 32MB and thus fool 
      * the BIOS PCI auto configuration :-(  */
   
!    if (found 
!        && info.ChipType != S3_928
!        && info.ChipType != S3_864
!        && info.ChipType != S3_964
!        && (info.ChipType == S3_TRIO_32_64 && info.ChipRev < 0x40)  /* only Trio64V+ */
!        ) {
        unsigned long base0;
        char *probed;
        char map_64m[64];

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

           reply	other threads:[~1997-04-19  9:38 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <Pine.LNX.3.95.970418194937.209A-100000@hal.ge.infn.it>]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox