🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9546

Re: [PATCH net] net: stmmac: dwmac-motorcomm: mask the MISC interrupt

#9546
From: Magnus Leatti
Date: Mon, 02 Nov 2026 09:02
31 lines
9641 bytes
Hi Nicolai,

On 11/2/26 09:29, Nicolai Buchwitz wrote:
>> +#define  MGMT_INT_CTRL0_MASK_MISC		BIT(21)
> 
> Where is this bit documented? The vendor driver?

Yes. The vendor driver writes 0x00200000 there unless it services MISC
itself, and the yt6801 driver Motorcomm posted in 2025 defines the mask
field as bits 16-31 of MGMT_INT_CTRL0, with MISC as status bit 5.

>> +	writel(MGMT_INT_CTRL0_MASK_MISC, priv->base + MGMT_INT_CTRL0);
> 
> Doesn't this turn off the stmmac MAC irq on vector 5 completely? If so,
> please mention it in the comment.

Yes. On this device vector 5 only carries MISC. I should have said so.

> Also, does the MSI fallback still get RX/TX interrupts with MISC masked?

RX and TX have their own mask bits, but I did not test the single-MSI
path.

Maxime's patch fixes the hang here without the mask, so I have asked
for this one to be dropped.

Thanks for jumping on this so quickly, Maxime and Nicolai! I really
appreciate it. Have a good Monday :)

Magnus
Technical Details
Message-ID: <20261102090241.5862-1-magnusleatti@kernelriot.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354550-linux-kernel-netdev=dewy.ru
References: <20261102080938.2955-1-magnusleatti@kernelriot.com> <805aeb73d9e32b237bcb30c8fd44ffed@tipi-net.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354550-linux-kernel-netdev=dewy.ru
From: magnusleatti@kernelriot.com (Magnus Leatti)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: stmmac: dwmac-motorcomm: mask the MISC interrupt
Date: Mon,  2 Nov 2026 06:02:41 -0300
Organization: Usenet Network
Message-ID: <20261102090241.5862-1-magnusleatti@kernelriot.com>
References: <20261102080938.2955-1-magnusleatti@kernelriot.com> <805aeb73d9e32b237bcb30c8fd44ffed@tipi-net.de>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2888375"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pbtmbYb4GdlMqrHtjPNHQPuahgA= sha256:n1cb7LzCTVMQhD0BKOo+V111c2cD/wHyjd0L3V8UnUg=
	sha1:c+yAOnf0mZvMD9+XTwcXILMhmWE= sha256:VG126MpK4YzwWAMpFbDzdytZuMyDwkbz1cniVIsxTbM=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id F1F8811247B; Mon,  2 Nov 2026 12:03:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernelriot.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id uZiVuL0kM-kQ;
	Mon,  2 Nov 2026 12:03:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354550-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=kernelriot.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2496F10FB99; Mon,  2 Nov 2026 12:03:44 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 58A5526640; Mon,  2 Nov 2026 09:03:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793610206;
	b=EXy8n6AXG905kWmBrBiHoTHHl6QSbK8zLHqAvSk7noH40DzZ7EL/Id+uS8hmvQIU+fS3
	 9ujg8kCBhdbmrTDCt7OimuB1GdWHPI+ppnvqq9+bDM7THz96tm0JU+6RgoXMheGCBYPFd
	 /sTMP2kqp6U+uqJDkjJDiTTciRrey4s6mt6i+vojsR8Xw/HOJtsZxhIptyL9T25bmBQRo
	 nSHuwTbU2EJqHOKMa/QNgKb8bGt/ZtpJ5SaITwnBvg3ofRj7yc/YDw23jSRnRPHaVzw8y
	 kU1iaZ9p3M1Ncw1vjy3tOItTx2LWtnb12idclSoQSDG+AvWOFht2kq2TochAEmUyQ9w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793610206;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=dzgmecBVachGINg3yF3uYgoPmBMO2/R7Vya4aZJJS/o=;
	b=dy50vU8Oi2rUlsg6RYu7VpBMVGUT7sxPdCE1RPe06xXPdhMJQgf4guBDdiSJDJC/f8XF
	 fJQiBaUXuK8z1Q4A0nuU+HWpNZtoSGTfigAkwC6FyAIYJalxbnEk2XUz92QNo1jst8faQ
	 IbK7NQrwuwAeVGE0M83gf2EkMx8lqlhHwjBjJirkOLm+UsfVsqdO0X3Lb/lE28KGtBSwj
	 Kn39QwPI1TjJJH1e0yYim+TvgFElRfzcWZWzvRkbwzEg5LdHp/98PmLhuwnznSyq+jsKH
	 tlbHyUWMRbkb8mfwnrr9tPG7O58LdJW85DGse/wYQrhZ/SNIp7GgpwIGn2RSn5YRcxA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernelriot.com header.i=@kernelriot.com header.a=rsa-sha256 header.s=kr2026 header.b=EYZv+AQP;
	dmarc=pass header.from=kernelriot.com;
	spf=pass smtp.mailfrom=kernelriot.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id EE3C1606A333;
	Mon,  2 Nov 2026 09:03:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernelriot.com header.i=@kernelriot.com header.a=rsa-sha256 header.s=kr2026 header.b=EYZv+AQP
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.208.142.49
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793610200;
	b=0mYbV+SqSlM3n/p5Rxgk47mwQqlh5V4Ggz0pMSLJUkYOGbtKlu7YYdDLCVz55wY1eGmt
	 +YWfXxLeSbB5DvlxfDVSO8bbF9y7T6sD4eScQiJnrdS3hG2T6p0sv0LhsUkgLfEzXhluc
	 Y8rrjL24HSDgboc9+TLkbJmswgGRZlLKiaKjt0eYqNRVI/6qZyZ5/TW/xQ+qDBkZxMVas
	 yjERPgDaESR0dJ+om/XCVaW7gk/KxOcIc2x4UrvxEVTHUnZZd6fg/EBQ/Og87YdBHysb6
	 zd6KuTzpfgBVBQfyJVQt+Vqay7M9jfxxncFCYN9U0mc6Nh4SnGuSEIMjBpvGNs/ekwA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793610200;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding;
	bh=dzgmecBVachGINg3yF3uYgoPmBMO2/R7Vya4aZJJS/o=;
	b=Lg6eP8CeuZ9n9zddmgTWZJx27yYoXaW0hvXHtItS/eZ1evw0cPFoG3QsLV1s452CIZA7
	 9OPIl3wVncGItPXu43lkh/V+ud+QkU7OrkKUitSON/f7qRnf6I7ixlswaNai4Ih9565Gm
	 t+kX9Lv7Tn+RUaC5r/teERMjEZd7nbobSFHvt8Bb44LvaiDMjZ/0Z5FCAMlL3lyCIlW39
	 7m1HQ6qXnJHE3twzG4tmeFkshrrmBBQNEUZLfRhua1MedqNdlWxE3VZUfhzTr2uS2YUFv
	 Mx9KyYOTT30mI0pJs6P/Sgo95Z3g35hJw90P/eobF/KlFjxpr2vWlQ2LOIHqB68D5zQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=kernelriot.com;
	spf=pass smtp.mailfrom=kernelriot.com;
	dkim=pass header.d=kernelriot.com header.i=@kernelriot.com header.a=rsa-sha256 header.s=kr2026 header.b=EYZv+AQP;
	arc=none smtp.remote-ip=74.208.142.49
