From: Sunil V L <sunilvl@ventanamicro.com>
To: opensbi@lists.infradead.org
Subject: [RFC PATCH v4 0/4] Add CPPC extension support in OpenSBI
Date: Tue, 28 Mar 2023 09:59:05 +0530 [thread overview]
Message-ID: <20230328042909.1853497-1-sunilvl@ventanamicro.com> (raw)
The latest proposal of SBI CPPC extension can be found at:
https://lists.riscv.org/g/tech-prs/message/353
This series implements SBI CPPC extension support in OpenSBI
as-per above draft proposal.
To test these patches,
Qemu patches can be found in,
aia_plic_cppc_v1 branch at: https://github.com/vlsunil/qemu.git
Linux patches can be found in
aia_plic_cppc_v1 branch at: https://github.com/vlsunil/linux.git
These OpenSBI patches can also be found in
aia_plic_cppc_v4 branch at: https://github.com/vlsunil/opensbi.git
Changes since v3:
1) Updated as per latest draft of CPPC extension proposal
which made few mandatory registers as optional.
Changes since v2:
1) Updated probe, read/write functions as per Drew's feedback to split between
common and platform specific functions.
Changes since v1:
1) Addresses Drew's feedback
a) Updated common functions to handle most of the errors.
b) Added is_reserved, readable, writable helpers as per Drew's feedback.
c) Updated macro name to SBI_CPPC_ENERGY_PERF_PREFERENCE
2) Updated RB tags
Sunil V L (4):
include: Add defines for SBI CPPC extension
lib: sbi: Implement SBI CPPC extension
lib: sbi: Print the CPPC device name
NOT_FOR_MERGE: Add test code to emulate CPPC extension
include/sbi/sbi_cppc.h | 37 ++++++
include/sbi/sbi_ecall_interface.h | 34 ++++++
lib/sbi/Kconfig | 4 +
lib/sbi/objects.mk | 4 +
lib/sbi/sbi_cppc.c | 156 ++++++++++++++++++++++++
lib/sbi/sbi_ecall_cppc.c | 63 ++++++++++
lib/sbi/sbi_init.c | 5 +
platform/generic/objects.mk | 1 +
platform/generic/platform.c | 6 +
platform/generic/test_cppc.c | 196 ++++++++++++++++++++++++++++++
10 files changed, 506 insertions(+)
create mode 100644 include/sbi/sbi_cppc.h
create mode 100644 lib/sbi/sbi_cppc.c
create mode 100644 lib/sbi/sbi_ecall_cppc.c
create mode 100644 platform/generic/test_cppc.c
--
2.34.1
next reply other threads:[~2023-03-28 4:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 4:29 Sunil V L [this message]
2023-03-28 4:29 ` [RFC PATCH v4 1/4] include: Add defines for SBI CPPC extension Sunil V L
2023-03-28 4:29 ` [RFC PATCH v4 2/4] lib: sbi: Implement " Sunil V L
2023-03-28 6:44 ` Andrew Jones
2023-03-28 4:29 ` [RFC PATCH v4 3/4] lib: sbi: Print the CPPC device name Sunil V L
2023-03-28 4:29 ` [RFC PATCH v4 4/4] NOT_FOR_MERGE: Add test code to emulate CPPC extension Sunil V L
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230328042909.1853497-1-sunilvl@ventanamicro.com \
--to=sunilvl@ventanamicro.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox