Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
490 commits
Select commit Hold shift + click to select a range
aa1241d
drivers: pinctrl: add pinctrl driver pm ops
Aug 31, 2024
ecfe0ec
drivers: pct: fix NULL ptr error when pvt resume from ram
Aug 31, 2024
986c48c
th1520: regdump: add Kconfig and th1520_defconfig
xmzzz Oct 27, 2024
30978f1
th1520: iopmp: add iopmp driver
Aug 31, 2024
704f507
dts: th1520-lichee-pi-4a: update usb hub
RevySR Aug 31, 2024
5742bb7
usb: dwc3-thead: fix usb gadget support
RevySR Aug 31, 2024
ffea791
dts: th1520: update mmc sdio clocks
Aug 31, 2024
69dc17a
dts: gpio: add gpio/0/1/2/3 clk gate
Aug 31, 2024
418338c
remove dts "audio_mem" node and add mbox 910r channel
RevySR Aug 31, 2024
959a1f7
audio: th1520: workaround to solve noise at the end
Aug 31, 2024
ac20b4c
dts: audio: update audio pin configuration
Aug 31, 2024
e3ac9ca
config: Update openeuler_defconfig
xmzzz Nov 26, 2024
896aafd
fix: dts: remove duplicate node
RevySR Aug 31, 2024
d89a1f2
sdhci:th1520: fixup mmc retune infinitely issue
Aug 31, 2024
cc7c12f
drivers: pwm: fix pwm enable status check error
Aug 31, 2024
f7958b3
drivers: cpufreq: fix cpufreq em model regsiter warn.
Aug 31, 2024
27bbdf4
driver:i2c:fix rx_over miss re-try
Aug 31, 2024
94707a5
move the place of dts "audio-text-memory-region" property
RevySR Aug 31, 2024
008a0af
dts:th1520: add aliases for basic interface
Aug 31, 2024
936271f
config: th1520: to modify MEMBLOCK&LOCALVERSION_AUTO config
minghq Aug 31, 2024
9ba968c
usb: dwc3: th1520.dtsi: bugfix: fix usb str xhci error
RevySR Aug 31, 2024
691fe2d
dts: som: add gpio-keys node
Aug 31, 2024
b56f090
th1520_defconfig: add configs of media
xmzzz Nov 10, 2024
79e432c
th1520: Fix DSI transfer command failure when hotplug hdmi
RevySR Aug 31, 2024
b638ebd
dts: th1520: sd card not try sdio cmds
RevySR Aug 31, 2024
23136b4
audio: th1520: solve misalignment dma addr problem when HDMI playback
Aug 31, 2024
e5e373c
RISC-V: Enable the IPI before workqueue_online_cpu()
nick650823 Jul 17, 2024
713f4d4
th1520: Expand cma size from 512MB to 768MB
RevySR Aug 31, 2024
f68f41a
sensor: fix bug of channel 1 and channel 2 of video2 failed to run
RevySR Aug 31, 2024
eded9b4
drm/etnaviv: add handle for GPUs with only SECURITY_AHB flag
Icenowy Dec 1, 2023
23e9cdc
drm/etnaviv: add workaround for GC620 on TH1520 (0x5552)
Icenowy Dec 1, 2023
7987e92
drm/etnaviv: add hwdb entry for TH1520 GC620
Icenowy Dec 1, 2023
3bfdba6
drm/etnaviv: add GC620
Icenowy Dec 1, 2023
b0b3eab
drm/etnaviv: hack: use only pta id 0
Icenowy Dec 3, 2023
5a0bb1a
th1520: use etnaviv gpu
Icenowy Sep 13, 2024
18cb50d
drm/dc8200: disable gamma lut now
Icenowy Sep 14, 2022
0167def
th1520: drm: Fix panel-jadard-jd9365da panel driver problem
RevySR Aug 31, 2024
75c6f53
th1520: drm: Fix panel-jadard-jd9365da panel driver
RevySR Aug 31, 2024
a4c3453
drm: verisilicon: fix fbcon
Icenowy May 8, 2023
f02b671
drm/verisilicon: fix cursor position
Icenowy Dec 5, 2023
357df93
drm/verisilicon: finally fix the cursor position
Icenowy Dec 27, 2023
d62ca39
drm/verisilicon: bias fb address for dual-head offset
Icenowy Dec 28, 2023
3153de1
drm/verisilicon: add format_mod_supported to plane
Icenowy Mar 28, 2024
1405f9f
dts: lpi4a: remove mipi screen
RevySR Sep 20, 2024
d00929c
config: Update openeuler_defconfig
xmzzz Nov 26, 2024
e4b0350
riscv: Add ACLINT SSWI support
guoren83 Sep 4, 2024
e13faab
mmc: sdhci-of-dwcmshc: Prevent stale command interrupt handling
Oct 8, 2024
06a5111
config: Update openeuler_defconfig DRM_ETNAVIV and AIC_FW_PATH
xmzzz Dec 2, 2024
9d2146a
config: Disable video_memory module until the bug is resolved
xmzzz Dec 3, 2024
0135e1f
th1520: Fix Makefile for vc8000d vc8000e tracepoints
xmzzz Dec 3, 2024
270d577
th1520: Fix Makefile for npu build error
xmzzz Dec 3, 2024
1bee85a
th1520: Fixed compilation errors reported by clang
xmzzz Dec 10, 2024
d1208b1
sg2042: fix KUnit Error: unrecognized opcode cbo.clean (a0)
woqidaideshi Dec 11, 2024
4b4b688
genirq/irqdomain: Remove the param count restriction from select()
KAGA-KOKO Jan 27, 2024
77a1c27
genirq/msi: Extend msi_parent_ops
KAGA-KOKO Jan 27, 2024
2114bd9
genirq/irqdomain: Add DOMAIN_BUS_DEVICE_MSI
KAGA-KOKO Jan 27, 2024
110ac24
platform-msi: Prepare for real per device domains
KAGA-KOKO Jan 27, 2024
518a8d8
irqchip: Convert all platform MSI users to the new API
KAGA-KOKO Jan 27, 2024
2a097e9
platform-msi: Remove unused interfaces
KAGA-KOKO Feb 15, 2024
aa9ea42
genirq/msi: Provide optional translation op
KAGA-KOKO Jan 27, 2024
6d05a67
genirq/irqdomain: Don't call ops->select for DOMAIN_BUS_ANY tokens
Feb 20, 2024
72fb6e2
genirq/msi: Split msi_domain_alloc_irq_at()
KAGA-KOKO Jan 27, 2024
e2debac
genirq/msi: Provide DOMAIN_BUS_WIRED_TO_MSI
KAGA-KOKO Jan 27, 2024
ef82ec9
genirq/msi: Optionally use dev->fwnode for device domain
KAGA-KOKO Jan 27, 2024
8398775
genirq/msi: Provide allocation/free functions for "wired" MSI interrupts
KAGA-KOKO Jan 27, 2024
21de740
genirq/irqdomain: Reroute device MSI create_mapping
KAGA-KOKO Jan 27, 2024
e1ee630
genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV
KAGA-KOKO Jan 27, 2024
d36626a
RISC-V: Detect Smstateen extension
mdchitale Sep 13, 2023
049594e
dt-bindings: riscv: Add smstateen entry
mdchitale Sep 13, 2023
8925002
mm: add statistics for PUD level pagetable
Sep 18, 2023
609be78
riscv: tlb: fix __p*d_free_tlb()
xhackerustc Dec 19, 2023
03992bb
riscv: tlb: convert __p*d_free_tlb() to inline functions
xhackerustc Dec 19, 2023
1362a5c
riscv: enable MMU_GATHER_RCU_TABLE_FREE for SMP && MMU
xhackerustc Dec 19, 2023
6d4eb8c
riscv: enable HAVE_FAST_GUP if MMU
xhackerustc Dec 19, 2023
e5dc234
irqchip/riscv-intc: Add support for RISC-V AIA
avpatel Feb 22, 2024
c514b78
irqchip/riscv-intc: Fix low-level interrupt handler setup for AIA
avpatel Feb 26, 2024
f0bbbbf
irqchip/riscv-intc: Fix use of AIA interrupts 32-63 on riscv32
SiFiveHolland Mar 12, 2024
14bd24b
genirq/matrix: Dynamic bitmap allocation
bjorn-rivos Feb 22, 2024
fb5c3b7
dt-bindings: interrupt-controller: Add RISC-V incoming MSI controller
avpatel Mar 7, 2024
3e3951e
irqchip: Add RISC-V incoming MSI controller early driver
avpatel Mar 7, 2024
b0c2e33
irqchip/riscv-imsic: Add device MSI domain support for platform devices
avpatel Mar 7, 2024
b97a784
irqchip/riscv-imsic: Fix boot time update effective affinity warning
avpatel Apr 13, 2024
ad8740b
irqchip/riscv-imsic: Fix output text of base address
Sep 9, 2024
cedd13e
irqchip/riscv-imsic: Add device MSI domain support for PCI devices
avpatel Mar 7, 2024
0c90e02
dt-bindings: interrupt-controller: Add RISC-V advanced PLIC
avpatel Mar 7, 2024
30a5763
irqchip: Add RISC-V advanced PLIC driver for direct-mode
avpatel Mar 7, 2024
2443ec6
irqchip/riscv-aplic: Fix an IS_ERR() vs NULL bug in probe()
Aug 20, 2024
4ed795c
irqchip/riscv-aplic: Add support for MSI-mode
avpatel Mar 7, 2024
7993cce
cpumask: Introduce cpumask_first_and_and()
Apr 16, 2024
364a9d9
irqchip/riscv-aplic-direct: Avoid explicit cpumask allocation on stack
Apr 16, 2024
88d4eef
irqchip/riscv-aplic: Simplify the initialization code
ruanjinjie-eng Jun 3, 2024
51dceed
irqchip/riscv-aplic: Retrigger MSI interrupt on source configuration
yong-xuan Aug 9, 2024
74d638b
irqchip/riscv-aplic: Prevent crash when MSI domain is missing
SiFiveHolland Nov 14, 2024
2277cad
RISC-V: Select APLIC and IMSIC drivers
avpatel Mar 7, 2024
9237a2f
MAINTAINERS: Add entry for RISC-V AIA drivers
avpatel Mar 7, 2024
67a7699
kconfig: fix kernel-mode FPU support
xmzzz Jan 10, 2025
a81b98c
sg2042: riscv: dts: Add cache info for SG2042
xmzzz Jan 9, 2025
fdfc6f9
riscv: config: enable zstd-compressed firmware support
woqidaideshi Mar 12, 2025
b24e2c4
riscv: Kconfig: Enable amdkfd driver config
xmzzz Feb 12, 2025
f2a7cf7
riscv: config: Update openeuler_defconfig for ROCm
xmzzz Mar 20, 2025
15b8c80
riscv: k1x: add spacemit k1 soc support
Feb 18, 2025
59f620c
riscv: k1x: dt-bindings: add clock dt-bindings for spacemit k1
Feb 19, 2025
f3a75c5
driver: k1x: clk: add clock driver for spacemit k1
Feb 19, 2025
d471ed7
riscv: k1x: dts: add clock support for spacemit k1
Feb 19, 2025
b3804ac
riscv: k1x: config: enable clock driver for spacemit k1
Feb 25, 2025
0a9c3c4
riscv: k1x: dt-bindings: add reset dt-bindings for spacemit k1
Feb 19, 2025
8be63fc
driver: k1x: add reset driver for spacemit k1
Feb 19, 2025
6e528bd
riscv: k1x: dts: add reset support for spacemit k1
Feb 19, 2025
e15a2f8
riscv: k1x: config: enable reset driver for spacemit k1
Feb 25, 2025
7cddcab
riscv: k1x: dt-bindings: support pinctrl binding for spacemit k1x soc
Feb 20, 2025
7edd10a
driver: k1x: add pinctrl driver for spacemit k1x
Feb 20, 2025
3bfd763
riscv: k1x: dts: add pinctrl support for spacemit k1x soc
Feb 20, 2025
d3346da
riscv: k1x: config: enable pinctrl driver for spacemit k1
Feb 25, 2025
e3b606c
driver: k1x: add gpio driver for spacemit k1
Feb 20, 2025
d40bd8c
riscv: k1x: dts: add gpio support spacemit k1x soc
Feb 20, 2025
0a5dbd8
riscv: k1x: config: enable gpio driver for spacemit k1
Feb 25, 2025
62ad9d1
driver: k1x: add uart serial driver support for spacemit k1x
Feb 20, 2025
8f6ada5
riscv: k1x: dts: add uart support for spacemit k1x soc
Feb 20, 2025
f74dbb1
riscv: config: enable serial driver for spacemit k1
Mar 1, 2025
678c620
riscv: config: Enable Spacemit k1 support
Mar 22, 2025
2a75e1c
RISC-V: KVM: Share APLIC and IMSIC defines with irqchip drivers
avpatel Apr 11, 2024
b38e17a
RISC-V: KVM: Use IMSIC guest files when available
avpatel Apr 11, 2024
02a28af
RISC-V: Remove unnecessary include from compat.h
woqidaideshi Apr 1, 2025
8ed5a34
RISC-V: Detect Zicond from ISA string
avpatel Sep 15, 2023
703255e
riscv: add ISA extension parsing for Zbc
clementleger Nov 14, 2023
418402c
RISC-V: Enable cbo.zero in usermode
Sep 18, 2023
ee016f7
riscv: Rearrange hwcap.h and cpufeature.h
XiaoWang1772 Oct 31, 2023
2180c77
RISC-V: clarify the QEMU workaround in ISA parser
a4lg Jul 26, 2023
7b9bde8
riscv: annotate check_unaligned_access_boot_cpu() with __init
clementleger Oct 4, 2023
9a375a1
riscv: add ISA extension parsing for scalar crypto
evangreen Nov 14, 2023
ab6e2ee
riscv: add ISA extension parsing for vector crypto
clementleger Nov 14, 2023
8ac3f41
riscv: add ISA extension parsing for Zfh/Zfh[min]
clementleger Nov 14, 2023
a997a68
riscv: add ISA extension parsing for Zihintntl
clementleger Nov 14, 2023
8328be9
riscv: add ISA extension parsing for Zvfh[min]
clementleger Nov 14, 2023
d55db7e
riscv: add ISA extension parsing for Zfa
clementleger Nov 14, 2023
fba42f4
RISC-V: Remove the removed single-letter extensions
palmer-dabbelt Nov 10, 2023
9c68c1e
riscv: add ISA extension parsing for Ztso
clementleger Dec 20, 2023
25db260
riscv: add ISA extension parsing for Zacas
clementleger Dec 20, 2023
19f9f53
riscv: Fix enabling cbo.zero when running in M-mode
SiFiveHolland Feb 28, 2024
988de39
riscv: Add a custom ISA extension for the [ms]envcfg CSR
SiFiveHolland Feb 28, 2024
ff39b7d
riscv: cpufeature: Fix extension subset checking
charlie-rivos May 3, 2024
45fa05d
riscv: vector: add a comment when calling riscv_setup_vsize()
AndybnACT May 9, 2024
5c608f8
riscv: cpufeature: call match_isa_ext() for single-letter extensions
AndybnACT May 9, 2024
b10ae6a
perf: RISC-V: Eliminate redundant interrupt enable/disable operations
lyctw Feb 22, 2024
513b533
perf: RISC-V: Introduce Andes PMU to support perf event sampling
lyctw Feb 22, 2024
4456a19
riscv: cpufeature: add zve32[xf] and zve64[xfd] isa detection
AndybnACT May 9, 2024
ac42f6e
riscv: vector: adjust minimum Vector requirement to ZVE32X
AndybnACT May 9, 2024
1613200
riscv: add ISA extension parsing for Zimop
clementleger Jun 19, 2024
1f45f86
riscv: add ISA extensions validation callback
clementleger Jun 19, 2024
1c81fed
riscv: add ISA parsing for Zca, Zcf, Zcd and Zcb
clementleger Jun 19, 2024
aff472f
riscv: add ISA extension parsing for Zcmop
clementleger Jun 19, 2024
f9055e4
riscv/barrier: Define RISCV_FULL_BARRIER
ericchancf Feb 17, 2024
e55ce4a
riscv/barrier: Consolidate fence definitions
ericchancf Feb 17, 2024
f166f1e
riscv/cmpxchg: Deduplicate xchg() asm functions
Jan 3, 2024
c18de57
riscv/cmpxchg: Deduplicate cmpxchg() asm and macros
Jan 3, 2024
f6aa256
riscv/cmpxchg: Implement cmpxchg for variables of size 1 and 2
Jan 3, 2024
1bb5310
riscv/cmpxchg: Implement xchg for variables of size 1 and 2
Jan 3, 2024
e7b0f6d
riscv: cmpxchg: implement arch_cmpxchg64_{relaxed|acquire|release}
xhackerustc Mar 25, 2024
c5d2e49
riscv: Fix fully ordered LR/SC xchg[8|16]() implementations
May 30, 2024
10f7c42
riscv: Add Zawrs support for spinlocks
cmuellner Apr 26, 2024
aecc427
riscv: Provide a definition for 'pause'
Apr 26, 2024
4db69b2
riscv: Extend cpufeature.c to detect vendor extensions
charlie-rivos Jul 19, 2024
0919a14
riscv: cpufeature: Do not drop Linux-internal extensions
SiFiveHolland Jul 18, 2024
22deb4a
riscv: Add ISA extension parsing for Svvptc
Jul 17, 2024
e391239
riscv: Save/restore envcfg CSR during CPU suspend
SiFiveHolland Feb 28, 2024
43e1069
cpuidle: RISC-V: Move few functions to arch/riscv
vlsunil Jan 18, 2024
7d6f91d
riscv: Do not save the scratch CSR during suspend
SiFiveHolland Mar 12, 2024
51e8890
riscv: Enable cbo.zero only when all harts support Zicboz
SiFiveHolland Aug 14, 2024
98da966
riscv: Call riscv_user_isa_enable() only on the boot hart
SiFiveHolland Aug 14, 2024
f85dc00
riscv: Add ISA extension parsing for pointer masking
SiFiveHolland Oct 16, 2024
b12f465
riscv: Do not fail to build on byte/halfword operations with Zawrs
Nov 3, 2024
842560c
riscv: Implement cmpxchg32/64() using Zacas
Nov 3, 2024
5818524
riscv: Implement cmpxchg8/16() using Zabha
Nov 3, 2024
9c8108f
riscv: Add ISA extension parsing for Ziccrse
Nov 3, 2024
03a2e17
RISC-V: Add Svade and Svadu Extensions Support
yong-xuan Jul 26, 2024
63068ad
RISC-V: hwprobe: Expose Zicboz extension and its block size
Sep 18, 2023
ca43862
docs: move riscv under arch
makelinux Sep 30, 2023
95f40a8
riscv: hwprobe: export missing Zbc ISA extension
clementleger Nov 14, 2023
453feec
riscv: hwprobe: add support for scalar crypto ISA extensions
clementleger Nov 14, 2023
70ddbd5
riscv: hwprobe: export vector crypto ISA extensions
clementleger Nov 14, 2023
dca2c37
riscv: hwprobe: export Zfh[min] ISA extensions
clementleger Nov 14, 2023
ae0d384
riscv: hwprobe: export Zhintntl ISA extension
clementleger Nov 14, 2023
811afca
riscv: hwprobe: export Zvfh[min] ISA extensions
clementleger Nov 14, 2023
4f82a88
riscv: hwprobe: export Zfa ISA extension
clementleger Nov 14, 2023
4e01ff7
RISC-V: selftests: Statically link hwprobe test
Sep 18, 2023
5155701
RISC-V: selftests: Convert hwprobe test to kselftest API
Sep 18, 2023
778efb5
RISC-V: selftests: Add CBO tests
Sep 18, 2023
acde052
RISC-V: hwprobe: Clarify cpus size parameter
Nov 22, 2023
df844f2
RISC-V: hwprobe: Introduce which-cpus flag
Nov 22, 2023
db3b1d6
riscv: hwprobe: export Ztso ISA extension
clementleger Dec 20, 2023
4e7e11d
riscv: hwprobe: export Zacas ISA extension
clementleger Dec 20, 2023
f19e46b
riscv: hwprobe: export Zicond extension
clementleger Dec 20, 2023
95e2b17
riscv: hwprobe: fix invalid sign extension for RISCV_HWPROBE_EXT_ZVFHMIN
clementleger Apr 9, 2024
8f60d37
RISC-V: Move the hwprobe syscall to its own file
Nov 22, 2023
785054e
riscv: hwprobe: export Zihintpause ISA extension
clementleger Feb 21, 2024
aa355ae
riscv: hwprobe: add zve Vector subextensions into hwprobe interface
AndybnACT May 9, 2024
a838e74
riscv: hwprobe: export Zimop ISA extension
clementleger Jun 19, 2024
6ba13d2
riscv: hwprobe: export Zca, Zcf, Zcd and Zcb ISA extensions
clementleger Jun 19, 2024
3d7fc7a
riscv: hwprobe: export Zcmop ISA extension
clementleger Jun 19, 2024
a85b69c
riscv: hwprobe: export highest virtual userspace address
clementleger Apr 10, 2024
e6faf20
riscv: hwprobe: export Zawrs ISA extension
Apr 26, 2024
960e9c4
RISC-V: Provide the frequency of time CSR via hwprobe
palmer-dabbelt Jul 2, 2024
8afd1cd
riscv: hwprobe: Export the Supm ISA extension
SiFiveHolland Oct 16, 2024
ebfbcfb
RISC-V: hwprobe: sort EXT_KEY()s in hwprobe_isa_ext0() alphabetically
ConchuOD Jul 17, 2024
fc6a982
riscv: Introduce vendor variants of extension helpers
charlie-rivos Jul 19, 2024
84f7b2f
riscv: cpufeature: Extract common elements from extension checking
charlie-rivos Jul 19, 2024
4b6f204
riscv: Move cpufeature.h macros into their own header
Nov 3, 2024
718dd9e
riscv: errata: Rename defines for Andes
lyctw Feb 22, 2024
126e00d
ACPICA: SRAT: Add RISC-V RINTC affinity structure
uestc-gr Apr 25, 2025
2ce0860
ACPI: RISCV: Add NUMA support based on SRAT and SLIT
uestc-gr Apr 25, 2025
0da5c47
ACPI: NUMA: Add handler for SRAT RINTC affinity structure
uestc-gr Apr 25, 2025
9202b6e
ACPI: NUMA: Make some NUMA-related functions available for RISC-V
uestc-gr Apr 25, 2025
fe46fb2
ACPI: NUMA: change the ACPI_NUMA to a hidden option
uestc-gr Apr 25, 2025
6f0df78
ACPI: NUMA: replace pr_info with pr_debug in arch_acpi_numa_init
uestc-gr Apr 25, 2025
3afdd13
irqchip/sifive-plic: Convert PLIC driver into a platform driver
avpatel Feb 22, 2024
391284d
irqchip/sifive-plic: Use dev_xyz() in-place of pr_xyz()
avpatel Feb 22, 2024
07300c9
irqchip/sifive-plic: Use devm_xyz() for managed allocation
avpatel Feb 22, 2024
be35512
irqchip/sifive-plic: Use riscv_get_intc_hwnode() to get parent fwnode
avpatel Feb 22, 2024
5c7cb02
irqchip/sifive-plic: Cleanup PLIC contexts upon irqdomain creation fa…
avpatel Feb 22, 2024
98fecf5
irqchip/sifive-plic: Parse number of interrupts and contexts early in…
avpatel Feb 22, 2024
13e0336
irqchip/sifive-plic: Improve locking safety by using irqsave/irqrestore
avpatel Feb 22, 2024
468820a
irqchip/sifive-plic: Avoid explicit cpumask allocation on stack
Apr 16, 2024
50c3d0a
irqchip/sifive-plic: Chain to parent IRQ after handlers are ready
SiFiveHolland May 29, 2024
f894094
irqchip/sifive-plic: Probe plic driver early for Allwinner D1 platform
avpatel Aug 20, 2024
32930a0
arm64: PCI: Migrate ACPI related functions to pci-acpi.c
vlsunil Aug 12, 2024
7b60836
ACPI: scan: Add a weak arch_sort_irqchip_probe() to order the IRQCHIP…
vlsunil Aug 12, 2024
6e94562
ACPI: bus: Add acpi_riscv_init() function
vlsunil Aug 12, 2024
d17178b
ACPI: scan: Extract CSI-2 connection graph from _CRS
rafaeljw Nov 6, 2023
bc7b060
ACPI: utils: Dynamically determine acpi_handle_list size
rafaeljw Sep 27, 2023
d587213
ACPI: utils: Fix error path in acpi_evaluate_reference()
rafaeljw Dec 7, 2023
ecb0673
ACPI: utils: Rearrange in acpi_evaluate_reference()
rafaeljw Dec 8, 2023
2d6eb9a
ACPI: utils: Return bool from acpi_evaluate_reference()
rafaeljw Dec 8, 2023
6dc1a9d
ACPI: utils: Refine acpi_handle_list_equal() slightly
rafaeljw Dec 8, 2023
89bbff7
ACPI: utils: Fix white space in struct acpi_handle_list definition
rafaeljw Dec 8, 2023
7291dfd
ACPI: scan: Refactor dependency creation
vlsunil Aug 12, 2024
a06bd5e
ACPI: scan: Add RISC-V interrupt controllers to honor list
vlsunil Aug 12, 2024
380743a
ACPI: scan: Define weak function to populate dependencies
vlsunil Aug 12, 2024
93397f5
ACPI: bus: Add RINTC IRQ model for RISC-V
vlsunil Aug 12, 2024
35e1a52
ACPI: pci_link: Clear the dependencies after probe
vlsunil Aug 12, 2024
acd03a1
ACPI: RISC-V: Implement PCI related functionality
vlsunil Aug 12, 2024
45e8797
ACPI: RISC-V: Implement function to reorder irqchip probe entries
vlsunil Aug 12, 2024
eca8b3d
ACPI: RISC-V: Initialize GSI mapping structures
vlsunil Aug 12, 2024
e2d0f85
ACPI: RISC-V: Implement function to add implicit dependencies
vlsunil Aug 12, 2024
3d162f2
irqchip/riscv-intc: Add ACPI support for AIA
vlsunil Aug 12, 2024
936db37
irqchip/riscv-imsic-state: Create separate function for DT
vlsunil Aug 12, 2024
bd815b7
irqchip/riscv-imsic: Add ACPI support
vlsunil Aug 12, 2024
268cb88
irqchip/riscv-aplic: Add ACPI support
vlsunil Aug 12, 2024
3345772
irqchip/sifive-plic: Add ACPI support
vlsunil Aug 27, 2024
de7daad
irqchip/riscv-intc: Fix SMP=n boot with ACPI
vlsunil Oct 14, 2024
535d443
Create test_rvck.txt
lzyprime Jun 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Documentation/arch/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ implementation.
openrisc/index
parisc/index
../powerpc/index
../riscv/index
riscv/index
s390/index
sh/index
sparc/index
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
271 changes: 271 additions & 0 deletions Documentation/arch/riscv/hwprobe.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
.. SPDX-License-Identifier: GPL-2.0

RISC-V Hardware Probing Interface
---------------------------------

The RISC-V hardware probing interface is based around a single syscall, which
is defined in <asm/hwprobe.h>::

struct riscv_hwprobe {
__s64 key;
__u64 value;
};

long sys_riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
size_t cpusetsize, cpu_set_t *cpus,
unsigned int flags);

The arguments are split into three groups: an array of key-value pairs, a CPU
set, and some flags. The key-value pairs are supplied with a count. Userspace
must prepopulate the key field for each element, and the kernel will fill in the
value if the key is recognized. If a key is unknown to the kernel, its key field
will be cleared to -1, and its value set to 0. The CPU set is defined by
CPU_SET(3) with size ``cpusetsize`` bytes. For value-like keys (eg. vendor,
arch, impl), the returned value will only be valid if all CPUs in the given set
have the same value. Otherwise -1 will be returned. For boolean-like keys, the
value returned will be a logical AND of the values for the specified CPUs.
Usermode can supply NULL for ``cpus`` and 0 for ``cpusetsize`` as a shortcut for
all online CPUs. The currently supported flags are:

* :c:macro:`RISCV_HWPROBE_WHICH_CPUS`: This flag basically reverses the behavior
of sys_riscv_hwprobe(). Instead of populating the values of keys for a given
set of CPUs, the values of each key are given and the set of CPUs is reduced
by sys_riscv_hwprobe() to only those which match each of the key-value pairs.
How matching is done depends on the key type. For value-like keys, matching
means to be the exact same as the value. For boolean-like keys, matching
means the result of a logical AND of the pair's value with the CPU's value is
exactly the same as the pair's value. Additionally, when ``cpus`` is an empty
set, then it is initialized to all online CPUs which fit within it, i.e. the
CPU set returned is the reduction of all the online CPUs which can be
represented with a CPU set of size ``cpusetsize``.

