public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] soc cache: Add support for HiSilicon L3 cache
@ 2025-01-07 13:29 Yushan Wang
  2025-01-07 13:29 ` [PATCH 1/2] soc cache: Add framework driver for HiSilicon SoC cache Yushan Wang
  2025-01-07 13:29 ` [PATCH 2/2] soc cache: L3 cache lockdown support for HiSilicon SoC Yushan Wang
  0 siblings, 2 replies; 8+ messages in thread
From: Yushan Wang @ 2025-01-07 13:29 UTC (permalink / raw)
  To: xuwei5, yangyicong, Jonathan.Cameron, wangjie125, linux-kernel
  Cc: prime.zeng, fanghao11, wangyushan12, linuxarm

This series adds support for HiSilicon SoC cache lockdown and cache
maintenance operations.

Cache lockdown feature prevents cache entries from being evicted from L3
cache for better performance.  It can be enabled by calling mmap
function to the file (`/dev/hisi_soc_cache_mgmt`).  This feature is
implemented in the driver hisi_soc_l3c.

L3 cache and L3 cache PMU share the same memory resource, which makes
one fails to probe while another is on board.  Since both devices
rely on distinct information exported by ACPI, their probing functions
should be unrelated.  Workaround the resource conflict check by
replacing devm_ioremap_resource() to devm_ioremap() instead.

Jie Wang (1):
  soc cache: Add framework driver for HiSilicon SoC cache

Yushan Wang (1):
  soc cache: L3 cache lockdown support for HiSilicon SoC

 drivers/soc/hisilicon/Kconfig                 |  22 +
 drivers/soc/hisilicon/Makefile                |   2 +
 .../soc/hisilicon/hisi_soc_cache_framework.c  | 543 ++++++++++++++++++
 .../soc/hisilicon/hisi_soc_cache_framework.h  |  77 +++
 drivers/soc/hisilicon/hisi_soc_l3c.c          | 540 +++++++++++++++++
 5 files changed, 1184 insertions(+)
 create mode 100644 drivers/soc/hisilicon/hisi_soc_cache_framework.c
 create mode 100644 drivers/soc/hisilicon/hisi_soc_cache_framework.h
 create mode 100644 drivers/soc/hisilicon/hisi_soc_l3c.c

-- 
2.33.0


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

end of thread, other threads:[~2025-01-08 15:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07 13:29 [PATCH 0/2] soc cache: Add support for HiSilicon L3 cache Yushan Wang
2025-01-07 13:29 ` [PATCH 1/2] soc cache: Add framework driver for HiSilicon SoC cache Yushan Wang
2025-01-07 19:05   ` Christophe JAILLET
2025-01-08  9:59     ` wangyushan
2025-01-08 13:54   ` kernel test robot
2025-01-07 13:29 ` [PATCH 2/2] soc cache: L3 cache lockdown support for HiSilicon SoC Yushan Wang
2025-01-08 14:37   ` kernel test robot
2025-01-08 15:32   ` kernel test robot

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