✗ CI.checkpatch: warning for drm/xe: GPU frequency tracing support
Patchwork
patchwork at emeril.freedesktop.org
Fri Aug 8 19:50:49 UTC 2025
== Series Details ==
Series: drm/xe: GPU frequency tracing support
URL : https://patchwork.freedesktop.org/series/152701/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
c298eac5978c38dcc62a70c0d73c91765e7cc296
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 1a3817135bb954e70adf12ca5e67f77a74a96375
Author: S Sebinraj <s.sebinraj at intel.com>
Date: Fri Aug 8 21:49:20 2025 +0530
drm/xe: GPU frequency tracing support
A periodic GPU frequency monitoring and tracing program for the
Xe driver. The implementation provides periodic sampling of
GPU frequency through the Linux ftrace infrastructure.
Key features:
- Periodic GPU frequency sampling with configurable intervals
- Immediate frequency change reporting via tracepoints
- Integration with Linux ftrace subsystem under 'power' events
- Per-GT (Graphics Technology) monitoring support
- Dedicated workqueue for non-blocking frequency sampling
- Configurable via CONFIG_DRM_XE_GPUFREQTRACER kernel option
- The monitoring interval can be configured at runtime via the sysfs
(default 5sec).
The sysfs entry is at:
/sys/module/xe/parameters/gpufreq_monitoring_interval_ms
The tracepoint is exposed at:
/sys/kernel/debug/tracing/events/power/gpu_frequency
Format: {unsigned int state, unsigned int gpu_id}
- state: GPU frequency in KHz
- gpu_id: GPU clock domain identifier
This enables userspace tools and system monitoring applications to track
GPU frequency changes for power management analysis, performance tuning,
and debugging purposes.
Signed-off-by: S Sebinraj <s.sebinraj at intel.com>
+ /mt/dim checkpatch 1b96c6f660be3e8b1398037f3dff9df6f0cdb7b7 drm-intel
1a3817135bb9 drm/xe: GPU frequency tracing support
-:153: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#153:
new file mode 100644
-:211: CHECK:LINE_SPACING: Please don't use multiple blank lines
#211: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer.c:54:
+
+
-:314: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#314: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer.c:157:
+ drm_dbg(&xe->drm, "GT%u initialized with global interval=%u ms",
+ gt->info.id, xe_modparam.gpufreq_monitoring_interval_ms);
-:364: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#364: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer.c:207:
+ drm_dbg(>_to_xe(gt)->drm, "direct frequency report for GT%u: %u KHz",
+ gt->info.id, frequency_khz);
-:412: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#412: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer.c:255:
+ drm_dbg(>_to_xe(gt)->drm, "monitoring started for GT%u with interval %u ms",
+ gt->info.id, xe_modparam.gpufreq_monitoring_interval_ms);
-:555: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#555: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer_trace.h:24:
+TRACE_EVENT(gpu_frequency,
+ TP_PROTO(unsigned int state, unsigned int gpu_id),
-:559: CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#559: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer_trace.h:28:
+ TP_STRUCT__entry(
-:564: CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#564: FILE: drivers/gpu/drm/xe/xe_gpufreqtracer/xe_gpufreqtracer_trace.h:33:
+ TP_fast_assign(
total: 0 errors, 1 warnings, 7 checks, 582 lines checked
More information about the Intel-xe
mailing list