xtensa: remove CONFIG_XTENSA_INVALIDATE_MEM_DOMAIN_TLB_ON_SWAP

Remove CONFIG_XTENSA_INVALIDATE_MEM_DOMAIN_TLB_ON_SWAP as it is
remnant from early MMU enabling work which is not needed as
the page table code is different from early version where
the PTEVADDR would be the same for all memory domains.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2025-03-26 14:04:03 -07:00 committed by Benjamin Cabé
commit a4367eb514
3 changed files with 0 additions and 20 deletions

View file

@ -223,12 +223,6 @@ config XTENSA_MMU_DOUBLE_MAP
This option specifies that the memory is mapped in two This option specifies that the memory is mapped in two
distinct region, cached and uncached. distinct region, cached and uncached.
config XTENSA_INVALIDATE_MEM_DOMAIN_TLB_ON_SWAP
bool
help
This invalidates all TLBs referred by the incoming thread's
memory domain when swapping page tables.
config PRIVILEGED_STACK_SIZE config PRIVILEGED_STACK_SIZE
# Must be multiple of CONFIG_MMU_PAGE_SIZE # Must be multiple of CONFIG_MMU_PAGE_SIZE
default 4096 default 4096

View file

@ -1126,19 +1126,6 @@ void xtensa_swap_update_page_tables(struct k_thread *incoming)
&(incoming->mem_domain_info.mem_domain->arch); &(incoming->mem_domain_info.mem_domain->arch);
xtensa_set_paging(domain->asid, ptables); xtensa_set_paging(domain->asid, ptables);
#ifdef CONFIG_XTENSA_INVALIDATE_MEM_DOMAIN_TLB_ON_SWAP
struct k_mem_domain *mem_domain = incoming->mem_domain_info.mem_domain;
for (int idx = 0; idx < mem_domain->num_partitions; idx++) {
struct k_mem_partition *part = &mem_domain->partitions[idx];
uintptr_t end = part->start + part->size;
for (uintptr_t addr = part->start; addr < end; addr += CONFIG_MMU_PAGE_SIZE) {
xtensa_dtlb_vaddr_invalidate((void *)addr);
}
}
#endif
} }
#endif /* CONFIG_USERSPACE */ #endif /* CONFIG_USERSPACE */

View file

@ -13,4 +13,3 @@ config SOC_XTENSA_DC233C
select ARCH_HAS_USERSPACE if XTENSA_MMU select ARCH_HAS_USERSPACE if XTENSA_MMU
select ARCH_SUPPORTS_COREDUMP select ARCH_SUPPORTS_COREDUMP
select ARCH_SUPPORTS_COREDUMP_PRIV_STACKS select ARCH_SUPPORTS_COREDUMP_PRIV_STACKS
select XTENSA_INVALIDATE_MEM_DOMAIN_TLB_ON_SWAP if XTENSA_MMU