Date: Tue, 5 Sep 2006 17:03:27 -0700 From: "Matthew Jacob" <lydianconcepts@gmail.com> To: "Simon L. Nielsen" <simon@freebsd.org> Cc: rodperson@adelphia.net, Jack Vogel <jfvogel@gmail.com>, current@freebsd.org Subject: Re: LSI 1030 mpt doesn't work if I build a new kernel Message-ID: <7579f7fb0609051703x27f55547o205243c18450349e@mail.gmail.com> In-Reply-To: <20060903061010.GA981@zaphod.nitro.dk> References: <1157154024.835.6.camel@atomizer.opensourcebeef.net> <7579f7fb0609011848p1ecc9d4dh47eb259cc3441ddb@mail.gmail.com> <1157164264.835.14.camel@atomizer.opensourcebeef.net> <7579f7fb0609012009i557cf4baid07ce14c294241ad@mail.gmail.com> <1157210850.939.0.camel@atomizer.opensourcebeef.net> <7579f7fb0609021152p5eb9eec7waca10f78fd0eb5cf@mail.gmail.com> <2a41acea0609022255h32477bf4pa64daf3b136358ff@mail.gmail.com> <20060903061010.GA981@zaphod.nitro.dk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
The attached patch was integrated into -current- this should fix this
issues for U320 chipsets. Let me know if it doesn't.
[-- Attachment #2 --]
? diff_kernel
Index: mpt_cam.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/mpt/mpt_cam.c,v
retrieving revision 1.31
diff -u -r1.31 mpt_cam.c
--- mpt_cam.c 25 Jul 2006 00:59:54 -0000 1.31
+++ mpt_cam.c 5 Sep 2006 23:51:22 -0000
@@ -248,7 +248,7 @@
* If we support target mode, we register a reply handler for it,
* but don't add resources until we actually enable target mode.
*/
- if ((mpt->role & MPT_ROLE_TARGET) != 0) {
+ if (mpt->is_fc && (mpt->role & MPT_ROLE_TARGET) != 0) {
handler.reply_handler = mpt_scsi_tgt_reply_handler;
error = mpt_register_handler(mpt, MPT_HANDLER_REPLY, handler,
&mpt->scsi_tgt_handler_id);
@@ -816,7 +816,7 @@
* If we're in target mode, hang out resources now
* so we don't cause the world to hang talking to us.
*/
- if (mpt->role & MPT_ROLE_TARGET) {
+ if (mpt->is_fc && (mpt->role & MPT_ROLE_TARGET)) {
/*
* Try to add some target command resources
*/
@@ -3166,7 +3166,7 @@
if ((mpt->role & MPT_ROLE_INITIATOR) == 0) {
cpi->hba_misc |= PIM_NOINITIATOR;
}
- if ((mpt->role & MPT_ROLE_TARGET) != 0) {
+ if (mpt->is_fc && (mpt->role & MPT_ROLE_TARGET)) {
cpi->target_sprt =
PIT_PROCESSOR | PIT_DISCONNECT | PIT_TERM_IO;
} else {
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7579f7fb0609051703x27f55547o205243c18450349e>
