From owner-freebsd-scsi Thu Feb 18 15:41:19 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from pike.cdrom.com (pike.cdrom.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 79A3A11BF9 for ; Thu, 18 Feb 1999 15:40:31 -0800 (PST) (envelope-from r3cgm@pike.cdrom.com) Received: (from r3cgm@localhost) by pike.cdrom.com (8.9.1a/8.9.1) id PAA07564 for freebsd-scsi@freebsd.org; Thu, 18 Feb 1999 15:41:19 -0800 (PST) Date: Thu, 18 Feb 1999 15:41:19 -0800 From: "Christopher G. Mann" To: freebsd-scsi@freebsd.org Subject: Unusual CAM Error w/FreeBSD 3.1 (tosha) Message-ID: <19990218154119.A7504@cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i X-Operating-System: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings FreeBSD SCSI Team, Two days ago, I installed FreeBSD 3.1 from CDROM (we get them 2 weeks earlier than anyone else, neener neener). :) I immediately set up cvsup for my /ports and /src tree to run daily. Yesterday I installed tosha from /ports. Some time ago I wrote a utility to rip audio tracks and encode them, and I parse "tosha -i" output to determine how many songs there are. Recently I purchased a "slot-in" Pioneer CDROM drive... 32x SCSI. It didn't work with my old system at all (which was originally installed as 2.2.5 and make world'ed every week or so until I finally nuked it). I would frequently get fatal SCSI read errors with it that eventually would make the system unstable enough so that I would have to reboot. The CAM support in 3.x seems to have solved that problem. I can mount the cdrom drive, I can dd images from it, I can even use workman to play tunes like a pro, but the simple act of using tosha to get info from any audio CD generates weird cam errors. [beacon.cdrom.com : r3cgm] ~ - tosha -i tosha: cam_lookup_pass: couldn't open /dev/xpt0 cam_lookup_pass: Permission denied [beacon.cdrom.com : r3cgm] ~ - ls -l /usr/local/bin/tosha -rwsr-xr-x 1 bin bin 21304 Feb 18 03:07 /usr/local/bin/tosha [beacon.cdrom.com : r3cgm] ~ - su -m Password: %tosha -i tosha: cam_lookup_pass: couldn't open /dev/xpt0 cam_lookup_pass: Permission denied %tosha -i -d /dev/cd0a tosha: cam_lookup_pass: couldn't open /dev/xpt0 cam_lookup_pass: Permission denied %tosha -i -d /dev/cd0c tosha: cam_lookup_pass: couldn't open /dev/xpt0 cam_lookup_pass: Permission denied %tosha -i -d /dev/cd1a tosha: cam_lookup_pass: couldn't open /dev/xpt0 cam_lookup_pass: Permission denied %tosha -i -d /dev/cd1c tosha: cam_lookup_pass: couldn't open /dev/xpt0 cam_lookup_pass: Permission denied %ls -l /dev/x* crw------- 1 root operator 104, 0 Feb 16 16:56 /dev/xpt0 crw------- 1 root operator 104, 1 Feb 16 16:56 /dev/xpt1 %ls -l /dev/pas* crw------- 1 root operator 31, 0 Feb 16 16:56 /dev/pass0 crw------- 1 root operator 31, 1 Feb 16 16:56 /dev/pass1 crw------- 1 root operator 31, 2 Feb 16 16:56 /dev/pass2 crw------- 1 root operator 31, 3 Feb 16 16:56 /dev/pass3 %fgrep "pass" /usr/src/sys/i386/conf/BEACON device pass0 I have tried rebooting, but the behavior is the same. Here is my dmesg VERBOSE output. Please let me know if you can think of anything to try. vendor=0x8086, dev=0x7010, revid=0x00 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[0]: type 4, range 32, base 0000e800, size 4 found-> vendor=0x102b, dev=0x051a, revid=0x03 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=9 map[0]: type 3, range 32, base fb800000, size 23 map[1]: type 1, range 32, base fa800000, size 14 map[2]: type 1, range 32, base fa000000, size 23 vga0: rev 0x03 int a irq 9 on pci0.10.0 found-> vendor=0x1011, dev=0x0009, revid=0x20 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=12 map[0]: type 4, range 32, base 0000e000, size 7 map[1]: type 1, range 32, base f9800000, size 7 de0: rev 0x20 int a irq 12 on pci0.11.0 de0: 21140A [10-100Mb/s] pass 2.0 de0: address 00:80:c8:3e:34:08 bpf: de0 attached found-> vendor=0x9004, dev=0x8178, revid=0x00 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[0]: type 4, range 32, base 0000d800, size 8 map[1]: type 1, range 32, base f9000000, size 12 ahc0: rev 0x00 int a irq 10 on pci0.12.0 ahc0: Reading SEEPROM...done. ahc0: internal 50 cable is present, internal 68 cable is present ahc0: external cable not present ahc0: BIOS eeprom is present ahc0: High byte termination Enabled ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs ahc0: Downloading Sequencer Program... 413 instructions downloaded Probing for devices on the ISA bus: atkbd: the current kbd controller command byte 0067 atkbd: keyboard ID 0x41ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa sc0 on isa sc0: fb0 kbd0 sc0: VGA color <16 virtual consoles, flags=0x0> atkbdc0 at 0x60-0x6f on motherboard atkbd0 irq 1 on isa kbd0: atkbd0, AT 101/102 (2), config:0x10000, flags:0x3d0000 psm0: current command byte:0067 kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fe kbdc: RESET_AUX return code:00fe kbdc: RESET_AUX return code:00fe kbdc: DIAGNOSE status:0055 kbdc: TEST_KBD_PORT status:0000 psm0: failed to reset the aux device. psm0 not found sio0: irq maps: 0x1 0x11 0x1 0x1 sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A sio1: irq maps: 0x1 0x9 0x1 0x1 sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in scd0 not found at 0x230 ppc0 not found vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3b0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xf00b8000 size:32k gran:32k, buf:0x0 size:0k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff npx0 on motherboard npx0: INT 16 interface i586_bzero() bandwidth = 181818181 bytes/sec bzero() bandwidth = 96283458 bytes/sec sb0 at 0x220 irq 5 drq 1 on isa snd0: sbxvi0 at drq 5 on isa snd0: sbmidi0 at 0x330 on isa snd0: opl0 at 0x388 on isa snd0: imasks: bio c0080040, tty c003001a, net c0061000 BIOS Geometries: 0:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 1:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 2:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 3:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 4:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 5:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 6:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 7:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors 0 accounted for Device configuration finished. Intel Pentium detected, installing workaround for F00F bug bpf: lo0 attached Waiting 7 seconds for SCSI devices to settle (noperiph:ahc0:0:-1:-1): SCSI bus reset delivered. 0 SCBs aborted. ahc0: Selection Timeout on A:3. 1 SCBs aborted ahc0: Selection Timeout on A:5. 1 SCBs aborted ahc0: Selection Timeout on A:8. 1 SCBs aborted ahc0: Selection Timeout on A:9. 1 SCBs aborted ahc0: Selection Timeout on A:10. 1 SCBs aborted ahc0: Selection Timeout on A:11. 1 SCBs aborted ahc0: Selection Timeout on A:12. 1 SCBs aborted ahc0: Selection Timeout on A:13. 1 SCBs aborted ahc0: Selection Timeout on A:14. 1 SCBs aborted ahc0: Selection Timeout on A:15. 1 SCBs aborted (probe2:ahc0:0:2:0): INQUIRY. CDB: 12 1 80 0 ff 0 (probe2:ahc0:0:2:0): ILLEGAL REQUEST asc:24,0 (probe2:ahc0:0:2:0): Invalid field in CDB (probe4:ahc0:0:4:0): INQUIRY. CDB: 12 1 80 0 ff 0 (probe4:ahc0:0:4:0): ILLEGAL REQUEST asc:24,0 (probe4:ahc0:0:4:0): Invalid field in CDB ahc0: target 2 synchronous at 20.0MHz, offset = 0xf ahc0: target 0 using 16bit transfers ahc0: target 0 synchronous at 20.0MHz, offset = 0x8 ahc0: target 6 synchronous at 10.0MHz, offset = 0xf ahc0: target 1 synchronous at 10.0MHz, offset = 0xf pass0 at ahc0 bus 0 target 0 lun 0 pass0: Fixed Direct Access SCSI-2 device pass0: Serial Number 5U0F7361 pass0: 40.0MB/s transfers (20.0MHz, offset 8, 16bit), Tagged Queueing Enabled pass1 at ahc0 bus 0 target 1 lun 0 pass1: Fixed Direct Access SCSI-2 device pass1: Serial Number 03010448 pass1: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled pass2 at ahc0 bus 0 target 2 lun 0 pass2: Removable CD-ROM SCSI-2 device pass2: 20.0MB/s transfers (20.0MHz, offset 15) pass3 at ahc0 bus 0 target 4 lun 0 pass3: Removable CD-ROM SCSI-2 device pass3: 3.300MB/s transfers pass4 at ahc0 bus 0 target 6 lun 0 pass4: Fixed Direct Access SCSI-2 device pass4: Serial Number EF94LBD pass4: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled cd0 at ahc0 bus 0 target 2 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 20.0MB/s transfers (20.0MHz, offset 15) cd0: cd present [269544 x 2048 byte records] da2 at ahc0 bus 0 target 6 lun 0 da2: Fixed Direct Access SCSI-2 device da2: Serial Number EF94LBD da2: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled da2: 2048MB (4194304 512 byte sectors: 255H 63S/T 261C) da1 at ahc0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: Serial Number 03010448 da1: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled da1: 4095MB (8388315 512 byte sectors: 255H 63S/T 522C) Considering MFS root f/s. No MFS image available as root f/s. Considering FFS root f/s. changing root device to da0s1a (cd1:ahc0:0:4:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (cd1:ahc0:0:4:0): NOT READY asc:3a,0 (cd1:ahc0:0:4:0): Medium not present cd1 at ahc0 bus 0 target 4 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 3.300MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: Serial Number 5U0F7361 da0: 40.0MB/s transfers (20.0MHz, offset 8, 16bit), Tagged Queueing Enabled da0: 2063MB (4226725 512 byte sectors: 255H 63S/T 263C) da0s1: type 0xa5, start 63, end = 4225094, size 4225032 : OK da2s1: type 0xa5, start 63, end = 4192964, size 4192902 : OK Linux-ELF exec handler installed splash: image decoder found: logo_saver (da0:ahc0:0:0:0): tagged openings now 32 -- Christopher G. Mann - IT Manager, Webmaster Walnut Creek CDROM (www.cdrom.com) The FreeBSD Mall (www.freebsdmall.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message