OSDN Git Service

drm/amd/display: Add profiling tools for bandwidth validation
authorJoshua Aberback <joshua.aberback@amd.com>
Mon, 1 Apr 2019 19:21:24 +0000 (15:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:22:19 +0000 (00:22 -0500)
commitf55be0be5b7296e73f1634e2839a1953dc12d11e
treeb37f389fc6c5b6700feeb08329bd2a6c5c1a431b
parentafcd526b1ba9dbc5707f9bd8d2d032ae62e337dc
drm/amd/display: Add profiling tools for bandwidth validation

[Why]
We used this change to investigate the performance of bandwidth validation,
it will be useful to have if we need to investigate further.

[How]
We use performance counter tick numbers to profile performance, they live
at dc->debug.bw_val_profile (set .enable in debugger to turn on measuring).

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/dc.h