linux/arch/openrisc/kernel
Sahil Siddiq 4e6d24a309 openrisc: Add cacheinfo support
Add cacheinfo support for OpenRISC.

Currently, a few CPU cache attributes pertaining to OpenRISC processors
are exposed along with other unrelated CPU attributes in the procfs file
system (/proc/cpuinfo). However, a few cache attributes remain unexposed.

Provide a mechanism that the generic cacheinfo infrastructure can employ
to expose these attributes via the sysfs file system. These attributes
can then be exposed in /sys/devices/system/cpu/cpuX/cache/indexN. Move
the implementation to pull cache attributes from the processor's
registers from arch/openrisc/kernel/setup.c with a few modifications.

This implementation is based on similar work done for MIPS and LoongArch.

Link: https://raw.githubusercontent.com/openrisc/doc/master/openrisc-arch-1.4-rev0.pdf
Signed-off-by: Sahil Siddiq <sahilcdq0@gmail.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
2025-04-20 07:06:54 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile openrisc: Add cacheinfo support 2025-04-20 07:06:54 +01:00
Makefile.syscalls openrisc: convert to generic syscall table 2024-07-10 14:23:38 +02:00
asm-offsets.c sched,arch: Remove unused TASK_STATE offsets 2021-06-18 11:43:09 +02:00
cacheinfo.c openrisc: Add cacheinfo support 2025-04-20 07:06:54 +01:00
dma.c openrisc: Introduce new utility functions to flush and invalidate caches 2025-04-20 07:06:54 +01:00
entry.S openrisc: Add support for restartable sequences 2025-01-14 17:17:16 +00:00
head.S openrisc: Fix misalignments in head.S 2024-12-10 12:04:19 +00:00
irq.c irq: openrisc: perform irqentry in entry code 2021-10-26 10:13:28 +01:00
module.c openrisc: Add support for more module relocations 2024-04-15 15:20:39 +01:00
or32_ksyms.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
process.c openrisc: Move FPU state out of pt_regs 2024-04-15 15:20:39 +01:00
prom.c of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-10-29 15:32:45 -05:00
ptrace.c openrisc: Add HAVE_REGS_AND_STACK_ACCESS_API support 2025-01-14 17:17:15 +00:00
setup.c openrisc: Add cacheinfo support 2025-04-20 07:06:54 +01:00
signal.c openrisc: Add support for restartable sequences 2025-01-14 17:17:16 +00:00
smp.c smp: Consolidate smp_prepare_boot_cpu() 2024-03-04 12:01:54 +01:00
stacktrace.c openrisc: Fix oops caused when dumping stack 2020-08-04 10:59:45 +09:00
sync-timer.c openrisc: add tick timer multi-core sync logic 2017-11-03 14:01:16 +09:00
sys_call_table.c openrisc: convert to generic syscall table 2024-07-10 14:23:38 +02:00
time.c openrisc: Add missing prototypes for assembly called fnctions 2023-08-21 08:11:54 +01:00
traps.c openrisc: Move FPU state out of pt_regs 2024-04-15 15:20:39 +01:00
unwinder.c openrisc: unwinder: Fix grammar issue in comment 2022-06-28 17:31:24 +09:00
vmlinux.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vmlinux.lds.S openrisc: place exception table at the head of vmlinux 2024-12-10 12:04:19 +00:00