Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1194032ybh; Thu, 23 Jul 2020 02:52:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0cKD5oV3sZvEDUs2BxRQb7dAuCsv+Qlj3A59ca/9VhusAOVOSCuktHJTlWXpdKMsIxYDe X-Received: by 2002:a17:906:40d3:: with SMTP id a19mr3673678ejk.474.1595497944569; Thu, 23 Jul 2020 02:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595497944; cv=none; d=google.com; s=arc-20160816; b=lLZNMkPSCc/jKfELD6IiciNaWOcNUFEru/6NA3scsDK1glpnYC+EYm8D3rhzcBsdmP 1LA8m12jxwZ1Mv53jAWOewLjDv/O+SDj7I+hApC2o8vYZFgmyp0ZRsrtrXD2pQaI36dT OEhTXg4kdtbcBFyHwVZ/lJ746r4Tj7Q8zrYHsrOk7XQXdeBBDYsrM2+jRI8xyitS0RiA kI/hgsVhYmeBx6JRUtBbF45D4to4Sxoi+LQwdn6P5g/ka/OG/tYwJ5DVsXjAVj4GG22x 1xZjM2/NW7SSrGMgp96vvRR9ONDFQX1G5Si9382nlUvyxAT1zwwuGZGvGca/XqjVPibO ZuCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BuenCF8T211RmL/wGS9XJZLS5h783/V3iweu/SHXzTU=; b=ALPMRls7Gjqp8m1vEor4K35A1a/Tjj8pYumYXuxd9xHesfFBcEI8T1HQjJ7FAFKqKN sKlJUXraGAuUfLfSRLMONe51oUsx5HxIUPZikT9MIV20hv/ixICRqQByZiTB1Re1ZaRb j+aPhPuCetm3BLbJs9tIR2+UVLntHw8+V7tvK870eDJAfH9ATBJlzMhUxqUadukoO/uY ETIfUrrXl8ImRk21LFCoxAPjiDQ1lRCfCPLT0p7KhnTZRr/dS3xl5UKTC3hSjHeF7/g3 /ZrUR74cGCEYE4TILXiqvcY/sKjUA56bhMM9aBVbPoUExcGnvNJ4iBuPOhWo9RY+Vseq pSUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc14si1602945edb.368.2020.07.23.02.52.01; Thu, 23 Jul 2020 02:52:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbgGWJv4 (ORCPT + 99 others); Thu, 23 Jul 2020 05:51:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgGWJv4 (ORCPT ); Thu, 23 Jul 2020 05:51:56 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DA9CC0619DC for ; Thu, 23 Jul 2020 02:51:56 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id AF329300011A0; Thu, 23 Jul 2020 11:51:52 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 68E6B36272; Thu, 23 Jul 2020 11:51:52 +0200 (CEST) Date: Thu, 23 Jul 2020 11:51:52 +0200 From: Lukas Wunner To: kernel test robot Cc: Bjorn Helgaas , Alex Williamson , Boris Ostrovsky , Juergen Gross , Michael Haeuptle , Ian May , Keith Busch , linux-pci@vger.kernel.org, Cornelia Huck , kvm@vger.kernel.org, Rick Farrington , Derek Chickles , Satanand Burla , Felix Manlunas , Stefano Stabellini , xen-devel@lists.xenproject.org, Govinda Tatti , Konrad Rzeszutek Wilk , LKML , lkp@lists.01.org Subject: Re: [PCI] 3233e41d3e: WARNING:at_drivers/pci/pci.c:#pci_reset_hotplug_slot Message-ID: <20200723095152.nf3fmfzrjlpoi35h@wunner.de> References: <908047f7699d9de9ec2efd6b79aa752d73dab4b6.1595329748.git.lukas@wunner.de> <20200723091305.GJ19262@shao2-debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200723091305.GJ19262@shao2-debian> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 05:13:06PM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-9): [...] > commit: 3233e41d3e8ebcd44e92da47ffed97fd49b84278 ("[PATCH] PCI: pciehp: Fix AB-BA deadlock between reset_lock and device_lock") [...] > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > [ 0.971752] WARNING: CPU: 0 PID: 1 at drivers/pci/pci.c:4905 pci_reset_hotplug_slot+0x70/0x80 Thank you, trusty robot. I botched the call to lockdep_assert_held_write(), it should have been conditional on "if (probe)". Happy to respin the patch, but I'd like to hear opinions on the locking issues surrounding xen and octeon (and the patch in general). In particular, would a solution be entertained wherein the pci_dev is reset by the PCI core after driver unbinding, contingent on a flag which is set by a PCI driver to indicate that the pci_dev is returned to the core in an unclean state? Also, why does xen require a device reset on bind? Thanks! Lukas