Skip to content

Commit d8e12a0

Browse files
Marc Zyngierwilldeacon
authored andcommitted
arm64: Kill detection of VPIPT i-cache policy
Since the kernel will never run on a system with the VPIPT i-cache policy, drop the detection code altogether. Reviewed-by: Zenghui Yu <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent ced242b commit d8e12a0

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

arch/arm64/include/asm/cache.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ static inline unsigned int arch_slab_minalign(void)
5858
#define CTR_L1IP(ctr) SYS_FIELD_GET(CTR_EL0, L1Ip, ctr)
5959

6060
#define ICACHEF_ALIASING 0
61-
#define ICACHEF_VPIPT 1
6261
extern unsigned long __icache_flags;
6362

6463
/*
@@ -70,11 +69,6 @@ static inline int icache_is_aliasing(void)
7069
return test_bit(ICACHEF_ALIASING, &__icache_flags);
7170
}
7271

73-
static __always_inline int icache_is_vpipt(void)
74-
{
75-
return test_bit(ICACHEF_VPIPT, &__icache_flags);
76-
}
77-
7872
static inline u32 cache_type_cwg(void)
7973
{
8074
return SYS_FIELD_GET(CTR_EL0, CWG, read_cpuid_cachetype());

arch/arm64/kernel/cpuinfo.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ static struct cpuinfo_arm64 boot_cpu_data;
3636
static inline const char *icache_policy_str(int l1ip)
3737
{
3838
switch (l1ip) {
39-
case CTR_EL0_L1Ip_VPIPT:
40-
return "VPIPT";
4139
case CTR_EL0_L1Ip_VIPT:
4240
return "VIPT";
4341
case CTR_EL0_L1Ip_PIPT:
@@ -388,9 +386,6 @@ static void cpuinfo_detect_icache_policy(struct cpuinfo_arm64 *info)
388386
switch (l1ip) {
389387
case CTR_EL0_L1Ip_PIPT:
390388
break;
391-
case CTR_EL0_L1Ip_VPIPT:
392-
set_bit(ICACHEF_VPIPT, &__icache_flags);
393-
break;
394389
case CTR_EL0_L1Ip_VIPT:
395390
default:
396391
/* Assume aliasing */

0 commit comments

Comments
 (0)