From owner-freebsd-hackers Mon Sep 4 22:30:13 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.11/8.6.6) id WAA01882 for hackers-outgoing; Mon, 4 Sep 1995 22:30:13 -0700 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.6.11/8.6.6) with ESMTP id WAA01864 for ; Mon, 4 Sep 1995 22:30:11 -0700 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by who.cdrom.com (8.6.11/8.6.11) with ESMTP id QAA15167 for ; Mon, 4 Sep 1995 16:09:40 -0700 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id BAA07303 for ; Tue, 5 Sep 1995 01:09:40 +0200 Received: from (uucp@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) with UUCP id BAA07404 for freebsd-hackers@FreeBSD.ORG; Tue, 5 Sep 1995 01:09:40 +0200 Received: (from roberto@localhost) by keltia.frmug.fr.net (8.7.Beta.13/keltia-uucp-2.4) id XAA22429 for freebsd-hackers@FreeBSD.ORG; Mon, 4 Sep 1995 23:50:43 +0200 (MET DST) From: Ollivier Robert Message-Id: <199509042150.XAA22429@keltia.frmug.fr.net> Subject: SCSI - AHA2742A Twin-Channel To: freebsd-hackers@FreeBSD.org (FreeBSD Hackers' list) Date: Mon, 4 Sep 1995 23:50:43 +0200 (MET DST) Reply-To: roberto@keltia.freenix.fr (Ollivier Robert) X-Operating-System: FreeBSD 2.2-CURRENT ctm#1071 X-Mailer: ELM [version 2.4 PL24 ME7a] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: hackers-owner@FreeBSD.org Precedence: bulk Found in freebsd.misc... Justin ? ------- start of forwarded message ------- From: ab@distler.maschinenbau.uni-dortmund.de (Andreas Braukmann (NetAdmin)) Newsgroups: comp.unix.bsd.freebsd.misc Subject: SCSI - AHA2742A Twin-Channel Date: 2 Sep 1995 22:47:47 GMT Organization: University of Dortmund, LTD II Hi, ... I've got some trouble to use both SCSI-channels of my AHA2742AT under 2.0.5-950622-SNAP in a consistent way. The hostadapter supplies two SCSI-channels named 'A' and 'B'. Channel 'A' may be connected to internal and external devices; channel 'B' to internal devices only. Because of that, I've decided to put my fast harddisk on channel 'B' and an external cabinet with slower devices (CD-ROM, tape, an older harddisk) on channel 'A'. The problem: The aic7770 driver (/usr/src/sys/i386/scsi/aic7xxx.*) probes the channel 'A' before channel 'B'. This seems to be logical, but leads to the following annoying behavior: The first harddisk found at channel 'A' becomes sd0 (the second sd1 and so on) and the disks on channel 'B' sd??. Especially the device name for the disk with the root-partition is unpredictable. (Mind the possibility to have the external devices switched of.) Naturally I've considered to wire down the scsi-devices (kernel config file) in the following way: controller scbus0 controller scbus1 device sd0 at scbus1 target 0 unit 0 [...] device sd4 at scbus0 target 0 unit 0 ... ... without any success .... A kernel configured like this was booting right into a kernel panic. Tracing down the panic-message and some experiments leads to the assumption: The aic7xxx-driver interfaces to the kernel as one single scsi-bus? (Is this right?) If this is the case -- how should one distinguish devices with same target ids (one of them on Channel A and the other on channel B) in the kernel configuration file? Here some excerpts from the boot-messages of the driver: Only one scsi-disk on channel 'B'; external devices on channel 'A' switched off. ~~~~~~~~~~~~~~~~ ahc0: reading board settings ahc0: 274x Twin Channel, A SCSI Id=7, B SCSI Id=7, aic7770 >= Rev E, 4 SCBs ahc0: Using Level Sensitive Interrupts ahc0: Downloading Sequencer Program...Done ahc0 at 0x5000-0x50ff irq 11 on eisa slot 5 ahc0: Probing channel A ahc0 waiting for scsi devices to settle ahc0: Probing Channel B ahc0 waiting for scsi devices to settle (ahc0:0:0): "FUJITSU M2694ES-512 812A" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 1033MB (2117025 512 byte sectors) ~~~~~~~~~~~~~~~~ .. the system boots as expected, sd0 is assigned to the 'right' disk. channel 'A' device switched on ~~~~~~~~~~~~~~~~ ahc0: reading board settings ahc0: 274x Twin Channel, A SCSI Id=7, B SCSI Id=7, aic7770 >= Rev E, 4 SCBs ahc0: Using Level Sensitive Interrupts ahc0: Downloading Sequencer Program...Done ahc0 at 0x5000-0x50ff irq 11 on eisa slot 5 ahc0: Probing channel A ahc0 waiting for scsi devices to settle (ahc0:0:0): "SEAGATE [...]" type 0 fixed SCSI 1 sd1(ahc0:0:0): Direct-Access [...] ahc0: Probing Channel B ahc0 waiting for scsi devices to settle (ahc0:0:0): "FUJITSU M2694ES-512 812A" type 0 fixed SCSI 2 sd1(ahc0:0:0): Direct-Access 1033MB (2117025 512 byte sectors) ~~~~~~~~~~~~~~~~ .. the system boots into 'panic', because the kernel cannot localize its root filesystem. Any suggestions? Thanks, Andreas -- +------------------------------------------------------+ | Andreas Braukmann University of Dortmund | +------------------------------------------------------+ | braukman@ls12.informatik.uni-dortmund.de | | ab@ltd2.maschinenbau.uni-dortmund.de | +------------------------------------------------------+ ------- end of forwarded message ------- -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia 2.2-CURRENT #17: Sun Sep 3 20:59:24 MET DST 1995