PERFORCE change 164296 for review

Alexander Motin mav at FreeBSD.org
Sat Jun 13 21:34:24 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164296

Change 164296 by mav at mav_mavbook on 2009/06/13 21:33:25

	Fix probing when PM supported, but absent.
	Reduce PM reset timeout and retries.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_xpt.c#17 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_xpt.c#17 (text+ko) ====

@@ -349,13 +349,13 @@
 	switch (softc->action) {
 	case PROBE_RESET:
 		cam_fill_ataio(ataio,
-		      1,
+		      0,
 		      probedone,
 		      /*flags*/CAM_DIR_NONE,
 		      MSG_SIMPLE_Q_TAG,
 		      /*data_ptr*/NULL,
 		      /*dxfer_len*/0,
-		      10 * 1000);
+		      (done_ccb->ccb_h.target_id == 15 ? 3 : 15) * 1000);
 		ata_reset_cmd(ataio);
 		break;
 	case PROBE_IDENTIFY:
@@ -1202,7 +1202,8 @@
 		 * Free the current request path- we're done with it.
 		 */
 		xpt_free_path(work_ccb->ccb_h.path);
-		if (scan_info->counter == 15)
+		if (scan_info->counter == 15 &&
+		    work_ccb->ccb_h.ppriv_field1 != 0)
 			scan_info->found = work_ccb->ccb_h.ppriv_field1;
 take_next:
 		/* Take next device. Wrap from 15 (PM) to 0. */


More information about the p4-projects mailing list