genirq/msi: Silence set affinity failed warning
Subsystems (20)
Marek Vasut
maintainerv4 cover genirq/msi: Silence set affinity failed warning
Various PCIe controllers that mux MSIs onto single IRQ line produce these "IRQ%d: set affinity failed" warnings when entering suspend. Remove the .irq_set_affinity callbacks and make sure they are NULL in all affected controllers, so this warning in kernel/irq/msi.c is not triggered.
This has been compile-tested only on all but the R-Car PCI controller.
The clean ups are done per-driver so they can be easily reverted in case they break something.
Marek Vasut (15):
genirq/msi: Silence set affinity failed warning
PCI: aardvark: Silence set affinity failed warning
PCI: altera-msi: Silence set affinity failed warning
PCI: brcmstb: Silence set affinity failed warning
PCI: dwc: Silence set affinity failed warning
PCI: mediatek-gen3: Silence set affinity failed warning
PCI: mediatek: Silence set affinity failed warning
PCI: mobiveil: Silence set affinity failed warning
PCI: plda: Silence set affinity failed warning
PCI: rcar-host: Silence set affinity failed warning
PCI: tegra: Silence set affinity failed warning
PCI: vmd: Silence set affinity failed warning
PCI: xilinx-nwl: Silence set affinity failed warning
PCI: xilinx-xdma: Silence set affinity failed warning
PCI: xilinx: Silence set affinity failed warning
drivers/pci/controller/dwc/pci-keystone.c | 7 ------- drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++--------- .../pci/controller/mobiveil/pcie-mobiveil-host.c | 11 ++--------- drivers/pci/controller/pci-aardvark.c | 10 ++-------- drivers/pci/controller/pci-tegra.c | 10 ++-------- drivers/pci/controller/pcie-altera-msi.c | 11 ++--------- drivers/pci/controller/pcie-brcmstb.c | 11 ++--------- drivers/pci/controller/pcie-mediatek-gen3.c | 13 +++---------- drivers/pci/controller/pcie-mediatek.c | 11 ++--------- drivers/pci/controller/pcie-rcar-host.c | 10 ++-------- drivers/pci/controller/pcie-xilinx-dma-pl.c | 11 ++--------- drivers/pci/controller/pcie-xilinx-nwl.c | 11 ++--------- drivers/pci/controller/pcie-xilinx.c | 9 ++------- drivers/pci/controller/plda/pcie-plda-host.c | 11 ++--------- drivers/pci/controller/vmd.c | 13 +------------ include/linux/msi.h | 2 ++ kernel/irq/msi.c | 2 +- 17 files changed, 32 insertions(+), 133 deletions(-)
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 1/15 genirq/msi: Silence set affinity failed warning
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/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: - Introduce MSI_FLAG_NO_AFFINITY to inhibit assignment
of msi_domain_set_affinity()
V3: - Replace MSI_FLAG_USE_DEF_CHIP_OPS_NOAFF with MSI_FLAG_NO_AFFINITY
and make MSI_FLAG_NO_AFFINITY into separate flag
- Update commit message
- Rebase on current linux-next
- Use genirq/msi: subject prefix which is likely better fit now
- Split off R-Car part of the patch
V4: No change
--- include/linux/msi.h | 2 ++ kernel/irq/msi.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
include/linux/msi.h +2 -0
@@ -554,6 +554,8 @@ enum {MSI_FLAG_MSIX_CONTIGUOUS = (1 <<19 ),/* PCI/MSI-X vectors can be dynamically allocated/freed post MSI-X enable */ MSI_FLAG_PCI_MSIX_ALLOC_DYN = (1 <<20 ), +/* PCI MSIs cannot be steered separately to CPU cores */ + MSI_FLAG_NO_AFFINITY = (1 << 21), };/**
kernel/irq/msi.c +1 -1
@@ -832,7 +832,7 @@ static void msi_domain_update_chip_ops(struct msi_domain_info *info)struct irq_chip *chip = info->chip;BUG_ON (!chip || !chip->irq_mask || !chip->irq_unmask); -if (!chip->irq_set_affinity) +if (!chip->irq_set_affinity && !(info->flags &MSI_FLAG_NO_AFFINITY )) chip->irq_set_affinity = msi_domain_set_affinity; }
Signature · 1 line
2.43.0
Quoted 29 lines · Marek Vasut
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_OPSflag 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, themigrate_one_irq()code incpuhotplug.ccan exit right away, without printing the aforementioned warning. The .irq_set_affinity implementations which only return-EINVALcan 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) ... ```
Quoted 4 lines
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/Signed-off-by Marek Vasut <[email protected]>
Looks good to me.
Signature · 2 lines
Damien Le Moal Western Digital Research
Marek Vasut
maintainerPATCH v4 2/15 PCI: aardvark: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pci-aardvark.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/pci/controller/pci-aardvark.c +2 -8
@@ -1304,12 +1304,6 @@ static void advk_msi_irq_compose_msi_msg(struct irq_data *data, msg->data = data->hwirq; } -static int advk_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void advk_msi_irq_mask (struct irq_data *d) {struct advk_pcie *pcie = d->domain->host_data;
@@ -1353,7 +1347,6 @@ static void advk_msi_top_irq_unmask(struct irq_data *d)static struct irq_chip advk_msi_bottom_irq_chip = { .name ="MSI" , .irq_compose_msi_msg = advk_msi_irq_compose_msi_msg, - .irq_set_affinity = advk_msi_set_affinity, .irq_mask = advk_msi_irq_mask, .irq_unmask = advk_msi_irq_unmask, };
@@ -1451,7 +1444,8 @@ static struct irq_chip advk_msi_irq_chip = {static struct msi_domain_info advk_msi_domain_info = { .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_MULTI_PCI_MSI |MSI_FLAG_PCI_MSIX , +MSI_FLAG_NO_AFFINITY |MSI_FLAG_MULTI_PCI_MSI | +MSI_FLAG_PCI_MSIX , .chip = &advk_msi_irq_chip, };
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 3/15 PCI: altera-msi: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-altera-msi.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/pcie-altera-msi.c +2 -9
@@ -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,
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 4/15 PCI: brcmstb: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-brcmstb.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/pcie-brcmstb.c +2 -9
@@ -445,8 +445,8 @@ static struct irq_chip brcm_msi_irq_chip = { };static struct msi_domain_info brcm_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_MULTI_PCI_MSI , .chip = &brcm_msi_irq_chip, };
@@ -484,12 +484,6 @@ static void brcm_msi_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg->data = (0xffff &PCIE_MISC_MSI_DATA_CONFIG_VAL_32 ) | data->hwirq; } -static int brcm_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void brcm_msi_ack_irq (struct irq_data *data) {struct brcm_msi *msi =irq_data_get_irq_chip_data (data);
@@ -502,7 +496,6 @@ static void brcm_msi_ack_irq(struct irq_data *data)static struct irq_chip brcm_msi_bottom_irq_chip = { .name ="BRCM STB MSI" , .irq_compose_msi_msg = brcm_msi_compose_msi_msg, - .irq_set_affinity = brcm_msi_set_affinity, .irq_ack = brcm_msi_ack_irq, };
Signature · 1 line
2.43.0
Re: [PATCH v4 04/15] PCI: brcmstb: Silence set affinity failed warning
Quoted 8 lines · Marek Vasut
Use newly introduced
MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity unset and allowsmigrate_one_irq()code incpuhotplug.cto exit right away, without printing "IRQ...: set affinity failed(-22)" warning.Remove .irq_set_affinity implementation which only return
-EINVALfrom this controller driver.Signed-off-by Marek Vasut <[email protected]>
Signature · 1 line
Florian
Marek Vasut
maintainerPATCH v4 5/15 PCI: dwc: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/dwc/pci-keystone.c | 7 ------- drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++--------- 2 files changed, 3 insertions(+), 16 deletions(-)
drivers/pci/controller/dwc/pci-keystone.c +0 -7
@@ -189,12 +189,6 @@ static void ks_pcie_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) (int)data->hwirq, msg->address_hi, msg->address_lo); } -static int ks_pcie_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void ks_pcie_msi_mask (struct irq_data *data) {struct dw_pcie_rp *pp =irq_data_get_irq_chip_data (data);
@@ -247,7 +241,6 @@ static struct irq_chip ks_pcie_msi_irq_chip = { .name = "KEYSTONE-PCI-MSI", .irq_ack = ks_pcie_msi_irq_ack, .irq_compose_msi_msg = ks_pcie_compose_msi_msg, - .irq_set_affinity = ks_pcie_msi_set_affinity, .irq_mask = ks_pcie_msi_mask, .irq_unmask = ks_pcie_msi_unmask, };
drivers/pci/controller/dwc/pcie-designware-host.c +3 -9
@@ -48,8 +48,9 @@ static struct irq_chip dw_pcie_msi_irq_chip = { };static struct msi_domain_info dw_pcie_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_PCI_MSIX |MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_PCI_MSIX | +MSI_FLAG_MULTI_PCI_MSI , .chip = &dw_pcie_msi_irq_chip, };
@@ -116,12 +117,6 @@ static void dw_pci_setup_msi_msg(struct irq_data *d, struct msi_msg *msg) (int)d->hwirq, msg->address_hi, msg->address_lo); } -static int dw_pci_msi_set_affinity (struct irq_data *d, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void dw_pci_bottom_mask (struct irq_data *d) {struct dw_pcie_rp *pp =irq_data_get_irq_chip_data (d);
@@ -177,7 +172,6 @@ static struct irq_chip dw_pci_msi_bottom_irq_chip = { .name = "DWPCI-MSI", .irq_ack = dw_pci_bottom_ack, .irq_compose_msi_msg = dw_pci_setup_msi_msg, - .irq_set_affinity = dw_pci_msi_set_affinity, .irq_mask = dw_pci_bottom_mask, .irq_unmask = dw_pci_bottom_unmask, };
Signature · 1 line
2.43.0
Re: [PATCH v4 05/15] PCI: dwc: Silence set affinity failed warning
Quoted 8 lines · Marek Vasut
Use newly introduced
MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity unset and allowsmigrate_one_irq()code incpuhotplug.cto exit right away, without printing "IRQ...: set affinity failed(-22)" warning.Remove .irq_set_affinity implementation which only return
-EINVALfrom this controller driver.Signed-off-by Marek Vasut <[email protected]>
Looks good to me.
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH v4 05/15] PCI: dwc: Silence set affinity failed warning
In reply to Marek VasutQuoted 8 lines · Marek Vasut
Use newly introduced
MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity unset and allowsmigrate_one_irq()code incpuhotplug.cto exit right away, without printing "IRQ...: set affinity failed(-22)" warning.Remove .irq_set_affinity implementation which only return
-EINVALfrom this controller driver.Signed-off-by Marek Vasut <[email protected]>
- Mani
Quoted 118 lines
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch--- drivers/pci/controller/dwc/pci-keystone.c | 7 ------- drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++--------- 2 files changed, 3 insertions(+), 16 deletions(-)drivers/pci/controller/dwc/pci-keystone.c +0
-7@@ -189,12 +189,6 @@ static void ks_pcie_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) (int)data->hwirq, msg->address_hi, msg->address_lo); } -static int ks_pcie_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void ks_pcie_msi_mask (struct irq_data *data) {struct dw_pcie_rp *pp =irq_data_get_irq_chip_data (data);@@ -247,7 +241,6 @@ static struct irq_chip ks_pcie_msi_irq_chip = { .name = "KEYSTONE-PCI-MSI", .irq_ack = ks_pcie_msi_irq_ack, .irq_compose_msi_msg = ks_pcie_compose_msi_msg, - .irq_set_affinity = ks_pcie_msi_set_affinity, .irq_mask = ks_pcie_msi_mask, .irq_unmask = ks_pcie_msi_unmask, };drivers/pci/controller/dwc/pcie-designware-host.c +3
-9@@ -48,8 +48,9 @@ static struct irq_chip dw_pcie_msi_irq_chip = { };static struct msi_domain_info dw_pcie_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_PCI_MSIX |MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_PCI_MSIX | +MSI_FLAG_MULTI_PCI_MSI , .chip = &dw_pcie_msi_irq_chip, };@@ -116,12 +117,6 @@ static void dw_pci_setup_msi_msg(struct irq_data *d, struct msi_msg *msg) (int)d->hwirq, msg->address_hi, msg->address_lo); } -static int dw_pci_msi_set_affinity (struct irq_data *d, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void dw_pci_bottom_mask (struct irq_data *d) {struct dw_pcie_rp *pp =irq_data_get_irq_chip_data (d);@@ -177,7 +172,6 @@ static struct irq_chip dw_pci_msi_bottom_irq_chip = { .name = "DWPCI-MSI", .irq_ack = dw_pci_bottom_ack, .irq_compose_msi_msg = dw_pci_setup_msi_msg, - .irq_set_affinity = dw_pci_msi_set_affinity, .irq_mask = dw_pci_bottom_mask, .irq_unmask = dw_pci_bottom_unmask, };Signature · 1 line
2.43.0
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Marek Vasut
maintainerPATCH v4 6/15 PCI: mediatek-gen3: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-mediatek-gen3.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)
drivers/pci/controller/pcie-mediatek-gen3.c +3 -10
@@ -424,12 +424,6 @@ static int mtk_pcie_startup_port(struct mtk_gen3_pcie *pcie)return 0 ; } -static int mtk_pcie_set_affinity (struct irq_data *data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void mtk_pcie_msi_irq_mask (struct irq_data *data) {pci_msi_mask_irq (data);
@@ -450,8 +444,9 @@ static struct irq_chip mtk_msi_irq_chip = { };static struct msi_domain_info mtk_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_PCI_MSIX |MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_PCI_MSIX | +MSI_FLAG_MULTI_PCI_MSI , .chip = &mtk_msi_irq_chip, };
@@ -517,7 +512,6 @@ static struct irq_chip mtk_msi_bottom_irq_chip = { .irq_mask = mtk_msi_bottom_irq_mask, .irq_unmask = mtk_msi_bottom_irq_unmask, .irq_compose_msi_msg = mtk_compose_msi_msg, - .irq_set_affinity = mtk_pcie_set_affinity, .name = "MSI", };
@@ -618,7 +612,6 @@ static struct irq_chip mtk_intx_irq_chip = { .irq_mask = mtk_intx_mask, .irq_unmask = mtk_intx_unmask, .irq_eoi = mtk_intx_eoi, - .irq_set_affinity = mtk_pcie_set_affinity, .name = "INTx", };
Signature · 1 line
2.43.0
Re: [PATCH v4 06/15] PCI: mediatek-gen3: Silence set affinity failed warning
Quoted 9 lines · Marek Vasut
External email : Please do not click links or open attachments until you have verified the sender or the content.
Use newly introducedMSI_FLAG_NO_AFFINITY, which keeps
.irq_set_affinity unset
and allowsmigrate_one_irq()code incpuhotplug.cto exit right away, without
printing "IRQ...: set affinity failed(-22)" warning.
Quoted 5 lines
Remove .irq_set_affinity implementation which only return
-EINVALfrom this
controller driver.Signed-off-by Marek Vasut <[email protected]>
Marek Vasut
maintainerPATCH v4 7/15 PCI: mediatek: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-mediatek.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/pcie-mediatek.c +2 -9
@@ -407,12 +407,6 @@ static void mtk_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) (int)data->hwirq, msg->address_hi, msg->address_lo); } -static int mtk_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void mtk_msi_ack_irq (struct irq_data *data) {struct mtk_pcie_port *port =irq_data_get_irq_chip_data (data);
@@ -424,7 +418,6 @@ static void mtk_msi_ack_irq(struct irq_data *data)static struct irq_chip mtk_msi_bottom_irq_chip = { .name ="MTK MSI" , .irq_compose_msi_msg = mtk_compose_msi_msg, - .irq_set_affinity = mtk_msi_set_affinity, .irq_ack = mtk_msi_ack_irq, };
@@ -486,8 +479,8 @@ static struct irq_chip mtk_msi_irq_chip = { };static struct msi_domain_info mtk_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 = &mtk_msi_irq_chip, };
Signature · 1 line
2.43.0
Re: [PATCH v4 07/15] PCI: mediatek: Silence set affinity failed warning
Quoted 9 lines · Marek Vasut
External email : Please do not click links or open attachments until you have verified the sender or the content.
Use newly introducedMSI_FLAG_NO_AFFINITY, which keeps
.irq_set_affinity unset
and allowsmigrate_one_irq()code incpuhotplug.cto exit right away, without
printing "IRQ...: set affinity failed(-22)" warning.
Quoted 5 lines
Remove .irq_set_affinity implementation which only return
-EINVALfrom this
controller driver.Signed-off-by Marek Vasut <[email protected]>
Marek Vasut
maintainerPATCH v4 8/15 PCI: mobiveil: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c +2 -9
@@ -360,8 +360,8 @@ static struct irq_chip mobiveil_msi_irq_chip = { };static struct msi_domain_info mobiveil_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 = &mobiveil_msi_irq_chip, };
@@ -378,16 +378,9 @@ static void mobiveil_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) (int)data->hwirq, msg->address_hi, msg->address_lo); } -static int mobiveil_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static struct irq_chip mobiveil_msi_bottom_irq_chip = { .name ="Mobiveil MSI" , .irq_compose_msi_msg = mobiveil_compose_msi_msg, - .irq_set_affinity = mobiveil_msi_set_affinity, }; static int mobiveil_irq_msi_domain_alloc(struct irq_domain *domain,
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 9/15 PCI: plda: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/plda/pcie-plda-host.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/plda/pcie-plda-host.c +2 -9
@@ -76,17 +76,10 @@ static void plda_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) (int)data->hwirq, msg->address_hi, msg->address_lo); } -static int plda_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static struct irq_chip plda_msi_bottom_irq_chip = { .name ="PLDA MSI" , .irq_ack = plda_msi_bottom_irq_ack, .irq_compose_msi_msg = plda_compose_msi_msg, - .irq_set_affinity = plda_msi_set_affinity, }; static int plda_irq_msi_domain_alloc(struct irq_domain *domain,
@@ -146,8 +139,8 @@ static struct irq_chip plda_msi_irq_chip = { };static struct msi_domain_info plda_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 = &plda_msi_irq_chip, };
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 10/15 PCI: rcar-host: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V3: - New patch
V4: - Update subject prefix
--- drivers/pci/controller/pcie-rcar-host.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/pci/controller/pcie-rcar-host.c +2 -8
@@ -658,11 +658,6 @@ static void rcar_msi_irq_unmask(struct irq_data *d)spin_unlock_irqrestore (&msi->mask_lock, flags); } -static int rcar_msi_set_affinity (struct irq_data *d,const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void rcar_compose_msi_msg (struct irq_data *data,struct msi_msg *msg) {struct rcar_msi *msi =irq_data_get_irq_chip_data (data);
@@ -678,7 +673,6 @@ static struct irq_chip rcar_msi_bottom_chip = { .irq_ack = rcar_msi_irq_ack, .irq_mask = rcar_msi_irq_mask, .irq_unmask = rcar_msi_irq_unmask, - .irq_set_affinity = rcar_msi_set_affinity, .irq_compose_msi_msg = rcar_compose_msi_msg, };
@@ -725,8 +719,8 @@ static const struct irq_domain_ops rcar_msi_domain_ops = { };static struct msi_domain_info rcar_msi_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_MULTI_PCI_MSI , .chip = &rcar_msi_top_chip, };
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 11/15 PCI: tegra: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V3: - New patch
V4: No change
--- drivers/pci/controller/pci-tegra.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/pci/controller/pci-tegra.c +2 -8
@@ -1629,11 +1629,6 @@ static void tegra_msi_irq_unmask(struct irq_data *d)spin_unlock_irqrestore (&msi->mask_lock, flags); } -static int tegra_msi_set_affinity (struct irq_data *d,const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void tegra_compose_msi_msg (struct irq_data *data,struct msi_msg *msg) {struct tegra_msi *msi =irq_data_get_irq_chip_data (data);
@@ -1648,7 +1643,6 @@ static struct irq_chip tegra_msi_bottom_chip = { .irq_ack = tegra_msi_irq_ack, .irq_mask = tegra_msi_irq_mask, .irq_unmask = tegra_msi_irq_unmask, - .irq_set_affinity = tegra_msi_set_affinity, .irq_compose_msi_msg = tegra_compose_msi_msg, };
@@ -1697,8 +1691,8 @@ static const struct irq_domain_ops tegra_msi_domain_ops = { };static struct msi_domain_info tegra_msi_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 = &tegra_msi_top_chip, };
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 12/15 PCI: vmd: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/vmd.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
drivers/pci/controller/vmd.c +1 -12
@@ -204,22 +204,11 @@ static void vmd_irq_disable(struct irq_data *data)raw_spin_unlock_irqrestore (&list_lock, flags); } -/* -* XXX: Stubbed until we develop acceptable way to not create conflicts with -* other devices sharing the same vector. -*/ -static int vmd_irq_set_affinity (struct irq_data *data, -const struct cpumask *dest,bool force) -{ -return -EINVAL ; -} -static struct irq_chip vmd_msi_controller = { .name ="VMD-MSI" , .irq_enable = vmd_irq_enable, .irq_disable = vmd_irq_disable, .irq_compose_msi_msg = vmd_compose_msi_msg, - .irq_set_affinity = vmd_irq_set_affinity, }; static irq_hw_number_t vmd_get_hwirq(struct msi_domain_info *info,
@@ -326,7 +315,7 @@ static struct msi_domain_ops vmd_msi_domain_ops = {static struct msi_domain_info vmd_msi_domain_info = { .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_PCI_MSIX , +MSI_FLAG_NO_AFFINITY |MSI_FLAG_PCI_MSIX , .ops = &vmd_msi_domain_ops, .chip = &vmd_msi_controller, };
Signature · 1 line
2.43.0
Re: [PATCH v4 12/15] PCI: vmd: Silence set affinity failed warning
Quoted 94 lines · On Tue, 23 Jul 2024 15:27:12 +0200 Marek Vasut…
Use newly introduced
MSI_FLAG_NO_AFFINITY, which keeps .irq_set_affinity unset and allowsmigrate_one_irq()code incpuhotplug.cto exit right away, without printing "IRQ...: set affinity failed(-22)" warning.Remove .irq_set_affinity implementation which only return
-EINVALfrom this controller driver.Signed-off-by Marek Vasut <[email protected]>---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]> Cc: Daire McNamara <[email protected]> Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch--- drivers/pci/controller/vmd.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)(quoted diff) +0
-0
b/drivers/pci/controller/vmd.cindexa726de0af011f..bc849b0d9e8dc100644 ---a/drivers/pci/controller/vmd.c
+++b/drivers/pci/controller/vmd.cdrivers/pci/controller/vmd.c +0
-2@@ -204,22 +204,11 @@ static void vmd_irq_disable(struct irq_data *data) raw_spin_unlock_irqrestore(&list_lock, flags); } -/* -* XXX: Stubbed until we develop acceptable way to not create conflicts with
- * other devices sharing the same vector.
- */(quoted diff) +0
-2-static int vmd_irq_set_affinity(struct irq_data *data, - const struct cpumask *dest, boolforce) -{
drivers/pci/controller/vmd.c +0
-4-return -EINVAL ; -} -static struct irq_chip vmd_msi_controller = { .name ="VMD-MSI" , .irq_enable = vmd_irq_enable, .irq_disable = vmd_irq_disable, .irq_compose_msi_msg = vmd_compose_msi_msg, - .irq_set_affinity = vmd_irq_set_affinity, }; static irq_hw_number_t vmd_get_hwirq(struct msi_domain_info *info,@@ -326,7 +315,7 @@ static struct msi_domain_ops vmd_msi_domain_ops = { static struct msi_domain_info vmd_msi_domain_info = { .flags = MSI_FLAG_USE_DEF_DOM_OPS |
MSI_FLAG_USE_DEF_CHIP_OPS|
drivers/pci/controller/vmd.c static struct msi_domain_ops vmd_msi_domain_ops = { · line 321
Quoted 5 lines
drivers/pci/controller/vmd.c +1
-1- MSI_FLAG_PCI_MSIX, + MSI_FLAG_NO_AFFINITY | MSI_FLAG_PCI_MSIX, .ops = &vmd_msi_domain_ops, .chip = &vmd_msi_controller, };
Thanks.
Marek Vasut
maintainerPATCH v4 13/15 PCI: xilinx-nwl: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-xilinx-nwl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/pcie-xilinx-nwl.c +2 -9
@@ -425,8 +425,8 @@ static struct irq_chip nwl_msi_irq_chip = { };static struct msi_domain_info nwl_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_MULTI_PCI_MSI , .chip = &nwl_msi_irq_chip, };#endif
@@ -441,16 +441,9 @@ static void nwl_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg->data = data->hwirq; } -static int nwl_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static struct irq_chip nwl_irq_chip = { .name ="Xilinx MSI" , .irq_compose_msi_msg = nwl_compose_msi_msg, - .irq_set_affinity = nwl_msi_set_affinity, }; static int nwl_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 14/15 PCI: xilinx-xdma: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-xilinx-dma-pl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
drivers/pci/controller/pcie-xilinx-dma-pl.c +2 -9
@@ -355,8 +355,8 @@ static struct irq_chip xilinx_msi_irq_chip = { };static struct msi_domain_info xilinx_msi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | -MSI_FLAG_MULTI_PCI_MSI ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY |MSI_FLAG_MULTI_PCI_MSI , .chip = &xilinx_msi_irq_chip, };
@@ -370,16 +370,9 @@ static void xilinx_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg->data = data->hwirq; } -static int xilinx_msi_set_affinity (struct irq_data *irq_data, -const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static struct irq_chip xilinx_irq_chip = { .name ="pl_dma:MSI" , .irq_compose_msi_msg = xilinx_compose_msi_msg, - .irq_set_affinity = xilinx_msi_set_affinity, }; static int xilinx_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
Signature · 1 line
2.43.0
Marek Vasut
maintainerPATCH v4 15/15 PCI: xilinx: Silence set affinity failed warning
In reply to Marek VasutUse 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.
---
Cc: "Krzysztof Wilczyński" <[email protected]>
Cc: "Pali Rohár" <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Cc: Aleksandr Mishin <[email protected]>
Cc: Anna-Maria Behnsen <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Broadcom internal kernel review list <[email protected]>
Cc: Daire McNamara <[email protected]>
Cc: Damien Le Moal <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Jianjun Wang <[email protected]>
Cc: Jim Quinlan <[email protected]>
Cc: Jingoo Han <[email protected]>
Cc: Jisheng Zhang <[email protected]>
Cc: Jon Hunter <[email protected]>
Cc: Jonathan Derrick <[email protected]>
Cc: Jonathan Hunter <[email protected]>
Cc: Joyce Ooi <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Koichiro Den <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Manivannan Sadhasivam <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nicolas Saenz Julienne <[email protected]>
Cc: Niklas Cassel <[email protected]>
Cc: Nipun Gupta <[email protected]>
Cc: Nirmal Patel <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Shivamurthy Shastri <[email protected]>
Cc: Siddharth Vadapalli <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Yoshihiro Shimoda <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V4: - New patch
--- drivers/pci/controller/pcie-xilinx.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/pci/controller/pcie-xilinx.c +2 -7
@@ -208,11 +208,6 @@ static struct irq_chip xilinx_msi_top_chip = { .irq_ack = xilinx_msi_top_irq_ack, }; -static int xilinx_msi_set_affinity (struct irq_data *d,const struct cpumask *mask,bool force) -{ -return -EINVAL ; -} -static void xilinx_compose_msi_msg (struct irq_data *data,struct msi_msg *msg) {struct xilinx_pcie *pcie =irq_data_get_irq_chip_data (data);
@@ -225,7 +220,6 @@ static void xilinx_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)static struct irq_chip xilinx_msi_bottom_chip = { .name ="Xilinx MSI" , - .irq_set_affinity = xilinx_msi_set_affinity, .irq_compose_msi_msg = xilinx_compose_msi_msg, };
@@ -271,7 +265,8 @@ static const struct irq_domain_ops xilinx_msi_domain_ops = { };static struct msi_domain_info xilinx_msi_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS ), + .flags =MSI_FLAG_USE_DEF_DOM_OPS |MSI_FLAG_USE_DEF_CHIP_OPS | +MSI_FLAG_NO_AFFINITY , .chip = &xilinx_msi_top_chip, };
Signature · 1 line
2.43.0
Quoted 10 lines · Marek Vasut
Various PCIe controllers that mux MSIs onto single IRQ line produce these "IRQ%d: set affinity failed" warnings when entering suspend. Remove the .irq_set_affinity callbacks and make sure they are NULL in all affected controllers, so this warning in
kernel/irq/msi.cis not triggered.This has been compile-tested only on all but the R-Car PCI controller.
The clean ups are done per-driver so they can be easily reverted in case they break something.
Whole series looks good to me (PCI controller specific patches).
FWIW,
- Mani
Quoted 85 lines
Marek Vasut (15):
genirq/msi: Silence set affinity failed warning
PCI: aardvark: Silence set affinity failed warning
PCI: altera-msi: Silence set affinity failed warning
PCI: brcmstb: Silence set affinity failed warning
PCI: dwc: Silence set affinity failed warning
PCI: mediatek-gen3: Silence set affinity failed warning
PCI: mediatek: Silence set affinity failed warning
PCI: mobiveil: Silence set affinity failed warning
PCI: plda: Silence set affinity failed warning
PCI: rcar-host: Silence set affinity failed warning
PCI: tegra: Silence set affinity failed warning
PCI: vmd: Silence set affinity failed warning
PCI: xilinx-nwl: Silence set affinity failed warning
PCI: xilinx-xdma: Silence set affinity failed warning
PCI: xilinx: Silence set affinity failed warningdrivers/pci/controller/dwc/pci-keystone.c | 7 ------- drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++--------- .../pci/controller/mobiveil/pcie-mobiveil-host.c | 11 ++--------- drivers/pci/controller/pci-aardvark.c | 10 ++-------- drivers/pci/controller/pci-tegra.c | 10 ++-------- drivers/pci/controller/pcie-altera-msi.c | 11 ++--------- drivers/pci/controller/pcie-brcmstb.c | 11 ++--------- drivers/pci/controller/pcie-mediatek-gen3.c | 13 +++---------- drivers/pci/controller/pcie-mediatek.c | 11 ++--------- drivers/pci/controller/pcie-rcar-host.c | 10 ++-------- drivers/pci/controller/pcie-xilinx-dma-pl.c | 11 ++--------- drivers/pci/controller/pcie-xilinx-nwl.c | 11 ++--------- drivers/pci/controller/pcie-xilinx.c | 9 ++------- drivers/pci/controller/plda/pcie-plda-host.c | 11 ++--------- drivers/pci/controller/vmd.c | 13 +------------ include/linux/msi.h | 2 ++ kernel/irq/msi.c | 2 +- 17 files changed, 32 insertions(+), 133 deletions(-)Cc "Krzysztof Wilczyński" <[email protected]>Cc "Pali Rohár" <[email protected]>Cc "Uwe Kleine-König" <[email protected]>Cc Aleksandr Mishin <[email protected]>Cc Anna-Maria Behnsen <[email protected]>Cc Anup Patel <[email protected]>Cc Bjorn Helgaas <[email protected]>Cc Broadcom internal kernel review list <[email protected]>Cc Daire McNamara <[email protected]>Cc Damien Le Moal <[email protected]>Cc Florian Fainelli <[email protected]>Cc Hou Zhiqiang <[email protected]>Cc Jianjun Wang <[email protected]>Cc Jim Quinlan <[email protected]>Cc Jingoo Han <[email protected]>Cc Jisheng Zhang <[email protected]>Cc Jon Hunter <[email protected]>Cc Jonathan Derrick <[email protected]>Cc Jonathan Hunter <[email protected]>Cc Joyce Ooi <[email protected]>Cc Karthikeyan Mitran <[email protected]>Cc Kishon Vijay Abraham I <[email protected]>Cc Koichiro Den <[email protected]>Cc Lorenzo Pieralisi <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Cc Marc Zyngier <[email protected]>Cc Michal Simek <[email protected]>Cc Nicolas Saenz Julienne <[email protected]>Cc Niklas Cassel <[email protected]>Cc Nipun Gupta <[email protected]>Cc Nirmal Patel <[email protected]>Cc Rob Herring <[email protected]>Cc Ryder Lee <[email protected]>Cc Shivamurthy Shastri <[email protected]>Cc Siddharth Vadapalli <[email protected]>Cc Thierry Reding <[email protected]>Cc Thomas Gleixner <[email protected]>Cc Thomas Petazzoni <[email protected]>Cc Yoshihiro Shimoda <[email protected]>Signature · 1 line
2.43.0
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 10 lines · Marek Vasut
Various PCIe controllers that mux MSIs onto single IRQ line produce these "IRQ%d: set affinity failed" warnings when entering suspend. Remove the .irq_set_affinity callbacks and make sure they are NULL in all affected controllers, so this warning in
kernel/irq/msi.cis not triggered.This has been compile-tested only on all but the R-Car PCI controller.
The clean ups are done per-driver so they can be easily reverted in case they break something.
Quoted 16 lines
Marek Vasut (15):
genirq/msi: Silence set affinity failed warning
PCI: aardvark: Silence set affinity failed warning
PCI: altera-msi: Silence set affinity failed warning
PCI: brcmstb: Silence set affinity failed warning
PCI: dwc: Silence set affinity failed warning
PCI: mediatek-gen3: Silence set affinity failed warning
PCI: mediatek: Silence set affinity failed warning
PCI: mobiveil: Silence set affinity failed warning
PCI: plda: Silence set affinity failed warning
PCI: rcar-host: Silence set affinity failed warning
PCI: tegra: Silence set affinity failed warning
PCI: vmd: Silence set affinity failed warning
PCI: xilinx-nwl: Silence set affinity failed warning
PCI: xilinx-xdma: Silence set affinity failed warning
PCI: xilinx: Silence set affinity failed warning
Happy to apply this series via the PCI tree given an ack from Thomas.
In that event I would rewrap the commit logs to fit in 75 columns and include a note in the driver patches about what event causes the warning. No need to repost for that unless other changes are needed.
Thanks for doing this work!
Bjorn
Thomas Gleixner
Acked-byQuoted 1 line · Bjorn Helgaas
Happy to apply this series via the PCI tree given an ack from Thomas.
Here you go:
Bjorn Helgaas
AppliedQuoted 37 lines · Marek Vasut
Various PCIe controllers that mux MSIs onto single IRQ line produce these "IRQ%d: set affinity failed" warnings when entering suspend. Remove the .irq_set_affinity callbacks and make sure they are NULL in all affected controllers, so this warning in
kernel/irq/msi.cis not triggered.This has been compile-tested only on all but the R-Car PCI controller.
The clean ups are done per-driver so they can be easily reverted in case they break something.
Marek Vasut (15):
genirq/msi: Silence set affinity failed warning
PCI: aardvark: Silence set affinity failed warning
PCI: altera-msi: Silence set affinity failed warning
PCI: brcmstb: Silence set affinity failed warning
PCI: dwc: Silence set affinity failed warning
PCI: mediatek-gen3: Silence set affinity failed warning
PCI: mediatek: Silence set affinity failed warning
PCI: mobiveil: Silence set affinity failed warning
PCI: plda: Silence set affinity failed warning
PCI: rcar-host: Silence set affinity failed warning
PCI: tegra: Silence set affinity failed warning
PCI: vmd: Silence set affinity failed warning
PCI: xilinx-nwl: Silence set affinity failed warning
PCI: xilinx-xdma: Silence set affinity failed warning
PCI: xilinx: Silence set affinity failed warningdrivers/pci/controller/dwc/pci-keystone.c | 7 ------- drivers/pci/controller/dwc/pcie-designware-host.c | 12 +++--------- .../pci/controller/mobiveil/pcie-mobiveil-host.c | 11 ++--------- drivers/pci/controller/pci-aardvark.c | 10 ++-------- drivers/pci/controller/pci-tegra.c | 10 ++-------- drivers/pci/controller/pcie-altera-msi.c | 11 ++--------- drivers/pci/controller/pcie-brcmstb.c | 11 ++--------- drivers/pci/controller/pcie-mediatek-gen3.c | 13 +++---------- drivers/pci/controller/pcie-mediatek.c | 11 ++--------- drivers/pci/controller/pcie-rcar-host.c | 10 ++--------
Quoted 8 lines
drivers/pci/controller/pcie-xilinx-dma-pl.c | 11 ++--------- drivers/pci/controller/pcie-xilinx-nwl.c | 11 ++--------- drivers/pci/controller/pcie-xilinx.c | 9 ++------- drivers/pci/controller/plda/pcie-plda-host.c | 11 ++--------- drivers/pci/controller/vmd.c | 13 +------------ include/linux/msi.h | 2 ++ kernel/irq/msi.c | 2 +- 17 files changed, 32 insertions(+), 133 deletions(-)
Applied to pci/controller/affinity for v6.11, thank you very much for doing this work!
I pushed this branch, but it won't show up in linux-next until after v6.12-rc1 is tagged.