All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] soc: Enable cache lockdown for HiSilicon L3 cache
@ 2025-11-25  8:05 Yushan Wang
  2025-11-25  8:05 ` [RFC PATCH 1/3] soc cache: L3 cache driver for HiSilicon SoC Yushan Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yushan Wang @ 2025-11-25  8:05 UTC (permalink / raw)
  To: xuwei5, Jonathan.Cameron, wanghuiqiang, linux-kernel,
	linux-arm-kernel, linuxarm
  Cc: prime.zeng, fanghao11, wangyushan12

Cache has been playing the transparent yet crucial role of performance
for modern computers. To fully exploit the potential of SoC cache, we
made an attempt to lockdown the HiSilicon L3 cache.

Cache lockdown means to make a memory region locked inside the L3 cache
for better access latency. The data stored in L3 cache will behave like
any other data (i.e. it still follows cache coherency protocol etc.)
except it won't be evicted unless explicitly asked to by deallocation.

Ideally locked data will have stable low access latency despite high
background stress. It is also useful for scenarios that have especially
high cache miss penalty. However, while enhancing some processes,
reserving cache resource will raise the performance problem to other
processes running on the CPUs that share the L3 cache that carries
locked data, users should be careful to do so.

I would like to ask for opinions about the possibility to make this
driver upstream, and the possible usecase of L3 cache lock within
kernel. Further tests are needed to obtain the performance benefits and
impact we get from L3 cache lock on such usecases.

Yushan Wang (3):
  soc cache: L3 cache driver for HiSilicon SoC
  soc cache: L3 cache lockdown support for HiSilicon SoC
  Documentation: soc cache: Add documentation to HiSilicon SoC cache

 Documentation/driver-api/hisi-soc-cache.rst   |  62 ++
 Documentation/driver-api/index.rst            |   1 +
 .../userspace-api/ioctl/ioctl-number.rst      |   1 +
 drivers/soc/hisilicon/Kconfig                 |  10 +
 drivers/soc/hisilicon/Makefile                |   2 +
 drivers/soc/hisilicon/hisi_soc_l3c.c          | 877 ++++++++++++++++++
 include/uapi/misc/hisi_l3c.h                  |  28 +
 7 files changed, 981 insertions(+)
 create mode 100644 Documentation/driver-api/hisi-soc-cache.rst
 create mode 100644 drivers/soc/hisilicon/hisi_soc_l3c.c
 create mode 100644 include/uapi/misc/hisi_l3c.h

-- 
2.33.0



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

end of thread, other threads:[~2025-11-28  6:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25  8:05 [RFC PATCH 0/3] soc: Enable cache lockdown for HiSilicon L3 cache Yushan Wang
2025-11-25  8:05 ` [RFC PATCH 1/3] soc cache: L3 cache driver for HiSilicon SoC Yushan Wang
2025-11-26 14:10   ` kernel test robot
2025-11-28  6:52   ` kernel test robot
2025-11-25  8:05 ` [RFC PATCH 2/3] soc cache: L3 cache lockdown support " Yushan Wang
2025-11-25  8:05 ` [RFC PATCH 3/3] Documentation: soc cache: Add documentation to HiSilicon SoC cache Yushan Wang
2025-11-26 13:10   ` kernel test robot

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.