diff options
author | jkim <jkim@FreeBSD.org> | 2009-12-08 05:35:51 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-12-08 05:35:51 +0000 |
commit | 8cefbec982ae09f024123a66ac5f353ca57f3b09 (patch) | |
tree | 2b81931df56bc04c4f4464dc7731684c91b22a61 /sys/dev/aac/aac_cam.c | |
parent | 1728f779ed4215aeeb3b80f921a21c1c070d3678 (diff) | |
download | FreeBSD-src-8cefbec982ae09f024123a66ac5f353ca57f3b09.zip FreeBSD-src-8cefbec982ae09f024123a66ac5f353ca57f3b09.tar.gz |
- Try pre-allocating all FIBs upfront. Previously we tried pre-allocating
128 FIBs first and allocated more later if necessary. Remove now unused
definitions from the header file[1].
- Force sequential bus scanning. It seems parallel scanning is in fact
slower and causes more harm than good[1]. Adjust a comment to reflect that.
PR: kern/141269
Submitted by: Alexander Sack (asack at niksun dot com)[1]
Reviewed by: scottl
Diffstat (limited to 'sys/dev/aac/aac_cam.c')
-rw-r--r-- | sys/dev/aac/aac_cam.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index 5755f0d..37f7c63 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -260,8 +260,11 @@ aac_cam_action(struct cam_sim *sim, union ccb *ccb) cpi->hba_inquiry = PI_WIDE_16; cpi->target_sprt = 0; - /* Resetting via the passthrough causes problems. */ - cpi->hba_misc = PIM_NOBUSRESET; + /* + * Resetting via the passthrough or parallel bus scan + * causes problems. + */ + cpi->hba_misc = PIM_NOBUSRESET | PIM_SEQSCAN; cpi->hba_eng_cnt = 0; cpi->max_target = camsc->inf->TargetsPerBus; cpi->max_lun = 8; /* Per the controller spec */ |