Srinivas Pandruvada
8190b9ea30
thermal: intel: selftests: workload_hint: Support slow workload hints
...
Add option to enable slow workload type hints. User can specify
"slow" as the command line argument to enable slow workload type hints.
There are two slow workload type hints: "power" and "performance".
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Link: https://patch.msgid.link/20251218222559.4110027-3-srinivas.pandruvada@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2026-01-07 21:42:10 +01:00
Srinivas Pandruvada
0115d06355
thermal: intel: selftests: workload_hint: Mask unsupported types
...
The workload hint may contain some other hints which are not defined.
So mask out unsupported types. Currently only lower 4 bits of workload
type hints are defined.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Link: https://patch.msgid.link/20250828201541.931425-1-srinivas.pandruvada@linux.intel.com
[ rjw: Subject cleanup ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2025-09-04 22:17:47 +02:00
WangYuli
599579e857
selftests/thermal: remove duplicate newlines in perror calls
...
perror() automatically appends a newline character, so the explicit '\n'
in the format strings is redundant and results in duplicate newlines in
the output.
Remove the redundant '\n' characters from perror() calls in
workload_hint_test.c to fix the formatting.
Link: https://lkml.kernel.org/r/F482FB1EC020000C+20250710134751.306096-1-wangyuli@uniontech.com
Signed-off-by: WangYuli <wangyuli@uniontech.com >
Cc: Guan Wentao <guanwentao@uniontech.com >
Cc: Shuah Khan <shuah@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-07-19 19:08:28 -07:00
WangYuli
813b468088
selftests/thermal: remove duplicate sprintf() call in workload_hint_test
...
Remove redundant sprintf() call that was duplicating the same operation of
formatting delay_str with argv[1].
Link: https://lkml.kernel.org/r/6338CD0E839B770B+20250710130412.284531-1-wangyuli@uniontech.com
Signed-off-by: WangYuli <wangyuli@uniontech.com >
Cc: Guan Wentao <guanwentao@uniontech.com >
Cc: Shuah Khan <shuah@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-07-19 19:08:28 -07:00
Chelsy Ratnawat
f11c1efe46
selftests: fix some typos in tools/testing/selftests
...
Fix multiple spelling errors:
- "rougly" -> "roughly"
- "fielesystems" -> "filesystems"
- "Can'" -> "Can't"
Link: https://lkml.kernel.org/r/20250503211959.507815-1-chelsyratnawat2001@gmail.com
Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com >
Cc: Christian Brauner <brauner@kernel.org >
Cc: Shuah Khan <shuah@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-05-11 17:54:13 -07:00
Javier Carrasco
2851f57d2d
selftests: thermal: intel: workload_hint: add missing gitignore
...
The 'workload_hint_test' test generates an object with the same name,
but there is no .gitignore file in the directory to add the object as
stated in the selftest documentation.
Add the missing .gitignore file and include 'workload_hint_test'.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2024-02-20 16:30:55 -07:00
Srinivas Pandruvada
27801542b2
selftests/thermel/intel: Add test to read workload hint
...
Some SoCs have in built firmware support to classify current running
workload and pass to OS for making power management decisions.
This test program waits for notification of workload type change
and prints. This program can be used to test this feature and also
allows other user space programs to use as a reference.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2023-09-14 21:52:19 +02:00