]> Git Repo - linux.git/commit
drm/i915/display: Cover all possible pipes in TP_printk()
authorGustavo Sousa <[email protected]>
Wed, 16 Oct 2024 13:52:31 +0000 (10:52 -0300)
committerGustavo Sousa <[email protected]>
Fri, 25 Oct 2024 17:47:20 +0000 (14:47 -0300)
commit8793d092aee38c9a7d934543a04f9d0b01cf9716
tree58997bd43ff9c2f80e6ed685ec87a8aa537ad3a1
parent2698bdbf7034c1c7d683c2125f90a9ec201a477f
drm/i915/display: Cover all possible pipes in TP_printk()

Tracepoints that display frame and scanline counters for all pipes were
added with commit 1489bba82433 ("drm/i915: Add cxsr toggle tracepoint")
and commit 0b2599a43ca9 ("drm/i915: Add pipe enable/disable
tracepoints"). At that time, we only had pipes A, B and C. Now that we
can also have pipe D, the TP_printk() calls are missing it.

As a quick and dirty fix for that, let's define two common macros to be
used for the format and values respectively, and also ensure we raise a
build bug if more pipes are added to enum pipe.

In the future, we should probably have a way of printing information for
available pipes only.

Cc: Matt Roper <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Gustavo Sousa <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/display/intel_display_trace.h
This page took 0.05566 seconds and 4 git commands to generate.