Received: by 10.223.185.116 with SMTP id b49csp1074814wrg; Sat, 3 Mar 2018 14:51:41 -0800 (PST) X-Google-Smtp-Source: AG47ELvrGuKlEGDAS6Kdw05F8xqXnMyl9ZSDZ4TlcTT1R6pQROjrsxW/bR965L27cOxEXTIzFswa X-Received: by 10.99.128.195 with SMTP id j186mr8267416pgd.15.1520117500990; Sat, 03 Mar 2018 14:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520117500; cv=none; d=google.com; s=arc-20160816; b=NpBanbNHyT4RMrBG2epdXbgOqml7ivopAO6/KbAbAoNwpDUvwJVgDYyiMQcVIvVEQP f4zCqJ70uRIx3bxVnM65hdxhUgA1XkhCgwPYif2v3np0+5c6euUNBwnanRtxBkFw5zMn eieWz31NVIYTyRs1e+IoKDXm1Xl+2jfMnCv4mza20xLFwJ/AuzcgiA/80q71Uaiho2vg fzJbVzmHnRijoGLRo2ERkrBmU8Ve6woncDpgV6WkU5OxLqnJospiZq4H4nfu+GvPoHOj 6Y/AtM96NSwueHfmBHN3dI8/C6p2HtKSCbd3ndbpOV9z22j0tBPv6NvBdZeqCHzywkld 2wNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=K703OjnWehtlAfoggrnV8koc9DZlEcm0l7Nh1aXe974=; b=wemdvZTZRhdMiERq0DCX+r+ZZiPoMBt+8R0Gqd+kj7/h/oe7EaKcsc39yUPK1VYAts H9DjIsw8cWus+ZLcvQGIgAhQk5pIFbZdoCVaSTuWs1f4iepZwyGTFkAg+3PgWdHspADP ldnZgBjomInNUTDyzJwJSSuXr/zlzfV8DMQgGuDnCW0lM+4ui8lmsdKnhgJ4vEy8dayM 3Lr1vSGgIdoQbm3/UR8djIRGeoDXbVSdYwMggkhBtZR09ZbbZJhHbTzpXNA216TbHTGb NoYsbSO6KY/RD9hh+f309IEVxeDcRVM1fl724VCGASgQ7tmDbolRcOOWFBswAj+0UImu LN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=b0gh4dtK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si7441889pfc.43.2018.03.03.14.51.26; Sat, 03 Mar 2018 14:51:40 -0800 (PST) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=b0gh4dtK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935466AbeCCWlN (ORCPT + 99 others); Sat, 3 Mar 2018 17:41:13 -0500 Received: from mail-cys01nam02on0109.outbound.protection.outlook.com ([104.47.37.109]:30112 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935365AbeCCWlA (ORCPT ); Sat, 3 Mar 2018 17:41:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=K703OjnWehtlAfoggrnV8koc9DZlEcm0l7Nh1aXe974=; b=b0gh4dtKjUFFyowpC7OXxgHncgSxrhfcohjRiQsSv0/UtPbarFEStS0NKplfPCa/Pa0THGfrxEbHIY330LIH2PbAN7272YZliwNQtsYn6Z3N5b/O+KRLdilDnN0puAwYPl8nUkUdifnkuHhcW4IZeADdK7q+7Q+e1FFaUCD+SPw= Received: from MW2PR2101MB1034.namprd21.prod.outlook.com (52.132.149.10) by MWHSPR01MB344.namprd21.prod.outlook.com (10.174.251.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.3; Sat, 3 Mar 2018 22:40:56 +0000 Received: from MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0]) by MW2PR2101MB1034.namprd21.prod.outlook.com ([fe80::1d56:338f:e2b:cec0%3]) with mapi id 15.20.0567.006; Sat, 3 Mar 2018 22:40:56 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Prarit Bhargava , Bjorn Helgaas , Alex Williamson , David Arcari , Myron Stowe , Lukas Wunner , Keith Busch , Mika Westerberg , Sasha Levin Subject: [PATCH AUTOSEL for 3.18 05/63] PCI/MSI: Stop disabling MSI/MSI-X in pci_device_shutdown() Thread-Topic: [PATCH AUTOSEL for 3.18 05/63] PCI/MSI: Stop disabling MSI/MSI-X in pci_device_shutdown() Thread-Index: AQHTsz+cVvcbChRWj0OP1Vj451QxzQ== Date: Sat, 3 Mar 2018 22:33:11 +0000 Message-ID: <20180303223228.27323-5-alexander.levin@microsoft.com> References: <20180303223228.27323-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223228.27323-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHSPR01MB344;7:ooOa9Ykl4OzjIvrEVoo28jwM480pjjiC6Mi/ICUscIM11rSjGsvukfVqWs1Z7kThideLKQhTtilvYLcJG5eiF4Tq+NEZ6QX1SyVYpfpGB68hQL6q1Aq4q0rCflXS1k0cpWMqZA7HfkIlSwB9pOOm5n+48oT6hDbS4OSm6ETFm3acHZxX2sIeLaETjKmXtUMpdVyqIWt+az4t0GtrEGS7TzqXUxZjGAG9Iox0JHIAMvX/OBD8eE8KO1EtdAcTfRvu x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d64a305d-e476-47ab-8585-08d58157d422 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:MWHSPR01MB344; x-ms-traffictypediagnostic: MWHSPR01MB344: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(211936372134217)(153496737603132)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(3231220)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:MWHSPR01MB344;BCL:0;PCL:0;RULEID:;SRVR:MWHSPR01MB344; x-forefront-prvs: 0600F93FE1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(346002)(39860400002)(366004)(39380400002)(189003)(54534003)(199004)(8676002)(5660300001)(5250100002)(2501003)(6506007)(575784001)(7736002)(7416002)(36756003)(25786009)(3846002)(6116002)(966005)(97736004)(305945005)(2900100001)(76176011)(6436002)(10090500001)(26005)(8936002)(186003)(81166006)(102836004)(81156014)(106356001)(86362001)(10290500003)(3660700001)(2906002)(99286004)(14454004)(86612001)(105586002)(478600001)(4326008)(6486002)(53936002)(107886003)(68736007)(316002)(54906003)(110136005)(6512007)(72206003)(3280700002)(22452003)(2950100002)(1076002)(6306002)(6666003)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHSPR01MB344;H:MW2PR2101MB1034.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: zy6CLRPlqVC6Ql97quoB3f8uyLuaMKVaMcV4Xg26q46ALkthGC6xmZaAl2Vfuctbu3K2TT428PsHCnGwyR49xBp+viNLhCXsem4yGQMkIBLZ9T2kDU8SHnw7tiQ+13GcwcEk3e4MBxUTPsNJI+k6GgnlNqaT5gmgk6KKq3toQLU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d64a305d-e476-47ab-8585-08d58157d422 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2018 22:33:11.4035 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHSPR01MB344 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Prarit Bhargava [ Upstream commit fda78d7a0ead144f4b2cdb582dcba47911f4952c ] The pci_bus_type .shutdown method, pci_device_shutdown(), is called from device_shutdown() in the kernel restart and shutdown paths. Previously, pci_device_shutdown() called pci_msi_shutdown() and pci_msix_shutdown(). This disables MSI and MSI-X, which causes the device to fall back to raising interrupts via INTx. But the driver is still bound to the device, it doesn't know about this change, and it likely doesn't have an INTx handler, so these INTx interrupts cause "nobody cared" warnings like this: irq 16: nobody cared (try booting with the "irqpoll" option) CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.8.2-1.el7_UNSUPPORTED.x86_64 = #1 Hardware name: Hewlett-Packard HP Z820 Workstation/158B, BIOS J63 v03.90 = 06/ ... The MSI disabling code was added by d52877c7b1af ("pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2") because a driver left MSI enabled and kdump failed because the kexeced kernel wasn't prepared to receive the MSI interrupts. Subsequent commits 1851617cd2da ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI") and e80e7edc55ba ("PCI/MSI: Initialize MSI capability for all architectures") changed the kexeced kernel to disable all MSIs itself so it no longer depends on the crashed kernel to clean up after itself. Stop disabling MSI/MSI-X in pci_device_shutdown(). This resolves the "nobody cared" unhandled IRQ issue above. It also allows PCI serial devices, which may rely on the MSI interrupts, to continue outputting messages during reboot/shutdown. [bhelgaas: changelog, drop pci_msi_shutdown() and pci_msix_shutdown() calls altogether] Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=3D187351 Signed-off-by: Prarit Bhargava Signed-off-by: Bjorn Helgaas CC: Alex Williamson CC: David Arcari CC: Myron Stowe CC: Lukas Wunner CC: Keith Busch CC: Mika Westerberg Signed-off-by: Sasha Levin --- drivers/pci/pci-driver.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 0ad37e69746d..b92480973586 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -450,8 +450,6 @@ static void pci_device_shutdown(struct device *dev) =20 if (drv && drv->shutdown) drv->shutdown(pci_dev); - pci_msi_shutdown(pci_dev); - pci_msix_shutdown(pci_dev); =20 #ifdef CONFIG_KEXEC /* --=20 2.14.1