Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2205154yba; Fri, 19 Apr 2019 14:27:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy1QpQCiX3t1ZvZTFtBcSLK4tQc8ObI/zXs7rwmZgfzy5HWP3n2LVW4jRkOHkxdvj7Ey8o X-Received: by 2002:a63:700f:: with SMTP id l15mr6110099pgc.3.1555709240950; Fri, 19 Apr 2019 14:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555709240; cv=none; d=google.com; s=arc-20160816; b=E6JJdqAcRYQfxhrRlCXAmqjEVqgFKyAxtF9Ftsb+3i+fQ/4eIZ7L6VkCFGKA4gdTnr BoCjUKnz6JP5xLWw5Cj+nR48sbHR1YGXPlnXsMglSO0ZxbvJJA00xvnskDLSYLvo3f9T bipfp9hwS8IgWb9AnnoVTTS8yyyQLK8TUKXQ5Udvlg5X82BPTrNcY2yGxX+jTIIW/lwS zT2R5cZ4NWGKPtux0/iRbxeEQQKtdpq3jGHSAlGoqtvH8JH3ruMCXjV4uTFTWgeZEvbO DJ1sCyOf3R3i1G80h8JOSe/AH3q5kb/REBvo/8luHhj1TpjlGG8zww0nuq53gzBpAGiW /ZRg== 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=hL3Jm5tZxpNcKpZfN6lSi1Bgc3wMyIWhNMOw+uAIBCM=; b=Icnb7+NeXzL1NIlSgRmCoFjNoTwAONBfiRqfcTOcJpP007P3IWr5/Nuqx38cC2PgXS P7OyLs8jgE7k+eZJ2riv90HSE5lVlvxoaLuNIhDKtzIc/waa7ghe5VuRkQRGN9fEMWdm adG75ROxGWGHLlOeuYCv2RJHsHcyfqDn3qT6lE0I3eGjfx9CDcHgXksH86LYm6hyer9w 2yAj1CXXZ9O6v6BDunYlAXM9TroJbuhdwa/fQNiacmxsgfUAKegwM1O5lz6Uv5STbAzj mnBis0/TtSrmyk1VxwiSiUOSHUcRnGbkYpwQmnHIBUcURH5G196acsHYjig4+/SVNC/Y UJYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lUM2U+El; 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 o6si2579896pgm.317.2019.04.19.14.27.04; Fri, 19 Apr 2019 14:27:20 -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=lUM2U+El; 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 S1727217AbfDSVZv (ORCPT + 99 others); Fri, 19 Apr 2019 17:25:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:52868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbfDSVZu (ORCPT ); Fri, 19 Apr 2019 17:25:50 -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 ED7B1208C0; Fri, 19 Apr 2019 21:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555709150; bh=tb1ffguJ12QkClCqK6MBuQJBa3JqOL22k+/DYt44WpA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lUM2U+ElyJBuNxlaAMZo6XdjagsnMH0rzpHVLIN4ONY5lhjeqqw10F7KyZ96dggD9 Q9SHCJnBs1IRHC5hrIj8OPk24ZI4AVTxB0A0staITou6FrK+HmPvY3y6OTkvlgX3lz 4Z76GY0AXJm7nKzMtAm97J0V2U5ttiIcyKO7OmHc= Date: Fri, 19 Apr 2019 16:25:48 -0500 From: Bjorn Helgaas To: Alex Williamson Cc: Alexandru Gagniuc , 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 v2] PCI/LINK: bw_notification: Do not leave interrupt handler NULL Message-ID: <20190419212548.GA253261@google.com> References: <20190320193504.GC251185@google.com> <20190323003700.7294-1-mr.nuke.me@gmail.com> <20190325222502.GC24180@google.com> <20190419150827.5040897e@x1.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190419150827.5040897e@x1.home> 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 Fri, Apr 19, 2019 at 03:08:27PM -0600, Alex Williamson wrote: > On Mon, 25 Mar 2019 17:25:02 -0500, Bjorn Helgaas wrote: > > On Fri, Mar 22, 2019 at 07:36:51PM -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. > > > > > > Fixes: e8303bb7a75c ("PCI/LINK: Report degraded links via link bandwidth notification") > > > Reported-by: Linus Torvalds > > > Signed-off-by: Alexandru Gagniuc > > > > Applied with the following subject line to for-linus for v5.1, thanks! > > > > PCI/LINK: Supply IRQ handler so level-triggered IRQs are acked > > That made it a little tricky to track down this thread. Yeah, sorry about that. I've been wondering if I should add lore.kernel.org URLs when I apply patches. Maybe this is one good reason to do that. Bjorn