Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp12708imm; Tue, 22 May 2018 13:06:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpLflQIq99HyOj7ofC+lDwnVGmwMgBAobT8I7UBnqoVbfk81f4gNgHqWgmVWAolcp9M0qxZ X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr25560063plb.99.1527019610900; Tue, 22 May 2018 13:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527019610; cv=none; d=google.com; s=arc-20160816; b=Q14Ed/1xRl9UU7I4cqhChbBOzPaGvfW+o1T/N4MC+1YzaT+8FKTnxSOWM8HUb07GFL xYFQ13p4M10hwpEJQkUygeKF1SWtS99pk71g4l/uH+HIBhzKYSLS/qFubmkh5rIlGvza pTymyqL27i94Xa2esuImgN5rOMv+fGBPeA0hBDqYq0ppPCet0uE76aYlq7l+fLr3Bbqa /QBxl88x/9aeuq2viqO5kvNbuTObiyxGXbJMK/MEY0+QbA1fHE1+CzIElF0cY62YSSRF 11ek+qcZ0A2qmdAKOrqRBu4Im/HQUSNrUFvnYB/4v81zOl6g3/NRj905T5c9MYAqTX/j cnhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=UBnGbUKJfQ1QsbeWNnwNLopHIjQKDRmmBIzGdctoCYM=; b=uWLlbtBG+Za19Ir5jCqrXvFQhDn1VJEpO6pqmFTZI3wABwPfwaLTXSq3nhsWQH7E+0 rnRIDpx4PWKTru+Olsh38tFyJr+Q24CIEo5aUCke5NgCH7b41sev6atiyJGeyvkhxvKd L/5TIqf34d/TYbG46LxWUs2bjO19jm6abQp69xiVe2NTd9wqPaTuq048oN6ey/7HfNuI gGk0jYcPP+DPQKo/n67/pdSo73gQhA7gJ8LA8jNY5/x6zkiexxa319YG7YmLAyNJnMcd PdcRsKpvRFmnpSc8MzmAiGcpW2u9ls4uvZOIF8lZUCRhoJMi4HW6kIptEcADPlhCYYVR chxQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h193-v6si13507471pgc.57.2018.05.22.13.06.28; Tue, 22 May 2018 13:06:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752663AbeEVUFg (ORCPT + 99 others); Tue, 22 May 2018 16:05:36 -0400 Received: from feh.colobox.com ([209.177.154.210]:45318 "EHLO feh.colobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751586AbeEVUFf (ORCPT ); Tue, 22 May 2018 16:05:35 -0400 X-Greylist: delayed 579 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 May 2018 16:05:34 EDT Received: from feh.colobox.com (localhost [127.0.0.1]) by feh.colobox.com (Postfix) with ESMTP id 3CB286601D5; Tue, 22 May 2018 19:55:55 +0000 (UTC) Received: from [IPv6:2001:470:1f05:22e::5] (linda.snowman.colobox.com [IPv6:2001:470:1f05:22e::5]) by feh.colobox.com (Postfix) with ESMTPSA id B644E660068; Tue, 22 May 2018 19:55:54 +0000 (UTC) Subject: Re: [PATCH] PCI/portdrv: do not disable device on remove() To: Sinan Kaya , linux-pci@vger.kernel.org, timur@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Bjorn Helgaas , "Rafael J. Wysocki" , Frederick Lawler , Dongdong Liu , Gabriele Paoloni , Keith Busch , open list References: <1527011883-21320-1-git-send-email-okaya@codeaurora.org> From: Ryan Finnie Message-ID: <28781ad3-2105-8127-e385-6d42e3e75ae3@finnie.org> Date: Tue, 22 May 2018 12:55:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1527011883-21320-1-git-send-email-okaya@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/22/2018 10:58 AM, Sinan Kaya wrote: > 'Commit cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during > shutdown")' has been added to kernel to shutdown pending PCIe port > service interrupts during reboot so that a newly started kexec kernel > wouldn't observe pending interrupts. > > pcie_port_device_remove() is disabling the root port and switches by > calling pci_disable_device() after all PCIe service drivers are shutdown. > > pci_disable_device() has a much wider impact then port service itself and > it prevents all inbound transactions to reach to the system and impacts > the entire PCI traffic behind the bridge. > > Issue is that pcie_port_device_remove() doesn't maintain any coordination > with the rest of the PCI device drivers in the system before clearing the > bus master bit. > > This has been found to cause crashes on HP DL360 Gen9 machines during > reboot. Besides, kexec is already clearing the bus master bit in > pci_device_shutdown() after all PCI drivers are removed. FAOD, this problem has been observed on both DL360 Gen9 and DL380 Gen9, in both EFI and legacy modes. I suspect all Gen9 models with the P89 firmware base. > Just remove the extra clear here. Thank you! Fix tested on: - DL360 Gen9 - DL380 Gen9 - DL380 Gen10 (confirmed no regression) - DL380 G7 (confirmed no regression) > Signed-off-by: Sinan Kaya > Link: https://bugzilla.kernel.org/show_bug.cgi?id=199779 > Fixes: cc27b735ad3a ("PCI/portdrv: Turn off PCIe services during shutdown") > Cc: stable@vger.kernel.org > Reported-by: Ryan Finnie Tested-by: Ryan Finnie