irqchip/gic-v5: Remove the redundant ITS cache invalidation
Subsystems (3)
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
@@ -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
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 successfulgicv5_its_device_register().
Indeed. And this call doesn't check it's been successful either.
Quoted 13 lines
Remove it.
Signed-off-by Zenghui Yu <[email protected]>--- drivers/irqchip/irq-gic-v5-its.c | 2 -- 1 file changed, 2 deletions(-)drivers/irqchip/irq-gic-v5-its.c +0
-0
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.
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
@@ -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 );