Skip to contentSkip to conversation

thermal: add new test group

PATCH Superseded Piotr Kubaj 2 participants 3 messages Nov 28, 2025 – Dec 17, 2025

v5 of 21 Superseded Latest is v21 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 thermal: add new test group

This is a new test for checking thermal interrupt events. stress-ng is used because genload doesn't seem to generate enough load.

This version corrects the minor nits pointed out by Petr Vorel.

---
 runtest/thermal                               |  3 +
 scenario_groups/default                       |  1 +
 testcases/kernel/Makefile                     |  1 +
 testcases/kernel/thermal/Makefile             | 11 +++
 .../thermal/thermal_interrupt_events.sh       | 98 +++++++++++++++++++
 5 files changed, 114 insertions(+)
 create mode 100644 runtest/thermal
 create mode 100644 testcases/kernel/thermal/Makefile
 create mode 100755 testcases/kernel/thermal/thermal_interrupt_events.sh
runtest/thermal new file +3 -0
new file mode 100644
index 000000000..b85237f95
@@ -0,0 +1,3 @@
+# Thermal driver API
+# https://docs.kernel.org/driver-api/thermal/
+thermal_interrupt_events thermal_interrupt_events.sh
scenario_groups/default +1 -0
index 0e76b2bee..ffdd7ff25 100644
@@ -26,3 +26,4 @@ crypto
 kernel_misc
 uevent
 watchqueue
+thermal
testcases/kernel/Makefile +1 -0
index 98fd45a9d..ac816e4e8 100644
@@ -36,6 +36,7 @@ SUBDIRS			+= connectors \
 			   sched \
 			   security \
 			   sound \
+			   thermal \
 			   tracing \
 			   uevents \
 			   watchqueue \
testcases/kernel/thermal/Makefile new file +11 -0
new file mode 100644
index 000000000..edd338605
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (c) 2025, Intel Corporation. All rights reserved.
+# Author:Piotr Kubaj <[email protected]>
+
+top_srcdir             ?= ../../..
+
+include $(top_srcdir)/include/mk/env_pre.mk
+
+INSTALL_TARGETS                := *.sh
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/thermal/thermal_interrupt_events.sh new file +98 -0

98 lines not on this page · raw message

Signature · 12 lines
2.47.3

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Piotr,

I followed this discussion but I did't have time to reply yet, I apologize for it.

Honestly, I have mixed feelings towards this patch because we already have genload tool in LTP and there's no reason to use something different for one test only.

Happy to see thermal interrupt being tested, but, in the other hand, we should not merge something that is using external tools which are already implemented in the project itself.

Signature · 7 lines
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Please reject this PR, we have C version in our internal review. Next tests will only use C from now on.

2025-12-16 (火) の 14:07 +0100 に Andrea Cervesato さんは書きました:

Quoted 5 lines

Hi Piotr,

I followed this discussion but I did't have time to reply yet, I apologize for it.

Quoted 7 lines

Honestly, I have mixed feelings towards this patch because we already have genload tool in LTP and there's no reason to use something different for one test only.

Happy to see thermal interrupt being tested, but, in the other hand, we should not merge something that is using external tools which are already implemented in the project itself.

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp