Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp980348ybx; Thu, 31 Oct 2019 04:02:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5UI49m4PPJL2So3tr4tCdCUxWFj+GHtp4zB/DNZg8I90jUXUZgnfADYWzfsLJBDn92kFm X-Received: by 2002:a05:6402:120d:: with SMTP id c13mr5230969edw.264.1572519745429; Thu, 31 Oct 2019 04:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519745; cv=none; d=google.com; s=arc-20160816; b=OFQhW39A+8RrKqXrwXnF7E8GQHouDPtwMKj2i3O3c5EItWbr1jq7ABP9X3287/z2pc iyiVz0iZ+NxxOt6G6/HZu5SE/9C/LBOCaDQ8nQ/D10vyi2bnzzsbhGSTsdKtIC9qGBcM QtNHsFokLYDuU5tnY0n+cnOFLaTZkW4TejBaF4qzRiA8Sy/+QDjR9lyo1KBVrzBS7Xl9 w4aLtD3iM6OTOfT0fIKvD3/u7Fb2rFyuiq1i8ATOZ0hjNX8/5ayfiY5D405QgAoiYHpp Op3Qc+kiGdf0CPB72eoomhmN+F83R+QMm7FiHgPtvRXtc7PDxCiX0Dfi7wG4nypYYyfM HtBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=A6NaiGuHHsm3m1UlhfRA4dvIUkEb0CuH/sZJTKKHhjI=; b=udOc550OhGdqyJa1RxXGEjhSRBZPIbYMa1GLs2S9C4Y8zakydW+K76ro4tWOWpD2Vn Peiz2FNkpxYOzOQZHORIkFwEvYWyp6ujdm+o1k5ggpIl6vGUc+x2i/3MMo1wg4dA2Nft 6eUTcNWEFOakYAEjVsxx6+skG34pe55t7GWHRTmfksQuqG9MQQNAF+hjhSIugxjX5KUr UQaT/QoWQHNsDGlXvjtAO1MQQ1E02KztM/acIeYohd06zw56cdQxzGcxBbBkxwtg6Ub/ ZujVn07Tv53Jvz/3gOZzZKK3TlJNK9RJLVukP5w8LriSVYj6j+VQ61DMX2v09kae7LVk ZNag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=DKM3PU3o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si4247206edk.60.2019.10.31.04.02.01; Thu, 31 Oct 2019 04:02:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=DKM3PU3o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727557AbfJaLBO (ORCPT + 99 others); Thu, 31 Oct 2019 07:01:14 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:59424 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727346AbfJaLBD (ORCPT ); Thu, 31 Oct 2019 07:01:03 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id A3C9FC08B2; Thu, 31 Oct 2019 11:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572519662; bh=ntn5h+EtiIr26cxuzm1ZrBPes0SSBYvLTZygjleUGzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=DKM3PU3osEKlPg/G6gOJfS+aTyS2/t/N8kW6/jCSb1PquRB22I5cHaY8TgiaGjLOU tn1Ge6ZgjB3oUMJlWeV97ZOOSAnBjJa5J1+MbtFkDnbf1RD/yoFuc/mm1Go8flCqj2 IxGQ7VnhG9MlaY3XyNjCDSpQOK38MZEX2ZQeb2krvD3gpUYS3WQ0WNfQRukNV0umdk z7aHziG0TqsLa6wwcc07wYmPDRs/7k+46f42+6CDy8B+uEJNnrU+4SLEtvRpeWTc8P eAez1tH7mCcZGz0++rIXYjIEdQzNKUHsEiUCYowE0bzn9KGRmy7gWkHvDzkN6DiVx8 gy8EvXR3VQ4Lg== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 65F90A0083; Thu, 31 Oct 2019 11:01:00 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net v2 09/10] net: stmmac: xgmac: Disable MMC interrupts by default Date: Thu, 31 Oct 2019 12:00:47 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MMC interrupts were being enabled, which is not what we want because it will lead to a storm of interrupts that are not handled at all. Fix it by disabling all MMC interrupts for XGMAC. Fixes: b6cdf09f51c2 ("net: stmmac: xgmac: Implement MMC counters") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/stmicro/stmmac/mmc_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/mmc_core.c b/drivers/net/ethernet/stmicro/stmmac/mmc_core.c index a223584f5f9a..252cf48c5816 100644 --- a/drivers/net/ethernet/stmicro/stmmac/mmc_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/mmc_core.c @@ -176,6 +176,7 @@ #define MMC_XGMAC_RX_PKT_SMD_ERR 0x22c #define MMC_XGMAC_RX_PKT_ASSEMBLY_OK 0x230 #define MMC_XGMAC_RX_FPE_FRAG 0x234 +#define MMC_XGMAC_RX_IPC_INTR_MASK 0x25c static void dwmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode) { @@ -333,8 +334,9 @@ static void dwxgmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode) static void dwxgmac_mmc_intr_all_mask(void __iomem *mmcaddr) { - writel(MMC_DEFAULT_MASK, mmcaddr + MMC_RX_INTR_MASK); - writel(MMC_DEFAULT_MASK, mmcaddr + MMC_TX_INTR_MASK); + writel(0x0, mmcaddr + MMC_RX_INTR_MASK); + writel(0x0, mmcaddr + MMC_TX_INTR_MASK); + writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_RX_IPC_INTR_MASK); } static void dwxgmac_read_mmc_reg(void __iomem *addr, u32 reg, u32 *dest) -- 2.7.4