Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp722968ybt; Wed, 17 Jun 2020 12:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoMw5RHRPclZvsQfmOYzye4Ta+mgwnY8Cyi/+aXBgXdUCZ5ZRiKjYBfF7XR0aXFBNF1RGG X-Received: by 2002:a17:906:830c:: with SMTP id j12mr654899ejx.330.1592421132389; Wed, 17 Jun 2020 12:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592421132; cv=none; d=google.com; s=arc-20160816; b=aBmvqiekPdrAXtoBmj0uUWrMOKukEiaITMaTZ+LJqLQXM6Ixaen749FJJKQCnYtM11 DBN0THGRVtAY9ORaDFDX95mnhJNrmgdX7J59lX7YFp3uoCeukuhV1MY4DC8J+aMhZNL9 aeVn24jgc3sCecv7kI4JwjSQp9+Rt9AHqalQvGc7B3xJEsRUASVmzFCESgAAzbn+99+6 s1e0vPP6BnmhLZa7m1LlouuQdSLMgm59Zm1WTeVGvcBO/ZzSeBMMq1Qcjp8WdJg8fh+p 39BefoH84iiURztYEyTJS/Z2CTRBr/I2Bevb+2kxuDPNUf9yaV35CJYadyxyji76sh5U 9gmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hExgXDZV3zpYGtiPY9jV9AWM1I/0OncMTJ8ouUg465o=; b=aZ24UMYEOTf/9Xlr313xRGC6o/Jm7zFHkZglGzsZjYIQRABesHQ+7s7HaPBP9XsNpx Ac1dd1GGrkD68kFjZ4tZKBAdLADtRZGjWr+vGR3QW6OG6m7eD7wtEEBMis1cchsHIfxV Zod00+uQB1Pv81OfRMwnTETgiLi13SlrPXv/6E+j55vbT7zVhlbBeVAVenmZ+p9ba2gV cOWCX1M2jxfeXmZLd4xZUD1F74mJEojt+s4ZuHrivV+3tbtUz5nfguOGjfkNlpBK7nbv OGf87ug75VpHbt93gWLKLSH7lxiHogIaYJUMIb2Jkx+54CXET6sJmWRnqwwTHwee16hx iE5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="Yq/UKsYv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n27si428138eja.232.2020.06.17.12.11.49; Wed, 17 Jun 2020 12:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="Yq/UKsYv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726835AbgFQTHW (ORCPT + 99 others); Wed, 17 Jun 2020 15:07:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgFQTHV (ORCPT ); Wed, 17 Jun 2020 15:07:21 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A13C06174E for ; Wed, 17 Jun 2020 12:07:21 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id q14so2433164qtr.9 for ; Wed, 17 Jun 2020 12:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hExgXDZV3zpYGtiPY9jV9AWM1I/0OncMTJ8ouUg465o=; b=Yq/UKsYvS0A5josQgPU+0t/qeW1UDwyO90aOpKP5PVYKTVQERWgvbxo7N6o4rLyGJV jaouHK6XMXK4ToLxdbxpdYbs+FMmvt3Z4AyrWrXMOans4RMyzqar+6OvBPnP0VW9A7oP lWU9WTEMPcH3OhvGA4Fdx4JuxoIj5K1Ll88ek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hExgXDZV3zpYGtiPY9jV9AWM1I/0OncMTJ8ouUg465o=; b=OshCmK3GjvUuWQ1ep+rT5ALyb9BH+qsEzRKt47m/jokmSONZZyU+QU9nv8yatV1cDN Rabae7sy5RSi35UqFwxw8Gqz/hd9MBzNfMbnYQUo3pU1x1tyJre+DP4EEgWpehAe5IXh AXiks5mvscQxnrIbZTaJErTFKPshTQ14fkpdF1VMrOq8LGK5slhXzYLK7ExDZnTweaEf tkZ2dyg9mLE/Z4Ky5jaU8ldmkoNqA0HByJ47yUugW7kjAGd3w6RzePb9BPTngPvf7XFn RlMbtubFZu5lM8uqlEaFycnLGKY9upcD7cr5TufUXX0wjKdX6RIoPQkt4qQzEo3dk+JU IUpg== X-Gm-Message-State: AOAM531+oPIdXfqTuwIexiURlNauVDpgPg8EN2xtqvLfsydb59Tjnz9z WcyqwSoSwk4QQpIAFZtCWkN0jg1T8whNDjlhsHD8dg== X-Received: by 2002:aed:3fa4:: with SMTP id s33mr663234qth.148.1592420840377; Wed, 17 Jun 2020 12:07:20 -0700 (PDT) MIME-Version: 1.0 References: <20200615190119.382589-1-drc@linux.vnet.ibm.com> <20200617185117.732849-1-drc@linux.vnet.ibm.com> In-Reply-To: <20200617185117.732849-1-drc@linux.vnet.ibm.com> From: Michael Chan Date: Wed, 17 Jun 2020 12:07:08 -0700 Message-ID: Subject: Re: [PATCH v2] tg3: driver sleeps indefinitely when EEH errors exceed eeh_max_freezes To: David Christensen Cc: Netdev , Siva Reddy Kallam , Prashant Sreedharan , Michael Chan , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 11:51 AM David Christensen wrote: > > The driver function tg3_io_error_detected() calls napi_disable twice, > without an intervening napi_enable, when the number of EEH errors exceeds > eeh_max_freezes, resulting in an indefinite sleep while holding rtnl_lock. > > Add check for pcierr_recovery which skips code already executed for the > "Frozen" state. > > Signed-off-by: David Christensen Reviewed-by: Michael Chan Thanks.