From: Palmer Dabbelt <palmer@rivosinc.com>
To: linux-riscv@lists.infradead.org
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Subject: [PATCH] RISC-V: Schedule SBI-0.1 for removal
Date: Wed, 4 Sep 2024 07:54:05 -0700 [thread overview]
Message-ID: <20240904145404.6291-2-palmer@rivosinc.com> (raw)
We've said we're going to deprecate SBI-0.1 for a while now, but I
didn't find that written down anywhere. So mark SBI-0.1 as deprecated
and print a timeline for that deprecation on systems that probe it.
This also hides the Kconfig behind EXPERT, in the hope that doing so
will poke users to notice the deprecation.
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
---
I don't know if there's some normal way to mark things as deprecated,
this is just the best I could come up with this morning.
---
arch/riscv/Kconfig | 2 +-
arch/riscv/kernel/sbi.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 0f3cd7c3a436..e70ff952d68e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -832,7 +832,7 @@ source "kernel/Kconfig.hz"
config RISCV_SBI_V01
bool "SBI v0.1 support"
- depends on RISCV_SBI
+ depends on RISCV_SBI && EXPERT
help
This config allows kernel to use SBI v0.1 APIs. This will be
deprecated in future once legacy M-mode software are no longer in use.
diff --git a/arch/riscv/kernel/sbi.c b/arch/riscv/kernel/sbi.c
index 837bdab2601b..1209a4e53ed1 100644
--- a/arch/riscv/kernel/sbi.c
+++ b/arch/riscv/kernel/sbi.c
@@ -686,6 +686,7 @@ void __init sbi_init(void)
sbi_debug_console_available = true;
}
} else {
+ pr_warn("SBI-0.1 is deprecated and scheduled for removal after the 2025 LTS");
__sbi_set_timer = __sbi_set_timer_v01;
__sbi_send_ipi = __sbi_send_ipi_v01;
__sbi_rfence = __sbi_rfence_v01;
--
2.45.2
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next reply other threads:[~2024-09-04 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 14:54 Palmer Dabbelt [this message]
2024-09-04 15:06 ` [PATCH] RISC-V: Schedule SBI-0.1 for removal Andreas Schwab
2024-09-05 11:58 ` Andrew Jones
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=20240904145404.6291-2-palmer@rivosinc.com \
--to=palmer@rivosinc.com \
--cc=linux-riscv@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