Skip to contentSkip to conversation

irqchip/gic-v3-its: Use the its_invall_cmd descriptor when building INVALL

PATCH RESEND In review Zenghui Yu 2 participants 2 messages Feb 3, 2020

Subsystems (2)
lore
Share & tools
lore

Zenghui Yu

author
#0 lore raw

PATCH RESEND 1/1 irqchip/gic-v3-its: Use the its_invall_cmd descriptor when building INVALL

It looks like an obvious mistake to use its_mapc_cmd descriptor when building the INVALL command block. It so far worked by luck because both its_mapc_cmd.col and its_invall_cmd.col sit at the same offset of the ITS command descriptor, but we should not rely on it.

Fixes cc2d3216f53c ("irqchip: GICv3: ITS command queue")

---

This patch has been originally posted at:
https://lore.kernel.org/r/[email protected]
but somehow has been missed for 5.5. So repost it.

 drivers/irqchip/irq-gic-v3-its.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3-its.c +1 -1
index f71758632f8d..e5a25d97f8db 100644
@@ -661,7 +661,7 @@ static struct its_collection *its_build_invall_cmd(struct its_node *its,
 						   struct its_cmd_desc *desc)
 {
 	its_encode_cmd(cmd, GITS_CMD_INVALL);
-	its_encode_collection(cmd, desc->its_mapc_cmd.col->col_id);
+	its_encode_collection(cmd, desc->its_invall_cmd.col->col_id);
 
 	its_fixup_cmd(cmd);
 
Signature · 1 line
2.19.1
maintainer
#1 lore raw
Quoted 5 lines · Zenghui Yu

It looks like an obvious mistake to use its_mapc_cmd descriptor when building the INVALL command block. It so far worked by luck because both its_mapc_cmd.col and its_invall_cmd.col sit at the same offset of the ITS command descriptor, but we should not rely on it.

Quoted 7 lines
Fixes cc2d3216f53c ("irqchip: GICv3: ITS command queue")

---

This patch has been originally posted at:
https://lore.kernel.org/r/[email protected]
but somehow has been missed for 5.5. So repost it.

Oops, sorry about that. Now applied and pushed out.

        M.
Signature · 1 line
Jazz is not dead. It just smells funny...