* [PATCH v2 0/2] riscv: Add Beijing LeapRise Technology vendor ID and vendor extension framework
@ 2026-11-20 6:51 lv.yating
2026-11-20 7:02 ` [PATCH v2 1/2] riscv: Add LeapRise Technology to the vendor list lv.yating
0 siblings, 1 reply; 2+ messages in thread
From: lv.yating @ 2026-11-20 6:51 UTC (permalink / raw)
To: pjw, palmer, aou, alex, corbet, skhan, rdunlap
Cc: linux-riscv, linux-kernel, liu.qingtao2, he.yilin, ye.zhihao1,
zhang.cheng35, hu.shengming, lv.yating, linux-doc
From: Lv Yating <lv.yating@zte.com.cn>
Hi,
Beijing LeapRise Technology has been assigned a JEDEC manufacturer
identity, encoded as 0x966 in the mvendorid CSR per the JEP106
scheme (bank 0x12, final byte 0x66).
This series lays the kernel groundwork for LeapRise RISC-V cores:
Patch 1 adds the vendor ID constant (LEAPRISE_VENDOR_ID) to the
RISC-V vendor list.
Patch 2 adds the vendor extension framework support: hwprobe key
recognition (RISCV_HWPROBE_KEY_VENDOR_EXT_LEAPRISE_0) and an empty
extension probe list hooked into the common probing path. The key
reports an empty bitmask for now, allowing userspace to distinguish
it from unknown keys (reported as -1), so LeapRise userspace
libraries can be prepared ahead of the first hardware shipping
vendor extensions. The key is documented in
Documentation/arch/riscv/hwprobe.rst.
Follow-up patches will register extensions as their specifications
are finalized.
---
Changelog:
v2:
- Bumped RISCV_HWPROBE_MAX_KEY to 17 so the new key is valid for
userspace and in the vDSO data.
- Registered LeapRise in the vendor extension framework: added the entry
to riscv_isa_vendor_ext_list[], the LEAPRISE_VENDOR_ID switch case,
riscv_isa_vendor_ext_list_leaprise in leaprise.c, and
RISCV_ISA_VENDOR_EXT_MAX_LEAPRISE.
- Fixed the build failure in vendor_extensions.c and the wrong
MIPS_VENDOR_ID case label.
- Fixed the Kconfig.vendor syntax error.
- Unified SPDX on GPL-2.0-only and cleaned up the new files.
v1:
-https://lore.kernel.org/all/202611160811.6AG8B8QM046993@mse-db.zte.com.cn/
-https://lore.kernel.org/all/202611160824.6AG8OXL4051238@mse-db.zte.com.cn/
best regards,
Lv Yating
Lv Yating (2):
riscv: Add LeapRise Technology to the vendor list
riscv: hwprobe: Add LeapRise vendor extension framework support
Documentation/arch/riscv/hwprobe.rst | 4 ++++
arch/riscv/Kconfig.vendor | 14 +++++++++++++
arch/riscv/include/asm/hwprobe.h | 3 ++-
.../include/asm/vendor_extensions/leaprise.h | 17 ++++++++++++++++
.../asm/vendor_extensions/leaprise_hwprobe.h | 20 +++++++++++++++++++
arch/riscv/include/asm/vendorid_list.h | 1 +
arch/riscv/include/uapi/asm/hwprobe.h | 1 +
arch/riscv/include/uapi/asm/vendor/leaprise.h | 3 +++
arch/riscv/kernel/sys_hwprobe.c | 4 ++++
arch/riscv/kernel/vendor_extensions.c | 10 ++++++++++
arch/riscv/kernel/vendor_extensions/Makefile | 2 ++
.../riscv/kernel/vendor_extensions/leaprise.c | 12 +++++++++++
.../vendor_extensions/leaprise_hwprobe.c | 19 ++++++++++++++++++
13 files changed, 109 insertions(+), 1 deletion(-)
create mode 100644 arch/riscv/include/asm/vendor_extensions/leaprise.h
create mode 100644 arch/riscv/include/asm/vendor_extensions/leaprise_hwprobe.h
create mode 100644 arch/riscv/include/uapi/asm/vendor/leaprise.h
create mode 100644 arch/riscv/kernel/vendor_extensions/leaprise.c
create mode 100644 arch/riscv/kernel/vendor_extensions/leaprise_hwprobe.c
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2 1/2] riscv: Add LeapRise Technology to the vendor list
2026-11-20 6:51 [PATCH v2 0/2] riscv: Add Beijing LeapRise Technology vendor ID and vendor extension framework lv.yating
@ 2026-11-20 7:02 ` lv.yating
0 siblings, 0 replies; 2+ messages in thread
From: lv.yating @ 2026-11-20 7:02 UTC (permalink / raw)
To: lv.yating
Cc: pjw, palmer, aou, alex, corbet, skhan, rdunlap, linux-riscv,
linux-kernel, liu.qingtao2, he.yilin, ye.zhihao1, zhang.cheng35,
hu.shengming, linux-doc
From: Lv Yating <lv.yating@zte.com.cn>
Beijing LeapRise Technology Co., Ltd. has been assigned a JEDEC
manufacturer identity: bank 0x12 with final byte 0x66. Per the
JEP106 encoding used for mvendorid, with the parity bit dropped:
mvendorid = (bank << 7) | (byte & 0x7f) = 0x966
Add LEAPRISE_VENDOR_ID to the vendor ID list as groundwork for
follow-up patches.
Signed-off-by: Lv Yating <lv.yating@zte.com.cn>
---
arch/riscv/include/asm/vendorid_list.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/include/asm/vendorid_list.h b/arch/riscv/include/asm/vendorid_list.h
index 7f5030ee1fcf..2d0a8a2e4a67 100644
--- a/arch/riscv/include/asm/vendorid_list.h
+++ b/arch/riscv/include/asm/vendorid_list.h
@@ -6,6 +6,7 @@
#define ASM_VENDOR_LIST_H
#define ANDES_VENDOR_ID 0x31e
+#define LEAPRISE_VENDOR_ID 0x966
#define MICROCHIP_VENDOR_ID 0x029
#define MIPS_VENDOR_ID 0x127
#define SIFIVE_VENDOR_ID 0x489
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-20 7:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 6:51 [PATCH v2 0/2] riscv: Add Beijing LeapRise Technology vendor ID and vendor extension framework lv.yating
2026-11-20 7:02 ` [PATCH v2 1/2] riscv: Add LeapRise Technology to the vendor list lv.yating
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®