summaryrefslogtreecommitdiff
path: root/arch/riscv
AgeCommit message (Collapse)AuthorFilesLines
2023-11-07configs: vf2: set freq to max and set ethercat to moduleIGH_ETHERCAT_5.15_v0.1.0rt-ethercat-releaseMinda Chen1-9/+4
Set defualt to max frequeuce to set latency to minium. Alse disable cpu idle and hibernation pm ops. etercat module module install sequence modprobe phylink insmod ec_master.ko main_devices=<ethercat gmac mac address> insmod ec_generic.ko modprobe pcs_xpcs cd /lib/modules/5.15.0-rt17+/kernel/drivers/net/ethernet/stmicro/stmmac/ insmod stmmac.ko insmod stmmac-platform.ko insmod dwmac-starfive-plat.ko mac address example: insmod ec_master.ko main_devices=6c:cf:39:00:27:48 Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-11-06riscv: rt: add riscv lazy preempt support.minda.chen5-5/+137
The code is origin from arm64/x86 Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-11-06config: add vf2 PREEMPT_RT and other configMinda Chen1-2/+2
enable full preempt RT config. Set HZ 1000 and set no tickless Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-11-06riscv: Allow riscv PREEMPT_RT config.minda.chen1-0/+2
RISCV allow to select RT Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-11-06locking: Allow to include asm/spinlock_types.h from linux/spinlock_types_raw.hSebastian Andrzej Siewior1-1/+1
The printk header file includes ratelimit_types.h for its __ratelimit() based usage. It requires it for the static initializer used in printk_ratelimited(). It uses a raw_spinlock_t and includes the spinlock_types.h. It makes no difference on non PREEMPT-RT builds but PREEMPT-RT replaces the inner part of some locks and therefore includes rtmutex.h and atomic.h which leads to recursive includes where defines are missing. By including only the raw_spinlock_t defines it avoids the atomic.h related includes at this stage. An example on powerpc: | CALL scripts/atomic/check-atomics.sh |In file included from include/linux/bug.h:5, | from include/linux/page-flags.h:10, | from kernel/bounds.c:10: |arch/powerpc/include/asm/page_32.h: In function ‘clear_page’: |arch/powerpc/include/asm/bug.h:87:4: error: implicit declaration of function ‘__WARN’ [-Werror=implicit-function-declaration] | 87 | __WARN(); \ | | ^~~~~~ |arch/powerpc/include/asm/page_32.h:48:2: note: in expansion of macro ‘WARN_ON’ | 48 | WARN_ON((unsigned long)addr & (L1_CACHE_BYTES - 1)); | | ^~~~~~~ |arch/powerpc/include/asm/bug.h:58:17: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’ | 58 | "i" (sizeof(struct bug_entry)), \ | | ^~~~~~ |arch/powerpc/include/asm/bug.h:89:3: note: in expansion of macro ‘BUG_ENTRY’ | 89 | BUG_ENTRY(PPC_TLNEI " %4, 0", \ | | ^~~~~~~~~ |arch/powerpc/include/asm/page_32.h:48:2: note: in expansion of macro ‘WARN_ON’ | 48 | WARN_ON((unsigned long)addr & (L1_CACHE_BYTES - 1)); | | ^~~~~~~ |In file included from arch/powerpc/include/asm/ptrace.h:298, | from arch/powerpc/include/asm/hw_irq.h:12, | from arch/powerpc/include/asm/irqflags.h:12, | from include/linux/irqflags.h:16, | from include/asm-generic/cmpxchg-local.h:6, | from arch/powerpc/include/asm/cmpxchg.h:526, | from arch/powerpc/include/asm/atomic.h:11, | from include/linux/atomic.h:7, | from include/linux/rwbase_rt.h:6, | from include/linux/rwlock_types.h:55, | from include/linux/spinlock_types.h:74, | from include/linux/ratelimit_types.h:7, | from include/linux/printk.h:10, | from include/asm-generic/bug.h:22, | from arch/powerpc/include/asm/bug.h:109, | from include/linux/bug.h:5, | from include/linux/page-flags.h:10, | from kernel/bounds.c:10: |include/linux/thread_info.h: In function ‘copy_overflow’: |include/linux/thread_info.h:210:2: error: implicit declaration of function ‘WARN’ [-Werror=implicit-function-declaration] | 210 | WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count); | | ^~~~ The WARN / BUG include pulls in printk.h and then ptrace.h expects WARN (from bug.h) which is not yet complete. Even hw_irq.h has WARN_ON() statements. On POWERPC64 there are missing atomic64 defines while building 32bit VDSO: | VDSO32C arch/powerpc/kernel/vdso32/vgettimeofday.o |In file included from include/linux/atomic.h:80, | from include/linux/rwbase_rt.h:6, | from include/linux/rwlock_types.h:55, | from include/linux/spinlock_types.h:74, | from include/linux/ratelimit_types.h:7, | from include/linux/printk.h:10, | from include/linux/kernel.h:19, | from arch/powerpc/include/asm/page.h:11, | from arch/powerpc/include/asm/vdso/gettimeofday.h:5, | from include/vdso/datapage.h:137, | from lib/vdso/gettimeofday.c:5, | from <command-line>: |include/linux/atomic-arch-fallback.h: In function ‘arch_atomic64_inc’: |include/linux/atomic-arch-fallback.h:1447:2: error: implicit declaration of function ‘arch_atomic64_add’; did you mean ‘arch_atomic_add’? [-Werror=impl |icit-function-declaration] | 1447 | arch_atomic64_add(1, v); | | ^~~~~~~~~~~~~~~~~ | | arch_atomic_add The generic fallback is not included, atomics itself are not used. If kernel.h does not include printk.h then it comes later from the bug.h include. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
2023-10-19Merge branch 'CR_7889_vf2_qspi_5.15_ziv.xu' into 'vf2-515-devel'andy.hu1-0/+33
CR_7889_vf2_qspi_5.15_ziv.xu See merge request sbc/linux!173
2023-10-18Merge tag 'JH7110_515_SDK_v5.8.1' into vf2-515-develAndy Hu2-27/+33
2023-10-16riscv: dts: starfive: modify qspi dtsziv.xu1-0/+33
modify qspi dts Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-10-16riscv: dts: starfive: modify qspi dtsziv.xu2-27/+33
modify qspi dts Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-09-12riscv: drm: panel: update radxa panel startup process and support ↵shengyang.chen2-22/+6
accelerator-sc7a20 mention: this patch is to solve the problem that radxa 8inch use i2c addr 0x19 which conflict with accelerator-sc7a20. Then enable accelerator-sc7a20 1.update radxa panel startup process to support both radxa 10inch and radxa 8inch in one driver 2.add accelerator-sc7a20 i2c probe process into radxa panel driver Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
2023-09-01Merge tag 'JH7110_515_SDK_v5.7.1' into vf2-515-develAndy Hu1-1/+1
2023-08-31riscv: dts: starfive: Correct the name of clock for dmaWalker Chen1-1/+1
Fix the bug that dma driver failed to init as the wrong clock name. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-08-31Merge branch 'CR_6872_bluetooth_5.15_ziv.xu' into 'vf2-515-devel'andy.hu1-0/+1
CR_6872_bluetooth_5.15_ziv.xu See merge request sbc/linux!167
2023-08-31Merge tag 'JH7110_515_SDK_v5.7.0' into vf2-515-develAndy Hu1-11/+12
2023-08-30riscv: dts: starfive: jh7110: add dma-coherent for vpu/jpuSamin Guo1-0/+3
Use DMA-Coherent to avoid DIRECT_REMAP when allocating DMA buffers Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-08-29riscv: dts: starfive: change some properties of DMA nodeWalker Chen1-11/+9
Need to change some properties as DMA driver changes. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-08-29riscv: configs: enable uhid in starfive_visionfive2_defconfigziv.xu1-0/+1
enable uhid in starfive_visionfive2_defconfig Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-08-22Merge branch 'CR_7073_vf2_515_newrd10_shengyang.chen' into 'vf2-515-devel'VF2_v3.6.1andy.hu1-15/+17
CR 7073 vf2 515: riscv: drm: panel: mass production radxa 10inch panel support See merge request sbc/linux!164
2023-08-22Merge tag 'JH7110_515_SDK_v5.6.1' into vf2-515-develAndy Hu1-2/+1
2023-08-22riscv: drm: panel: mass production radxa 10inch panel supportshengyang.chen1-15/+17
change radxa 10inch support from sample to mass production Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
2023-08-17Merge branch 'CR_4379_hifi_sof_515_carter.li' into 'vf2-515-devel'andy.hu8-28/+184
CR_4379: sound:hifi4: Sound Open Firmware for hifi4 on vf2 See merge request sbc/linux!138
2023-08-17riscv: configs: disable CONFIG_DEBUG_ATOMIC_SLEEP in ↵ziv.xu1-1/+0
starfive_visionfive2_defconfig disable CONFIG_DEBUG_ATOMIC_SLEEP in starfive_visionfive2_defconfig Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-08-17riscv: configs: disable CONFIG_DEBUG_ATOMIC_SLEEP in starfive_jh7110_defconfigziv.xu1-2/+1
disable CONFIG_DEBUG_ATOMIC_SLEEP in starfive_jh7110_defconfig Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-08-14riscv: config: hifi4: add sof default config for starfivecarter.li1-1/+7
add sof default config and change mailbox's config to y, because sof need mailbox for ipc. Signed-off-by: carter.li <carter.li@starfivetech.com>
2023-08-14riscv: dts: starfive: add sof dsp node for hifi4carter.li7-27/+177
init sof_wm8960.dtsi, add sof_dsp node for sof hifi4. Signed-off-by: carter.li <carter.li@starfivetech.com>
2023-08-09riscv: dts: starfive: pwm backlight support for vf2shengyang.chen2-0/+52
pwm backlight support for vf2 Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
2023-08-07CR 6852 Media:wave5: enable wave5 v4l2 decoder in vf2 defconfigSom Qin1-0/+2
2023-08-07Merge tag 'JH7110_515_SDK_v5.5.0' into vf2-515-develAndy Hu1-0/+2
2023-08-03Media:Wave5: Vpu driver in jh7110deconfig builded as module, not buildin.Som Qin1-1/+1
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-03media: add wave511 v4l2 support for starfive platfromSom Qin1-1/+1
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-03media: add wave5 v4l2 driver from mail listSom Qin1-0/+2
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-03Merge branch 'CR_6864_SD_515_william.qiu' into 'vf2-515-devel'VF2_v3.4.5andy.hu1-0/+1
CR_6864: riscv: dts: starfive: change sd speed mode to highspeed See merge request sbc/linux!148
2023-08-03Merge tag 'JH7110_515_SDK_v5.4.4' into vf2-515-develAndy Hu1-0/+1
2023-08-02riscv: dts: starfive: change sd speed mode to highspeedWilliam Qiu1-0/+1
change sd speed mode to highspeed Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-08-02riscv: dts: starfive: add property to divide boardWilliam Qiu1-0/+1
add property to divide board Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-27Merge tag 'JH7110_515_SDK_v5.4.2' into vf2-515-develAndy Hu11-16/+21
2023-07-27Merge branch 'CR_6570_SDBOOT_william' into 'vf2-515-devel'andy.hu1-1/+5
CR_6570: mmc: starfive: change the tuning method See merge request sbc/linux!139
2023-07-26riscv: dts: starfive: limit cclk in frequencyWilliam Qiu1-1/+5
The frequency of cclk_in is limited to 50M, so that it does not do internal part frequency and goes by-pass mode. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-26riscv: dts: starfive: limit cclk in frequencyWilliam Qiu11-16/+21
The frequency of cclk_in is limited to 50M, so that it does not do internal part frequency and goes by-pass mode. And delete syscon node. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-20Merge tag 'JH7110_515_SDK_v5.4.1' into vf2-515-develAndy Hu1-6/+7
2023-07-20Merge branch 'CR_6485_hifi_vf2_dts_515_carter.li' into 'vf2-515-devel'andy.hu1-4/+5
CR_6485: dts:hifi4: change hifi4 firmware memory space in jh7110-visionfive-v2.dtsi See merge request sbc/linux!135
2023-07-19dts: e24: update e24 dts in vf2shanlong.li1-2/+2
update e24 dts in vf2 Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2023-07-18dts:mailbox: update mailbox test dtsshanlong.li1-6/+7
update mailbox test dts Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2023-07-17CR_6485: dts:hifi4: change hifi4 firmware memory space in ↵carter.li1-4/+5
jh7110-visionfive-v2.dtsi dts patch didn's apply fully, add this commit for other part of dts patch. Signed-off-by: carter.li <carter.li@starfivetech.com>
2023-07-13Merge branch 'CR_5623_1GDDR_samin.guo' into 'vf2-515-devel'andy.hu1-1/+1
CR5623: dts: starfive: vf2: Adjust the CMA start address See merge request sbc/linux!134
2023-07-13Merge tag 'JH7110_515_SDK_v5.4.0' into vf2-515-develAndy Hu2-13/+13
2023-07-12Merge branch 'CR_6485_hifi4_evb_dts_5.15_carter.li' into 'jh7110-5.15.y-devel'andy.hu2-6/+6
CR_6485: dts:hifi4: change hifi4 firmware memory space See merge request sdk/linux!916
2023-07-12dts:hifi4: change hifi4 firmware memory spacecarter.li2-6/+6
change hifi4 firmware memory space according to 5623. Signed-off-by: carter.li <carter.li@starfivetech.com>
2023-07-12Merge branch 'CR_6466_fix_dma_warning_smain.guo' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR6466: dmaengine: dw-axi-dmac-starfive-misc: Fix incorrect parameters See merge request sdk/linux!908
2023-07-12Merge branch 'CR_5623_1GDDR_samin.guo' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR5623:Adjust the CMA start address See merge request sdk/linux!905