All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/3] arm64: tlb: add support for TTL field
@ 2020-03-11  2:53 ` Zhenyu Ye
  0 siblings, 0 replies; 21+ messages in thread
From: Zhenyu Ye @ 2020-03-11  2:53 UTC (permalink / raw)
  To: mark.rutland, catalin.marinas, will, aneesh.kumar, maz,
	steven.price, broonie, guohanjun
  Cc: yezhenyu2, linux-arm-kernel, linux-kernel, linux-arch, linux-mm,
	arm, xiexiangyou, prime.zeng

ARMv8.4-TTL provides the TTL field in tlbi instruction to indicate
the level of translation table walk holding the leaf entry for the
address that is being invalidated. Hardware can use this information
to determine if there was a risk of splintering.

This set of patches adds TTL field to __TLBI_ADDR, and uses
Architecture-specific MM context to pass the TTL value to tlb interface.

The default value of TTL is 0, which will not have any impact on the
TLB maintenance instructions. The last patch trys to use TTL field in
some obviously tlb-flush interface.

Zhenyu Ye (3):
  arm64: tlb: add TTL field to __TLBI_ADDR
  arm64: tlb: use mm_struct.context.flags to indicate TTL
  arm64: tlb: add support for TTL in some functions

 arch/arm64/include/asm/cpucaps.h  |  3 ++-
 arch/arm64/include/asm/mmu.h      | 11 ++++++++++
 arch/arm64/include/asm/sysreg.h   |  4 ++++
 arch/arm64/include/asm/tlb.h      |  3 +++
 arch/arm64/include/asm/tlbflush.h | 35 +++++++++++++++++++++++--------
 arch/arm64/kernel/cpufeature.c    | 10 +++++++++
 arch/arm64/kernel/sys_compat.c    |  2 +-
 arch/arm64/mm/hugetlbpage.c       |  2 ++
 8 files changed, 59 insertions(+), 11 deletions(-)

-- 
2.19.1

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2020-03-17 11:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-11  2:53 [RFC PATCH v1 0/3] arm64: tlb: add support for TTL field Zhenyu Ye
2020-03-11  2:53 ` Zhenyu Ye
2020-03-11  2:53 ` Zhenyu Ye
2020-03-11  2:53 ` [RFC PATCH v1 1/3] arm64: tlb: add TTL field to __TLBI_ADDR Zhenyu Ye
2020-03-11  2:53   ` Zhenyu Ye
2020-03-11  2:53   ` Zhenyu Ye
2020-03-11  2:53 ` [RFC PATCH v1 2/3] arm64: tlb: use mm_struct.context.flags to indicate TTL Zhenyu Ye
2020-03-11  2:53   ` Zhenyu Ye
2020-03-11  2:53   ` Zhenyu Ye
2020-03-11  2:53 ` [RFC PATCH v1 3/3] arm64: tlb: add support for TTL in some functions Zhenyu Ye
2020-03-11  2:53   ` Zhenyu Ye
2020-03-11  2:53   ` Zhenyu Ye
2020-03-11  9:12 ` [RFC PATCH v1 0/3] arm64: tlb: add support for TTL field Marc Zyngier
2020-03-11  9:12   ` Marc Zyngier
2020-03-11  9:12   ` Marc Zyngier
2020-03-11 11:29   ` yezhenyu (A)
2020-03-11 11:29     ` yezhenyu (A)
2020-03-11 11:29     ` yezhenyu (A)
2020-03-17 10:59   ` yezhenyu (A)
2020-03-17 10:59     ` yezhenyu (A)
2020-03-17 10:59     ` yezhenyu (A)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.