Date: Wed, 23 May 2001 20:11:52 +0200 From: "Clemens Hermann" <haribeau@gmx.de> To: <freebsd-scsi@FreeBSD.ORG> Cc: <msmeyer@gmx.net>, <msmith@freebsd.org> Subject: quick mly hack Message-ID: <000201c0e3b3$e3e59920$3301a8c0@pcch>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] *** backup/mly_cam.c Wed May 23 16:42:08 2001 --- patch/mly_cam.c Wed May 23 19:11:23 2001 *************** *** 243,248 **** --- 243,258 ---- bus = cam_sim_bus(sim); target = csio->ccb_h.target_id; + #define MLY_ESGSHV + #define MLY_ESGSHV_TARGET 6 + #define MLY_ESGSHV_LUN 0 + + #ifdef MLY_ESGSHV + /* If this is the ID of the backplane, ignore command */ + if (csio->ccb_h.target_id == MLY_ESGSHV_TARGET && + ccb->ccb_h.target_lun == MLY_ESGSHV_LUN) break; + #endif + debug(2, "XPT_SCSI_IO %d:%d:%d", bus, target, ccb->ccb_h.target_lun); /* check for I/O attempt to a protected device */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000201c0e3b3$e3e59920$3301a8c0>
