lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250107132907.3521574-1-wangyushan12@huawei.com>
Date: Tue, 7 Jan 2025 21:29:05 +0800
From: Yushan Wang <wangyushan12@...wei.com>
To: <xuwei5@...ilicon.com>, <yangyicong@...ilicon.com>,
	<Jonathan.Cameron@...wei.com>, <wangjie125@...wei.com>,
	<linux-kernel@...r.kernel.org>
CC: <prime.zeng@...ilicon.com>, <fanghao11@...wei.com>,
	<wangyushan12@...wei.com>, <linuxarm@...wei.com>
Subject: [PATCH 0/2] soc cache: Add support for HiSilicon L3 cache

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