openrisc: Add cacheinfo support and introduce new utility functions
Get series with b4
b4 am [email protected]Versions newest first
- v6 Latest3 patches 0 repliesNew
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | openrisc: Refactor struct cpuinfo_or1k to reduce duplicationarch/ arch/ | +31 | 0 replies | |
| 2/3 | openrisc: Introduce new utility functions to flush and invalidate cachesarch/ arch/ arch/ +2 more | +79 | 0 replies | |
| 3/3 | openrisc: Add cacheinfo supportarch/ arch/ arch/ | +108 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 0/3] openrisc: Add cacheinfo support and introduce new utility functions
Hi,
The main purpose of this series is to expose CPU cache attributes for OpenRISC in sysfs using the cacheinfo API. The core implementation to achieve this is in patch #3. Patch #1 and #2 add certain enhancements to simplify the implementation of cacheinfo support.
The difference between this patch series and the previous version [1] is minor. The email address used in 'From' and 'signed-off-by' are now the same so checkpatch does not throw a FROM_SIGN_OFF_MISMATCH warning.
The patch also addresses a build warning that was caught by the kernel test robot [2] and addressed in a standalone patch earlier [3].
Thanks,
Sahil
[1] https://lore.kernel.org/openrisc/[email protected]/T/#m67aed7737e79675352815470cd1e3b9ed6814b05
[2] https://lore.kernel.org/openrisc/[email protected]/T/#md4b867e8d721f8894368ddc209875e262c1e2b60
[3] https://lore.kernel.org/openrisc/aAMwri9RK2oNuC_p@antec/T/#mc42cafae92957171cef94065f25257e5bed37ed6
Sahil Siddiq (3):
openrisc: Refactor struct cpuinfo_or1k to reduce duplication
openrisc: Introduce new utility functions to flush and invalidate
caches
openrisc: Add cacheinfo support
arch/openrisc/include/asm/cacheflush.h | 17 ++++ arch/openrisc/include/asm/cpuinfo.h | 24 ++++-- arch/openrisc/kernel/Makefile | 2 +- arch/openrisc/kernel/cacheinfo.c | 104 +++++++++++++++++++++++++ arch/openrisc/kernel/dma.c | 18 +---- arch/openrisc/kernel/setup.c | 45 +---------- arch/openrisc/mm/cache.c | 56 ++++++++++--- arch/openrisc/mm/init.c | 5 +- 8 files changed, 196 insertions(+), 75 deletions(-) create mode 100644 arch/openrisc/kernel/cacheinfo.c
base-commit: 183601b78a9b1c3da2b59f2bee915f97ba745c0b
prerequisite-patch-id: 3ec7c4c93dc2780c9978de0775bf46ae43c00b83
prerequisite-patch-id: 0b455477c75ef34d81032b9419d8ad3d5e74043d
Signature · 1 line
2.48.1