From owner-freebsd-scsi Wed May 23 11:13:56 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 611C137B423 for ; Wed, 23 May 2001 11:13:52 -0700 (PDT) (envelope-from haribeau@gmx.de) Received: (qmail 26728 invoked by uid 0); 23 May 2001 18:13:51 -0000 Received: from pd9505432.dip.t-dialin.net (HELO pcch) (217.80.84.50) by mail.gmx.net (mp007-rz3) with SMTP; 23 May 2001 18:13:51 -0000 Message-ID: <000201c0e3b3$e3e59920$3301a8c0@pcch> From: "Clemens Hermann" To: Cc: , Subject: quick mly hack Date: Wed, 23 May 2001 20:11:52 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0009_01C0E3C4.9B6A6430" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C0E3C4.9B6A6430 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, As stated from Mike Smith in april there is a bug in the mly driver that unfortunately also hit my setup :). If I got it right the driver does not recognize my backplane (ESG-SHV SCA HSBP M14) correctly and therefore it is set to offline mode. That causes the automatic rebuild funktion to fail - the backplane does not recognize anything if a new drive is inserted. After days of tears I finally got a working patch thanks to Markus (msmeyer@gmx.net) (the patch is attached). The channel/SCSI-ID of the backplane is hardcoded and the initialization of the backplane is skipped. Everything works great but I just wanted to make sure that this patch can be used on a production system and does not introduce other critical problems. If anyone knows a better approach I would be glad to know about it. /ch ------=_NextPart_000_0009_01C0E3C4.9B6A6430 Content-Type: application/octet-stream; name="mly.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mly.patch" *** backup/mly_cam.c Wed May 23 16:42:08 2001=0A= --- patch/mly_cam.c Wed May 23 19:11:23 2001=0A= ***************=0A= *** 243,248 ****=0A= --- 243,258 ----=0A= bus =3D cam_sim_bus(sim);=0A= target =3D csio->ccb_h.target_id;=0A= =0A= + #define MLY_ESGSHV=0A= + #define MLY_ESGSHV_TARGET 6=0A= + #define MLY_ESGSHV_LUN 0=0A= + =0A= + #ifdef MLY_ESGSHV=0A= + /* If this is the ID of the backplane, ignore command */=0A= + if (csio->ccb_h.target_id =3D=3D MLY_ESGSHV_TARGET &&=0A= + ccb->ccb_h.target_lun =3D=3D MLY_ESGSHV_LUN) break;=0A= + #endif=0A= + =0A= debug(2, "XPT_SCSI_IO %d:%d:%d", bus, target, ccb->ccb_h.target_lun);=0A= =0A= /* check for I/O attempt to a protected device */=0A= ------=_NextPart_000_0009_01C0E3C4.9B6A6430-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message