[1.]
System hangup on writing on a SCSI device with a 2.4 kernel


[2.]
My hard disks are e-ide disks, so scsi support is compiled as module
and loaded only on demand, which works nearly without problems (but
see [X.] below).  Reading from a scsi device works fine, too, but
when I try to write to a scsi device, the system completely hangs up.

I tried both the sys53x8xx and the ncr53c8xx modules, both of which
work fine with a 2.2 kernel.  With a 2.4 kernel, the system hangs
up with either of these, tried with kernel version 2.4.0, 2.4.1,
2.4.2, 2.4.3-pre3.

The only thing I can still do is switching virtual consoles.
The system responds to MagicSysRq key sequences (according to
terminal output), but does neither a requested sync nor a requested
remount r/o, so that I have to undergo filesystem checks.

For information on my scsi system, see [7.4.] and [7.5.] below.


[3.]
SCSI


[4.]
Linux version 2.4.2 (root@azalin) (gcc version 2.95.2 19991024 (release)) #2 Fri Mar 2 
21:12:18 MET 2001

Tried it also with 2.4.0, 2.4.1, and 2.4.3-pre3


[5.]
No Oops or kernel panic messages.


[6.]
#! /bin/sh

# my mo's have a file system over the entire disk.
mount /dev/sda /mnt/mo

# copy an arbitrary file.
cp some_file /mnt/mo

# end of script


[7.1.]
-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux azalin 2.4.2 #2 Fri Mar 2 21:12:18 MET 2001 i686 unknown
Kernel modules         2.4.2
Gnu C                  2.95.2
Binutils               2.9.5.0.24
Linux C Library        x   1 root     root      4061504 Mar 24  2000 /lib/libc.so.6
Dynamic linker         ldd (GNU libc) 2.1.3
Procps                 2.0.6
Mount                  2.10f
Net-tools              1.54
Kbd                    0.99
Sh-utils               2.0
Modules Loaded         sym53c8xx sd_mod scsi_mod rivafb fbcon-cfb32 fbcon-cfb16 
fbcon-cfb8 ipv6 autofs dummy0 serial isa-pnp binfmt_misc


[7.2.]
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 1
model name      : AMD-K7(tm) Processor
stepping        : 2
cpu MHz         : 499.045
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat mmx 
syscall mmxext 3dnowext 3dnow
bogomips        : 996.14


[7.3.]
sr_mod                 12256   0 (autoclean) (unused)
cdrom                  26560   0 (autoclean) [sr_mod]
scsi_mod               90480   1 (autoclean) [sr_mod]
isofs                  18352   0 (autoclean)
rivafb                 37776  63
fbcon-cfb32             6064   0 [rivafb]
fbcon-cfb16             5552   0 [rivafb]
fbcon-cfb8              4272   0 [rivafb]
ipv6                  115696  -1 (autoclean)
autofs                 10528   2 (autoclean)
dummy0                  1104   1 (autoclean)
serial                 42576   1 (autoclean)
isa-pnp                27728   0 (autoclean) [serial]
binfmt_misc             3296   0


[7.4.]
Attached devices: 
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: PLEXTOR  Model: CD-ROM PX-32CS   Rev: 1.02
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
  Vendor: FUJITSU  Model: M2513EL          Rev: 0040
  Type:   Optical Device                   ANSI SCSI revision: 02


[7.5.]
General information:
  Chip sym53c875, device id 0xf, revision id 0x3
  On PCI bus 0, device 8, function 0, IRQ 11
  Synchronous period factor 12, max commands per lun 32
  Debug flags 0x200, verbosity level 1

/proc/interrupts
           CPU0       
  0:      77499          XT-PIC  timer
  1:       4340          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  4:       1063          XT-PIC  serial
 11:         80          XT-PIC  sym53c8xx
 14:       3955          XT-PIC  ide0
 15:       6000          XT-PIC  ide1
NMI:          0 
ERR:          0

/proc/pci
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] System Controller 
(rev 35).
      Master Capable.  Latency=32.  
      Prefetchable 32 bit memory at 0xd8000000 [0xdbffffff].
      Prefetchable 32 bit memory at 0xe2002000 [0xe2002fff].
      I/O at 0xe000 [0xe003].
  Bus  0, device   1, function  0:
    PCI bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] AGP Bridge (rev 1).
      Master Capable.  Latency=32.  Min Gnt=14.
  Bus  0, device   7, function  0:
    ISA bridge: Advanced Micro Devices [AMD] AMD-756 [Viper] ISA (rev 1).
  Bus  0, device   7, function  1:
    IDE interface: Advanced Micro Devices [AMD] AMD-756 [Viper] IDE (rev 3).
      Master Capable.  Latency=32.  
      I/O at 0xf000 [0xf00f].
  Bus  0, device   7, function  3:
    Bridge: Advanced Micro Devices [AMD] AMD-756 [Viper] ACPI (rev 3).
      Master Capable.  Latency=32.  
  Bus  0, device   8, function  0:
    SCSI storage controller: Symbios Logic Inc. (formerly NCR) 53c875 (rev 3).
      IRQ 11.
      Master Capable.  Latency=144.  Min Gnt=17.Max Lat=64.
      I/O at 0xe400 [0xe4ff].
      Non-prefetchable 32 bit memory at 0xe2000000 [0xe20000ff].
      Non-prefetchable 32 bit memory at 0xe2001000 [0xe2001fff].
  Bus  0, device  11, function  0:
    Multimedia video controller: 3Dfx Interactive, Inc. Voodoo 2 (rev 2).
      Prefetchable 32 bit memory at 0xe1000000 [0xe1ffffff].
  Bus  0, device  12, function  0:
    Multimedia video controller: Brooktree Corporation Bt848 TV with DMA push (rev 18).
      IRQ 11.
      Master Capable.  Latency=32.  Min Gnt=16.Max Lat=40.
      Prefetchable 32 bit memory at 0xe2004000 [0xe2004fff].
  Bus  1, device   5, function  0:
    VGA compatible controller: nVidia Corporation Riva TnT2 [NV5] (rev 21).
      IRQ 12.
      Master Capable.  Latency=32.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xdc000000 [0xdcffffff].
      Prefetchable 32 bit memory at 0xde000000 [0xdfffffff].


[X.]
No fixes or workarounds.

Other notes:
When I try to mount a removable scsi medium and none is inserted,
I don't get the usual "... is no valid block device" message,
but instead "/dev/sda: wrong major or minor device number" (yes,
/dev/sda is 08:00).  In this case, the scsi modules are loaded,
but the module for the host adapter is *not*.  When a medium is
inserted, everything works fine (except for writing), and the host
adapter module is loaded, too.

PGP signature

Reply via email to