drm/amd/display: Add tracing to dc
authorDavid Francis <David.Francis@amd.com>
Fri, 30 Nov 2018 14:57:06 +0000 (09:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Dec 2018 22:49:49 +0000 (17:49 -0500)
commit0cf5eb76e2b453b3d159082eb4707c03a1686cf7
treec8ad7d7aa3e1a9f2817eb67ae68653af60b9b86b
parent5d66ef38bc9df8964ec7b6eb5091dae5e8fe67b4
drm/amd/display: Add tracing to dc

[Why]
Tracing is a useful and cheap debug functionality

[How]
This creates a new trace system amdgpu_dm, currently with
three trace events

amdgpu_dc_rreg and amdgpu_dc_wreg report the address and value
of any dc register reads and writes

amdgpu_dc_performance requires at least one of those two to be
enabled.  It counts the register reads and writes since the
last entry

v2: Don't check for NULL before kfree

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@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_trace.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c
drivers/gpu/drm/amd/display/dc/dm_services.h