Commit 4b2dfe1e authored by Marc Zyngier's avatar Marc Zyngier

irqchip/gic-v4.1: Update effective affinity of virtual SGIs

Although the vSGIs are not directly visible to the host, they still
get moved around by the CPU hotplug, for example. This results in
the kernel moaning on the console, such as:

  genirq: irq_chip GICv4.1-sgi did not update eff. affinity mask of irq 38

Updating the effective affinity on set_affinity() fixes it.
Reviewed-by: default avatarZenghui Yu <yuzenghui@huawei.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 96806229
...@@ -4054,6 +4054,7 @@ static int its_sgi_set_affinity(struct irq_data *d, ...@@ -4054,6 +4054,7 @@ static int its_sgi_set_affinity(struct irq_data *d,
* not on the host (since they can only be targetting a vPE). * not on the host (since they can only be targetting a vPE).
* Tell the kernel we've done whatever it asked for. * Tell the kernel we've done whatever it asked for.
*/ */
irq_data_update_effective_affinity(d, mask_val);
return IRQ_SET_MASK_OK; return IRQ_SET_MASK_OK;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment