Errors during probe cause inifinite loop in sbp
Hidetoshi Shimokawa
simokawa at sat.t.u-tokyo.ac.jp
Mon May 26 23:25:55 PDT 2003
At Mon, 12 May 2003 10:08:20 -0700 (PDT),
Chuck McCrobie wrote:
>
> [1 <text/plain; us-ascii (7bit)>]
> Please find attached the log file from a boot with the
> PowerFile changer. One drive in the changer does not
> support the "12 21 80 00 ff 00" command that is sent
> during XPT probing.
>
> When the error comes back, it appears sbp endlessly
> resends the command.
>
> Attached /var/log/message output.
>
> I managed to get the changer working by adding a
> CAM_QUIRK_NOSERIAL to the cam_xpt.c file, but this
> seems to be quite a hack.
>
> I can try debugging code, etc. since I still have
> access to the PowerFile.
Can you try this patch?
Index: sbp.c
===================================================================
RCS file: /pub/FreeBSD-CVS/src/sys/dev/firewire/sbp.c,v
retrieving revision 1.51
diff -u -r1.51 sbp.c
--- sbp.c 12 May 2003 00:42:28 -0000 1.51
+++ sbp.c 27 May 2003 06:21:54 -0000
@@ -1090,7 +1090,7 @@
xfer = sbp_write_cmd(sdev, FWTCODE_WREQQ, 0x04);
if (xfer == NULL)
return;
- if (sdev->status == SBP_DEV_ATTACHED)
+ if (sdev->status == SBP_DEV_ATTACHED || sdev->status == SBP_DEV_PROBE)
xfer->act.hand = sbp_agent_reset_callback;
else
xfer->act.hand = sbp_do_attach;
/\ Hidetoshi Shimokawa
\/ simokawa at sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html
More information about the freebsd-firewire
mailing list