Skip to contentSkip to conversation

irqchip/gic-v5: Remove the redundant ITS cache invalidation

PATCH Applied Zenghui Yu 3 participants 3 messages Sep 3, 2025

Subsystems (3)
lore
Share & tools
lore

Zenghui Yu

author
#0 lore raw

PATCH 1/1 irqchip/gic-v5: Remove the redundant ITS cache invalidation

An ITS cache invalidation has been performed immediately after programming the L2 DTE in gicv5_its_device_register(). No need to perform it again right after a successful gicv5_its_device_register().

Remove it.

---
 drivers/irqchip/irq-gic-v5-its.c | 2 --
 1 file changed, 2 deletions(-)
drivers/irqchip/irq-gic-v5-its.c +0 -2
index 2fb58d76f521..554485f0be1f 100644
@@ -768,8 +768,6 @@ static struct gicv5_its_dev *gicv5_its_alloc_device(struct gicv5_its_chip_data *
 		goto out_dev_free;
 	}
 
-	gicv5_its_device_cache_inv(its, its_dev);
-
 	its_dev->its_node = its;
 
 	its_dev->event_map = (unsigned long *)bitmap_zalloc(its_dev->num_events, GFP_KERNEL);
Signature · 1 line
2.33.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Zenghui Yu

An ITS cache invalidation has been performed immediately after programming the L2 DTE in gicv5_its_device_register(). No need to perform it again right after a successful gicv5_its_device_register().

Indeed. And this call doesn't check it's been successful either.

Quoted 13 lines

Remove it.

---
 drivers/irqchip/irq-gic-v5-its.c | 2 --
 1 file changed, 2 deletions(-)
drivers/irqchip/irq-gic-v5-its.c +0 -0
index 2fb58d76f521..554485f0be1f 100644

drivers/irqchip/irq-gic-v5-its.c static struct gicv5_its_dev *gicv5_its_alloc_device(struct gicv5_its_chip_data * · line 773

Quoted 8 lines
drivers/irqchip/irq-gic-v5-its.c +0 -2
@@ -768,8 +768,6 @@ static struct gicv5_its_dev *gicv5_its_alloc_device(struct gicv5_its_chip_data *
 		goto out_dev_free;
 	}
 
-	gicv5_its_device_cache_inv(its, its_dev);
-
 	its_dev->its_node = its;
 
 	its_dev->event_map = (unsigned long *)bitmap_zalloc(its_dev->num_events, GFP_KERNEL);
	M.
Signature · 1 line
Jazz isn't dead. It just smells funny.
merge bot Applied
#2 lore raw
In reply to Zenghui Yu
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     54a1726d2e4c0c7b33f4e5ef35fcc118a4d74ea3
Gitweb:        https://git.kernel.org/tip/54a1726d2e4c0c7b33f4e5ef35fcc118a4d74ea3
Author:        Zenghui Yu <[email protected]>
AuthorDate:    Wed, 03 Sep 2025 10:33:19 +08:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Wed, 03 Sep 2025 14:09:01 +02:00

irqchip/gic-v5: Remove the redundant ITS cache invalidation

An ITS cache invalidation has been performed immediately after programming the L2 DTE in gicv5_its_device_register(). No need to perform it again right after a successful gicv5_its_device_register().

Remove it.

---
 drivers/irqchip/irq-gic-v5-its.c | 2 --
 1 file changed, 2 deletions(-)
drivers/irqchip/irq-gic-v5-its.c +0 -2
index 9290ac7..81d813c 100644
@@ -768,8 +768,6 @@ static struct gicv5_its_dev *gicv5_its_alloc_device(struct gicv5_its_chip_data *
 		goto out_dev_free;
 	}
 
-	gicv5_its_device_cache_inv(its, its_dev);
-
 	its_dev->its_node = its;
 
 	its_dev->event_map = (unsigned long *)bitmap_zalloc(its_dev->num_events, GFP_KERNEL);