Received: by 10.223.185.116 with SMTP id b49csp2397250wrg; Mon, 12 Feb 2018 08:55:47 -0800 (PST) X-Google-Smtp-Source: AH8x227gMukHKWfBpnIVNZFAdeR+gYTiGYpjtMbjtakfaGsISx+YWGYnBa1lRo/zOhAUJMqPlzRO X-Received: by 10.98.6.4 with SMTP id 4mr2619353pfg.181.1518454547756; Mon, 12 Feb 2018 08:55:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454547; cv=none; d=google.com; s=arc-20160816; b=sMu8NTSUpz8tR2d0AhOZIui/tdXY8/t/49QTkMrawVPTL/xAom5LZGo5LRYdGD2N9e EiSAw5spH45T2JpYY+L1reYBzQWjQBxMo0Mm7TS4ciEgGAIDt/2RfcJagLVXitgruYQ8 yHzMywwwgmRHUT2mtnDP/hs2DVom7hbe8T/f+Og5r3eJE9ybUv0maCEIuK61cQq3gIgO 1ea/CR8m/Ns1nacTJF9PWvTI1QTU4jcd5K9bwH088QptO7CCAsE7wAAONR16j4H3Qs02 awQ5Ad+S2dGe3BzJnGj/N99blCSO26AuRbzFlhWA4I0U910rlrhdt0Q2KmmgkAmcp3RM FLgw== 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:dmarc-filter:arc-authentication-results; bh=Xrue+DaBgZvP9PIUKuWHzHNc+RoIZWmdzZuHstCPemE=; b=mJASv+FMpmLNtcyQptESkW0SGKIwKcnhYENftW53vRlaT9QoMAigjICArJ+f7/Qhd5 gkrtEe+Bz0oR3HKVkYlltrCrYZBmu08xuxqr13YtUBRbMIwTJ8RQRG/97o4S+3IT/7gj 9AYl749lUvwElqyGEDRR5a2UfM+MFFSVbyAmLcXxBy7oSWjtvMJBZK7WXmRInqO3+01Y ukpcx2E23MH/dTXGQakY+sBSgyqlLHQMfD+P/g+4VC/3NQfakqrX986C9O6/4b757ct7 IXqTI481da/eZFoykOWGwSYv5V6CuUJRTZZTIToLX+k99t24hrUZ0qUrhJRV5v7lQG0I 35qQ== 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 h13si36256pgn.782.2018.02.12.08.55.31; Mon, 12 Feb 2018 08:55:47 -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; 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 S933652AbeBLPBz (ORCPT + 99 others); Mon, 12 Feb 2018 10:01:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:46350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932574AbeBLPBw (ORCPT ); Mon, 12 Feb 2018 10:01:52 -0500 Received: from localhost (unknown [69.71.4.159]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B354217AE; Mon, 12 Feb 2018 15:01:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B354217AE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Mon, 12 Feb 2018 09:01:46 -0600 From: Bjorn Helgaas To: Lukas Wunner Cc: linux-pci@vger.kernel.org, Prarit Bhargava , linux-kernel@vger.kernel.org, MUNEDA Takahiro , Kenji Kaneshige Subject: Re: [PATCH] PCI/portdrv: Remove "pcie_hp=nomsi" kernel parameter Message-ID: <20180212150146.GA75542@bhelgaas-glaptop.roam.corp.google.com> References: <20180211024815.73781.92853.stgit@bhelgaas-glaptop.roam.corp.google.com> <20180211092525.GA1085@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180211092525.GA1085@wunner.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 11, 2018 at 10:25:25AM +0100, Lukas Wunner wrote: > On Sat, Feb 10, 2018 at 08:48:15PM -0600, Bjorn Helgaas wrote: > > 7570a333d8b0 ("PCI: Add pcie_hp=nomsi to disable MSI/MSI-X for pciehp > > driver") added the "pcie_hp=nomsi" kernel parameter to work around this > > error on shutdown: > > > > irq 16: nobody cared (try booting with the "irqpoll" option) > > Pid: 1081, comm: reboot Not tainted 3.2.0 #1 > > ... > > Disabling IRQ #16 > > > > This happened on an unspecified system (possibly involving the Integrated > > Device Technology, Inc. Device 807f bridge). There is no automated way to > > set this parameter, so it's not very useful for distributions or end users. > > > > I suspect the root cause of the underlying "irq 16: nobody cared" issue was > > fixed by Prarit Bhargava with fda78d7a0ead ("PCI/MSI: > > Stop disabling MSI/MSI-X in pci_device_shutdown()") and we probably don't > > need "pcie_hp=nomsi" any more. > > > > Revert 7570a333d8b0 to remove the "pcie_hp=nomsi" parameter. > > This has been useful when bringing up broken hardware which claims to > support MSI but really doesn't, such as in commit 19bf4d4f909d > ("thunderbolt: Support 1st gen Light Ridge controller"). In this case > I didn't know why the controller wasn't sending interrupts, on a hunch > I tried "pcie_hp=nomsi" and that worked, and looking in the macOS source > code I was able to verify that they disable MSI for this particular > hardware as well. So please leave it in to ease developers' lives. Wouldn't "pci=nomsi" be sufficient for that sort of bringup experimentation? We don't need to be super specific in that situation. The reason I want to remove it is that the port driver (drivers/pci/pcie/portdrv*) has become a rat's nest of switches and special cases, and I'm trying to simplify it. Things like "pcie_hp=nomsi" are trivial individually, but collectively it's getting unmanageable. Bjorn