From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FBA33D5235 for ; Mon, 20 Jul 2026 09:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784539999; cv=none; b=BvhZ163Lx2TzTwMmZMoR9gNtVd+pdLMzky3AS2xgZDqraNfHqQBHDpAk6+hO1tQ0v0nPUQNmpyNLfRSGoaoSqs7ZKkCpxRf5gI1ZqsuLGGQculEikh8LZRZZLiCXmJ/SwOHoRBn3XkGEA3UWHvoUyk3xZdAwGj1oQ+Fjv5XXzwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784539999; c=relaxed/simple; bh=AJsT6yt24aehDoQOd5ntSHWVvQrwTxU1fX9ksnkaKVs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oRtlY7eOI1TjB68yEC6siUdYQavky+L3SPGqFPfULAtFNdvTxnNKxkygkdYc2Vz4f98tlwLp33aHhiTadJ7KpHe0ua7fammKrlCH0DPSjuN81j2zteKX753AREuL7Vtayv+xs3b2pTPunnzun07Gnhdy4AYurBEfADRB5uEV2Oo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=lqgTOb7h; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="lqgTOb7h" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 06AC04E40E79; Mon, 20 Jul 2026 09:33:14 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C46B060360; Mon, 20 Jul 2026 09:33:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CC54A11BD3CCE; Mon, 20 Jul 2026 11:33:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1784539992; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=4CQrISOl0BCVcY0P30M6vyCI4+NKDoGPEn3wN8pRNP8=; b=lqgTOb7hGCPz4Bhuasua5vOcMC3VV8568buK9tnmi9N04rblfX1BC83fjsC2wruPtlCOTJ OFsQKlwuR6/+LzFaEqf9hgGVWTJyiEVn7vcK0GNxUOb80IQvo8dlKHZlzZrZcPcWdreXoW ugqvko4Eq09Xwz8U5ibOUx58cE71sdrye8OFMeAZISkMb/6Kvp6WGhEh8CbaTZEGgbd5HR 3f8W31rYeVcPvtf+ULh22yd0wS9mbiqgtKNwB8VwsXssU02wy06hBCdZOrnp0QjsoCMiek EcvypwsBMERZx9HNElvb1p+941OtF65re8Qcg2/xLDhzkC5IkX7XPQ33UwuUZA== Message-ID: <5cc0d788-c78d-40f2-998f-235d40f567f2@bootlin.com> Date: Mon, 20 Jul 2026 11:33:05 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net: stmmac: dwmac4: mask interrupts before stopping DMA in suspend To: Luis Lang , netdev@vger.kernel.org Cc: Andrew Lunn , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , "Russell King (Oracle)" , Ovidiu Panait , Oleksij Rempel , Rohan G Thomas , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , open list References: <7941d239-e5f5-43b5-ae0f-20398221e027@mail.de> <20260718152802.83553-1-luis.la@mail.de> From: Maxime Chevallier Content-Language: en-US In-Reply-To: <20260718152802.83553-1-luis.la@mail.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi Luis, On 7/18/26 17:27, Luis Lang wrote: > Since commit 1b9707e6f1a9 ("net: stmmac: enable RPS and RBU > interrupts"), suspending causes an interrupt storm from the RPS > interrupt. > Fix this by adding a deinit_chan() op to stmmac_dma_ops, which > masks all default dma channel interrupts. This is called from > stmmac_stop_all_dma(), so interrupts don't trigger while suspending. > > Fixes: 1b9707e6f1a9 ("net: stmmac: enable RPS and RBU interrupts") > Suggested-by: Andrew Lunn > Suggested-by: Maxime Chevallier > Signed-off-by: Luis Lang This is almost perfect for a new submission, only 2 things to improve : - you're missing the tree name in the patch subject. As this is a fix, it should be : [PATCH net] net: stmmac: dwmac4: mask interrupts before stopping DMA in suspend you can find instructions for this in the doc Andrew linked : https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html - When submitting a patch, do so in a dedicated thread, and not in reply to other threads. You should send a V2 addressing the tree name in the patch subject. Sashiko noted something on the patch : https://sashiko.dev/#/patchset/20260718152802.83553-1-luis.la%40mail.de It looks to me that sashiko is just wrong there though, I can't make sense of what it is saying. Maxime