Return-Path: Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:60807 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbaLPRPn (ORCPT ); Tue, 16 Dec 2014 12:15:43 -0500 Subject: Re: [bisected] tg3 broken in 3.18.0? From: Michael Chan To: Bjorn Helgaas CC: Rajat Jain , Marcelo Ricardo Leitner , Nils Holland , David Miller , netdev , "linux-pci@vger.kernel.org" , Rafael Wysocki , Prashant Sreedharan In-Reply-To: References: <20141213210251.GA12812@teela.fritz.box> <548EF90A.5070607@gmail.com> Content-Type: text/plain; charset="cp1252" Date: Tue, 16 Dec 2014 09:15:41 -0800 Message-ID: <1418750141.4248.3.camel@LTIRV-MCHAN1.corp.ad.broadcom.com> MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org List-ID: On Tue, 2014-12-16 at 09:20 -0700, Bjorn Helgaas wrote: > I think we're in this path: > > tg3_init_hw > tg3_reset_hw > tg3_disable_ints > tg3_stop_fw > tg3_write_sig_pre_reset > tg3_chip_reset > pci_device_is_present > pci_bus_read_dev_vendor_id > > and in this case pci_device_is_present() also passes a timeout of zero > to pci_bus_read_dev_vendor_id(). My guess is that tg3 is resetting > the device, so it's not too surprising that the config read returns > CRS status immediately afterward. > At the point of calling pci_device_is_present(), chip reset hasn't started yet, so there should be no problem reading config space. In all the newer tg3 chips, chip reset does not reset the PCIE block. So I think config space should always be accesible even during reset. >