Skip site navigation (1)Skip section navigation (2)
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
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000201c0e3b3$e3e59920$3301a8c0>