Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp471292lqh; Fri, 31 May 2024 07:06:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7qXgJwgB3J8jkbgBMe5K51wiEdOozVqM1bChv3Z/mCWY/fyfN2GnmdLX87j50Fk6XPXeADzQ95KRzFUuxyuGUnEMo3m1di3yxe9MU1w== X-Google-Smtp-Source: AGHT+IEzhh3QJ1XdBLJaRQASajW3pnzinfwqMSvzkjM88oJPrbn/+Tuvb7HOtVRBQYvPazd+WSAj X-Received: by 2002:a17:903:22ce:b0:1f3:50e7:36db with SMTP id d9443c01a7336-1f63709862dmr18768125ad.48.1717164386543; Fri, 31 May 2024 07:06:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717164386; cv=pass; d=google.com; s=arc-20160816; b=xV9F/8/0kanmeYr6vluwWt/tDQ5r1D5FyA67Xn8MuARq+CJI/PL2j/KOwNP7i4AVxj 0NJB3X8KKXHFjUFAV/3+1oVXDa+BXmuQhhgv1MCxtpkQ4eRTLANvNKg/BfUimgV6UO8q gHxG8UXMJjH9kYiIhWGPO0z8ei+0KZfYGKOjR3MTyCIl+7GAk0mhr1nYwxNt4+poC5lT SbT+hNBqoE+NPnj7lhmNpS7ppVzMD6BGcH0UUTeulrNpPJNpWW3C51cNOZ/xb3W6QSu2 kiI2OYew0MhIMVXSe6fucXmGlesQ1LTNbD0TQKAhMYtyrNl4694RhfKFWca2J0tpMp4m 5Cag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xiMkkJB35GmuPxh7rMmIJANRZ/YYuyNN0vLhNarAFs4=; fh=I/E6uhvHaejgag9ieST+Y1QDkLkrp/QlukYw/zaIEL4=; b=hy0HoNQswqqb3D9Kyy+c9QmIep7AJBEKm5bZrzVuwwmTb49ZnRtVRSxQwh/QoL5O/v +jD4Vib9MYlGS48z6fYYYpCur/1AQiKotxtiG37JE0DAPLUmFDCRyH7j+3tGyd5xp8rk mZVVL2AKEmMcwO5FO4wJd34pGuUXsh3S/DFGCNBeHXTNwxuKphvlQ0hNlu4q7zBUZSrU E8U24Pyqal1wI446sEehHW8bN7pR8o5xPE8pkhXqLbbGxejtAlY4HO02sEDJ1IhPE0Pn EZ+XXCHHOSs0/4WerGlwqyQvYHmb1fA89eOvFsL6VyBZpzYBfFKsbZLI8QmkRCRrhdoA i7uQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hAvRLJD4; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-196893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f63241ad55si16347055ad.628.2024.05.31.07.06.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 07:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hAvRLJD4; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-196893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 74775B29CB2 for ; Fri, 31 May 2024 13:37:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F7A6159205; Fri, 31 May 2024 13:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hAvRLJD4" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 B9737158D9F for ; Fri, 31 May 2024 13:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162611; cv=none; b=a8xXvVKWyoKes4jagYz7kwgaEPsJNxmuY1qGNVCzhnYlhA1jW6yDsBO6ubCOX4tq5SFxjb/6DYUWw/gBBFqkqL1ru/an5Gcp9Lf1Hl1tvj/omblI08XmlqcnJsslQ0snWIDbybHkJyR9MaVH4BqEJ9nkBFkCkCIu/DjVVCgbEvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162611; c=relaxed/simple; bh=fHZWsCZgLehsBmHUlJSI0XG6+oxgaHq5c/G9th2fkKA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p0ys/slujG58H7+/J2oLkaf2kzAP8tGg0wEQRxNrRR8FriHaRKBvj5cq2JneiqyqBEgGzokUHEhMG1olc4YwhlWTWZujcbOxjC9R6Z4AN8akdxt5zSTRcQSMK4r3/JQOdzkFwpf2Vna7tLjpXrbeiARARy4Y+Sdc2KfolNxMdww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hAvRLJD4; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717162608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xiMkkJB35GmuPxh7rMmIJANRZ/YYuyNN0vLhNarAFs4=; b=hAvRLJD4Z8aUAMYU/o9YSpblpLjWo1sT4/TAQIrkZHwKoFhFwDD2AhL7g/57JRark6QEcR pWPD9taMYnXGyO4S+sV0ZEIN8R66JqjGkxDkwKodmX7Mc85wB1Ue1cVvkrIbsh3VlXC9fz wFzNhfoHxKJAXzwIOBdPxxnA/xiG5s0= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-530-BV7u3-QFP9-7Npzdef5oHA-1; Fri, 31 May 2024 09:36:47 -0400 X-MC-Unique: BV7u3-QFP9-7Npzdef5oHA-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-52b8b680f16so494862e87.1 for ; Fri, 31 May 2024 06:36:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717162605; x=1717767405; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xiMkkJB35GmuPxh7rMmIJANRZ/YYuyNN0vLhNarAFs4=; b=wRM+vp5a9/tbX6pQQwiypOAKPmAyzQ3i+GpGmA1uqh2KqHMyx29lrZrFeiPsLKPuFP t18cuPViSeB0ME+cXOMyw2ZB0CVMLFXoMaxbOk/cRQfBlura84GcOZA0SoFshSuK2MTo qpIowvMfvuQUVSeSI3mgeT6uCKelnxQX8XVslJpOsm9lkXZ4aybY/KI1LuUtQhCSHtAT afSuTrjR2LBpAKXX201iMyEvHfEm2tpDW0hGeOw1OPUurVRm6lUHIdECWtXPxTUqSq59 brgi054CTdeKDBd9ceNvkEgbcgYF9/yIcBLSlUw8tFi2evdBF1KZFzuIhYYaZ2zvG9Jr ZPuQ== X-Forwarded-Encrypted: i=1; AJvYcCWHbhKO1BiGoKWHKroYrneszFgpldGPoxF427/HabP7jVizUJJFox6D86pu2svH0OvbVVWN/EdQ1Dl05idA2761CIAcLNxhWEVq9rqJ X-Gm-Message-State: AOJu0YzhZR5gwnf5X/oJpjK+dXo3kjeZBbgl3T5VQW6i0K/J7rbiULML IrTmsDF2yd4MayAKxE0Qu5ZjUdvQaYd/bcRYcUoBNFJ71LHKMgEO4MBKHrbMho+DcuOEpJnXWDM Ij4cdxAm1kn+ydUNyf2xOaJDNEAd4iaHAJJc5SMv730dEPKrOqQwLVIC4olwpCg== X-Received: by 2002:a05:6512:4ce:b0:52b:7a5f:817f with SMTP id 2adb3069b0e04-52b8956b5bemr1133054e87.19.1717162605716; Fri, 31 May 2024 06:36:45 -0700 (PDT) X-Received: by 2002:a05:6512:4ce:b0:52b:7a5f:817f with SMTP id 2adb3069b0e04-52b8956b5bemr1133036e87.19.1717162605234; Fri, 31 May 2024 06:36:45 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31c6d4b6sm1005484a12.74.2024.05.31.06.36.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 May 2024 06:36:44 -0700 (PDT) Message-ID: Date: Fri, 31 May 2024 15:36:43 +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: Hung tasks due to a AB-BA deadlock between the leds_list_lock rwsem and the rtnl mutex To: Andrew Lunn 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 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> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 5/31/24 3:29 PM, Andrew Lunn wrote: >>> 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. That is good to know. > So only x86 systems with r8169 and igc should have the > trigger module loaded because of this. Those are very popular NICs though, so that is still a lot of systems. > It would be good to understand > why other systems have the trigger loaded. Actually my system has a RTL8168 ethernet NIC so the netdev trigger getting loaded there is expected. > However, as you say, this > will not fix the underlying deadlock, it will just limit it to systems with r8169 > and igc... Right, given on the above discussion I believe that it likely already is limited to systems with Realtek r8169 or Intel i225 / i226 NICs. Regards, Hans