]> git.baikalelectronics.ru Git - kernel.git/commitdiff
irqchip/irq-gic-v3-its.c: Force synchronisation when issuing INVALL
authorWudi Wang <wangwudi@hisilicon.com>
Wed, 8 Dec 2021 01:54:29 +0000 (09:54 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 8 Dec 2021 11:13:18 +0000 (11:13 +0000)
INVALL CMD specifies that the ITS must ensure any caching associated with
the interrupt collection defined by ICID is consistent with the LPI
configuration tables held in memory for all Redistributors. SYNC is
required to ensure that INVALL is executed.

Currently, LPI configuration data may be inconsistent with that in the
memory within a short period of time after the INVALL command is executed.

Signed-off-by: Wudi Wang <wangwudi@hisilicon.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Fixes: cc2d3216f53c ("irqchip: GICv3: ITS command queue")
Link: https://lore.kernel.org/r/20211208015429.5007-1-zhangshaokun@hisilicon.com
drivers/irqchip/irq-gic-v3-its.c

index eb0882d1536661475086a132bb0db4efee9ae4e6..0cb584d9815b96b3d219a3fc493bc35981fc6413 100644 (file)
@@ -742,7 +742,7 @@ static struct its_collection *its_build_invall_cmd(struct its_node *its,
 
        its_fixup_cmd(cmd);
 
-       return NULL;
+       return desc->its_invall_cmd.col;
 }
 
 static struct its_vpe *its_build_vinvall_cmd(struct its_node *its,