enic: workaround A0 erratum
authorScott Feldman <scofeldm@cisco.com>
Thu, 3 Sep 2009 17:01:58 +0000 (17:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Sep 2009 03:19:10 +0000 (20:19 -0700)
commit4badc385d1a9e140ad0992537237fc22211adad0
tree5edf87f3240b4ad5c999e025c47d379f09f91296
parent27e6c7d33835e7f347cdfb5025766b7d9a6596d1
enic: workaround A0 erratum

A0 revision ASIC has an erratum on the RQ desc cache on chip where the
cache can become corrupted causing pkt buf writes to wrong locations.  The s/w
workaround is to post a dummy RQ desc in the ring every 32 descs, causing a
flush of the cache.  A0 parts are not production, but there are enough of
these parts in the wild in test setups to warrant including workaround.  A1
revision ASIC parts fix erratum.

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/enic/enic_main.c
drivers/net/enic/vnic_dev.c
drivers/net/enic/vnic_dev.h
drivers/net/enic/vnic_rq.h