|
@@ -79,13 +79,6 @@ void verify_cpu_asid_bits(void)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-static void set_reserved_asid_bits(void)
|
|
|
|
-{
|
|
|
|
- if (IS_ENABLED(CONFIG_QCOM_FALKOR_ERRATUM_1003) &&
|
|
|
|
- cpus_have_const_cap(ARM64_WORKAROUND_QCOM_FALKOR_E1003))
|
|
|
|
- __set_bit(FALKOR_RESERVED_ASID, asid_map);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static void flush_context(unsigned int cpu)
|
|
static void flush_context(unsigned int cpu)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
@@ -94,8 +87,6 @@ static void flush_context(unsigned int cpu)
|
|
/* Update the list of reserved ASIDs and the ASID bitmap. */
|
|
/* Update the list of reserved ASIDs and the ASID bitmap. */
|
|
bitmap_clear(asid_map, 0, NUM_USER_ASIDS);
|
|
bitmap_clear(asid_map, 0, NUM_USER_ASIDS);
|
|
|
|
|
|
- set_reserved_asid_bits();
|
|
|
|
-
|
|
|
|
for_each_possible_cpu(i) {
|
|
for_each_possible_cpu(i) {
|
|
asid = atomic64_xchg_relaxed(&per_cpu(active_asids, i), 0);
|
|
asid = atomic64_xchg_relaxed(&per_cpu(active_asids, i), 0);
|
|
/*
|
|
/*
|
|
@@ -254,8 +245,6 @@ static int asids_init(void)
|
|
panic("Failed to allocate bitmap for %lu ASIDs\n",
|
|
panic("Failed to allocate bitmap for %lu ASIDs\n",
|
|
NUM_USER_ASIDS);
|
|
NUM_USER_ASIDS);
|
|
|
|
|
|
- set_reserved_asid_bits();
|
|
|
|
-
|
|
|
|
pr_info("ASID allocator initialised with %lu entries\n", NUM_USER_ASIDS);
|
|
pr_info("ASID allocator initialised with %lu entries\n", NUM_USER_ASIDS);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|