[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Results of trying 2.6.7 and 2.6.8 on Macintosh Quadra 650



Hi Kars,

On Thu, 2 Sep 2004, I wrote:

> ...
> Last night, before I got your patch, I found that I can avoid any SCSI
> problems, as long as the root filesystem is mounted read-only.
> ...

Well, I just learned that the SCSI problem is not limited to read/write
devices.  I tried this:

$modprobe isofs
$mount -t iso9660 /dev/scd0 /mnt
mount: block device /dev/scd0 is write-protected, mounting read-only
$cd /mnt
$find .

While it worked briefly, shortly thereafter the find hung and had to be
killed, and the cdrom drive ended up offline,

esp0: Aborting command
esp0: dumping state
esp0: SW [sreg<07> sstep<04> ireg<08>]
esp0: HW reread [sreg<00> sstep<c4> ireg<20>]
esp0: current command [tgt<03> lun<00> pphase<FREEING> cphase<FREEING>]
esp0: disconnected
esp0: invalid command
esp0: dumping state
esp0: SW [sreg<00> sstep<04> ireg<40>]
esp0: HW reread [sreg<00> sstep<c4> ireg<00>]
esp0: current command [tgt<03> lun<00> pphase<FREEING> cphase<FREEING>]
esp0: disconnected
esp0: Forcing async and disabling disconnect for target 3
esp0: Resetting scsi bus
esp0: SCSI bus reset interrupt
esp0: Resetting scsi bus
esp0: SCSI bus reset interrupt
scsi: Device offlined - not ready after error recovery: host 0 channel 0 id 3 lun 0
SCSI error : <0 0 3 0> return code = 0x2
end_request: I/O error, dev sr0, sector 124
ISOFS: unable to read i-node block


Further attempts to access the drive yeild this:

scsi0 (3:0): rejecting I/O to offline device
SCSI error: host 0 id 3 lun 0 return code = 4000000
        Sense class 0, sense error 0, extended sense 0
cdrom: open failed.


The macos boot disk is target 0. To see what would happen, I tried to
mount it, but my kernel didn't have hfs support. So, I thought I would try
read only access to the drive anyway. I used dd if=/dev/sda3 bs=4096
of=/dev/null which worked ok for a few minutes, until I received this:

esp0: Aborting command
esp0: dumping state
esp0: SW [sreg<07> sstep<04> ireg<0c>]
esp0: HW reread [sreg<01> sstep<d4> ireg<10>]
esp0: current command [tgt<00> lun<00> pphase<FREEING> cphase<CLUELESS>]
esp0: disconnected
esp0: Aborting command
esp0: dumping state
esp0: SW [sreg<07> sstep<04> ireg<0c>]
esp0: HW reread [sreg<01> sstep<d4> ireg<00>]
esp0: current command [tgt<00> lun<00> pphase<UNISSUED> cphase<UNISSUED>]
esp0: disconnected
esp0: Resetting scsi bus
esp0: SCSI bus reset interrupt

And at that, the machine hung, even though the linux root disk (target 5)
was apparently never disconnected... none of which makes a lot of sense to
me!

HTH

-F

PS. Here's the entire kernel debug log.


Linux version 2.6.8.1 (fthain@iffy.intranet) (gcc version 3.4.1) #1 Wed Sep 1 23
:11:43 EST 2004
Detected Macintosh model: 36
VIA1 at 50f00000 is a 6522 or clone
VIA2 at 50f02000 is <6>a 6522 or clone
Apple Macintosh Quadra 650
Built 1 zonelists
Kernel command line: root=/dev/sdb4 ro init=/boot.sh debug=ser console=tty0
Killing onboard sonic... Done.
PID hash table entries: 16 (order 4: 128 bytes)
Console: colour dummy device 80x25
Linux version 2.6.8.1 (fthain@iffy.intranet) (gcc version 3.4.1) #1 Wed Sep 1 23
:11:43 EST 2004
Detected Macintosh model: 36
VIA1 at 50f00000 is a 6522 or clone
VIA2 at 50f02000 is <6>a 6522 or clone
Apple Macintosh Quadra 650
Built 1 zonelists
Kernel command line: root=/dev/sdb4 ro init=/boot.sh debug=ser console=tty0
Killing onboard sonic... Done.
PID hash table entries: 16 (order 4: 128 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 38304k/40960k available (1620k kernel code, 908k data, 84k init)
Calibrating delay loop... 22.11 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
NuBus: Scanning NuBus slots.
Slot C:
  Board resource:
    type: [cat 0x1 type 0x0 hw 0x0 sw 0x0]
    name: EtherPort IIN
    board id: 0x12a
    vendor info:
    ID: Kinetics, A Division of Excelan, Inc.
  Function 0x80:
    type: [cat 0x4 type 0x1 hw 0x103 sw 0x106]
    name: Network_EtherNet_KinEth_KinEth_IIN
    MAC address: 00:80:19:03:0b:77
    unknown resource 81, data 0xffff6c
    unknown resource 82, data 0x000093
SCSI subsystem initialized
macfb: framebuffer at 0xf9001000, mapped to 0xd0001000, size 960k
macfb: mode is 640x480x16, linelength=2048
macfb: scrolling: redraw
macfb: directcolor: size=1:5:5:5, shift=15:10:5:0
fb0: Macintosh DAFB built-in frame buffer device
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
fbcon_startup: No VBL detected, using timer based cursor.
mac_delete_irq: tried to remove invalid irq
Console: switching to colour frame buffer device 80x30
Generic RTC Driver v1.07
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
mac8390.c: v0.4 2001-05-15 David Huggins-Daines <dhd@debian.org> and others
eth0: EtherPort IIN in slot C (type kinetics)
MAC 00:80:19:03:0b:77 IRQ 59, shared memory at 0xfc000000-0xfc007fff,  16-bit ac
cess.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
mac_esp: io base at 0x50f10000
esp: using quick version
esp: addr at 0x50f10000
SCSI ID 7 Clk 16MHz CCF=4 TOut 138 NCR53C9x(esp236)

mac_esp: 1 esp controllers found
scsi0 : ESP236 (NCR53C9x)
Using anticipatory io scheduler
  Vendor: QUANTUM   Model: LPS270S           Rev: 590A
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: MATSHITA  Model: CD-ROM CR-8004    Rev: 1.0p
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: CONNER    Model: CP30540  SUN0535  Rev: B0CD
  Type:   Direct-Access                      ANSI SCSI revision: 02
st: Version 20040403, fixed bufsize 32768, s/g segs 256
SCSI device sda: 528808 512-byte hdwr sectors (271 MB)
SCSI device sda: drive cache: write through
 /dev/scsi/host0/bus0/target0/lun0: [mac] p1 p2 p3
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sdb: 1059528 512-byte hdwr sectors (542 MB)
SCSI device sdb: drive cache: write through
 /dev/scsi/host0/bus0/target5/lun0: [mac] p1 p2 p3 p4 p5
Attached scsi disk sdb at scsi0, channel 0, id 5, lun 0
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Attached scsi generic sg1 at scsi0, channel 0, id 3, lun 0,  type 5
Attached scsi generic sg2 at scsi0, channel 0, id 5, lun 0,  type 0
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (ext2 filesystem) readonly.
esp0: Aborting command
esp0: dumping state
esp0: SW [sreg<07> sstep<04> ireg<08>]
esp0: HW reread [sreg<00> sstep<c4> ireg<20>]
esp0: current command [tgt<03> lun<00> pphase<FREEING> cphase<FREEING>]
esp0: disconnected
esp0: invalid command
esp0: dumping state
esp0: SW [sreg<00> sstep<04> ireg<40>]
esp0: HW reread [sreg<00> sstep<c4> ireg<00>]
esp0: current command [tgt<03> lun<00> pphase<FREEING> cphase<FREEING>]
esp0: disconnected
esp0: Forcing async and disabling disconnect for target 3
esp0: Resetting scsi bus
esp0: SCSI bus reset interrupt
esp0: Resetting scsi bus
esp0: SCSI bus reset interrupt
scsi: Device offlined - not ready after error recovery: host 0 channel 0 id 3 lu
n 0
SCSI error : <0 0 3 0> return code = 0x2
end_request: I/O error, dev sr0, sector 124
ISOFS: unable to read i-node block
scsi0 (3:0): rejecting I/O to offline device
SCSI error: host 0 id 3 lun 0 return code = 4000000
        Sense class 0, sense error 0, extended sense 0
cdrom: open failed.
scsi0 (3:0): rejecting I/O to offline device
SCSI error: host 0 id 3 lun 0 return code = 4000000
        Sense class 0, sense error 0, extended sense 0
NETDEV WATCHDOG: eth0: transmit timed out
cdrom: open failed.
scsi0 (3:0): rejecting I/O to offline device
SCSI error: host 0 id 3 lun 0 return code = 4000000
        Sense class 0, sense error 0, extended sense 0
cdrom: open failed.
scsi0 (3:0): rejecting I/O to offline device
SCSI error: host 0 id 3 lun 0 return code = 4000000
        Sense class 0, sense error 0, extended sense 0
HFS+-fs: unable to find HFS+ superblock
HFS+-fs: unable to find HFS+ superblock
HFS+-fs: unable to find HFS+ superblock
attempt to access beyond end of device
sdb1: rw=0, want=950367, limit=63
HFS+-fs: unable to find HFS+ superblock
HFS+-fs: unable to find HFS+ superblock
HFS+-fs: unable to find HFS+ superblock
HFS+-fs: unable to find HFS+ superblock
esp0: Aborting command
esp0: dumping state
esp0: SW [sreg<07> sstep<04> ireg<0c>]
esp0: HW reread [sreg<01> sstep<d4> ireg<10>]
esp0: current command [tgt<00> lun<00> pphase<FREEING> cphase<CLUELESS>]
esp0: disconnected
esp0: Aborting command
esp0: dumping state
esp0: SW [sreg<07> sstep<04> ireg<0c>]
esp0: HW reread [sreg<01> sstep<d4> ireg<00>]
esp0: current command [tgt<00> lun<00> pphase<UNISSUED> cphase<UNISSUED>]
esp0: disconnected
esp0: Resetting scsi bus
esp0: SCSI bus reset interrupt



Reply to: