Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp236772rdh; Thu, 23 Nov 2023 02:34:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGy+fsNy2jcrA599EFYOJjpjoL/6NxUwO6fhDdV6RfB387n9FiMrFsBi9wXMx4zNAA9kPtj X-Received: by 2002:a17:90a:ca08:b0:283:967c:4e6 with SMTP id x8-20020a17090aca0800b00283967c04e6mr3256782pjt.12.1700735698346; Thu, 23 Nov 2023 02:34:58 -0800 (PST) Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f22-20020a17090ace1600b0028525ab257fsi1053543pju.8.2023.11.23.02.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 02:34:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bj6KTTUn; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B0D5F807216D; Thu, 23 Nov 2023 02:34:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344575AbjKWKek (ORCPT + 99 others); Thu, 23 Nov 2023 05:34:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjKWKei (ORCPT ); Thu, 23 Nov 2023 05:34:38 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 617C21B6; Thu, 23 Nov 2023 02:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700735684; x=1732271684; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=xOYSn7FjOEGSTjCuLJ+SQmSf6Gts0q3oDx67X+o0DxE=; b=Bj6KTTUnhTYZwVI8waC7tIBkJW9pTTG8PWWBVXXMitDUfrC61hNV7rcs 93RIdVpy0dKKLuD/bpaM847cBAAGKziFV9MLh9KBQXiSmzJ/vfizqJRNJ fSs5FDFykYNOafDbWQZ7DGFHgtBWqMFsCu65ZyP57ONgpDoVc5uLMBamB Mcm0HcdOZHYorZKGNZL55k8/aU2Fg0cEDNiInRosWd1e+0i9fC4RJc3UK 2VcejYkO5++zf+LlA6p+WSotCJAeKG2UBIs7IJWE86+X0IjSGrlydSrGW UUj+lC8et5KyuqXWWBJxSX4qEXbTsCFKLkxegxjfhM6hfHGKSHfII/xU0 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="377269874" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="377269874" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 02:34:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="770954148" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="770954148" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 Nov 2023 02:34:43 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 23 Nov 2023 02:34:42 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 23 Nov 2023 02:34:42 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Thu, 23 Nov 2023 02:34:42 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 23 Nov 2023 02:34:41 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XqCSB/60vkk5vV3UDkIqUGyvCm3fSPBE8pkcwtaNzQKvdUp1RtK5zhe0/55tljYoImQwUFKFVuo+sI/MoTgMbqiMFMhw+YOjb108DZupcrhCHGuhwOSQ5eo1LDTyaVvouFnFFGJY5zc3HhPqmgIqi+DctB0tDpFSkQ1+AwpR90oMm26xLs3mn3Qn/V56A/X7CFYMyavmCL461IIDLZx/moYWiuxirG6u+v/BSaeOOTX7uXizEGCLtJtM9yANiQ7vaZjQLmP/leHS0fofnHus9Xlwn0H6WUyw4JVwPMy1xnfTsCmbEcmVC8sgHhLMEnd5NbaOgDStPIMUnMNbsjT9UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U587A9z2BqkBkfMMlZJCrqOf2mwKk2wr3nD4wJXzYjk=; b=lA6r5QYc3ePhhEvYCB5PynYD3FzkE+fZW/s9IZjXf/kq5sppV2H2P517D0jO1BXXpzg6YhaaMGqlNEtpBGg/pK8lruGixEPnoPY8cygMnxDGgya/kRIr/Iqu1IOEBldJpJtZsx2st953YCL34I2sotunh/eASvLGTdLrMrBqPKUPh0XrAyYpcB41jicTF2p4b3W9X1XEch7zu3Vupq7LiQ7prC3i+TfWwGzVjHKsOKTISS26Qmf5q3Cjs2kd0kghGemO3yM4WcA58KRzqrjCjDJH9mM3Ymy5x9CM4i5dfSIQCi94KbjWwulUmtZ+/k9D39t4D/z412WXqP9EraIp0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5776.namprd11.prod.outlook.com (2603:10b6:303:183::9) by SA3PR11MB7436.namprd11.prod.outlook.com (2603:10b6:806:307::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 10:34:39 +0000 Received: from MW4PR11MB5776.namprd11.prod.outlook.com ([fe80::49fc:ba56:787e:1fb3]) by MW4PR11MB5776.namprd11.prod.outlook.com ([fe80::49fc:ba56:787e:1fb3%7]) with mapi id 15.20.7025.019; Thu, 23 Nov 2023 10:34:39 +0000 Message-ID: Date: Thu, 23 Nov 2023 11:34:32 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v1] net: stmmac: xgmac: Disable FPE MMC interrupts Content-Language: en-US To: Furong Xu <0x1207@gmail.com> CC: "David S. Miller" , Alexandre Torgue , Jose Abreu , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Joao Pinto , Simon Horman , , , , , , References: <20231123093538.2216633-1-0x1207@gmail.com> <2c2d0641-002c-4ce6-9df4-bc633e602721@intel.com> <20231123182405.00006454@gmail.com> From: Wojciech Drewek In-Reply-To: <20231123182405.00006454@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0175.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b4::9) To MW4PR11MB5776.namprd11.prod.outlook.com (2603:10b6:303:183::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR11MB5776:EE_|SA3PR11MB7436:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b11b7a4-c81d-4559-bf4b-08dbec0fcc23 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UXOJxgirg+Gj1KlxEF/PtXRNh72smbeUE10gBgseCD3H9VY26k2Nf1G3J5eGchdjzAi+lf2TzHYeC+/VfkQQYzj9Neg630Wl1vR+aYCTQp3LqUsE836kT0S6Bsud9YIMZHqIW26ZwPmN8PGuZQ4cq06OkEVS30uBpHo/TYBMarV6SuDi2qMTyw+ywqbdW88ATU9a3H9UrOHhUrgqklNcJ2PQLLFMIk1d8nIxGx4Ub1R9qGGxRlvDkAq1TIhNyGgIWKhJQ5lno2TVvxTXPh14M6W4fKIwVVR2RWyAMhKprGZOT3n0WT3D1WNXJDVHAI+cjMl1DBnfanc0/eiKpIXIBNvkjqhnyf9FfOVwrT09JuqsrMkjkCvwaDj5Kua0Ulsj96nafc6cO38XNPezp+i7MZjumhLlY/1vDxN/UYaHbYwBB/7tQykPK9FO786+kSQz9ONwOC2bmkbmqptQCWZ95DV0kOQfQrDiVBPUBh/tuYk9j4kQQZ+skOKUSKzCo3vSv4dRRKiWoAFDyjslv6+e4cO4XrGsFSxgtxs6keID2qzzLy3WdTQUVMe6PID1ynO/zthwEC5vs9dz2ilkqwcO8W9PuEQcG7KB6w4iGI2ceH0vbY+XZ6fSTTI7dO+zCReEEBQtO/V2RYzL7j0m6pcR0w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5776.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(396003)(376002)(366004)(39860400002)(136003)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(5660300002)(44832011)(7416002)(2906002)(4326008)(8676002)(41300700001)(8936002)(54906003)(66556008)(66476007)(316002)(66946007)(6916009)(6666004)(478600001)(6506007)(6486002)(53546011)(31686004)(26005)(2616005)(6512007)(38100700002)(83380400001)(82960400001)(86362001)(36756003)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Y25RRVlMc2ExYXdiK3FKQjVBeHhxVlNhVUJQRGxLdWhlTVNTeHM1cEhUT1Z4?= =?utf-8?B?TXlGY05Id0taVnQ4Wk13NWdnSHg3Vk5uTWZOcm9Dck1jdE5pZlRRNFhJRzVD?= =?utf-8?B?M1M3alJpWnFsUFpROVRHWXJqQjY5Y3NLaHVKKzBkNzdPdVlLbHBVWnNhd25Q?= =?utf-8?B?b3FQditONXM3WlB1ZGZ5UWRiL1dVRHkyeGFVcGZVOUFVbE5zcnc1VWhsWFlT?= =?utf-8?B?OWJwbzBvUEtYOWJmZjRRL3V3alJMWmhoRU9IS0Y4cysrTGxSMjdocnJIbGs4?= =?utf-8?B?SFl3dEtDNzQ2RGRLdUdjSi9wckNFNGxaU2hhQXNmR3B2eklpR2ZkKzFmTkoy?= =?utf-8?B?SWxBT1NTMWZCWXNMZmVwZitDaUJKK00ra0lZaU1oQzZmTlVmNmFXWExvSHh5?= =?utf-8?B?RklHWl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d-4559-bf4b-08dbec0fcc23 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5776.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 10:34:39.8952 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: quwIYAf3iaqf/oW8MRS8UTbHthXY2N4uUBHIJvrFQZr7ePWDa1tuyshJVPBeLQPX4l07OXKy+TNd3Oegqhc0ZjvujtTecsDAcGvU5vM8WQ0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7436 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 02:34:55 -0800 (PST) On 23.11.2023 11:24, Furong Xu wrote: > On Thu, 23 Nov 2023 11:17:17 +0100 > Wojciech Drewek wrote: > >> On 23.11.2023 10:35, Furong Xu wrote: >>> Commit aeb18dd07692 ("net: stmmac: xgmac: Disable MMC interrupts >>> by default") leaves the FPE(Frame Preemption) MMC interrupts enabled. >>> Now we disable FPE TX and RX interrupts too. >> >> Hi, >> Thanks for the patch, one question: >> Why do we have to disable them? >> > > The original commit aeb18dd07692 by Jose Abreu says: > > 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. I would add this information the commit message. > >>> >>> Fixes: aeb18dd07692 ("net: stmmac: xgmac: Disable MMC interrupts by default") >>> Signed-off-by: Furong Xu <0x1207@gmail.com> >>> --- >>> drivers/net/ethernet/stmicro/stmmac/mmc_core.c | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/drivers/net/ethernet/stmicro/stmmac/mmc_core.c b/drivers/net/ethernet/stmicro/stmmac/mmc_core.c >>> index ea4910ae0921..cdd7fbde2bfa 100644 >>> --- a/drivers/net/ethernet/stmicro/stmmac/mmc_core.c >>> +++ b/drivers/net/ethernet/stmicro/stmmac/mmc_core.c >>> @@ -177,8 +177,10 @@ >>> #define MMC_XGMAC_RX_DISCARD_OCT_GB 0x1b4 >>> #define MMC_XGMAC_RX_ALIGN_ERR_PKT 0x1bc >>> >>> +#define MMC_XGMAC_FPE_TX_INTR_MASK 0x204 >>> #define MMC_XGMAC_TX_FPE_FRAG 0x208 >>> #define MMC_XGMAC_TX_HOLD_REQ 0x20c >>> +#define MMC_XGMAC_FPE_RX_INTR_MASK 0x224 >>> #define MMC_XGMAC_RX_PKT_ASSEMBLY_ERR 0x228 >>> #define MMC_XGMAC_RX_PKT_SMD_ERR 0x22c >>> #define MMC_XGMAC_RX_PKT_ASSEMBLY_OK 0x230 >>> @@ -352,6 +354,8 @@ static void dwxgmac_mmc_intr_all_mask(void __iomem *mmcaddr) >>> { >>> writel(0x0, mmcaddr + MMC_RX_INTR_MASK); >>> writel(0x0, mmcaddr + MMC_TX_INTR_MASK); >>> + writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_FPE_TX_INTR_MASK); >>> + writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_FPE_RX_INTR_MASK); >>> writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_RX_IPC_INTR_MASK); >>> } >>> >