[PW_SID:1085935] thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor#1819
[PW_SID:1085935] thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor#1819linux-riscv-bot wants to merge 5 commits into
Conversation
…_TYPED_FUNC_START After commit 67bdd7b ("riscv: Split out measure_cycles() for reuse") and commit c03ad15 ("riscv: Reuse measure_cycles() in check_vector_unaligned_access()"), there are CFI failure when booting kernels with CONFIG_CFI=y: CFI failure at measure_cycles+0x38/0xe0 (target: __riscv_copy_words_unaligned+0x0/0x50; expected type: ...) CFI failure at measure_cycles+0x38/0xe0 (target: __riscv_copy_vec_words_unaligned+0x0/0x24; expected type: ...) The __riscv_copy_*_unaligned() functions are now called indirectly but they are not defined with SYM_TYPED_FUNC_START, which is required for assembly functions called indirectly from C to pass CFI checking. Switch to SYM_TYPED_FUNC_START to clear up the CFI failures. Fixes: 67bdd7b ("riscv: Split out measure_cycles() for reuse") Fixes: c03ad15 ("riscv: Reuse measure_cycles() in check_vector_unaligned_access()") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://patch.msgid.link/20260406-measure_cycles-cfi-failure-v1-1-03e0234ae02f@kernel.org Signed-off-by: Paul Walmsley <pjw@kernel.org>
Document the SpacemiT K1 Thermal Sensor, which supports monitoring temperatures for five zones: soc, package, gpu, cluster0, and cluster1. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Shuwei Wu <shuwei.wu@mailbox.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The thermal sensor on K1 supports monitoring five temperature zones. The driver registers these sensors with the thermal framework and supports standard operations: - Reading temperature (millidegree Celsius) - Setting high/low thresholds for interrupts Reviewed-by: Anand Moon <linux.amoon@gmail.com> Tested-by: Anand Moon <linux.amoon@gmail.com> Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Reviewed-by: Yao Zi <me@ziyao.cc> Tested-by: Vincent Legoll <legoll@online.fr> # OrangePi-RV2 Tested-by: Gong Shuai <gsh517025@gmail.com> Signed-off-by: Shuwei Wu <shuwei.wu@mailbox.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Include the Thermal Sensor node in the SpacemiT K1 dtsi with definitions for registers, clocks, and interrupts. Additionally, configure thermal zones for the soc, package, gpu, and clusters to enable temperature monitoring via the thermal framework. Tested-by: Vincent Legoll <legoll@online.fr> # OrangePi-RV2 Tested-by: Gong Shuai <gsh517025@gmail.com> Signed-off-by: Shuwei Wu <shuwei.wu@mailbox.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 1: "[v5,1/3] dt-bindings: thermal: Add SpacemiT K1 thermal sensor" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 2: "[v5,2/3] thermal: spacemit: k1: Add thermal sensor support" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
|
Patch 3: "[v5,3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC" |
01805bc to
94a07a2
Compare
PR for series 1085935 applied to workflow__riscv__fixes
Name: thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1085935
Version: 5