Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3563698pxb; Fri, 4 Feb 2022 11:09:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhxlCGEnfSijC3htjFcoA4nXnJ/QicQZ4qqYjJToyDlpFGjYT/xKM8VSNuv3ofEF19IOF6 X-Received: by 2002:a17:90b:3ec8:: with SMTP id rm8mr398760pjb.207.1644001784371; Fri, 04 Feb 2022 11:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644001784; cv=none; d=google.com; s=arc-20160816; b=GLAzQIAskq93cTRpCycvgq7qpqFQtvWWkgDu62MMo+pVBqcKO9AZQ6Lb4h0hyBF2Vt /8FCEu/Wa8nGzE4AthhzzpbpmV0P9NWUZZ3u0JVkJBPELLcHbpdzido773I5px8zSyIQ V6yxddjgbSxFu5h5WPrRwCfExxlUHLRMfufiqE/FNd+e+QmAE4V8Lo54NUKRK7bKT68/ BlmU59mM5BIljmOtr/WZ+ZN6GAATzPw3R/9wOJoBhfq3ToWNePt7L4qm9msk+U3ohTXr u4aE99pN47X5bLjVLYxCqQpPYeTTtEdz4lDafuk0/Vt3ooT35enJwc9BEuiWRNaaLMF4 CTjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=XP3lDL86nG3+owFylk7w+wbAgqv9rYeQTDFzYj+Napk=; b=DIKHrKGEQYNxNTJrUY9Vf3AcrqX+otsTDrdtCQM0pkay7rAY8050TC6cOvyclSK6Fk XMFs9EQXMxKGKw3fnHqn6vDuL6oiX58W9gz2hk1KyxRUN0Omek12MQhwvoG9LJm/WY+m 6rteovm+KM6/54QXaCgR1L3ArSi5T60Fa7fBZkJsL65Z0YjzXUVBxrQ66MUDL76VIAps S1x3ik5a2ONUf/fKd9ab0GEtCWxvpETRzYSOQVs7iQyEqz6dc8CldtB9gNcnvAx1bte7 iPAcQfNJp8FSQDiYzif015xSboHZUi4x9eq/De8O6gWfPp32uPOncb0MH5UYVWF7GJBu ZDag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e63si2639957pgc.53.2022.02.04.11.09.33; Fri, 04 Feb 2022 11:09:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358400AbiBDL3Z (ORCPT + 99 others); Fri, 4 Feb 2022 06:29:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358367AbiBDL3Y (ORCPT ); Fri, 4 Feb 2022 06:29:24 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10666C061714 for ; Fri, 4 Feb 2022 03:29:24 -0800 (PST) Received: from ip4d144895.dynamic.kabel-deutschland.de ([77.20.72.149] helo=[192.168.66.200]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nFwmH-0002l2-Pj; Fri, 04 Feb 2022 12:29:21 +0100 Message-ID: Date: Fri, 4 Feb 2022 12:29:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [tip: irq/urgent] PCI/MSI: Remove bogus warning in pci_irq_get_affinity() Content-Language: en-BS To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org References: <87ee4n38sm.ffs@tglx> <164396506527.16921.1990922190197899743.tip-bot2@tip-bot2> From: Thorsten Leemhuis In-Reply-To: <164396506527.16921.1990922190197899743.tip-bot2@tip-bot2> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1643974164;6d3001aa; X-HE-SMSGID: 1nFwmH-0002l2-Pj Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [stripped the CC list to avoid spamming people, we all get enough mail] Thx for fixing the regression. Sadly the fix didn't link to all places where the issue was reported using "Link:" tags, as explained by both Documentation/process/submitting-patches.rst and Documentation/process/5.Posting.rst Please consider placing them in the future, at least one tool is relying on the presence of such links: my regression tracking bot 'regzbot', which using them to automatically detect patch posting and commits fixing tracked regressions -- which makes my my life as the Linux kernel's regression tracker a lot easier, as otherwise I have to tell regzbot about fixes manually: #regzbot fixed-by: dd7f5a11ac5a6f733f422dc22b tia! Ciao, Thorsten On 04.02.22 09:57, tip-bot2 for Thomas Gleixner wrote: > The following commit has been merged into the irq/urgent branch of tip: > > Commit-ID: dd7f5a11ac5a6f733f422dc22b4d145d3260304e > Gitweb: https://git.kernel.org/tip/dd7f5a11ac5a6f733f422dc22b4d145d3260304e > Author: Thomas Gleixner > AuthorDate: Mon, 31 Jan 2022 22:02:46 +01:00 > Committer: Thomas Gleixner > CommitterDate: Fri, 04 Feb 2022 09:54:20 +01:00 > > PCI/MSI: Remove bogus warning in pci_irq_get_affinity() > > The recent overhaul of pci_irq_get_affinity() introduced a regression when > pci_irq_get_affinity() is called for an MSI-X interrupt which was not > allocated with affinity descriptor information. > > The original code just returned a NULL pointer in that case, but the rework > added a WARN_ON() under the assumption that the corresponding WARN_ON() in > the MSI case can be applied to MSI-X as well. > > In fact the MSI warning in the original code does not make sense either > because it's legitimate to invoke pci_irq_get_affinity() for a MSI > interrupt which was not allocated with affinity descriptor information. > > Remove it and just return NULL as the original code did. > > Fixes: f48235900182 ("PCI/MSI: Simplify pci_irq_get_affinity()") > Reported-by: Guenter Roeck > Signed-off-by: Thomas Gleixner > Link: https://lore.kernel.org/r/87ee4n38sm.ffs@tglx > > --- > drivers/pci/msi/msi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/msi/msi.c b/drivers/pci/msi/msi.c > index c19c7ca..9037a78 100644 > --- a/drivers/pci/msi/msi.c > +++ b/drivers/pci/msi/msi.c > @@ -1111,7 +1111,8 @@ const struct cpumask *pci_irq_get_affinity(struct pci_dev *dev, int nr) > if (!desc) > return cpu_possible_mask; > > - if (WARN_ON_ONCE(!desc->affinity)) > + /* MSI[X] interrupts can be allocated without affinity descriptor */ > + if (!desc->affinity) > return NULL; > > /*