lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172260355813.2215.3564057730782452257.tip-bot2@tip-bot2>
Date: Fri, 02 Aug 2024 12:59:18 -0000
From: "tip-bot2 for Anshuman Khandual" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Anshuman Khandual <anshuman.khandual@....com>,
 Thomas Gleixner <tglx@...utronix.de>, Zenghui Yu <yuzenghui@...wei.com>,
 Marc Zyngier <maz@...nel.org>, x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: irq/core] irqchip/gic-v4.1: Replace bare number with
 ID_AA64PFR0_EL1_GIC_V4P1

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

Commit-ID:     bb4531976523c6e394188c4f4a7eeaf5e9efdd48
Gitweb:        https://git.kernel.org/tip/bb4531976523c6e394188c4f4a7eeaf5e9efdd48
Author:        Anshuman Khandual <anshuman.khandual@....com>
AuthorDate:    Fri, 02 Aug 2024 14:26:01 +05:30
Committer:     Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Fri, 02 Aug 2024 14:54:25 +02:00

irqchip/gic-v4.1: Replace bare number with ID_AA64PFR0_EL1_GIC_V4P1

Use ID_AA64PFR0_EL1_GIC_V4P1 instead of '3' in gic_cpuif_has_vsgi() to
check for the GIC version.

Signed-off-by: Anshuman Khandual <anshuman.khandual@....com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Zenghui Yu <yuzenghui@...wei.com>
Acked-by: Marc Zyngier <maz@...nel.org>
Link: https://lore.kernel.org/all/20240802085601.1824057-1-anshuman.khandual@arm.com
---
 drivers/irqchip/irq-gic-v4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v4.c b/drivers/irqchip/irq-gic-v4.c
index ca32ac1..58c2889 100644
--- a/drivers/irqchip/irq-gic-v4.c
+++ b/drivers/irqchip/irq-gic-v4.c
@@ -97,7 +97,7 @@ bool gic_cpuif_has_vsgi(void)
 
 	fld = cpuid_feature_extract_unsigned_field(reg, ID_AA64PFR0_EL1_GIC_SHIFT);
 
-	return fld >= 0x3;
+	return fld >= ID_AA64PFR0_EL1_GIC_V4P1;
 }
 #else
 bool gic_cpuif_has_vsgi(void)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