Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp433432ybb; Wed, 25 Mar 2020 02:43:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvU2AWn0erKselCuahiTs6kfp1Ts6HS52svNM4Y9rX5j79y4hLNVHHlMQrWezfAr2BF+rF0 X-Received: by 2002:a9d:75d0:: with SMTP id c16mr1859509otl.8.1585129426798; Wed, 25 Mar 2020 02:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585129426; cv=none; d=google.com; s=arc-20160816; b=vGbAS5OetoKeKi6ocj1Zs/L3IMekeF2tjUahrjIfv81KBgJKil6Wxtmo8wy4/C6/XZ FuQCd9EdJ7ZqOCAwyf/p0pvQPkdUGRILgg3EtcD0CUXycrv8z1JgfJhsRypatF0zwwGA PAZRWymwbage/Wr65k6meNWlxxKtGwGnKbedNEl0hWGRs8suPIRH1y/cplK6XY1trmMz BAeVqFmEE1C1rk7s8uDwsTxmGZlaj+GSLd0ghmspJmxX8MflB8zuvC8NIuodYVtVc46V +2Y/E7Ul0YwkQA9JbJ4jTKGqEB8TvjK/ZapADRfjfwNoTml87w9AlMFuWUyb9DXV6tZd 3LRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=VDYa3UqY1+4k6i+6889MILel2CXhtQZheLibA37A8Io=; b=rPjvuKQnm7vqn2njFk2E7RP0hEe3CRJJiLuIgo5t4LEErulhD7QqOJ9oMn5FI7DkoW +IksLkEMlrSLK+T4DfzFU0ujT9oENLGIAavs5A0fXZKT0ks1Z/u8YZ7uAb+FczPALZPw l2/+R6udM8pGM0yMB68fGlfgEKmct5Gj5+Tj73lvoZXhBet3ByIjCb4PQeMCwTv6h2OQ UhVr4J+88gII3eKPtvQ//DykiJOJMend37uG9q27tmUyfqMmHHX5mSWFTK8EIyBeoc5s /yEmC/R0s+w7neoMGG2K/gyATLKdXBLPznayhkuIHqGBAHYlYlEkRDUb9McwYFBpiumb ChLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si11708138oti.301.2020.03.25.02.43.35; Wed, 25 Mar 2020 02:43:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727407AbgCYJmk convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Mar 2020 05:42:40 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48268 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727332AbgCYJmk (ORCPT ); Wed, 25 Mar 2020 05:42:40 -0400 Received: from mail-pj1-f70.google.com ([209.85.216.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jH2YY-00004u-LI for linux-kernel@vger.kernel.org; Wed, 25 Mar 2020 09:42:38 +0000 Received: by mail-pj1-f70.google.com with SMTP id p14so1193925pjo.4 for ; Wed, 25 Mar 2020 02:42:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WEm/Oq7JATNH4WpMbMOCRGSUs1m+s06ist0t7Zd6Gyc=; b=otKy7daa+Kr8A51DR8IM9y6mJ2mG23YGiD80O53zHra5Y3BkPPyEiyK+SDbXK7Or3e U+8bZvtqaQOHms7yqjNsexT63j7HMTRZBalDcakA5a+nPgGYDrUUxlA5/qaiMs7H+b0c X1dfHzmKStgyEVohluE5g+VIOtvitH7e9O5tE7vQaNkLtHnogsboEbwnXRVYzNzmW1Mk u1vbasE3OUsOMfrgFjN7mlBhgjd4vKy5Pd8gSAAvIFYqojhBlTx8QU+zYJ9afj7u4k46 wFV4mGp8c5WcG66qo0X0Os+4/iiMJada80heVPRzZDOg8FhyAOi7+05UCnOoaCq7sMwf buBA== X-Gm-Message-State: ANhLgQ27YS8qgnEoHP2cAR1WBBjMKe8S09YE6M1ThN3OJSUOl8vrWYJg 2WEx8bFklhvCjRMwUqiLnZKY78FSmKk34ci771KkV9m/q6AWy4NKpLLl+nJ8NUypDx/hP998DaZ w8mq5dFRJcDQqAZG4dUXWsMw/ZwoULHqP1yvzq1kFzA== X-Received: by 2002:a65:4544:: with SMTP id x4mr2187633pgr.388.1585129356916; Wed, 25 Mar 2020 02:42:36 -0700 (PDT) X-Received: by 2002:a65:4544:: with SMTP id x4mr2187604pgr.388.1585129356561; Wed, 25 Mar 2020 02:42:36 -0700 (PDT) Received: from [192.168.1.208] (220-133-187-190.HINET-IP.hinet.net. [220.133.187.190]) by smtp.gmail.com with ESMTPSA id c1sm4168751pje.24.2020.03.25.02.42.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2020 02:42:36 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [Intel-wired-lan] [PATCH v3 1/2] igb: Use device_lock() insead of rtnl_lock() From: Kai-Heng Feng In-Reply-To: <309B89C4C689E141A5FF6A0C5FB2118B97224361@ORSMSX103.amr.corp.intel.com> Date: Wed, 25 Mar 2020 17:42:33 +0800 Cc: "davem@davemloft.net" , "mkubecek@suse.cz" , "Kirsher, Jeffrey T" , "open list:NETWORKING DRIVERS" , "moderated list:INTEL ETHERNET DRIVERS" , open list Content-Transfer-Encoding: 8BIT Message-Id: <4A655203-7609-434C-9225-269A39AD5B35@canonical.com> References: <20200207101005.4454-1-kai.heng.feng@canonical.com> <309B89C4C689E141A5FF6A0C5FB2118B971F9210@ORSMSX103.amr.corp.intel.com> <3CA021B0-FEB8-4DAA-9CF2-224F305A8C8A@canonical.com> <309B89C4C689E141A5FF6A0C5FB2118B97224361@ORSMSX103.amr.corp.intel.com> To: "Brown, Aaron F" X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Aaron, > On Mar 20, 2020, at 15:00, Brown, Aaron F wrote: > >> From: Kai-Heng Feng >> Sent: Monday, February 24, 2020 3:02 AM >> To: Brown, Aaron F >> Cc: davem@davemloft.net; mkubecek@suse.cz; Kirsher, Jeffrey T >> ; open list:NETWORKING DRIVERS >> ; moderated list:INTEL ETHERNET DRIVERS > wired-lan@lists.osuosl.org>; open list >> Subject: Re: [Intel-wired-lan] [PATCH v3 1/2] igb: Use device_lock() insead of >> rtnl_lock() >> >> >> >>> On Feb 22, 2020, at 08:30, Brown, Aaron F wrote: >>> >>> >>> >>>> -----Original Message----- >>>> From: Intel-wired-lan On Behalf Of >>>> Kai-Heng Feng >>>> Sent: Friday, February 7, 2020 2:10 AM >>>> To: davem@davemloft.net; mkubecek@suse.cz; Kirsher, Jeffrey T >>>> >>>> Cc: open list:NETWORKING DRIVERS ; Kai-Heng >>>> Feng ; moderated list:INTEL ETHERNET >>>> DRIVERS ; open list >>> kernel@vger.kernel.org> >>>> Subject: [Intel-wired-lan] [PATCH v3 1/2] igb: Use device_lock() insead of >>>> rtnl_lock() >>>> >>>> Commit 9474933caf21 ("igb: close/suspend race in netif_device_detach") >>>> fixed race condition between close and power management ops by using >>>> rtnl_lock(). >>>> >>>> However we can achieve the same by using device_lock() since all power >>>> management ops are protected by device_lock(). >>>> >>>> This fix is a preparation for next patch, to prevent a dead lock under >>>> rtnl_lock() when calling runtime resume routine. >>>> >>>> Signed-off-by: Kai-Heng Feng >>>> --- >>>> v3: >>>> - Fix unreleased lock reported by 0-day test bot. >>>> v2: >>>> - No change. >>>> >>>> drivers/net/ethernet/intel/igb/igb_main.c | 14 ++++++++------ >>>> 1 file changed, 8 insertions(+), 6 deletions(-) >>> >>> This patch introduces the following call trace / RIP when I sleep / resume (via >> rtcwake) a system that has an igb port with link up: I'm not sure if it introduces >> the issue or just exposes / displays it as it only shows up on the first sleep / >> resume cycle and the systems I have that were stable for many sleep / resume >> cycles (arbitrarily 50+) continue to be so. >> >> I can't reproduce the issue here. >> > > I just got back to looking at the igb driver and found a similar call trace / RIP with this patch. Turns out any of my igb systems will freeze if the igb driver is unloaded while the interface is logically up with link. The system continues to run if I switch to another console, but any attempt to look at the network (ifconfig, ethtool, etc...) makes that other session freeze up. Then about 5 minutes later a trace appears on the screen and continues to do so every few minutes. Here's what I pulled out of the system log for this instance: Yes I can reproduce the bug by removing the module while link is up. I am currently finding a fix for this issue. Kai-Heng