Message ID | 20240723132958.41320-4-marek.vasut+renesas@mailbox.org |
---|---|
State | New |
Headers | show
Return-Path: <linux-pci+bounces-10655-incoming=patchwork.ozlabs.org@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=GU/iI3ma; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=AB5QMkX5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-pci+bounces-10655-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WSytP398rz1ybY for <incoming@patchwork.ozlabs.org>; Tue, 23 Jul 2024 23:39:25 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8F799B2293D for <incoming@patchwork.ozlabs.org>; Tue, 23 Jul 2024 13:39:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9788215351A; Tue, 23 Jul 2024 13:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="GU/iI3ma"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="AB5QMkX5" X-Original-To: linux-pci@vger.kernel.org Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF080153517; Tue, 23 Jul 2024 13:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721741955; cv=none; b=Ynjkp2n0uZZmwRawckMJqbUu7PkOqI6KejqBqf20bhr0g8iKqKWcOgw49NLiOE4ZMfKv5BqBMgzmeYV0XjFLVk49SrfoBh4vffALR9rOvcux676t07BoYypDxhaLIwCVrF66KfVH2sLda9etQ7V3loBPT/CXrtBEkrM7jV2RcHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721741955; c=relaxed/simple; bh=2hcCZejZ7oGC6phjSDoJCf9JWvfftsvdxX6Gcz5/zHQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iRjy8ZvnVkrfO4xgZV1r5fqpuhV8ZNNuyb7eqq911ZMEhDciwYL0Yod0VemZmN1ZhGlLceemChniIB+zBNuobWimKttWgFLSQHSvt6MgAOwmODKd3ktMIRPs1VxX81LonjDalvsZDZiC76FwG/yG96NHAhyY9PbuHZhcUy2Fjao= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=GU/iI3ma; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=AB5QMkX5; arc=none smtp.client-ip=80.241.56.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4WSyhg662lz9sb6; Tue, 23 Jul 2024 15:30:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1721741459; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tcRN85GohiPDnjZVbOLzobJNclaig7kgN61Z0CRqah4=; b=GU/iI3ma44xTrHm+cy0gACgzOyg0lsW13A6wXhm01QVrZnnCFvsV7G+pLX1NDGi9k2rkBu Zrq8G7aO5URckyWwGstXP4OjTn/9kWD/CC9wtHfo/xj2zW8RrmNtSvVMgYZ5t6t+kZg4Lp NOSDShkDN3AMC7DhKVTpzcF5410jCbFFQ3z1+TKmIEHU8NWvEKy3D3laNFbJvr5D9iE1y0 DPjl1HlsjIGtSj6R42YIGcCo9RXxafCwK1LvgWyAEvWTi4Fya+TDjHI/XVB3DijYr6Wr7F wZ0Sv08+a23FbuON3SgRufuCG8gFC7HN0fjYAVSqYx3pwTsq9BCZvHEm+LNb3w== From: Marek Vasut <marek.vasut+renesas@mailbox.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1721741457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tcRN85GohiPDnjZVbOLzobJNclaig7kgN61Z0CRqah4=; b=AB5QMkX5ny9otzdytFAig+47kXseLjYFMtfy7Jxilz8LY0p3QIqS23pz4icA5p48nViCrn egOKefpciwmu+ACBhFO6SfLa6cp8f15c+ufIe6JrxR0oRsFfO8k0utUhD/84clG51gPoQA v8VB8a1pCWiMPbfPEK8GYLSF8DL6sGbUoFs9DWNDMYmRpFXfck4dblnJWlMuNr0tXpSAs0 ZZH9ci+z03uLXnzspCco82s8Qml5aLcswUe/tEqrrdcc0cNUur9o00w+YWFaQp3OjnVR7/ 8kzd9tDr1/Sd5/sa7Szpbqhbbjt5EP7BfUr4T7OG3mrTS2LK1OcI09HIHqeOtw== To: linux-pci@vger.kernel.org Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>, =?utf-8?q?Krzysztof_Wilcz?= =?utf-8?q?y=C5=84ski?= <kw@linux.com>, =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>, =?utf-8?q?Uwe_Kleine-K=C3=B6?= =?utf-8?q?nig?= <u.kleine-koenig@pengutronix.de>, Aleksandr Mishin <amishin@t-argos.ru>, Anna-Maria Behnsen <anna-maria@linutronix.de>, Anup Patel <apatel@ventanamicro.com>, Bjorn Helgaas <bhelgaas@google.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Daire McNamara <daire.mcnamara@microchip.com>, Damien Le Moal <dlemoal@kernel.org>, Florian Fainelli <florian.fainelli@broadcom.com>, Hou Zhiqiang <Zhiqiang.Hou@nxp.com>, Jianjun Wang <jianjun.wang@mediatek.com>, Jim Quinlan <jim2101024@gmail.com>, Jingoo Han <jingoohan1@gmail.com>, Jisheng Zhang <Jisheng.Zhang@synaptics.com>, Jon Hunter <jonathanh@nvidia.com>, Jonathan Derrick <jonathan.derrick@linux.dev>, Joyce Ooi <joyce.ooi@intel.com>, Karthikeyan Mitran <m.karthikeyan@mobiveil.co.in>, Kishon Vijay Abraham I <kishon@kernel.org>, Koichiro Den <den@valinux.co.jp>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Marc Zyngier <maz@kernel.org>, Michal Simek <michal.simek@amd.com>, Nicolas Saenz Julienne <nsaenz@kernel.org>, Niklas Cassel <cassel@kernel.org>, Nipun Gupta <nipun.gupta@amd.com>, Nirmal Patel <nirmal.patel@linux.intel.com>, Rob Herring <robh@kernel.org>, Ryder Lee <ryder.lee@mediatek.com>, Shivamurthy Shastri <shivamurthy.shastri@linutronix.de>, Siddharth Vadapalli <s-vadapalli@ti.com>, Thierry Reding <thierry.reding@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-tegra@vger.kernel.org Subject: [PATCH v4 03/15] PCI: altera-msi: Silence set affinity failed warning Date: Tue, 23 Jul 2024 15:27:03 +0200 Message-ID: <20240723132958.41320-4-marek.vasut+renesas@mailbox.org> In-Reply-To: <20240723132958.41320-1-marek.vasut+renesas@mailbox.org> References: <20240723132958.41320-1-marek.vasut+renesas@mailbox.org> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: <linux-pci.vger.kernel.org> List-Subscribe: <mailto:linux-pci+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pci+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 791c915bf466de4d55a X-MBO-RS-META: r3rx9w7cafn5jmsybfzyqixn5shnqi9h X-Rspamd-Queue-Id: 4WSyhg662lz9sb6 |
Series |
genirq/msi: Silence set affinity failed warning
|
expand
|
diff --git a/drivers/pci/controller/pcie-altera-msi.c b/drivers/pci/controller/pcie-altera-msi.c index 16336a525c167..e36a6e158d23c 100644 --- a/drivers/pci/controller/pcie-altera-msi.c +++ b/drivers/pci/controller/pcie-altera-msi.c @@ -81,8 +81,8 @@ static struct irq_chip altera_msi_irq_chip = { }; static struct msi_domain_info altera_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | - MSI_FLAG_PCI_MSIX), + .flags = MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | + MSI_FLAG_NO_AFFINITY | MSI_FLAG_PCI_MSIX, .chip = &altera_msi_irq_chip, }; @@ -99,16 +99,9 @@ static void altera_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) (int)data->hwirq, msg->address_hi, msg->address_lo); } -static int altera_msi_set_affinity(struct irq_data *irq_data, - const struct cpumask *mask, bool force) -{ - return -EINVAL; -} - static struct irq_chip altera_msi_bottom_irq_chip = { .name = "Altera MSI", .irq_compose_msi_msg = altera_compose_msi_msg, - .irq_set_affinity = altera_msi_set_affinity, }; static int altera_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
Use newly introduced MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity unset and allows migrate_one_irq() code in cpuhotplug.c to exit right away, without printing "IRQ...: set affinity failed(-22)" warning. Remove .irq_set_affinity implementation which only return -EINVAL from this controller driver. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> --- Cc: "Krzysztof Wilczyński" <kw@linux.com> Cc: "Pali Rohár" <pali@kernel.org> Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de> Cc: Aleksandr Mishin <amishin@t-argos.ru> Cc: Anna-Maria Behnsen <anna-maria@linutronix.de> Cc: Anup Patel <apatel@ventanamicro.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com> Cc: Daire McNamara <daire.mcnamara@microchip.com> Cc: Damien Le Moal <dlemoal@kernel.org> Cc: Florian Fainelli <florian.fainelli@broadcom.com> Cc: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Cc: Jianjun Wang <jianjun.wang@mediatek.com> Cc: Jim Quinlan <jim2101024@gmail.com> Cc: Jingoo Han <jingoohan1@gmail.com> Cc: Jisheng Zhang <Jisheng.Zhang@synaptics.com> Cc: Jon Hunter <jonathanh@nvidia.com> Cc: Jonathan Derrick <jonathan.derrick@linux.dev> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: Joyce Ooi <joyce.ooi@intel.com> Cc: Karthikeyan Mitran <m.karthikeyan@mobiveil.co.in> Cc: Kishon Vijay Abraham I <kishon@kernel.org> Cc: Koichiro Den <den@valinux.co.jp> Cc: Lorenzo Pieralisi <lpieralisi@kernel.org> Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Cc: Marc Zyngier <maz@kernel.org> Cc: Michal Simek <michal.simek@amd.com> Cc: Nicolas Saenz Julienne <nsaenz@kernel.org> Cc: Niklas Cassel <cassel@kernel.org> Cc: Nipun Gupta <nipun.gupta@amd.com> Cc: Nirmal Patel <nirmal.patel@linux.intel.com> Cc: Rob Herring <robh@kernel.org> Cc: Ryder Lee <ryder.lee@mediatek.com> Cc: Shivamurthy Shastri <shivamurthy.shastri@linutronix.de> Cc: Siddharth Vadapalli <s-vadapalli@ti.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Cc: linux-pci@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org Cc: linux-tegra@vger.kernel.org --- V4: - New patch --- drivers/pci/controller/pcie-altera-msi.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)