Re: Drives connected to pcscp0 disappeared.
On Sat, Nov 19, 2005 at 12:02:47AM +0100, Martin Reindl wrote: Cannot reproduce here on amd64, need more details. [...] OpenBSD 3.8-current (GENERIC) #4: Fri Nov 18 23:39:43 CET 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC [...] associative, 8 4MB entries fully associative [...] pcscp0 at pci0 dev 12 function 0 AMD 53c974 PCscsi-PCI rev 0x10: irq 11 pcscp0: AM53C974, 40MHz, SCSI ID 7 scsibus1 at pcscp0: 8 targets cd1 at scsibus1 targ 2 lun 0: PLEXTOR, CD-ROM PX-32TS, 1.03 SCSI2 That's odd. I've tried some kernels from my backups, and it seems that the problem occured somewhere between nov. 12th and nov. 15th (see below). What additional details could help? I could boot with verbose autoconfig, but I have to do it via serial console, since the output is too large for the dmesg buffer. Ciao, Kili $ diff -uw dmesg.petunia-2005111{2,5} --- dmesg.petunia-20051112 Sat Nov 19 10:31:45 2005 +++ dmesg.petunia-20051115 Sat Nov 19 10:34:21 2005 @@ -1,10 +1,10 @@ -OpenBSD 3.8-current (GENERIC) #107: Sat Nov 12 21:23:07 CET 2005 +OpenBSD 3.8-current (GENERIC) #108: Tue Nov 15 20:57:57 CET 2005 [EMAIL PROTECTED]:/var/compile/GENERIC cpu0: AMD Athlon(TM) XP 2400+ (AuthenticAMD 686-class, 256KB L2 cache) 1.99 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE cpu0: AMD Powernow: TS real mem = 1073307648 (1048152K) -avail mem = 972791808 (949992K) +avail mem = 972795904 (949996K) using 4278 buffers containing 53768192 bytes (52508K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(bf) BIOS, date 04/21/04, BIOS32 rev. 0 @ 0xf1aa0 @@ -29,8 +29,6 @@ pcscp0: AM53C974, 40MHz, SCSI ID 7 pcscp0: SCSI bus reset scsibus0 at pcscp0: 8 targets -cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-ROM DVD-303R, 1.10 SCSI2 5/cdrom removable -cd1 at scsibus0 targ 2 lun 0: TEAC, CD-R55S, 1.0J SCSI2 5/cdrom removable trm0 at pci0 dev 14 function 0 Tekram DC-3x5U rev 0x01: irq 5 scsibus1 at trm0: 16 targets trm0: target 1 using 16 bit 20.83 MHz, Offset 15 data transfers
Re: Drives connected to pcscp0 disappeared.
Matthias Kilian [EMAIL PROTECTED] wrote: On Sat, Nov 19, 2005 at 12:02:47AM +0100, Martin Reindl wrote: Cannot reproduce here on amd64, need more details. [...] OpenBSD 3.8-current (GENERIC) #4: Fri Nov 18 23:39:43 CET 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC [...] associative, 8 4MB entries fully associative [...] pcscp0 at pci0 dev 12 function 0 AMD 53c974 PCscsi-PCI rev 0x10: irq 11 pcscp0: AM53C974, 40MHz, SCSI ID 7 scsibus1 at pcscp0: 8 targets cd1 at scsibus1 targ 2 lun 0: PLEXTOR, CD-ROM PX-32TS, 1.03 SCSI2 That's odd. I've tried some kernels from my backups, and it seems that the problem occured somewhere between nov. 12th and nov. 15th (see below). What additional details could help? I could boot with verbose autoconfig, but I have to do it via serial console, since the output is too large for the dmesg buffer. No changes happened to pcscp in this timeframe. Try with CVS sources in src/sys/scsi from 12th and then from 15th (or in between as necessary). martin
Re: Drives connected to pcscp0 disappeared.
On Sat, Nov 19, 2005 at 12:27:14PM +0100, Martin Reindl wrote: No changes happened to pcscp in this timeframe. Try with CVS sources in src/sys/scsi from 12th and then from 15th (or in between as necessary). The change by krw@ below caused my problem. Seems that my hardware can't live without the delay. Ciao, Kili Index: scsi_base.c === RCS file: /var/cvs/OpenBSD/src/sys/scsi/scsi_base.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -u -w -r1.95 -r1.96 --- scsi_base.c 13 Nov 2005 02:39:45 - 1.95 +++ scsi_base.c 13 Nov 2005 03:27:42 - 1.96 @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.95 2005/11/13 02:39:45 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.96 2005/11/13 03:27:42 krw Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -78,6 +78,11 @@ if (scsi_init_done) return; scsi_init_done = 1; + +#if defined(SCSI_DELAY) SCSI_DELAY 0 + /* Historical. Older buses may need a moment to stabilize. */ + delay(100 * SCSI_DELAY); +#endif /* Initialize the scsi_xfer pool. */ pool_init(scsi_xfer_pool, sizeof(struct scsi_xfer), 0, Index: scsiconf.c === RCS file: /var/cvs/OpenBSD/src/sys/scsi/scsiconf.c,v retrieving revision 1.97 retrieving revision 1.98 diff -u -u -w -r1.97 -r1.98 --- scsiconf.c 10 Oct 2005 20:06:12 - 1.97 +++ scsiconf.c 13 Nov 2005 03:27:42 - 1.98 @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.97 2005/10/10 20:06:12 krw Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.98 2005/11/13 03:27:42 krw Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -178,15 +178,6 @@ panic(scsibusattach: can't allocate lun links); bzero(sb-sc_link[i], nbytes); } - -#if defined(SCSI_DELAY) SCSI_DELAY 2 - printf(%s: waiting for scsi devices to settle\n, - sb-sc_dev.dv_xname); -#else /* SCSI_DELAY 2 */ -#undef SCSI_DELAY -#define SCSI_DELAY 2 -#endif /* SCSI_DELAY */ - delay(100 * SCSI_DELAY); scsi_probe_bus(sb-sc_dev.dv_unit, -1, -1); }
Re: Drives connected to pcscp0 disappeared.
Matthias Kilian [EMAIL PROTECTED] wrote: Hi, I just noticed that the cd and dvd drives connected to my Tekram DC-390 host adapter aren't detected since a few days. What follows are the dmesg of my current system and a diff against a dmesg some months ago. Please note that a) in my current system, Ottos patch to sys/sys/queue.h is applied, b) I roughly remember to used one of the drives a week ago. If this is neither a PEBKAC nor a known issue, I'll have a look at my recent backups and search for the very last time the drives have been detected. Cannot reproduce here on amd64, need more details. Martin OpenBSD 3.8-current (GENERIC) #4: Fri Nov 18 23:39:43 CET 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 536145920 (523580K) avail mem = 448176128 (437672K) using 13140 buffers containing 53821440 bytes (52560K) of memory mainbus0 (root) cpu0 at mainbus0: (uniprocessor) cpu0: AMD Athlon(tm) 64 Processor 3000+, 1995.85 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative [...] pcscp0 at pci0 dev 12 function 0 AMD 53c974 PCscsi-PCI rev 0x10: irq 11 pcscp0: AM53C974, 40MHz, SCSI ID 7 scsibus1 at pcscp0: 8 targets cd1 at scsibus1 targ 2 lun 0: PLEXTOR, CD-ROM PX-32TS, 1.03 SCSI2 5/cdrom removable sd0 at scsibus1 targ 6 lun 0: SEAGATE, ST34371W, HP03 SCSI2 0/direct fixed sd0: 4095MB, 5172 cyl, 10 head, 162 sec, 512 bytes/sec, 8388314 sec total [...]