Linux EFI development
 help / color / mirror / Atom feed
* [RFC v2 00/13] arm64: Add support for TLBI domains
@ 2026-11-26 11:49 Kristina Martšenko
  2026-11-26 11:49 ` [RFC v2 01/13] arm64: sysreg: Add definitions for TLBID Kristina Martšenko
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Kristina Martšenko @ 2026-11-26 11:49 UTC (permalink / raw)
  To: linux-arm-kernel, linux-acpi, kvmarm, linux-efi
  Cc: Catalin Marinas, Will Deacon, Mark Rutland, Ryan Roberts,
	David Hildenbrand, Lorenzo Stoakes, Linu Cherian,
	Anshuman Khandual, Lorenzo Pieralisi, Hanjun Guo, Sudeep Holla,
	Marc Zyngier, Oliver Upton, Fuad Tabba, Joey Gouly, Steffen Eiden,
	Suzuki K Poulose, Zenghui Yu, Ard Biesheuvel, Ilias Apalodimas,
	Jinqian Yang, Zi Yan

Hi,

This is a follow-up to the initial TLBI domain RFC:
  https://lore.kernel.org/all/20261001110655.461473-1-kristina.martsenko@arm.com/

The goal of the series is to improve performance by using TLBI domains
(FEAT_TLBID) to send TLB invalidations only to the CPUs where a process has
run. (Specifically, TLBI commands are sent to a fixed “domain”, which may be
wider than the set of target CPUs.)

This RFC v2 addresses review feedback from the previous RFC v1. It is still an
RFC because the ACPI table specification is still not public, so this series
can't be merged yet.

The series does not include KVM support, it only disables domains for guests.
KVM support has been posted by Jinqian [1].

Thanks,
Kristina

[1] https://lore.kernel.org/all/20261030065617.4090073-1-yangjinqian1@huawei.com/


Changes in RFC v2:
  - Made context-switch only update domains if they would change (and updated
    the barrier) [Zi]
  - Explained in commit message why mm_cpumask is not used [Zi]
  - Added WARN_ON to EFI init [Ard]
  - Split EL2 setup into a separate patch [Linu]
  - Fixed ipas2e1is() to use __tlbip() [Jinqian, sashiko]
  - Fixed memory leaks in error paths [Jinqian, sashiko]
  - Made ACPI table sanity checks more robust [sashiko]
  - Fixed 'tlbi' variable to be static [sashiko]
  - Fixed __tlbip() macro argument expansion [sashiko]
  - Link to RFC v1: https://lore.kernel.org/all/20261001110655.461473-1-kristina.martsenko@arm.com/


Kristina Martšenko (13):
  arm64: sysreg: Add definitions for TLBID
  arm64: boot: Handle TLBID boot requirements
  arm64: Detect TLBID
  KVM: arm64: Hide TLBID from guest sysregs
  KVM: arm64: Hide TLBID from guest instructions
  ACPICA: Add TLBI table definition
  ACPI: TLBI: Parse domains from table
  arm64: tlbid: Set up CPU domain bitmaps
  efi/arm: Check return value of init_new_context()
  arm64: tlbid: Track the TLBI domain of a task
  arm64: Support TLBIP instructions
  arm64: tlbid: Pass domain to TLBI instructions
  arm64: tlbid: Add documentation

 Documentation/arch/arm64/booting.rst    |  10 ++
 arch/arm64/Kconfig                      |  12 ++
 arch/arm64/include/asm/acpi.h           |  10 ++
 arch/arm64/include/asm/cpu.h            |   1 +
 arch/arm64/include/asm/cpufeature.h     |  15 ++
 arch/arm64/include/asm/el2_setup.h      |  77 +++++++-
 arch/arm64/include/asm/kvm_emulate.h    |   5 +
 arch/arm64/include/asm/mmu.h            |  13 ++
 arch/arm64/include/asm/mmu_context.h    |   9 +-
 arch/arm64/include/asm/tlbflush.h       | 218 +++++++++++++++++------
 arch/arm64/kernel/cpufeature.c          |  25 +++
 arch/arm64/kernel/cpuinfo.c             |   3 +
 arch/arm64/kvm/config.c                 |   6 +
 arch/arm64/kvm/emulate-nested.c         |   1 +
 arch/arm64/kvm/hyp/include/hyp/switch.h |   7 +-
 arch/arm64/kvm/hyp/nvhe/tlb.c           |   2 +-
 arch/arm64/kvm/hyp/vhe/tlb.c            |   4 +-
 arch/arm64/kvm/sys_regs.c               |   3 +
 arch/arm64/mm/Makefile                  |   1 +
 arch/arm64/mm/context.c                 |   6 +-
 arch/arm64/mm/tlbid.c                   | 227 ++++++++++++++++++++++++
 arch/arm64/tools/cpucaps                |   1 +
 arch/arm64/tools/sysreg                 |  53 +++++-
 drivers/acpi/arm64/Kconfig              |   3 +
 drivers/acpi/arm64/Makefile             |   1 +
 drivers/acpi/arm64/init.c               |   2 +
 drivers/acpi/arm64/init.h               |   1 +
 drivers/acpi/arm64/tlbi.c               | 217 ++++++++++++++++++++++
 drivers/firmware/efi/arm-runtime.c      |   3 +-
 include/acpi/actbl2.h                   |  32 ++++
 30 files changed, 897 insertions(+), 71 deletions(-)
 create mode 100644 arch/arm64/mm/tlbid.c
 create mode 100644 drivers/acpi/arm64/tlbi.c


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
-- 
2.43.0


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

end of thread, other threads:[~2026-11-26 12:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 11:49 [RFC v2 00/13] arm64: Add support for TLBI domains Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 01/13] arm64: sysreg: Add definitions for TLBID Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 02/13] arm64: boot: Handle TLBID boot requirements Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 03/13] arm64: Detect TLBID Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 04/13] KVM: arm64: Hide TLBID from guest sysregs Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 05/13] KVM: arm64: Hide TLBID from guest instructions Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 06/13] ACPICA: Add TLBI table definition Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 07/13] ACPI: TLBI: Parse domains from table Kristina Martšenko
2026-11-26 12:04   ` sashiko-bot
2026-11-26 11:49 ` [RFC v2 08/13] arm64: tlbid: Set up CPU domain bitmaps Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 09/13] efi/arm: Check return value of init_new_context() Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 10/13] arm64: tlbid: Track the TLBI domain of a task Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 11/13] arm64: Support TLBIP instructions Kristina Martšenko
2026-11-26 12:06   ` sashiko-bot
2026-11-26 11:49 ` [RFC v2 12/13] arm64: tlbid: Pass domain to TLBI instructions Kristina Martšenko
2026-11-26 11:49 ` [RFC v2 13/13] arm64: tlbid: Add documentation Kristina Martšenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox