Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2000 10:44:32 -0800 (PST)
From:      "Justin T. Gibbs" <gibbs@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/cam cam_xpt.c src/sys/cam/scsi scsi_message.h src/sys/conf options src/sys/dev/aic7xxx aic7xxx.c aic7xxx.h aic7xxx.reg aic7xxx.seq aic7xxx_freebsd.c aic7xxx_inline.h aic7xxx_pci.c src/sys/dev/aic7xxx/aicasm aicasm_gram.y
Message-ID:  <200010311844.KAA32823@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
gibbs       2000/10/31 10:44:32 PST

  Modified files:
    sys/cam              cam_xpt.c 
  Log:
  Allow async transfer negotiation updates to modify tagging behavior.
  The XPT uses this to prevent tags from being used on parallel SCSI
  interfaces immediately after a bus reset or BDR so that controllers
  have an oportunity to renegotiate without tag messages in the way.
  Somehow this got disabled... the functionality has been here for
  quite some time.
  
  Noticed by: my SCSI bus analyzer
  
  Revision  Changes    Path
  1.99      +2 -4      src/sys/cam/cam_xpt.c


  Modified files:
    sys/cam/scsi         scsi_message.h 
  Log:
  0x03F -> 0x3F for consistancy with the rest of the file.
  
  Revision  Changes    Path
  1.5       +2 -2      src/sys/cam/scsi/scsi_message.h


  Modified files:
    sys/conf             options 
  Log:
  Add the aic7xxx option AHC_DEBUG_SEQUENCER.  This enables some diagnostic
  code in the firmware downloaded to the aic7xxx RISC engine.
  
  Revision  Changes    Path
  1.236     +3 -1      src/sys/conf/options


  Modified files:
    sys/dev/aic7xxx      aic7xxx.c aic7xxx.h aic7xxx.reg 
                         aic7xxx.seq aic7xxx_freebsd.c 
                         aic7xxx_inline.h aic7xxx_pci.c 
  Log:
  aic7xxx.c:
  	Filter incoming transfer negotiation requests to ensure they
  	never exceed the settings specified by the user.
  
  	In restart sequencer attempt to deal with a bug in the aic7895.
  	If a third party reset occurs at just the right time, the
  	stack register can lock up.  When restarting the sequencer
  	after handling the SCSI reset, poke SEQADDR1 before resting
  	the sequencers program counter.
  
  	When something strange happens, dump the card's transaction
  	state via ahc_dump_card_state().  This should aid in debugging.
  
  	Handle request sense transactions via the QINFIFO instead of
  	attaching them to the waiting queue directly.  The waiting
  	queue consumes card SCB resources and, in the pathological case
  	of every target on the bus beating our selection attemps and
  	issuing a check condition, could have caused us to run out
  	of SCBs.  I have never seen this happen, and only early
  	cards with 3 or 4 SCBs had any real chance of ever getting
  	into this state.
  
  	Add additional sequencer interrupt codes to support firmware
  	diagnostics.  The diagnostic code is enabled with the
  	AHC_DEBUG_SEQUENCER kernel option.
  
  	Make it possible to switch into and out of target mode on
  	the fly.  The card comes up by default as an initiator but
  	will switch into target mode as soon as an enable lun operation
  	is performed.  As always, target mode behavior is gated
  	by the AHC_TMODE_ENABLE kernel option so most users will
  	not be affected by this change.
  
  	In ahc_update_target_msg_request(), also issue a new
  	request if the ppr_options have changed.
  
  	Never issue a PPR as a target.  It is forbidden by the spec.
  
  	Correct a bug in ahc_parse_msg() that prevented us from
  	responding to PPR messages as a target.
  
  	Mark SCBs that are on the untagged queue with a flag instead
  	of checking several fields in the SCB to see if the SCB should
  	be on the queue.  This makes it easier for things like automatic
  	request sense requests to be queued without touching the
  	untagged queues even though they are untagged requests.
  
  	When dealing with ignore wide residue messages that occur
  	in the middle of a transfer, reset HADDR, not SHADDR for
  	non-ultra2 chips.  Although SHADDR is where the firmware
  	fetches the ending transfer address for a save data pointers
  	request, it is readonly. Setting HADDR has the side effect
  	of also updating SHADDR.
  
  	Cleanup the output of ahc_dump_card_state() by nulling out the
  	free scb list in the non-paging case.  The free list is only
  	used if we must page SCBs.
  
  	Correct the transmission of cdbs > 12 bytes in length.  When
  	swapping HSCBs prior to notifing the sequencer of the new
  	transaction, the bus address pointer for the cdb must also
  	be recalculated to reflect its new location.  We now defer
  	the calculation of the cdb address until just before queing
  	it to the card.
  
  	When pulling transfer negotiation settings out of scratch
  	ram, convert 5MHz/clock doubled settings to 10MHz.
  
  	Add a new function ahc_qinfifo_requeue_tail() for use by
  	error recovery actions and auto-request sense operations.
  	These operations always occur when the sequencer is paused,
  	so we can avoid the extra expense incurred in the normal
  	SCB queue method.
  
  	Use the BMOV instruction for all single byte moves on
  	controllers that support it.  The bmov instruction is
  	twice as fast as an AND with an immediate of 0xFF as
  	is used on older controllers.
  
  	Correct a few bugs in ahc_dump_card_state().  If we have
  	hardware assisted queue registers, use them to get the
  	sequencer's idea of the head of the queue.  When enumerating
  	the untagged queue, it helps to use the correct index for
  	the queue.
  
  aic7xxx.h:
  
  	Indicate via a feature flag, which controllers can take
  	on both the target and the initiator role at the same time.
  
  	Add the AHC_SEQUENCER_DEBUG flag.
  
  	Add the SCB_CDB32_PTR flag used for dealing with cdbs
  	with lengths between 13 and 32 bytes.
  
  	Add new prototypes.
  
  aic7xxx.reg:
  	Allow the SCSIBUSL register to be written to.  This is
  	required to fix a selection timeout problem on the 7892/99.
  
  	Cleanup the sequencer interrupt codes so that all debugging
  	codes are grouped at the end of the list.
  
  	Correct the definition of the ULTRA_ENB and DISC_DSB locations
  	in scratch ram.  This prevented the driver from properly honoring
  	these settings when no serial eeprom was available.
  
  	Remove an unused sequencer flag.
  
  aic7xxx.seq:
  	Just before a potential select-out, clear the SCSIBUSL
  	register.  Occasionally, during a selection timeout, the
  	contents of the register may be presented on the bus,
  	causing much confusion.
  
  	Add sequencer diagnostic code to detect software and or
  	hardware bugs.  The code attempts to verify most list
  	operations so any corruption is caught before it occurs.
  	We also track information about why a particular reconnection
  	request was rejected.
  
  	Don't clobber the digital REQ/ACK filter setting in SXFRCTL0
  	when clearing the channel.
  
  	Fix a target mode bug that would cause us to return busy
  	status instead of queue full in respnse to a tagged transaction.
  
  	Cleanup the overrun case.  It turns out that by simply
  	butting the chip in bitbucket mode, it will ack any
  	bytes until the phase changes.  This drasticaly simplifies
  	things.
  
  	Prior to leaving the data phase, make sure that the S/G
  	preload queue is empty.
  
  	Remove code to place a request sense request on the waiting
  	queue.  This is all handled by the kernel now.
  
  	Change the semantics of "findSCB".  In the past, findSCB
  	ensured that a freshly paged in SCB appeared on the disconnected
  	list.  The problem with this is that there is no guarantee that
  	the paged in SCB is for a disconnected transation.  We now
  	defer any list manipulation to the caller who usually discards
  	the SCB via the free list.
  
  	Inline some busy target table operations.
  
  	Add a critical section to protect adding an SCB to
  	the disconnected list.
  
  aic7xxx_freebsd.c:
  	Handle changes in the transfer negotiation setting API
  	to filter incoming requests.  No filtering is necessary
  	for "goal" requests from the XPT.
  
  	Set the SCB_CDB32_PTR flag when queing a transaction with
  	a large cdb.
  
  	In ahc_timeout, only take action if the active SCB is
  	the timedout SCB.  This deals with the case of two
  	transactions to the same device with different timeout
  	values.
  
  	Use ahc_qinfifo_requeu_tail() instead of home grown
  	version.
  
  aic7xxx_inline.h:
  	Honor SCB_CDB32_PTR when queuing a new request.
  
  aic7xxx_pci.c:
  	Use the maximum data fifo threshold for all chips.
  
  Revision  Changes    Path
  1.57      +377 -132  src/sys/dev/aic7xxx/aic7xxx.c
  1.29      +37 -16    src/sys/dev/aic7xxx/aic7xxx.h
  1.29      +56 -25    src/sys/dev/aic7xxx/aic7xxx.reg
  1.103     +131 -125  src/sys/dev/aic7xxx/aic7xxx.seq
  1.13      +48 -34    src/sys/dev/aic7xxx/aic7xxx_freebsd.c
  1.5       +12 -2     src/sys/dev/aic7xxx/aic7xxx_inline.h
  1.5       +5 -8      src/sys/dev/aic7xxx/aic7xxx_pci.c


  Modified files:
    sys/dev/aic7xxx/aicasm aicasm_gram.y 
  Log:
  Generate bmov instructions for all move requests.  The driver
  converts these to an equivalent 'and' operation on chips that
  don't support this opcode.
  
  Revision  Changes    Path
  1.12      +4 -4      src/sys/dev/aic7xxx/aicasm/aicasm_gram.y



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010311844.KAA32823>