From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9610271736.AA20158@feral.com> Date: Sun, 27 Oct 96 09:36:06 PST From: Matthew Jacob Subject: Re: SCSI driver times out on UDB? ---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Content-Lines: 86 >From axp-list-request@redhat.com Sun Oct 27 06:27:20 1996 > > >> So, my idea was to share the SCSI disk in my PC with the UDB. The setup >> would be something like >> >> >> _________________ ____________________ >> I V I >> NCR NCR disk >> UDB Pentium > > I doubt that this will work. None of the drivers currently support >having more than one initiator on the bus at one time. > Think again, billybob: ----- Begin Included Message ----- >From mjacob Sat Oct 26 17:50:56 1996 To: aic7xxx@freebsd.org Subject: AIC7XXX: 2 problems (solved?) with latest set (4.0/3.2/4.0) Bcc: emartini@dvsystems.com reply-to: mjacob@feral.com Content-Type: X-sun-attachment Content-Length: 4509 Two issues came up for me- I don't know if anyone else had seen it. 1. Recent change that made BUSY status an error. Actually, in multi-initiator environments, BUSY is quite common, so I've made command-line patch to turn the behaviour back to the old behaviour (infinite retry). This seemed easier than having to dork with sd.c. 2. Wierdness with USE_DEFAULT && Ultra (2940AU) board. I was quite startled to see that the brand new board I had just bought (2940 Ultra PCI kit) didn't have disconnects turned on. I looked and saw that USE_DEFAULT is set for this particular chip type, but it isn't ever cleared in the case that the board has an SEEPROM. This allows sync mode to be negotiated but not disconnect. Bizaare. At any rate, I think that if a board has an SEEPROM *and* BIOS enabled, it seems reasonable to turn off the USE_DEFAULTS flag. (patched attached below) -------------------------------------------------------------- So, with the above changes made, I'm happily beating on the same disk from two systems w/o each other getting hot and bothered like they had been: System A System B 2940 Ultra 2940A Ultra Initiator ID 7 Initiator ID 6 | | | | Seagate @ ID 1 CDROM@ ID 5 CDROM @ ID 2 | DAT @ ID 4 | | | ----------------- DEC DSP 3150 @ID 0 ---- System A has (hand selected lilo boot): Extended Partitions 5 && 6 System B has (hand selected lilo boot): Extended Partitions 7 && 8 Cool... anyone have a suggestion as to how to modify lilo so that one system will have a root on one partition and one system have a root on another? ----- End Included Message ----- ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: aic7xxx.c.patch X-Sun-Content-Lines: 80 *** aic7xxx.c.save Sat Oct 26 14:54:23 1996 --- aic7xxx.c Sat Oct 26 17:19:09 1996 *************** *** 950,955 **** --- 950,956 ---- */ static unsigned int aic7xxx_extended = 0; /* extended translation on? */ static unsigned int aic7xxx_no_reset = 0; /* no resetting of SCSI bus */ + static unsigned int aic7xxx_bsyretry = 0; /* infinite busy retries */ static int aic7xxx_irq_trigger = -1; /* * -1 use board setting * 0 use edge triggered *************** *** 980,985 **** --- 981,987 ---- { "no_reset", &aic7xxx_no_reset }, { "irq_trigger", &aic7xxx_irq_trigger }, { "ultra", &aic7xxx_enable_ultra }, + { "bsyretry", &aic7xxx_bsyretry }, { NULL, NULL } }; *************** *** 2843,2850 **** break; case BUSY: - printk(KERN_WARNING "scsi%d: Target busy, TCL=0x%x.\n", - p->host_no, scb->target_channel_lun); if (!aic7xxx_error(cmd)) { /* The error code here used to be DID_BUS_BUSY, --- 2845,2850 ---- *************** *** 2857,2863 **** * that will eventually lead to a reset or abort of some * sort instead of an endless loop. */ ! aic7xxx_error(cmd) = DID_RETRY_COMMAND; } break; --- 2857,2878 ---- * that will eventually lead to a reset or abort of some * sort instead of an endless loop. */ ! /* ! * Umm- mjacob@feral.com disputes this notion- actually ! * in many multi-initiator environments you *want* ! * to both infinitely retry BUSY *AND* not get too ! * chatty about it. ! */ ! if (aic7xxx_bsyretry) { ! aic7xxx_error(cmd) = DID_BUS_BUSY; ! } else { ! aic7xxx_error(cmd) = DID_RETRY_COMMAND; ! printk(KERN_WARNING "scsi%d: Target Busy, TCL=0x%x.\n", ! p->host_no, scb->target_channel_lun); ! } ! } else { ! printk(KERN_WARNING "scsi%d: Target Busy, TCL=0x%x.\n", ! p->host_no, scb->target_channel_lun); } break; *************** *** 4138,4143 **** --- 4153,4164 ---- } else { + /* + * If we've got an SEEPROM and the BIOS isn't + * disabled we can figure out what, we can + * figure out what settings to use. + */ + config->flags &= ~USE_DEFAULTS; scsi_conf = 0; if (sc.adapter_control & CFRESETB) scsi_conf |= RESET_SCSI; -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null