Subject: Re: ahc freeze
To: None <fvdl@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: current-users
Date: 04/22/2003 23:58:23
In article <20030422163317.A14246@vaasje.org>
fvdl@netbsd.org wrote:

> Can you try the following diff and see what it prints?

Sure.
---
ahc0 at pci0 dev 13 function 0
ahc0: interrupting at irq 14
ahc0: aic7860: Single Channel A, SCSI Id=7, 3/253 SCBs
scsibus1 at ahc0: 8 targets, 8 luns per target
 :
scsibus1: waiting 2 seconds for devices to settle...
 :
sd1 at scsibus1 target 2 lun 0: <CONNER, CFP2105S  2.14GB, 1524> disk fixed
sd1: 2048 MB, 3940 cyl, 10 head, 106 sec, 512 bytes/sect x 4194304 sectors
target 2: pcap 280 pmode 0 pperiod 0 poffset 0
target 2: xmode 280 xperiod 0 xoffset 0
sd1: sync (0.00ns offset 0), 8-bitkernel: integer divide fault trap, code=0
Stopped in pid 3.1 (scsibus1) at        scsipi_sync_factor_to_freq+0x54:        idivl    %ecx,%eax
db> 
---

Note the drive is probed correctly by iha (and other) drivers:
---
iha0 at pci0 dev 14 function 0: Initio INIC-940 SCSI (rev. 0x01)
iha0: interrupting at irq 15
scsibus2 at iha0: 8 targets, 8 luns per target
 :
scsibus2: waiting 2 seconds for devices to settle...
 :
sd1 at scsibus2 target 2 lun 0: <CONNER, CFP2105S  2.14GB, 1524> disk fixed
sd1: 2048 MB, 3940 cyl, 10 head, 106 sec, 512 bytes/sect x 4194304 sectors
target 2: pcap 280 pmode 0 pperiod 0 poffset 0
target 2: xmode 80 xperiod 19 xoffset f
sd1: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
target 2: pcap 280 pmode 80 pperiod 19 poffset f
target 2: xmode 80 xperiod 19 xoffset f
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp