[1053] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

aha1542 hangs when switching X <-> VT

daemon@ATHENA.MIT.EDU (Keith Owens)
Tue Dec 3 00:44:36 1996

Date: 	Tue, 3 Dec 1996 16:21:58 +1100 (EST)
From: Keith Owens <kaos@edison.dialix.com.au>
Reply-To: Keith Owens <kaos@edison.dialix.com.au>
To: linux-scsi@vger.rutgers.edu


aha1542c, 2.0.26, ELF, XFree86 312, S3 VLB, fvwm95-2, gcc 272.

When switching from X to VT there is an intermittent problem where the
1542 will hang.  The text below was typed by hand because the problem is
so bad that nothing gets written to the logs.

scsi :  aborting command due to timeout : pid 4497 scsi 0 channel 0 id 0
lun 0 0x0a 09 f3 6a 02 00
scsi host 0 abort (pid 4???) timed out - resetting
scsi bus is being reset for host 0 channel 0
send bus device reset to target 0
sending did_reset for target 0 (repeated several times)
aha1542_intr_handle: unexpected interrupt
tarstat=0 hastat=0 idlun=10 ccb#=5 (repeated with various ccb numbers)

The sequence then repeats with different data at the end of the abort
message

0x0a 08 88 2e 02 00
0x0a 0a b0 2a 02 00
0x08 06 c8 26 02 00

The only way out is to reset the machine.  If the sequence above is left
alone it starts getting various ext2 errors (including bit map errors) and
e2fsck usually finds major problems, even on areas that were not being
written to.

It's not the X S3 server because the standard SVGA server has the same
problem.  Switching VT to VT is not a problem.  It's not the drive because
it can occur for any drive, including the CDROM.  It is not recent, 2.0.18
has the same problem.  DMA has been set to the lowest value, 3.3MB. The
aha1542 diagnostics show nothing wrong with the card nor with the disks. 
syslog shows intermittent "aha1542.c: interrupt received, but no mail" but
the system recovers from these.

I tried setting DISABLE_KBD_DURING_INTERRUPTS in drivers/char/keyboard.c,
it seems to reduce the problem, although it is difficult to tell with an
intermittent fault. SCSI probe messages follow

Configuring Adaptec (SCSI-ID 7) at IO:330, IRQ 10, DMA priority 6
scsi0 : Adaptec 1542
scsi : 1 host.
  Vendor: IBM       Model: DORS-32160        Rev: WA6A
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
  Vendor: MATSHITA  Model: CD-ROM CR-533     Rev: 1.3a
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
  Vendor: MICROP    Model: 3243-19   1128RA  Rev: 28RA
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 4, lun 0
scsi : detected 1 SCSI cdrom 2 SCSI disks total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 4226725 [2063 MB] [2.1 GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8388315 [4095 MB] [4.1 GB]
Partition check:
 sda: sda1 sda2 < sda5 sda6 sda7 sda8 sda9 >
 sdb: sdb1 sdb2 < sdb5 sdb6 sdb7 sdb8 >



home help back first fref pref prev next nref lref last post