aboutsummaryrefslogtreecommitdiff
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix(c9xx): don't flush dcache when invalidating"Han Gao2024-01-311-0/+10
| | | | This reverts commit adec30ace4cebb0554bb246b52eebaf37c1545c4.
* Linux_SDK_V1.4.2thead_admin2024-01-229-11/+323
| | | | Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
* defconfig: add light_lpi4a_[cluster|console]_defconfigLu Hui2023-12-262-0/+46
|
* arch: dts: light-lpi4a: allow pane0 ref by other dtsLu Hui2023-12-261-1/+1
|
* fix(c9xx): don't flush dcache when invalidatingGilbert Gilb's2023-12-151-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The data cache invalidation function for c9xx CPUs uses `dcache.cipa` instruction. According to T-Head extension specification[1] section 3.1.5, this instruction also performs a cache clean along with the invalidation. On top of being incorrect, this leads to a serious issue on the designware ethernet driver, where stalled cache may get flushed each time we handle a new received packet[2]. As a result, received packet are randomly corrupted with old cached data. This can easily be reproduced by sending an ARP request to the device during a TFTP transfer. The last TFTP block is treated as the ARP reply we just sent, which makes U-Boot hang on the block. Always use `dcache.ipa` instruction to invalidate dcache. Replace existing usages of `dcache.ipa` with our implementation. Note that this fix is slightly intrusive as it changes the cache invalidation behavior in all drivers. However, I have not noticed any side-effect during my tests. [1] https://github.com/T-head-Semi/thead-extension-spec/releases/download/2.3.0/xthead-2023-11-10-2.3.0.pdf [2] https://github.com/revyos/thead-u-boot/blob/918a8c89e056e3462031d6a498bb4fcc0c3526ce/drivers/net/designware.c#L475
* riscv: dts: milkv-meles: turn on blue user ledHaaland Chen2023-12-031-0/+4
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* add Milk-V Meles boardHaaland Chen2023-12-032-1/+285
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* pytest: add sandbox test for "extension" commandKory Maincent2023-10-204-0/+21
| | | | | | | | | | | | This commit extends the sandbox to implement a dummy extension_board_scan() function and enables the extension command in the sandbox configuration. It then adds a test that checks the proper functionality of the extension command by applying two Device Tree overlays to the sandbox Device Tree. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> [trini: Limit to running on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com>
* Linux_SDK_V1.2.1thead_admin2023-08-191-0/+1
| | | | Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
* feat: update SDK1.2.0Han Gao2023-07-302-2/+9
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* riscv: Fix build against binutils 2.38Alexandre Ghiti2023-07-241-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | The following description is copied from the equivalent patch for the Linux Kernel proposed by Aurelien Jarno: >From version 2.38, binutils default to ISA spec version 20191213. This means that the csr read/write (csrr*/csrw*) instructions and fence.i instruction has separated from the `I` extension, become two standalone extensions: Zicsr and Zifencei. As the kernel uses those instruction, this causes the following build failure: arch/riscv/cpu/mtrap.S: Assembler messages: arch/riscv/cpu/mtrap.S:65: Error: unrecognized opcode `csrr a0,scause' arch/riscv/cpu/mtrap.S:66: Error: unrecognized opcode `csrr a1,sepc' arch/riscv/cpu/mtrap.S:67: Error: unrecognized opcode `csrr a2,stval' arch/riscv/cpu/mtrap.S:70: Error: unrecognized opcode `csrw sepc,a0' Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Tested-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Christian Stewart <christian@paral.in> Reviewed-by: Rick Chen <rick@andestech.com>
* fix: unknown CSR 'mhcr' (arch/riscv/cpu/c9xx/cpu.c)Han Gao2023-07-241-3/+4
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* fix: fix and add ums gadget(usb mass storage gadget)chainsx2023-07-071-0/+10
|
* Linux_SDK_V1.1.2Linux_SDK_V1.1.2thead_admin2023-03-053-2/+502
|
* Linux_SDK_V1.0.2Linux_SDK_V1.0.2thead_admin2022-11-2217-10/+2167
|
* Linux_SDK_V0.9.5Linux_SDK_V0.9.5thead_admin2022-09-135024-0/+922673