Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 11:30:09 -0800 (PST)
From:      Scott Long <scottl@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/aic7xxx aic7xxx.c aic7xxx.h aic7xxx.reg aic7xxx.seq
Message-ID:  <200211301930.gAUJU9xh071431@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
scottl      2002/11/30 11:30:09 PST

  Modified files:
    sys/dev/aic7xxx      aic7xxx.c aic7xxx.h aic7xxx.reg 
                         aic7xxx.seq 
  Log:
  Bring in many bugfixes and changes obtained from formal testing:
  
          aic7xxx.c:
          aic7xxx.h:
          aic7xxx.reg:
          aic7xxx.seq:
                  Bring in the protocol violation handler from the U320
                  driver and replace the NO_IDENT sequencer interrupt code
                  with the PROTO_VIOLATION code.  Support for this code
                  required the following changes:
  
                  SEQ_FLAGS:
                          IDENTIFY_SEEN -> NOT_IDENTIFIED
                          Added NO_CDB_SENT
  
                  SCB_CONTROL:
                          TARGET_SCB == STATUS_RCVD for initiator mode
  
                  scb->flags:
                          Added SCB_TARGET_SCB since we cannot rely on
                          TARGET_SCB as a target/initiator differentiator
                          due to it being overloaded in initiator mode to
                          indicate that status has been received.
  
          aic7xxx.seq:
                  Move data fifo CLRCHN to mesgin_rdptrs which is a safer
                  location for doing this operation.  This also saves a
                  sequencer instruction.
  
          aic7xxx.c:
          aic7xxx.h:
                  Change ahc/ahd_upate_neg_request() to take a "negotiation
                  type" enum that allows us to negotiate:
                          o only if the goal and current parameters differ.
                          o only if the goal is non-async
                          o always - even if the negotiation will be for async.
          aic7xxx.seq:
                  Reset the FIFO whenever a short CDB transfer occurs
                  so that the FIFO contents do not corrupt a future CDB
                  transfer retry.
  
                  Add support for catching the various protocol violations
                  handled by ahc_handle_protocol_violation.
  
                  Reformat some comments.
  
          aic7xxx.c:
          aic7xxx.h:
                  Just for safety, have the aic7xxx driver probe
                  the stack depth.
  
          aic7xxx.c:
          aic7xxx.h:
                  Save and restore stack contents during diagnostics.
                  Some chip variants overwrite stale entries on a
                  stack "pop".
  
                  Don't use 0 to probe the stack depth.  0 is the typical
                  value used to backfill the stack if entries are overwritten
                  on a "pop".
  
          aic7xxx.h:
                  Add a missing typedef.
  
                  Collapse SCB flag entries so they are bit contiguous.
  
                  Add AHD_ULTRA2_XFER_PERIOD for narrow fallback calculations
  
          aic7xxx.c:
                  Don't panic (as a diagnostic to catch bugs) if we decided to
                  force the renegotiation of async even if we believe we are
                  already async.  This should allow us to negotiate async instead
                  of the full user goal rate during startup if bus resets are
                  disabled.
  
                  Add a space to the end of the ahc/ahd_print_devinfo routines
                  so that it behaves as expected by the code that uses it.
  
                  Only force a renegotiation on a selection timeout
                  if the SCB was valid.  Doing otherwise may be dangerous
                  as the connection was not valid for an unknown reason.
  
                  Add additional diagnostic output to ahc_dump_card_state(),
                  and have it use the register pretty printing functions.
  
                  Update ahc_reg_print() to handle a NULL cur_col.
  
                  Add a newline to ahc_dump_card_state() output.
  
                  Bring back "use_ppr".  We need to use_ppr anytime
                  doppr is true or we have non-zero protocol options.
                  The later case was not handled in the recent removal
                  of use_ppr.
  
                  Move a comment and remove a useless clearing of use_ppr.
  
                  Don't disable ENBUSFREE when single stepping on
                  a DT capable controller.  We cannot re-enable unexpected
                  busfree detection, so we must clear BUSFREE on each
                  step instead.
  
                  Correct the lookup of the SCB ID in ahc_handle_proto_error.
  
                  Remove a diagnostic printf.
                  Remove unecessary restoration of the STACK for older
                  chips.
  
  Approved by:    re (blanket)
  
  Revision  Changes    Path
  1.86      +317 -101  src/sys/dev/aic7xxx/aic7xxx.c
  1.43      +44 -7     src/sys/dev/aic7xxx/aic7xxx.h
  1.42      +5 -3      src/sys/dev/aic7xxx/aic7xxx.reg
  1.122     +69 -38    src/sys/dev/aic7xxx/aic7xxx.seq

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?200211301930.gAUJU9xh071431>