]> www.infradead.org Git - users/hch/misc.git/commitdiff
irqchip/gic-v5: Drop has_gcie_v3_compat from gic_kvm_info
authorSascha Bischoff <Sascha.Bischoff@arm.com>
Thu, 28 Aug 2025 10:59:43 +0000 (10:59 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 17 Sep 2025 16:41:02 +0000 (17:41 +0100)
The presence of FEAT_GCIE_LEGACY is now handled as a CPU
feature. Therefore, drop the check and flag from the GIC driver and
gic_kvm_info as it is no longer required or used by KVM.

Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irq-gic-v5.c
include/linux/irqchip/arm-vgic-info.h

index 4bd224f359a78da165b9adca2b79df47674ed36b..41ef286c4d78122b7a2130d7f00f6c2c782216cc 100644 (file)
@@ -1062,16 +1062,9 @@ static void gicv5_set_cpuif_idbits(void)
 #ifdef CONFIG_KVM
 static struct gic_kvm_info gic_v5_kvm_info __initdata;
 
-static bool __init gicv5_cpuif_has_gcie_legacy(void)
-{
-       u64 idr0 = read_sysreg_s(SYS_ICC_IDR0_EL1);
-       return !!FIELD_GET(ICC_IDR0_EL1_GCIE_LEGACY, idr0);
-}
-
 static void __init gic_of_setup_kvm_info(struct device_node *node)
 {
        gic_v5_kvm_info.type = GIC_V5;
-       gic_v5_kvm_info.has_gcie_v3_compat = gicv5_cpuif_has_gcie_legacy();
 
        /* GIC Virtual CPU interface maintenance interrupt */
        gic_v5_kvm_info.no_maint_irq_mask = false;
index ca1713fac6e3bcee29a2dba4fa5c20636e287321..a470a73a805aac94d035f3fbad54ebbc8c1724a9 100644 (file)
@@ -36,8 +36,6 @@ struct gic_kvm_info {
        bool            has_v4_1;
        /* Deactivation impared, subpar stuff */
        bool            no_hw_deactivation;
-       /* v3 compat support (GICv5 hosts, only) */
-       bool            has_gcie_v3_compat;
 };
 
 #ifdef CONFIG_KVM