Ran Wang
892445a035
configs: Add new defconfig for case of large rootfs
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-08-18 15:51:13 +08:00
zhangzhijie
a278f10405
NanHu-V5 DTS: Add PLIC And XDMA(pcie)
...
1. default status is disabled
2. PLIC interrupt-extended dispatch to each dts
Signed-off-by: zhangzhijie <zhangzhijie@bosc.ac.cn >
2025-08-14 15:57:32 +08:00
zhangzhijie
f4247862d2
Support Pcie , Default is disable
...
Signed-off-by: zhangzhijie <zhangzhijie@bosc.ac.cn >
2025-08-08 11:30:25 +08:00
Yaxing Guo
d6328edc03
dts: kvm-v2: Add no-imsic-ipi in imsic_s node
...
There is a hardware issue of losing IPI interrupt when using imsic ipi.
Add this quir property to use clint IPI instead.
Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn >
2025-08-06 12:05:31 +08:00
Yaxing Guo
8dcb5db893
irqchip: riscv-imsic: Add no-imisc-ipi quirk property
...
To control whether to use imsic ipi.
Context is that kmh-v2 have known issue that the path from imisic IPI
to CPU might not work sometimes. And the workaround is to use clint IPI
instead.
Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn >
2025-08-06 11:25:58 +08:00
Ran Wang
8759fda167
minimal_defconfigs: Select debug options
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-08-05 13:55:54 +08:00
gaochengbo
742d223e56
dts: kmh-v2: Fix warning of "riscv-imsic@3b000000: invalid cpuid for parent irq4"
...
Move interrupts-extended from dtsi to dts files.
Signed-off-by: Chengbo Gao <gaochengbo@bosc.ac.cn >
2025-08-04 15:50:50 +08:00
Anzooooo
3368ca3299
dts: kmh-v2: Add cbo-block-size
2025-07-24 09:15:19 +00:00
Ran Wang
7ab90af048
dts: nanhu-v5: Add multiple cpu platforms
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-07-22 14:00:09 +08:00
Ran Wang
d6822ff65b
minimal_defconfig: Add CONFIG_POSIX_TIMERS for stress-ng
...
Otherwise stress-ng will not return when timerout.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-07-18 18:28:16 +08:00
Yaxing Guo
d7db0dff01
Add page table dump when unhandled signal occurs
...
Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn >
2025-07-11 12:25:27 +08:00
Ran Wang
20af770070
dts: kvm-v2: Remove interrput from uart ns16550a node
...
Because currently opensource APLIC IP does not support multicore.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-07-09 17:01:19 +08:00
qinshaoqing
b8f8696413
Add nemu dts for nemu platform
...
Signed-off-by: qinshaoqing <qinshaoqing@bosc.ac.cn >
2025-07-03 16:25:02 +08:00
Ran Wang
6d67db2612
dts: kmh-v2 nanhu-v5: Fix status value typo of uart nodes
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-06-10 14:40:22 +08:00
Alexandre Ghiti
cb571543a9
riscv: Re-introduce global icache flush in patch_text_XXX()
...
commit edf2d546bf ("riscv: patch: Flush the icache right after
patching to avoid illegal insns") mistakenly removed the global icache
flush in patch_text_nosync() and patch_text_set_nosync() functions, so
reintroduce them.
Fixes: edf2d546bf ("riscv: patch: Flush the icache right after patching to avoid illegal insns")
Reported-by: Samuel Holland <samuel.holland@sifive.com >
Closes: https://lore.kernel.org/linux-riscv/a28ddc26-d77a-470a-a33f-88144f717e86@sifive.com/
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com >
Reviewed-by: Samuel Holland <samuel.holland@sifive.com >
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com >
Link: https://lore.kernel.org/r/20240801191404.55181-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com >
2025-05-20 11:42:24 +08:00
YunFeng Yang
de4a75917c
dts: add rngseed for early entropy init
...
The purpose of the rngseed device tree node:
It specifies the seed data source for the random number generator during early boot,
ensuring better entropy initialization for the system.
When running multi-core apache on PLDM, the accumulation of entropy on PLDM is very
slow, which causes geturandom to run for a long time. Add rngseed node to speed up
the initialization of geturandom function.
The relevant task links are as follows:
https://www.teambition.com/task/677b42884f91b245709c9517
Signed-off-by: YunFeng Yang <yangyunfeng@bosc.ac.cn >
2025-05-19 17:13:28 +08:00
Ran Wang
fa3b15f972
dts: nanhu-v5: Remove AIA extension from CPU node
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-05-12 09:07:53 +00:00
Ran Wang
807933ba3f
xiangshan.config: Select CONFIG_KVM as builtin
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-05-08 11:10:40 +08:00
qinshaoqing
045fb787ad
Add kasan config
...
Signed-off-by: qinshaoqing <qinshaoqing@bosc.ac.cn >
2025-05-06 16:33:42 +08:00
Ran Wang
48f1196d53
imsic_test: Fix global-out-of-bounds error
...
This error cold only be reported when selecting KASAN feature as below:
CONFIG_THREAD_SIZE_ORDER=2
CONFIG_KASAN=y
CONFIG_KASAN_OUTLINE=y
And the error it fix would looks like:
[ 16.196461] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 16.329357] SuperH (H)SCI(F) driver initialized
[ 17.409162] loop: module loaded
[ 17.416888] ==================================================================
[ 17.419174] BUG: KASAN: global-out-of-bounds in of_match_node+0x66/0xba
[ 17.423821] Read of size 1 at addr ffffffff81a1b728 by task swapper/0/1
[ 17.425406]
[ 17.427090] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.10.7-00079-ga89438d2d0cf #86
[ 17.429212] Hardware name: bosc,kmh-v2-1core (DT)
[ 17.430828] Call Trace:
[ 17.431836] [<ffffffff8000845a>] dump_backtrace+0x1c/0x24
[ 17.433283] [<ffffffff811184a8>] show_stack+0x2e/0x38
[ 17.434572] [<ffffffff81130722>] dump_stack_lvl+0x52/0x74
[ 17.435972] [<ffffffff8111e246>] print_report+0x258/0x572
[ 17.437356] [<ffffffff802f02d2>] kasan_report+0xe0/0x104
[ 17.438781] [<ffffffff802f14f8>] __asan_load1+0x6c/0x74
[ 17.440239] [<ffffffff80d539ec>] of_match_node+0x66/0xba
[ 17.441558] [<ffffffff80d571a2>] of_match_device+0x46/0x64
[ 17.442955] [<ffffffff80997d70>] platform_match+0x6a/0x14c
[ 17.444397] [<ffffffff809948f4>] __driver_attach+0x3a/0x1ec
[ 17.445786] [<ffffffff8099136a>] bus_for_each_dev+0xd0/0x134
[ 17.447162] [<ffffffff809939e8>] driver_attach+0x2c/0x34
[ 17.448492] [<ffffffff80992f32>] bus_add_driver+0x13c/0x2a0
[ 17.449872] [<ffffffff80995ce4>] driver_register+0xc8/0x198
[ 17.451275] [<ffffffff80997820>] __platform_driver_register+0x40/0x4a
[ 17.452867] [<ffffffff8123fe10>] imsic_test_platform_driver_init+0x1a/0x22
[ 17.454623] [<ffffffff8000223c>] do_one_initcall+0xc4/0x24e
[ 17.455993] [<ffffffff812016e8>] kernel_init_freeable+0x31a/0x37e
[ 17.457506] [<ffffffff81131f00>] kernel_init+0x1c/0x130
[ 17.458896] [<ffffffff81141a1e>] ret_from_fork+0xe/0x1c
[ 17.460503]
[ 17.461150] The buggy address belongs to the variable:
[ 17.462248] 0xffffffff81a1b728
[ 17.463676]
[ 17.464340] The buggy address belongs to the physical page:
[ 17.466203] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x81e1b
[ 17.468446] flags: 0x2000(reserved|zone=0)
[ 17.471564] raw: 0000000000002000 ffff8d80000786c8 ffff8d80000786c8 0000000000000000
[ 17.473258] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[ 17.475112] page dumped because: kasan: bad access detected
[ 17.476354]
[ 17.476928] Memory state around the buggy address:
[ 17.478530] ffffffff81a1b600: f9 f9 f9 f9 00 00 00 03 f9 f9 f9 f9 00 00 00 00
[ 17.480173] ffffffff81a1b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 17.481725] >ffffffff81a1b700: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
[ 17.483207] ^
[ 17.484490] ffffffff81a1b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 17.486004] ffffffff81a1b800: 00 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9
[ 17.487549] ==================================================================
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-05-06 16:28:41 +08:00
Ran Wang
19beff0957
minimal_defconfig: Skip compressing Image to speed up kernel build
...
Especially in case of very large initramfs files.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-04-18 13:01:52 +08:00
Ran Wang
072bf43f66
dts: nanhu-v5: Adjust DDR size from 8GB to 2GB
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-04-08 10:38:33 +08:00
Ran Wang
03ab7484ef
dts: kmh-v2: Remove imsic_test node
...
Because new imsic test driver will not rely on it.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-04-08 10:38:26 +08:00
Ran Wang
8f0edfb3ce
dts: Add nanhu-v5-1core-uartlite
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-04-08 10:38:16 +08:00
Ran Wang
bd2ff16579
dts: nanhu-v5: Adjust DDR size from 16GB to 8GB
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-04-08 10:38:03 +08:00
Yaxing Guo
ddf9a39fc2
irqchip: imisc: Fix boot fail
...
Return NULL in imisc_get_irq_domain if there is no imsic.
Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn >
2025-04-03 14:53:55 +08:00
Yaxing Guo
73963d3155
imsic_test_driver:
...
Use for system testing for multi-core IMISC.
In this version, it is no need to add imsic_test node in dts.
It will create an imsic_test directory under /sys/kernel/debugfs/
after mount debugfs.
Under the imsic_test/, there are three debug file:
count, dump_all.
User can allocate any number of interrupts through "echo XX > count".
And observe the test status through "cat dump_all" of all allocated
interrupts.
After echo a number into count, corresponding number of directories
will be created under imsic_test named "0", "1", "2" ... which each
represents an interrupt to be tested.
Under the director of interrupts, there are 5 files:
affinity:
The cpu affinity of this interrupt. You can set the affinity of this
interrupt through "echo cpu_id > affinity".And get the its affinity
through "cat affinity".
hwirq:
The hwirq of this interrupt. You can get the its hardware number
through "cat hwirq".
times:
Recording the times the interrupt was triggered. You cat get this
number through "cat times".
More detailed, you can echo cpu_id to times, then when you get its
numbers, you will receive the number of times the interrupt is trigger
on that CPU, and in the same situation, you will get total number of times
on all of the CPUs directly do "cat times".
trigger:
Trigger this interrupt once.
You can trigger through "echo 1 > trigger"
virq:
The virq(linux irq) of this interrupt.
You can get this through "cat virq".
Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn >
2025-04-01 17:00:01 +08:00
Ran Wang
b5d413e7b6
dts: kmh-v2: Add 4 core support
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-28 18:03:14 +08:00
Ran Wang
a8c2fe0ff9
dts: kmh-v2: Fix information wrong
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-28 17:58:13 +08:00
Ran Wang
55c05657f5
imsic_test: Fix irq number converting
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-20 16:55:21 +08:00
Ran Wang
dffda26c89
dts: Add nanhu-v5
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-17 17:17:21 +08:00
Ran Wang
c062c1bc30
dts: kmh-v2: Change DDR from 2GB to 16GB
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-14 14:39:33 +08:00
Ran Wang
d056b28ebc
Revert "dts: kmh-v2: Workaround MMIO access failure"
...
This reverts commit 14fed76753 .
Issue has been fixed by 186518c62c4e7f1 ("dts: kmh-v2: Fix MMIO access failure").
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-11 17:32:07 +08:00
Ran Wang
67f23cd540
dts: kmh-v2: Fix MMIO access failure
...
This change will cause OpenSBI set CSR_MENVCFG to enable related
extension, such as svpbmt.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-11 17:32:07 +08:00
Huang Borong
7ee277593c
dts: kmh-v2-8core: remove the redundant cpu8 node from the DTS file
...
Signed-off-by: Huang Borong <huangborong@bosc.ac.cn >
2025-03-11 17:10:44 +08:00
Ran Wang
c08057b6e6
dts: kmh-v2: Workaround PCIE init failure on QEMU
...
Should revert this change after PCIE issue fixed on qemu bosc-kmh
machine.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-05 14:41:48 +08:00
Ran Wang
679a26ee54
dts: kmh-v2: Workaround PCIE init failure
...
Should revert this change after PCIE ready on FPGA.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-05 14:38:13 +08:00
Ran Wang
14fed76753
dts: kmh-v2: Workaround MMIO access failure
...
Remove svpbmt from CPU ISA support list temporarily.
Should revert this change after root cause found.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-03-05 14:11:05 +08:00
ZhiJie.zhang
80dff86500
Support Xilinx7011 EP
...
Signed-off-by: ZhiJie.zhang <zhangzhijie@bosc.ac.cn >
2025-02-21 16:34:20 +08:00
Ran Wang
8500321579
dts: kmh-v2: Add more multi-core dts files
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-02-14 09:23:59 +00:00
Ran Wang
8c4752a13c
dts: kmh-v2: Fix cpu4~cpu15 bringup fail
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-02-14 06:56:10 +00:00
Ran Wang
94f52e2496
dts: Add kmh-v2-16core.dts
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-02-14 05:55:24 +00:00
Ran Wang
9ddb917ca6
dts: kmh-v2: Update CPU properties
...
Sync with XiangShan repo CPU0127 release:
172.28.9.106:/nfs-nvme/home/tanghaojin/kmhv2_release/20250127/cpu/rtl/chi_XSTop/XSTop.dts
Setup 16 CPU cores in dtsi.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-02-14 05:38:03 +00:00
Ran Wang
14a93a0213
rootfs_nopasswd.cpio: Show build info during boot
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-02-14 02:33:29 +00:00
Ran Wang
06728494ee
dts: kmh-v2: Update IMSIC nodes for 16 CPU case.
...
For node imsics_m, reg size should be 0x1000*number_of_CPUs
For node imsics_s, reg size should be 0x8000*number_of_CPUs
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-02-08 09:58:21 +00:00
ZhiJie.zhang
86117a12a8
Modify xdma0 cfg addr 32000000
...
Signed-off-by: ZhiJie.zhang <zhangzhijie@bosc.ac.cn >
2025-02-08 03:15:33 +00:00
Zhijie Zhang
4b23664311
modify xdma config addr
...
Signed-off-by: ZhiJie.zhang <zhangzhijie@bosc.ac.cn >
(cherry picked from commit ac53c399c052e70f5c52d7c4547f6268c99bd86c)
Co-authored-by: ZhiJie.zhang <zhangzhijie@bosc.ac.cn >
2025-01-10 09:20:52 +00:00
Ran Wang
fa08436b07
minimal_defconfig: Add SMP support
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2025-01-09 09:54:42 +00:00
Ran Wang
775e91af47
dts: kmh-v2-1core: Fix timer frequency.
...
1MHz shoudld be '= <1000000>', but not '= <0x1000000>' which means 16MHz.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-12-26 10:07:37 +00:00
Ran Wang
ef24c237ae
dts: kmh-v2-1core: Specify only cpu0 is allowed to be boot hart
...
This is for the case in simulation environment which would track only
one cpu during boot.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-12-24 13:43:25 +08:00
qinshaoqing
42608197fb
Add gmac config and add nanhuv3a dts
...
In addition for gmac and sd driver:
arch/riscv/include/asm/mmio.h : asm volatile("addi zero,zero,0");
drivers/mmc/host/sdhci-of-dwcmshc.c: clk |= SDHCI_CLOCK_INT_EN | 0x200;
drivers/mmc/host/sdhci.c : clk |= SDHCI_CLOCK_CARD_EN | 0x200;
drivers/mmc/host/sdhci.c : sdhci_writeb(host, 0, SDHCI_POWER_CONTROL);
Signed-off-by: qinshaoqing <qinshaoqing@bosc.ac.cn >
2024-12-23 16:24:34 +08:00
Ran Wang
2941c588a0
dts: Add kmh-v2-1core-uartlite.dts
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-12-20 14:26:27 +08:00
Ran Wang
5454b72c7b
dts: kmh-v2: Add uartlite node
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-12-20 14:10:19 +08:00
Ran Wang
4049302e88
configs: minimal_defconfig: Add CONFIG_DEBUG_FS
...
Because IMSIC test driver need debug fs to trigger test routine.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-12-04 18:13:07 +08:00
YaXing Guo
f2ec3e8508
Support guest imsic test
...
Signed-off-by: YaXing Guo <guoyaxing@bosc.ac.cn >
2024-12-04 10:24:24 +08:00
ZhiJie.zhang
38a1434a0f
support xmda for kmh
...
Signed-off-by: ZhiJie.zhang <zhangzhijie@bosc.ac.cn >
2024-11-29 01:47:32 -05:00
Anton Blanchard
c3aabf7bfe
riscv: Fix toolchain vector detection
...
A recent change to gcc flags rv64iv as no longer valid:
cc1: sorry, unimplemented: Currently the 'V' implementation
requires the 'M' extension
and as a result vector support is disabled. Fix this by adding m
to our toolchain vector detection code.
Signed-off-by: Anton Blanchard <antonb@tenstorrent.com >
Fixes: fa8e7cce55 ("riscv: Enable Vector code to be built")
Link: https://lore.kernel.org/r/20240819001131.1738806-1-antonb@tenstorrent.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com >
Signed-off-by: yangyunfeng <yangyunfeng@bosc.ac.com >
2024-11-19 03:19:49 -05:00
qinshaoqing
78a45f8669
dts: kmh-v2: Replace dts with dtsi + dts
...
Prepare for upcomming 4-core platform.
Signed-off-by: qinshaoqing <qinshaoqing@bosc.ac.cn >
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-11-13 12:24:08 +08:00
Ran Wang
9e50b4de1b
dts: kmh-v2-1core: Add imsic_test@0 for IMSIC test
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-10-14 15:46:48 +08:00
YaXing Guo
17dd3a2d21
Get imsic irq domain in imsic_test.c
...
Signed-off-by: YaXing Guo <guoyaxing@bosc.ac.cn >
2024-10-14 15:46:40 +08:00
YaXing Guo
c3150f9af9
Add interface to get imsic irq domain
...
Signed-off-by: YaXing Guo <guoyaxing@bosc.ac.cn >
2024-10-14 15:46:24 +08:00
Ran Wang
068248dd15
imsic_test: Fix return error code
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-10-14 14:32:29 +08:00
YaXing Guo
40ef59a821
Add imsic_test driver
...
Signed-off-by: YaXing Guo <guoyaxing@bosc.ac.cn >
2024-10-14 14:32:17 +08:00
Ran Wang
9e53d3efe3
dts: kmh-v2-1core: Replace PLIC with APLIC and IMSIC
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-10-14 13:58:35 +08:00
Ran Wang
6236947d07
Update rootfs_nopasswd.cpio
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-10-08 15:04:21 +08:00
Ran Wang
8605f7d351
xiangshan.config: Add CONFIG_NONPORTABLE for HVC console case
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-10-08 15:04:02 +08:00
Ran Wang
e3c551ad42
minimal_defconfig: Enable CONFIG_SOC_XIANGSHAN option
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-16 15:32:53 +08:00
Ran Wang
cb009641bd
minimal_defconfig: Change rootfs to rootfs_nopasswd.cpio
...
Abandon ns-bbl rootfs as default.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-16 10:45:12 +08:00
Ran Wang
c885e76ad9
dts: nanhu-v3-1core: Fix print hang when boot.
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 19:20:05 +08:00
Ran Wang
f0178818a1
xiangshang.config: Add uartlite support
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Ran Wang
720056ffbc
dts: bosc/kmh-v2-1core: Update model strings
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Ran Wang
0b7ba87235
dts: kmh-v2-1core: Add extensions sstc and sscofpmf support
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Ran Wang
d5b1cb0144
dts: kmh-v2-1core: Enable uart0 interrupt
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Ran Wang
e29851bb29
dts: kmh-v2-1core: Fix kernel system time incorrect
...
Current mtime frequency is 1MhZ, not 500KHz
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Sui Jingfeng
2dbf81f6dd
minimal_defconfig: disable Power Management
...
As a minimal configuration, timer, PLIC, serial port and CPU cache and
intruction set extention is more important. Suspend and Resume is not
important and is not need at this time. Disable it to save compile time,
also reduce the image size.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:03 +08:00
Sui Jingfeng
54d45c55ab
dts: Add device tree for kmh-v2 tilelink version FPGA
...
Note it seem that the PLIC interrupt are not works very well, so the
serial port can not working at interrupt mode, we comment the interrupt
termporary.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:03 +08:00
Sui Jingfeng
5fbdb4bdad
riscv: bosc: minimal_defconfig: Enable FUTEX to allow run spec test
...
The minimal_defconfig didn't enable CONFIG_FUTEX before, which will cause
the kernel can not run the spec tests. When run omnetpp_run.sh,it report
"the futex facility returned an unexpected error code"
Comments from help of CONFIG_FUTEX:
Disabling the CONFIG_FUTEX option will cause the kernel to be built
without support for "fast userspace mutexes". The resulting kernel
may not run glibc-based applications correctly.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:03 +08:00
Yu Hu
aa84e07527
xiangshan.config:change debug log level
...
Signed-off-by: Yu Hu <huyu@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Yu Hu
0aade0379b
xiangshan.config:add rootfs_nopasswd.cpio
...
Signed-off-by: Yu Hu <huyu@bosc.ac.cn >
2024-09-07 10:53:03 +08:00
Yu Hu
46005751bc
add hvc riscv sbi config
...
Signed-off-by: Yu Hu <huyu@bosc.ac.cn >
2024-09-07 10:53:02 +08:00
yang yunfeng
f519fd7e0e
ci: Remove the other stages and keep only the compilation stage.
2024-09-07 10:53:02 +08:00
Sui Jingfeng
5336519f86
riscv: Add a minimal defconfig for CPU simulation purpose
...
It should also be able to use on FPGA environment
Note: it require you specify the directory of riscv-rootfs, for example:
export RISCV_ROOTFS_HOME=/home/user/WorkSpace/riscv-rootfs
Usage:
make ARCH=riscv CROSS_COMPILE=riscv64-unknown-linux-gnu- minimal_defconfig
Note, compared with the original config, the following options are removed.
-# CONFIG_VT is not set
-# CONFIG_PROC_FS is not set
-# CONFIG_SYSFS is not set
-CONFIG_PRINTK_TIME=y
config:
Remove CONFIG_INITRAMFS_ROOT_UID=0 and CONFIG_INITRAMFS_ROOT_GID=0,
because they are zero by default.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:02 +08:00
Sui Jingfeng
f8043cb0ee
xiangshan.config: Enable CONFIG_SOC_XIANGSHAN option
...
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:02 +08:00
Sui Jingfeng
8998688986
riscv: bosc: dts: Add aliases device node for serial port and cleanup
...
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:02 +08:00
Sui Jingfeng
c9dfaec283
arch: riscv: Add bosc soc platform and compile the dts while compiling kernel
...
The emu.dts is tested against kunminghu v1 fpga.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:02 +08:00
Sui Jingfeng
7b66663a3a
xiangshang.config: Drop unnecessary config options
...
For linux-6.6, those config options has already been selected by
the defconfig.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev >
2024-09-07 10:53:02 +08:00
YunFeng Yang
abcbe6dc37
ci: Add .gitlab-ci-yml scripts to control CI workflow
...
Currently kmh-v1 is supported to run lmbench.
See https://bosc.yuque.com/staff-xmw8rg/gv3ubm/zlk9rrsasu4amgvn for details.
Signed-off-by: YunFeng Yang <yangyunfeng@bosc.ac.cn >
2024-09-07 10:53:02 +08:00
Ran Wang
a4a7f9f610
riscv: dts: nanhu-v2: change to boot from USB disk
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:02 +08:00
Ran Wang
3cb29aca21
riscv: dts: add 1 core platform for nanhu-v3
...
Refact nanhu device tree files, use dtsi.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:02 +08:00
Ran Wang
ae76323bb4
riscv: config: Add NVME and USB dongle support
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
Ran Wang
7da2a44dc9
riscv: dts: Add kmh-v1 platform
...
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
Ran Wang
9575760644
riscv: config: enable IGB in xiangshan.config by default
...
This driver supports Intel(R) 82575/82576 gigabit ethernet family of
adapters.
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
Ran Wang
aae2ca270b
riscv: dts: Add nanhu-v3 platform
...
Signed-off-by: Yang Wang <wangyang@bosc.ac.cn >
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
Ran Wang
000bd8e3f1
riscv: dts: Add nanhu-v2 platform
...
Signed-off-by: Yang Wang <wangyang@bosc.ac.cn >
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
Ran Wang
98d4f2815e
riscv: dts: Add nemu platform
...
Signed-off-by: Yaxing Guo <guoyaxing@bosc.ac.cn >
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
guoyaxing
d9383e41fe
xiangshan.config: Add degbug info.
...
Signed-off-by: guoyaxing <guoyaxing@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
guoyaxing
718993f951
xiangshan.config: Add xiangshan.config.
...
Use "make defconfig xiangshan.config" instead of "make nanhu_fpga_defconfig"
Signed-off-by: guoyaxing <guoyaxing@bosc.ac.cn >
Signed-off-by: zhoujiajun zhoujiajun@bosc.ac.cn
Signed-off-by: Shaoqing Qin qinshaoqing@bosc.ac.cn
Signed-off-by: wangyang wangyang@bosc.ac.cn
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:53:01 +08:00
wangyang
02c7db1d9a
xlinx-xdma:Add xdma driver pcie-xdma-pl.c
...
1. src code
http://172.28.3.77:8989/xs-soc/linux-xlnx/-/blob/xlnx_rebase_v5.10/drivers/pci/controller/pcie-xdma-pl.c
2. commit 87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
Signed-off-by: wangyang <wangyang@bosc.ac.cn >
Signed-off-by: Ran Wang <wangran@bosc.ac.cn >
2024-09-07 10:51:33 +08:00