Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Stopgap measure for PR kern/12762: cut the number...
details: https://anonhg.NetBSD.org/src/rev/bddaad67e1bf
branches: trunk
changeset: 509144:bddaad67e1bf
user: bouyer <bouyer%NetBSD.org@localhost>
date: Fri Apr 27 14:49:11 2001 +0000
description:
Stopgap measure for PR kern/12762: cut the number of openings per device
to 16 or 4 (depending on capabilities of adapter), as it was before
thorpej_scsipi integration
Waiting feedback to known whenever the problem with openings set to AHC_SCB_MAX
existed before.
diffstat:
sys/dev/ic/aic7xxx.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 125ca05ef00a -r bddaad67e1bf sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c Fri Apr 27 14:21:15 2001 +0000
+++ b/sys/dev/ic/aic7xxx.c Fri Apr 27 14:49:11 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic7xxx.c,v 1.71 2001/04/26 16:56:53 bouyer Exp $ */
+/* $NetBSD: aic7xxx.c,v 1.72 2001/04/27 14:49:11 bouyer Exp $ */
/*
* Generic driver for the aic7xxx based adaptec SCSI controllers
@@ -1378,8 +1378,16 @@
{
ahc->sc_adapter.adapt_dev = &ahc->sc_dev;
ahc->sc_adapter.adapt_nchannels = (ahc->features & AHC_TWIN) ? 2 : 1;
- ahc->sc_adapter.adapt_openings = AHC_SCB_MAX;
- ahc->sc_adapter.adapt_max_periph = AHC_SCB_MAX;
+ if (ahc->flags & AHC_PAGESCBS) {
+ ahc->sc_adapter.adapt_openings = AHC_SCB_MAX;
+ ahc->sc_adapter.adapt_max_periph = 16;
+ } else {
+ ahc->sc_adapter.adapt_openings = ahc->scb_data->maxhscbs;
+ if (ahc->scb_data->maxhscbs >= 16)
+ ahc->sc_adapter.adapt_max_periph = 16;
+ else
+ ahc->sc_adapter.adapt_max_periph = 4;
+ }
ahc->sc_adapter.adapt_ioctl = ahc_ioctl;
ahc->sc_adapter.adapt_minphys = ahcminphys;
ahc->sc_adapter.adapt_request = ahc_action;
Home |
Main Index |
Thread Index |
Old Index