OSDN Git Service

drm/amd/display: Add refresh rate trace
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 10 Mar 2021 15:04:56 +0000 (10:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:47:57 +0000 (16:47 -0400)
commit4758823355a0ed90bd9bfec508de41635a75d4d1
tree3f79985c3918dc7859776a555b12199628b0683c
parent95574c6961476e26236f16b48bfd98d6a1ceff4c
drm/amd/display: Add refresh rate trace

When we have to debug VRR issues, we usually want to know the current
refresh rate; for this reason, it is handy to have a way to check in
real-time the refresh rate value. This commit introduces a kernel trace
that can provide such information.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h