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>
This commit is contained in:
committed by
David S. Miller
parent
27e6c7d338
commit
4badc385d1
@ -349,6 +349,25 @@ int vnic_dev_fw_info(struct vnic_dev *vdev,
|
||||
return err;
|
||||
}
|
||||
|
||||
int vnic_dev_hw_version(struct vnic_dev *vdev, enum vnic_dev_hw_version *hw_ver)
|
||||
{
|
||||
struct vnic_devcmd_fw_info *fw_info;
|
||||
int err;
|
||||
|
||||
err = vnic_dev_fw_info(vdev, &fw_info);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
if (strncmp(fw_info->hw_version, "A1", sizeof("A1")) == 0)
|
||||
*hw_ver = VNIC_DEV_HW_VER_A1;
|
||||
else if (strncmp(fw_info->hw_version, "A2", sizeof("A2")) == 0)
|
||||
*hw_ver = VNIC_DEV_HW_VER_A2;
|
||||
else
|
||||
*hw_ver = VNIC_DEV_HW_VER_UNKNOWN;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size,
|
||||
void *value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user