All other flags are reserved for future compatibility and must be zero.

On success 0 is returned, on failure a negative error code is returned.

The following keys are defined:

* :c:macro:`RISCV_HWPROBE_KEY_MVENDORID`: Contains the value of ``mvendorid``,
as defined by the RISC-V privileged architecture specification.

* :c:macro:`RISCV_HWPROBE_KEY_MARCHID`: Contains the value of ``marchid``, as
defined by the RISC-V privileged architecture specification.

* :c:macro:`RISCV_HWPROBE_KEY_MIMPLID`: Contains the value of ``mimplid``, as
defined by the RISC-V privileged architecture specification.

* :c:macro:`RISCV_HWPROBE_KEY_BASE_BEHAVIOR`: A bitmask containing the base
user-visible behavior that this kernel supports. The following base user ABIs
are defined:

* :c:macro:`RISCV_HWPROBE_BASE_BEHAVIOR_IMA`: Support for rv32ima or
rv64ima, as defined by version 2.2 of the user ISA and version 1.10 of the
privileged ISA, with the following known exceptions (more exceptions may be
added, but only if it can be demonstrated that the user ABI is not broken):

* The ``fence.i`` instruction cannot be directly executed by userspace
programs (it may still be executed in userspace via a
kernel-controlled mechanism such as the vDSO).

