提交 006394a7 编写于 作者: S Sunil Goutham 提交者: David S. Miller

net: thunderx: Set CQ timer threshold properly

Properly set CQ timer threshold and also set it to 2us.
With previous incorrect settings it was set to 0.5us which is too less.
Signed-off-by: NSunil Goutham <sgoutham@cavium.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a7b1f535
...@@ -120,10 +120,9 @@ ...@@ -120,10 +120,9 @@
* Calculated for SCLK of 700Mhz * Calculated for SCLK of 700Mhz
* value written should be a 1/16th of what is expected * value written should be a 1/16th of what is expected
* *
* 1 tick per 0.05usec = value of 2.2 * 1 tick per 0.025usec
* This 10% would be covered in CQ timer thresh value
*/ */
#define NICPF_CLK_PER_INT_TICK 2 #define NICPF_CLK_PER_INT_TICK 1
/* Time to wait before we decide that a SQ is stuck. /* Time to wait before we decide that a SQ is stuck.
* *
......
...@@ -592,7 +592,7 @@ void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, ...@@ -592,7 +592,7 @@ void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs,
/* Set threshold value for interrupt generation */ /* Set threshold value for interrupt generation */
nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_THRESH, qidx, cq->thresh); nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_THRESH, qidx, cq->thresh);
nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_CFG2, nicvf_queue_reg_write(nic, NIC_QSET_CQ_0_7_CFG2,
qidx, nic->cq_coalesce_usecs); qidx, CMP_QUEUE_TIMER_THRESH);
} }
/* Configures transmit queue */ /* Configures transmit queue */
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
#define CMP_QSIZE CMP_QUEUE_SIZE2 #define CMP_QSIZE CMP_QUEUE_SIZE2
#define CMP_QUEUE_LEN (1ULL << (CMP_QSIZE + 10)) #define CMP_QUEUE_LEN (1ULL << (CMP_QSIZE + 10))
#define CMP_QUEUE_CQE_THRESH 0 #define CMP_QUEUE_CQE_THRESH 0
#define CMP_QUEUE_TIMER_THRESH 220 /* 10usec */ #define CMP_QUEUE_TIMER_THRESH 80 /* ~2usec */
#define RBDR_SIZE RBDR_SIZE0 #define RBDR_SIZE RBDR_SIZE0
#define RCV_BUF_COUNT (1ULL << (RBDR_SIZE + 13)) #define RCV_BUF_COUNT (1ULL << (RBDR_SIZE + 13))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册