From nobody Sun Feb 8 10:03:33 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E3BB5695 for ; Wed, 24 Jul 2024 05:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721799994; cv=none; b=N0Ls26qswJq7b2q6FR+Mx5W1HvpYb7Jv/tfs4C+/xyI96F7CMz6vYwalc+QJRZGsBcdQ+o0yzxHW8FtuAEGr4DxOCpZA6TIdrWQQEo6ykuz/c8ttgR78L4oIHkdGedh4xmrw6/dqku/pUkzdOsGSZyg8h8QLWmVdCFvvjPNPDfA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721799994; c=relaxed/simple; bh=2sgPD8xMawfaUe5M4mi0VSlquAoqCB7ijM3djXbkjds=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aOssnoE4VlNEupwDgqmDs4wezlUGqIdms+x8/K90BnlHxs+Y6QXqVz+Ue8HOTDzEmy0DZwTmgpoDz15suqELNV00zq95/J0Zg4gahUmndY+zCD9A40QOEJlTUaHVk+lpNjTeAa4TjJVFl1LERCZtyF3qsCMo63uNLI9FRE5PMyc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 65DEF106F; Tue, 23 Jul 2024 22:46:57 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.54.139]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id ECDA13F5A1; Tue, 23 Jul 2024 22:46:28 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Marc Zyngier , Thomas Gleixner , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH] irqchip: Replace compared GIC version with ID_AA64PFR0_EL1_GIC_V4P1 Date: Wed, 24 Jul 2024 11:16:23 +0530 Message-Id: <20240724054623.667595-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace open encoding for GIC version code with ID_AA64PFR0_EL1_GIC_V4P1 in gic_cpuif_has_vsgi(). Cc: Marc Zyngier Cc: Thomas Gleixner Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual Acked-by: Marc Zyngier Reviewed-by: Zenghui Yu --- Applies after the following patch that fixes the given field in tools sysre= g. https://lore.kernel.org/all/20240718215532.616447-1-rananta@google.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 ca32ac19d284..58c28895f8c4 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) =20 fld =3D cpuid_feature_extract_unsigned_field(reg, ID_AA64PFR0_EL1_GIC_SHI= FT); =20 - return fld >=3D 0x3; + return fld >=3D ID_AA64PFR0_EL1_GIC_V4P1; } #else bool gic_cpuif_has_vsgi(void) --=20 2.30.2