* :c:macro:`RISCV_HWPROBE_KEY_IMA_EXT_0`: A bitmask containing the extensions
that are compatible with the :c:macro:`RISCV_HWPROBE_BASE_BEHAVIOR_IMA`:
base system behavior.

* :c:macro:`RISCV_HWPROBE_IMA_FD`: The F and D extensions are supported, as
defined by commit cd20cee ("FMIN/FMAX now implement
minimumNumber/maximumNumber, not minNum/maxNum") of the RISC-V ISA manual.

* :c:macro:`RISCV_HWPROBE_IMA_C`: The C extension is supported, as defined
by version 2.2 of the RISC-V ISA manual.

* :c:macro:`RISCV_HWPROBE_IMA_V`: The V extension is supported, as defined by
version 1.0 of the RISC-V Vector extension manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZBA`: The Zba address generation extension is
supported, as defined in version 1.0 of the Bit-Manipulation ISA
extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZBB`: The Zbb extension is supported, as defined
in version 1.0 of the Bit-Manipulation ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZBS`: The Zbs extension is supported, as defined
in version 1.0 of the Bit-Manipulation ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZICBOZ`: The Zicboz extension is supported, as
ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs.

* :c:macro:`RISCV_HWPROBE_EXT_ZBC` The Zbc extension is supported, as defined
in version 1.0 of the Bit-Manipulation ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZBKB` The Zbkb extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZBKC` The Zbkc extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZBKX` The Zbkx extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZKND` The Zknd extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZKNE` The Zkne extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZKNH` The Zknh extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZKSED` The Zksed extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZKSH` The Zksh extension is supported, as
defined in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZKT` The Zkt extension is supported, as defined
in version 1.0 of the Scalar Crypto ISA extensions.

* :c:macro:`RISCV_HWPROBE_EXT_ZVBB`: The Zvbb extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVBC`: The Zvbc extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKB`: The Zvkb extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKG`: The Zvkg extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKNED`: The Zvkned extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKNHA`: The Zvknha extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKNHB`: The Zvknhb extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKSED`: The Zvksed extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKSH`: The Zvksh extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZVKT`: The Zvkt extension is supported as
defined in version 1.0 of the RISC-V Cryptography Extensions Volume II.

* :c:macro:`RISCV_HWPROBE_EXT_ZFH`: The Zfh extension version 1.0 is supported
as defined in the RISC-V ISA manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZFHMIN`: The Zfhmin extension version 1.0 is
supported as defined in the RISC-V ISA manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZIHINTNTL`: The Zihintntl extension version 1.0
is supported as defined in the RISC-V ISA manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZVFH`: The Zvfh extension is supported as
defined in the RISC-V Vector manual starting from commit e2ccd0548d6c
("Remove draft warnings from Zvfh[min]").

* :c:macro:`RISCV_HWPROBE_EXT_ZVFHMIN`: The Zvfhmin extension is supported as
defined in the RISC-V Vector manual starting from commit e2ccd0548d6c
("Remove draft warnings from Zvfh[min]").

* :c:macro:`RISCV_HWPROBE_EXT_ZFA`: The Zfa extension is supported as
defined in the RISC-V ISA manual starting from commit 056b6ff467c7
("Zfa is ratified").

* :c:macro:`RISCV_HWPROBE_EXT_ZTSO`: The Ztso extension is supported as
defined in the RISC-V ISA manual starting from commit 5618fb5a216b
("Ztso is now ratified.")

* :c:macro:`RISCV_HWPROBE_EXT_ZACAS`: The Zacas extension is supported as
defined in the Atomic Compare-and-Swap (CAS) instructions manual starting
from commit 5059e0ca641c ("update to ratified").

* :c:macro:`RISCV_HWPROBE_EXT_ZICOND`: The Zicond extension is supported as
defined in the RISC-V Integer Conditional (Zicond) operations extension
manual starting from commit 95cf1f9 ("Add changes requested by Ved
during signoff")

* :c:macro:`RISCV_HWPROBE_EXT_ZIHINTPAUSE`: The Zihintpause extension is
supported as defined in the RISC-V ISA manual starting from commit
d8ab5c78c207 ("Zihintpause is ratified").

* :c:macro:`RISCV_HWPROBE_EXT_ZVE32X`: The Vector sub-extension Zve32x is
supported, as defined by version 1.0 of the RISC-V Vector extension manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZVE32F`: The Vector sub-extension Zve32f is
supported, as defined by version 1.0 of the RISC-V Vector extension manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZVE64X`: The Vector sub-extension Zve64x is
supported, as defined by version 1.0 of the RISC-V Vector extension manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZVE64F`: The Vector sub-extension Zve64f is
supported, as defined by version 1.0 of the RISC-V Vector extension manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZVE64D`: The Vector sub-extension Zve64d is
supported, as defined by version 1.0 of the RISC-V Vector extension manual.

* :c:macro:`RISCV_HWPROBE_EXT_ZIMOP`: The Zimop May-Be-Operations extension is
supported as defined in the RISC-V ISA manual starting from commit
58220614a5f ("Zimop is ratified/1.0").

* :c:macro:`RISCV_HWPROBE_EXT_ZCA`: The Zca extension part of Zc* standard
extensions for code size reduction, as ratified in commit 8be3419c1c0
("Zcf doesn't exist on RV64 as it contains no instructions") of
riscv-code-size-reduction.

* :c:macro:`RISCV_HWPROBE_EXT_ZCB`: The Zcb extension part of Zc* standard
extensions for code size reduction, as ratified in commit 8be3419c1c0
("Zcf doesn't exist on RV64 as it contains no instructions") of
riscv-code-size-reduction.

* :c:macro:`RISCV_HWPROBE_EXT_ZCD`: The Zcd extension part of Zc* standard
extensions for code size reduction, as ratified in commit 8be3419c1c0
("Zcf doesn't exist on RV64 as it contains no instructions") of
riscv-code-size-reduction.

* :c:macro:`RISCV_HWPROBE_EXT_ZCF`: The Zcf extension part of Zc* standard
extensions for code size reduction, as ratified in commit 8be3419c1c0
("Zcf doesn't exist on RV64 as it contains no instructions") of
riscv-code-size-reduction.

* :c:macro:`RISCV_HWPROBE_EXT_ZCMOP`: The Zcmop May-Be-Operations extension is
supported as defined in the RISC-V ISA manual starting from commit
c732a4f39a4 ("Zcmop is ratified/1.0").

* :c:macro:`RISCV_HWPROBE_EXT_ZAWRS`: The Zawrs extension is supported as
ratified in commit 98918c844281 ("Merge pull request #1217 from
riscv/zawrs") of riscv-isa-manual.

* :c:macro:`RISCV_HWPROBE_EXT_SUPM`: The Supm extension is supported as
defined in version 1.0 of the RISC-V Pointer Masking extensions.

* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance
information about the selected set of processors.

* :c:macro:`RISCV_HWPROBE_MISALIGNED_UNKNOWN`: The performance of misaligned
accesses is unknown.

* :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned accesses are
emulated via software, either in or below the kernel. These accesses are
always extremely slow.

* :c:macro:`RISCV_HWPROBE_MISALIGNED_SLOW`: Misaligned accesses are slower
than equivalent byte accesses. Misaligned accesses may be supported
directly in hardware, or trapped and emulated by software.

* :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned accesses are faster
than equivalent byte accesses.

* :c:macro:`RISCV_HWPROBE_MISALIGNED_UNSUPPORTED`: Misaligned accesses are
not supported at all and will generate a misaligned address fault.

* :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which
represents the size of the Zicboz block in bytes.

* :c:macro:`RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS`: An unsigned long which
represent the highest userspace virtual address usable.

* :c:macro:`RISCV_HWPROBE_KEY_TIME_CSR_FREQ`: Frequency (in Hz) of `time CSR`.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwlock/xuantie,th1520-hwspinlock.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: XUANTIE th1520 SoC HwSpinlock

maintainers:
- Liu Yibin <jiulong@linux.alibaba.com>

properties:
compatible:
items:
- const: th1520,hwspinlock

reg:
maxItems: 1


required:
- compatible
- reg

additionalProperties: false

examples:

- |
hwspinlock: hwspinlock@ffefc10000 {
compatible = "th1520,hwspinlock";
reg = <0xff 0xefc10000 0x0 0x10000>;
status = "disabled";
};
52 changes: 52 additions & 0 deletions Documentation/devicetree/bindings/iio/adc/thead,th1520-adc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/xuantie,th1520-adc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: XuanTie TH1520 Analog to Digital Converter (ADC)

maintainers:
- Fugang Duan <duanfugang.dfg@linux.alibaba.com>
- Xiangyi Zeng <xiangyi.zeng@linux.alibaba.com>
- Wei Fu <wefu@redhat.com>

description: |
12-Bit Analog to Digital Converter (ADC) on XuanTie TH1520
properties:
compatible:
const: xuantie,th1520-adc

reg:
maxItems: 1

interrupts:
maxItems: 1

clocks:
maxItems: 1

clock-names:
const: adc

required:
- compatible
- reg
- interrupts
- clocks
- clock-names
- status

additionalProperties: false

examples:
- |
adc: adc@0xfffff51000 {
compatible = "xuantie,th1520-adc";
reg = <0xff 0xfff51000 0x0 0x1000>;
interrupts = <61 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&aonsys_clk>;
clock-names = "adc";
/* ADC pin is proprietary,no need to config pinctrl */
status = "disabled";
};
Loading