Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp448826lqh; Fri, 31 May 2024 06:29:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXb5ZkKW/fmDqMWtEOrSdJuKBc7rVQgQ9pl/fxO15715nSnfDilN6ux1NFjlbu4WIYXz8ozXFanv7pRgBPpneBdcWsBo9xdpLic1S25CQ== X-Google-Smtp-Source: AGHT+IEP0FX650MIBGO4cgjBk6/9r5VrxQZy3OwJKDSlugkbC7mVIjNEif3n/W7GT9sIKU3cRA9r X-Received: by 2002:a50:ccd3:0:b0:57a:21ac:cffc with SMTP id 4fb4d7f45d1cf-57a365a9e33mr978464a12.41.1717162165922; Fri, 31 May 2024 06:29:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717162165; cv=pass; d=google.com; s=arc-20160816; b=ZMvQ8qvv+79jRcbsfHEZrv4MfHpBItbLIi2NTESJ9XWLwvGt+GywafoQhLSNphA5PJ iKmHrY4vO1CRGbujJaBrOBM3BpFaQNSGysGFazvfpOljyVWQJGpNRlykUWeuoBeLoSxQ 4+uqrTIP+QtlsOkfTFgdqlRwnQa4gPJ2DfhZAZZnPHDp8+gnqni+GbHudC21Aij2InSD qwlxU5jzNB3pLRzx7ZDryQVExt/t9jqO9Tk9RQ8/o0d9DK2Dks9ZzVg5ihrB3ZxOyrUX 4VRl3a65D6XM9WfS8ZxM9XITnHfAsTqwNkoxxqdBHzWYn6r8Sg+JX+hm4QC8GXRSx+hr 6pwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FFhmGtm10lHefONMxTl29WG3wWok7tsWWVFlFVzZL74=; fh=dfoKL1WkbZ5tjXQtCfxyMzO7+URIfmMbK7I3R0slQqE=; b=AVXhVRYjeMqazML8QBDbeHZb70U7PcDzef1U/mVfOUA74Xd2yD2wObuvCC3T0Vj85E rJPhST8G7zcGFXQtAtVOmuOzDUt9skquQcTayuEqfvD3abCmqybaYtS+9pDH6nKGs3sG TOIPTWSH2Z30LZXs2aKXo08nSUg7fFklRmI9tWxnTSl/fIjRFWzmDIU5upXNXhLdXajV Z0V/3XhFkNThC22Pq4fBpMeimkY8DTWVK+idI+oeLyfyIXM/2v59Py3qJyLoS1ifmstC 2deWX8vgKPUBGZRjdwKfp4gJXNmME/0OQsx1YPO1wqwe8L5EX8tjxWeviWyU3Ps7pew4 SsQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CFmBUj+S; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-196882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ca5bcesi936982a12.532.2024.05.31.06.29.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 06:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CFmBUj+S; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-196882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 86B0B1F266F8 for ; Fri, 31 May 2024 13:29:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC625158DAA; Fri, 31 May 2024 13:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="CFmBUj+S" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 8E539158D69; Fri, 31 May 2024 13:29:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162154; cv=none; b=lXrV0KgiiNjnKr1Pdy/BVwh/vAHeWqHTBNNaR41wOf1CuZo5E+crPpQpR729YDZYvzVLQhDP1TIadci8KJlFMhPDujqRY8lVOSABahhe8vAvOfRCM7noj6IXQgIn02XoOyx5GTy7wKdUl9nQxKKTYKgeXYPBuugwMkX9UH4QG7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162154; c=relaxed/simple; bh=HAdBczTqYee4g0PfJNsMrZzNsQM3qPcsfsGtaRBqd40=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iSpCn482O7yROL2G7pMrc/DAheO7ZafjPSlaA52BJ1Zuw39mVOAJo2LZvCZPBMAOrQWY4DSDppZvsfwsUKF8hQ28xabdfDsvxLFu1aX9EUe0U0PdL8QRSKPu2mthnMqRTVfiFKG61/vbCNz98bVfCfsqAnDIw4iHA656NGciedE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=CFmBUj+S; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=FFhmGtm10lHefONMxTl29WG3wWok7tsWWVFlFVzZL74=; b=CFmBUj+Sotj6vExgsK2oFNemud P/OnqnjStz1aea1014fPefiq1zZ2l+CYGNUbECxGBEt0LoXIGg6nNMa1cuHgR1Y2LhJmK5xryH3PB 8Wb7txcOEQW359ekoFY6/bsvnis6RYl3Ue8Gy2NJtQDllFQXbfr9l8mG5uojulVXhf/8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sD2Jh-00GT4l-UI; Fri, 31 May 2024 15:29:09 +0200 Date: Fri, 31 May 2024 15:29:09 +0200 From: Andrew Lunn To: Hans de Goede Cc: Linux regressions mailing list , Pavel Machek , Lee Jones , Linux LEDs , Heiner Kallweit , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, johanneswueller@gmail.com, "Russell King (Oracle)" , Genes Lists Subject: Re: Hung tasks due to a AB-BA deadlock between the leds_list_lock rwsem and the rtnl mutex Message-ID: References: <9d189ec329cfe68ed68699f314e191a10d4b5eda.camel@sapience.com> <15a0bbd24cd01bd0b60b7047958a2e3ab556ea6f.camel@sapience.com> <42d498fc-c95b-4441-b81a-aee4237d1c0d@leemhuis.info> <618601d8-f82a-402f-bf7f-831671d3d83f@redhat.com> <01fc2e30-eafe-495c-a62d-402903fd3e2a@lunn.ch> <2a6045e2-031a-46b6-9943-eaae21d85e37@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a6045e2-031a-46b6-9943-eaae21d85e37@redhat.com> > > drivers/net/ethernet/realtek/r8169_leds.c: led_cdev->hw_control_trigger = "netdev"; > > drivers/net/ethernet/realtek/r8169_leds.c: led_cdev->hw_control_trigger = "netdev"; > > drivers/net/ethernet/intel/igc/igc_leds.c: led_cdev->hw_control_trigger = "netdev"; > > drivers/net/dsa/qca/qca8k-leds.c: port_led->cdev.hw_control_trigger = "netdev"; > > drivers/net/phy/phy_device.c: cdev->hw_control_trigger = "netdev"; > > Well those drivers combined, esp. with the generic phy_device in there > does mean that the ledtrig-netdev module now gets loaded on a whole lot > of x86 machines where before it would not. phy_device will only do something if there is the needed Device Tree properties. Given that very few systems use DT on x86, that should not be an issue. So only x86 systems with r8169 and igc should have the trigger module loaded because of this. It would be good to understand why other systems have the trigger loaded. However, as you say, this will not fix the underlying deadlock, it will just limit it to systems with r8169 and igc... Andrew