{"id":809520,"url":"http://patchwork.ozlabs.org/api/patches/809520/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1504504534-22115-1-git-send-email-ganeshgr@chelsio.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1504504534-22115-1-git-send-email-ganeshgr@chelsio.com>","list_archive_url":null,"date":"2017-09-04T05:55:34","name":"[net-next] cxgb4: Ignore MPS_TX_INT_CAUSE[Bubble] for T6","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"7fed9a7089335869f0c20a6ebef4a14182a619d0","submitter":{"id":69424,"url":"http://patchwork.ozlabs.org/api/people/69424/?format=json","name":"Ganesh Goudar","email":"ganeshgr@chelsio.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/1504504534-22115-1-git-send-email-ganeshgr@chelsio.com/mbox/","series":[{"id":1309,"url":"http://patchwork.ozlabs.org/api/series/1309/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=1309","date":"2017-09-04T05:55:34","name":"[net-next] cxgb4: Ignore MPS_TX_INT_CAUSE[Bubble] for T6","version":1,"mbox":"http://patchwork.ozlabs.org/series/1309/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809520/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809520/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlzcf3XT4z9rvt\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon,  4 Sep 2017 15:56:34 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751628AbdIDF4c (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tMon, 4 Sep 2017 01:56:32 -0400","from stargate.chelsio.com ([12.32.117.8]:22983 \"EHLO\n\tstargate.chelsio.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750805AbdIDF4b (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Mon, 4 Sep 2017 01:56:31 -0400","from localhost (victim.blr.asicdesigners.com [10.193.185.129])\n\tby stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id v845uIOe003050; \n\tSun, 3 Sep 2017 22:56:18 -0700"],"From":"Ganesh Goudar <ganeshgr@chelsio.com>","To":"netdev@vger.kernel.org, davem@davemloft.net","Cc":"nirranjan@chelsio.com, indranil@chelsio.com, venkatesh@chelsio.com,\n\tGanesh Goudar <ganeshgr@chelsio.com>, Casey Leedom <leedom@chelsio.com>","Subject":"[PATCH net-next] cxgb4: Ignore MPS_TX_INT_CAUSE[Bubble] for T6","Date":"Mon,  4 Sep 2017 11:25:34 +0530","Message-Id":"<1504504534-22115-1-git-send-email-ganeshgr@chelsio.com>","X-Mailer":"git-send-email 2.1.0","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"MPS_TX_INT_CAUSE[Bubble] is a normal condition for T6, hence\nignore this interrupt for T6.\n\nSigned-off-by: Ganesh Goudar <ganeshgr@chelsio.com>\nSigned-off-by: Casey Leedom <leedom@chelsio.com>\n---\n drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)","diff":"diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c\nindex 08624db..b0f9aea 100644\n--- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c\n+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c\n@@ -4548,6 +4548,18 @@ static void mps_intr_handler(struct adapter *adapter)\n \t\t{ FRMERR_F, \"MPS Tx framing error\", -1, 1 },\n \t\t{ 0 }\n \t};\n+\tstatic const struct intr_info t6_mps_tx_intr_info[] = {\n+\t\t{ TPFIFO_V(TPFIFO_M), \"MPS Tx TP FIFO parity error\", -1, 1 },\n+\t\t{ NCSIFIFO_F, \"MPS Tx NC-SI FIFO parity error\", -1, 1 },\n+\t\t{ TXDATAFIFO_V(TXDATAFIFO_M), \"MPS Tx data FIFO parity error\",\n+\t\t  -1, 1 },\n+\t\t{ TXDESCFIFO_V(TXDESCFIFO_M), \"MPS Tx desc FIFO parity error\",\n+\t\t  -1, 1 },\n+\t\t/* MPS Tx Bubble is normal for T6 */\n+\t\t{ SECNTERR_F, \"MPS Tx SOP/EOP error\", -1, 1 },\n+\t\t{ FRMERR_F, \"MPS Tx framing error\", -1, 1 },\n+\t\t{ 0 }\n+\t};\n \tstatic const struct intr_info mps_trc_intr_info[] = {\n \t\t{ FILTMEM_V(FILTMEM_M), \"MPS TRC filter parity error\", -1, 1 },\n \t\t{ PKTFIFO_V(PKTFIFO_M), \"MPS TRC packet FIFO parity error\",\n@@ -4579,7 +4591,9 @@ static void mps_intr_handler(struct adapter *adapter)\n \tfat = t4_handle_intr_status(adapter, MPS_RX_PERR_INT_CAUSE_A,\n \t\t\t\t    mps_rx_intr_info) +\n \t      t4_handle_intr_status(adapter, MPS_TX_INT_CAUSE_A,\n-\t\t\t\t    mps_tx_intr_info) +\n+\t\t\t\t    is_t6(adapter->params.chip)\n+\t\t\t\t    ? t6_mps_tx_intr_info\n+\t\t\t\t    : mps_tx_intr_info) +\n \t      t4_handle_intr_status(adapter, MPS_TRC_INT_CAUSE_A,\n \t\t\t\t    mps_trc_intr_info) +\n \t      t4_handle_intr_status(adapter, MPS_STAT_PERR_INT_CAUSE_SRAM_A,\n","prefixes":["net-next"]}