Age | Commit message (Collapse) | Author | Files | Lines |
|
Futher expand the functionality of the swsusp_arch_suspend so that the
hibernated image can be written to the disk and resume from the
hibernated image.
Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
|
|
The implementation assumes that exactly the same kernel is booted on the
same hardware.
We save the build number and date to the swap header so that we guarantee
not to resume with a different kernel upon booted up the hibernated image.
swsusp_arch_resume() and swsusp_arch_suspend() are coded as dummy
functions for now and shall complete in the subsequent patches.
Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
|
|
Config the system suspend feature, enable pm test feature.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
add perf events support in vf2.
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
|
|
add 7110 perf support
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
|
|
The SBI PMU platform driver did not provide any identification for
perf events matching. This patch introduces a new sysfs file inside the
platform device (soc:pmu/id) for pmu identification.
The identification is a 64-bit value generated as:
[63-32]: mvendorid;
[31]: marchid[MSB];
[30-16]: marchid[15-0];
[15-0]: mimpid[15MSBs];
The CSRs are detailed in the RISC-V privileged spec [1].
The marchid is split in MSB + 15LSBs, due to the MSB being used for
open-source architecture identification.
[1] https://github.com/riscv/riscv-isa-manual
Signed-off-by: João Mário Domingos <joao.mario@tecnico.ulisboa.pt>
|
|
The sscofpmf extension allows counter overflow and filtering for
programmable counters. Enable the perf driver to handle the overflow
interrupt. The overflow interrupt is a hart local interrupt.
Thus, per cpu overflow interrupts are setup as a child under the root
INTC irq domain.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Currently, the /proc/cpuinfo outputs the entire riscv,isa string which
is not ideal when we have multiple ISA extensions present in the ISA
string. Some of them may not be enabled in kernel as well.
Parse only the enabled ISA extension and print them in a separate row.
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
The isa string should begin with either rv64 or rv32. Otherwise, it is
an incorrect isa string. Currently, the string parsing continues even if
it doesnot begin with current XLEN.
Fix this by checking if it found "rv64" or "rv32" in the beginning.
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Multi-letter extensions can be probed using exising
riscv_isa_extension_available API now. It doesn't support versioning
right now as there is no use case for it.
Individual extension specific implementation will be added during
each extension support.
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Currently, there is no usage for version numbers in extensions as
any ratified non base ISA extension will always at v1.0.
Extract the extension names in place for future parsing.
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Tsukasa OI <research_trasio@irq.a4lg.com>
[Improved commit text and comments]
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Current hart ISA ("riscv,isa") parser don't correctly parse:
1. Multi-letter extensions
2. Version numbers
All ISA extensions ratified recently has multi-letter extensions
(except 'H'). The current "riscv,isa" parser that is easily confused
by multi-letter extensions and "p" in version numbers can be a huge
problem for adding new extensions through the device tree.
Leaving it would create incompatible hacks and would make "riscv,isa"
value unreliable.
This commit implements minimal parser for "riscv,isa" strings. With this,
we can safely ignore multi-letter extensions and version numbers.
[Improved commit text and fixed a bug around 's' in base extension]
Signed-off-by: Atish Patra <atishp@rivosinc.com>
[Fixed workaround for QEMU]
Signed-off-by: Tsukasa OI <research_trasio@irq.a4lg.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
|
|
This commit replaces BITS_PER_LONG with number of alphabet letters.
Current ISA pretty-printing code expects extension 'a' (bit 0) through
'z' (bit 25). Although bit 26 and higher is not currently used (thus never
cause an issue in practice), it will be an annoying problem if we start to
use those in the future.
This commit disables printing high bits for now.
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Tsukasa OI <research_trasio@irq.a4lg.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
This patch adds all the definitions defined by the SBI PMU extension.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Linux kernel can directly read these counters as the HPMCOUNTERS CSRs are
accessible in S-mode.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
The current perf implementation in RISC-V is not very useful as it can not
count any events other than cycle/instructions. Moreover, perf record
can not be used or the events can not be started or stopped.
Remove the implementation now for a better platform driver in future
that will implement most of the missing functionality.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
|
|
Enable touchscreen TINKER FT5406
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Add touchscreen node support.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
version JH7110_515_SDK_v3.6.0 for JH7110 EVB board
|
|
Enable usb wifi ECR6600U
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
|
|
CR_2861_ts_515_changhuang.liang input: touchscreen: Add tinker_ft5406 driver support
See merge request sdk/linux!654
|
|
Enable touchscreen TINKER FT5406
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Add tinker_ft5406 touchscreen node.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
delete mmc1 config, default use mmc0
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
version JH7110_515_SDK_v3.5.1 for JH7110 EVB board
|
|
CR_2871riscv: dts: mmc:modify mmc1 config
See merge request sdk/linux!643
|
|
modify mmc1 config
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
Changes:
1. Reseed during init only, not for every read.
2. Completion struct for irqreturn for better efficiency.
3. Add module_param for reseed operations based on request counter
and/or timer countdown.
4. Removed unused macros and steps.
Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
|
|
|
|
CR 2822 riscv: configs: Add port bus driver for PCIe switch.
See merge request sdk/linux!633
|
|
CR_2796_515_sound_card_Xingyu.Wu
See merge request sdk/linux!631
|
|
Move playback and capture driver as slave from snps I2S merge to starfive I2S.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
add uboot and spl partition on qspi node
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
Verified on JH7110EVB with ASMedia EV Board (asm1806 version).
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
|
|
Add multiple sound cards to let one device corresponds to
one sound card.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
Enable QSPI for visionfive2
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
|
|
version JH7110_515_SDK_v3.3.0 for JH7110 EVB board
|
|
CR 2653 QSPI 5.15 ziv.xu
See merge request sdk/linux!612
|
|
|
|
version JH7110_515_SDK_v3.1.0 for JH7110 EVB board
|
|
enable qspi
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
CR_2621 riscv: dts: Remove unsupported cpuidle state
See merge request sdk/linux!608
|
|
modify defconfig to enable qspi
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
Add 'JH7110_NOC_BUS_CLK_STG_AXI' clock and
'RSTN_U0_NOC_BUS_STG_AXI_N' reset.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
fix display problem of hdmi sys pm
Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
|
|
fix double display bug
remove some useless port of vout dts
Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
|
|
Add pm support for vout dts
remove some useless port of vout dts
Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
|
|
The cpuidle state1 is also implemented in sbi with
WFI C state, but it cause audio play failed.
Remove the cpuidle state1.
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
|
|
add 800*1280 I2C read to detect the status of connection
Signed-off-by: keith <keith.zhao@starfivetech.com>
|
|
Have fixed spi issue which lead to crash booting.
This reverts commit bb1b47228930974ab386badc2544a2dbd49ddc18.
|