]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: thunderx: Fix for Qset error due to CQ full
authorSunil Goutham <sgoutham@cavium.com>
Wed, 24 Feb 2016 11:10:50 +0000 (16:40 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 21:25:34 +0000 (16:25 -0500)
commit4c0b6eaf373a5323f03a3a20c42fc435715b073d
treeeb2225b50321dba238b886d27081e882811c75c3
parentf09cf4b7832d029fb22d8f476eac12fc27dde61f
net: thunderx: Fix for Qset error due to CQ full

On Thunderx pass 1.x and pass2 due to a HW errata default CQ
DROP_LEVEL of 0x80 is not sufficient to avoid CQ_WR_FULL Qset
error when packets are being received at >20Mpps resulting in
complete stall of packet reception.

This patch will configure it to 0x100 which is what is expected
by HW on Thunderx. On future passes of thunderx and other chips
HW default/reset value will be 0x100 or higher hence not overwritten.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic.h
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/nic_reg.h