Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp869639img; Wed, 20 Mar 2019 12:36:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTOqN0UmxMmYAnioXfJNVxdf3eQ8J1qVBTr6A+j8YK9Eyxllu7Yro9BeZ6VTIgUKAHnLQh X-Received: by 2002:a17:902:b481:: with SMTP id y1mr6579566plr.338.1553110582164; Wed, 20 Mar 2019 12:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553110582; cv=none; d=google.com; s=arc-20160816; b=QER7MrpdBKaKQbh05VXQItx0ZOaMa6aRh+OO31/hG6Js28V8T1TlqdAiFN6cmBjx54 UQ1F1wPGGheFuL1LirbyERKVvoglS5BLJAUeH0hARfzGjqN2vFmI71gWSa+aeAViJNco IwFKQLis8uOAb7FjCWCtTZVwTCWhG1BZnzzhyflbSdIYfer+iUpD/ZLNER+VW8A3Tvb8 u0w5GeEthQ2y9/xORBIFUNgkpgKTwAf2TE/o7VLUy+4feHw9B3Kr4FCxfQFkov86r4Ep PGk4NBGP8TvqDT6ee5SD/D6g05fBTqyFi3R67nK82KDnXDahPUt1fbZ0dcme9YbiFflO SQ8A== 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:dkim-signature; bh=J6EfG7bKC5t1XIhlEfSmSpVkSNQVTxRXcjvRfjUrU6s=; b=SidNVT9UooUo8dqVuzVpV1bU7inr4ZJv7FTmURitmpBgMxNHmRx8nBsPJJ4IaBGsRM D0vJDJisXskUu0c7yqBFMxuRbzcI+lEDa9C82+h92pjxADACjeFO9PjemH3QEka4Epdf aG+6tr+FH6x2F/4A35o672Q/5etXy6+iQJnRzohR59ltO+X2IO1cLtLeAOJdANxuz220 jXF1bwO6Bd0om4pU1L2jigRuKUhOP5IXZRHZxvKLHNIbDQnVjlT6byRLCvVGNOpaNhxe f+edEOe41wW+2NHarLNqIqghwYdOgVUq7HUx7w1VrME39ZrItf2OVtuOO1V99lVuOfMl RNqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xdbgb0nE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si2346828pgq.35.2019.03.20.12.36.03; Wed, 20 Mar 2019 12:36:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Xdbgb0nE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbfCTTfG (ORCPT + 99 others); Wed, 20 Mar 2019 15:35:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:53618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfCTTfG (ORCPT ); Wed, 20 Mar 2019 15:35:06 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF0DF21873; Wed, 20 Mar 2019 19:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553110506; bh=jvvLiH2iJjCgEDrTXP1PkXjPrCfbbo/h+b/rmsBSqXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xdbgb0nEmA5Mw2YPK89F0gzKHmn4GcYv8HDSERy5wrfGpkM4zCtG/4SIGpK+AJ3ak xBIpdwVy+y72hcmUOBBQGGvUn/i22qfZAaTTgi1p8EK/ya2BT5awVUVDVr1uU6S99X mE5Uc94b0q018x+m8F7exk7JNPtdBne/yRvJjn4M= Date: Wed, 20 Mar 2019 14:35:04 -0500 From: Bjorn Helgaas To: "Alex G." Cc: austin_bolen@dell.com, alex_gagniuc@dellteam.com, keith.busch@intel.com, Shyam_Iyer@Dell.com, lukas@wunner.de, okaya@kernel.org, torvalds@linux-foundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI/LINK: bw_notification: Do not leave interrupt handler NULL Message-ID: <20190320193504.GC251185@google.com> References: <20190319011214.7847-1-mr.nuke.me@gmail.com> <20190320134632.GA251185@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 08:48:33AM -0500, Alex G. wrote: > On 3/20/19 8:46 AM, Bjorn Helgaas wrote: > > On Mon, Mar 18, 2019 at 08:12:04PM -0500, Alexandru Gagniuc wrote: > > > A threaded IRQ with a NULL handler does not work with level-triggered > > > interrupts. request_threaded_irq() will return an error: > > > > > > genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 16 > > > pcie_bw_notification: probe of 0000:00:1b.0:pcie010 failed with error -22 > > > > > > For level interrupts we need to silence the interrupt before exiting > > > the IRQ handler, so just clear the PCI_EXP_LNKSTA_LBMS bit there. > > > > > > Reported-by: Linus Torvalds > > > Signed-off-by: Alexandru Gagniuc > > > > What's your thought regarding Lukas' comment? If you do repost this, > > please add a Fixes: tag to help connect this with the initial commit. > > I like Lukas's idea. I should have this re-posted by end of week, unless > there's an urgency to get it out earlier. It would have been ideal to get the fix in -rc2, but I guess the end of the week is OK because it's probably already too late for me to apply it, run it through 0-day, get it in -next, and ask Linus to pull it for -rc2. Bjorn