Author: kadesai
Date: Wed Dec 26 10:41:53 2018
New Revision: 342533
URL: https://svnweb.freebsd.org/changeset/base/342533

Log:
  Enable atomic type descriptor support only for Sea & Aero cards
  
  Enable atomic type descriptor support only for Sea & Aero cards,
  due to HW errata this atomic descriptor support has to be disabled
  on Ventura cards.
  
  Submitted by: Sreekanth Reddy <sreekanth.re...@broadcom.com>
  Reviewed by:  Kashyap Desai <kashyap.de...@broadcom.com>
  Approved by:  ken
  MFC after:  3 days
  Sponsored by:   Broadcom Inc

Modified:
  head/sys/dev/mpr/mpr.c

Modified: head/sys/dev/mpr/mpr.c
==============================================================================
--- head/sys/dev/mpr/mpr.c      Wed Dec 26 10:41:17 2018        (r342532)
+++ head/sys/dev/mpr/mpr.c      Wed Dec 26 10:41:53 2018        (r342533)
@@ -624,8 +624,9 @@ mpr_iocfacts_allocate(struct mpr_softc *sc, uint8_t at
                        sc->eedp_enabled = TRUE;
                if (sc->facts->IOCCapabilities & MPI2_IOCFACTS_CAPABILITY_TLR)
                        sc->control_TLR = TRUE;
-               if (sc->facts->IOCCapabilities &
-                   MPI26_IOCFACTS_CAPABILITY_ATOMIC_REQ)
+               if ((sc->facts->IOCCapabilities &
+                   MPI26_IOCFACTS_CAPABILITY_ATOMIC_REQ) &&
+                   (sc->mpr_flags & MPR_FLAGS_SEA_IOC))
                        sc->atomic_desc_capable = TRUE;
 
                mpr_resize_queues(sc);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to