X-Received: from mail.kernelriot.com (mail.kernelriot.com [74.208.142.49])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82C2E606A324;
	Mon,  2 Nov 2026 09:03:19 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 82C2E606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kernelriot.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernelriot.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernelriot.com;
	s=kr2026; t=1793610196;
	bh=TBb/GsUsOb/1xhSwjR7HNDvxrH90IM0dwt3lhowgT5s=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version:Content-Transfer-Encoding:From;
	b=EYZv+AQPRMIjgOOoVuctoIf7/3Cc/VK9FrUWQCLvmPx9BOgesu8Q4KdBfYIbhfAO9
	 H/0Eeemb0vR9sM6FGkbAUDmP2X30EZPfOqYbFt1nq6DrcGyXIieuAKQmd5Wwo40ITT
	 a3STA24Y1BshPbVXGqQV6QHLZVk07q75w6Wh6Q1kKYv8D2pSwKlBy+9wIxHRW0jJro
	 FUfa1H0pOEHn7UhYyY3nSE8fT/zjs4O1LBHSMoZfUlvMWdAkdUPfTUrro14sbTrkPU
	 qC0s2ElIj8K0A3F3wwzGsIE3fWrRP+S4u0ZoxlpIEkLDJhWDzVBBb/dil1GwoNb4yr
	 7bSGN2ajdvyKg==
X-Received: by mail.kernelriot.com (Postfix, from userid 995)
	id 9486F819CD; Mon,  2 Nov 2026 09:03:16 +0000 (UTC)
X-Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Yao Zi <me@ziyao.cc>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>,
	Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>,
	netdev@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <805aeb73d9e32b237bcb30c8fd44ffed@tipi-net.de>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list