From: Damien Le Moal <dlemoal@kernel.org>
To: Marek Vasut <marek.vasut+renesas@mailbox.org>, linux-pci@vger.kernel.org
Cc: "Krzysztof Wilczyński" <kw@linux.com>,
"Pali Rohár" <pali@kernel.org>,
"Uwe Kleine-Kö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>,
"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: Re: [PATCH v4 01/15] genirq/msi: Silence set affinity failed warning
Date: Wed, 24 Jul 2024 07:54:47 +0900 [thread overview]
Message-ID: <b77f741f-24da-445b-99bc-8765dabdf820@kernel.org> (raw)
In-Reply-To: <20240723132958.41320-2-marek.vasut+renesas@mailbox.org>
On 7/23/24 10:27 PM, Marek Vasut wrote:
> Various PCIe controllers that mux MSIs onto single IRQ line produce these
> "IRQ%d: set affinity failed" warnings when entering suspend. This has been
> discussed before [1] [2] and an example test case is included at the end
> of this commit message.
>
> Controller drivers which create MSI IRQ domain with MSI_FLAG_USE_DEF_CHIP_OPS
> flag set and which do not override the .irq_set_affinity irqchip callback get
> assigned default .irq_set_affinity = msi_domain_set_affinity() callback. That
> is not desired on controllers where it is not possible to set affinity of each
> MSI IRQ line to a specific CPU core due to hardware limitation.
>
> Introduce dedicated flag MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity
> unset in case the controller driver did not assign the callback. This way, the
> migrate_one_irq() code in cpuhotplug.c can exit right away, without printing
> the aforementioned warning. The .irq_set_affinity implementations which only
> return -EINVAL can be removed from multiple controller drivers.
>
> ```
> $ grep 25 /proc/interrupts
> 25: 0 0 0 0 0 0 0 0 PCIe MSI 0 Edge PCIe PME
>
> $ echo core > /sys/power/pm_test ; echo mem > /sys/power/state
> ...
> Disabling non-boot CPUs ...
> IRQ25: set affinity failed(-22). <---------- This is being silenced here
> psci: CPU7 killed (polled 4 ms)
> ...
> ```
>
> [1] https://lore.kernel.org/all/d4a6eea3c5e33a3a4056885419df95a7@kernel.org/
> [2] https://lore.kernel.org/all/5f4947b18bf381615a37aa81c2242477@kernel.org/
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Looks good to me.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2024-07-23 22:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-23 13:27 [PATCH v4 00/15] genirq/msi: Silence set affinity failed warning Marek Vasut
2024-07-23 13:27 ` [PATCH v4 01/15] " Marek Vasut
2024-07-23 22:54 ` Damien Le Moal [this message]
2024-07-23 13:27 ` [PATCH v4 02/15] PCI: aardvark: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 03/15] PCI: altera-msi: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 04/15] PCI: brcmstb: " Marek Vasut
2024-07-24 0:00 ` Florian Fainelli
2024-07-23 13:27 ` [PATCH v4 05/15] PCI: dwc: " Marek Vasut
2024-07-23 22:53 ` Damien Le Moal
2024-07-24 13:47 ` Manivannan Sadhasivam
2024-07-23 13:27 ` [PATCH v4 06/15] PCI: mediatek-gen3: " Marek Vasut
2024-07-24 6:27 ` Jianjun Wang (王建军)
2024-07-23 13:27 ` [PATCH v4 07/15] PCI: mediatek: " Marek Vasut
2024-07-24 6:25 ` Jianjun Wang (王建军)
2024-07-23 13:27 ` [PATCH v4 08/15] PCI: mobiveil: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 09/15] PCI: plda: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 10/15] PCI: rcar-host: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 11/15] PCI: tegra: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 12/15] PCI: vmd: " Marek Vasut
2024-08-05 14:30 ` Nirmal Patel
2024-07-23 13:27 ` [PATCH v4 13/15] PCI: xilinx-nwl: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 14/15] PCI: xilinx-xdma: " Marek Vasut
2024-07-23 13:27 ` [PATCH v4 15/15] PCI: xilinx: " Marek Vasut
2024-07-24 13:50 ` [PATCH v4 00/15] genirq/msi: " Manivannan Sadhasivam
2024-07-24 15:43 ` Bjorn Helgaas
2024-07-26 12:10 ` Thomas Gleixner
2024-07-26 18:57 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b77f741f-24da-445b-99bc-8765dabdf820@kernel.org \
--to=dlemoal@kernel.org \
--cc=Jisheng.Zhang@synaptics.com \
--cc=Zhiqiang.Hou@nxp.com \
--cc=amishin@t-argos.ru \
--cc=anna-maria@linutronix.de \
--cc=apatel@ventanamicro.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=daire.mcnamara@microchip.com \
--cc=den@valinux.co.jp \
--cc=florian.fainelli@broadcom.com \
--cc=jianjun.wang@mediatek.com \
--cc=jim2101024@gmail.com \
--cc=jingoohan1@gmail.com \
--cc=jonathan.derrick@linux.dev \
--cc=jonathanh@nvidia.com \
--cc=joyce.ooi@intel.com \
--cc=kishon@kernel.org \
--cc=kw@linux.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 \
--cc=lpieralisi@kernel.org \
--cc=m.karthikeyan@mobiveil.co.in \
--cc=manivannan.sadhasivam@linaro.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=maz@kernel.org \
--cc=michal.simek@amd.com \
--cc=nipun.gupta@amd.com \
--cc=nirmal.patel@linux.intel.com \
--cc=nsaenz@kernel.org \
--cc=pali@kernel.org \
--cc=robh@kernel.org \
--cc=ryder.lee@mediatek.com \
--cc=s-vadapalli@ti.com \
--cc=shivamurthy.shastri@linutronix.de \
--cc=tglx@linutronix.de \
--cc=thierry.reding@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=yoshihiro.shimoda.uh@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.