mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/3] openrisc: Add cacheinfo support and introduce new utility functions
@ 2025-04-19 15:48 Sahil Siddiq
  2025-04-19 15:48 ` [PATCH v6 1/3] openrisc: Refactor struct cpuinfo_or1k to reduce duplication Sahil Siddiq
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sahil Siddiq @ 2025-04-19 15:48 UTC (permalink / raw)
  To: jonas, stefan.kristiansson, shorne
  Cc: linux-openrisc, linux-kernel, Sahil Siddiq

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/564042d9-0645-4a0d-aac8-383b0c699b49@gmail.com/T/#m67aed7737e79675352815470cd1e3b9ed6814b05
[2] https://lore.kernel.org/openrisc/20250323195544.152948-1-sahilcdq@proton.me/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
-- 
2.48.1


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

end of thread, other threads:[~2025-04-19 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-19 15:48 [PATCH v6 0/3] openrisc: Add cacheinfo support and introduce new utility functions Sahil Siddiq
2025-04-19 15:48 ` [PATCH v6 1/3] openrisc: Refactor struct cpuinfo_or1k to reduce duplication Sahil Siddiq
2025-04-19 15:48 ` [PATCH v6 2/3] openrisc: Introduce new utility functions to flush and invalidate caches Sahil Siddiq
2025-04-19 15:48 ` [PATCH v6 3/3] openrisc: Add cacheinfo support Sahil Siddiq

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

all inboxes | Powered by JetHome®