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>
Sat, 22 Jun 2019 14:34:10 +0000 (09:34 -0500)
commit42351c66aedcd142de33c0ae17bbde09eaff1b3d
tree0c36a8ffde607c9a1986f7c7002645b0906cfd82
parent254eb07cb090374d0e1e90790395ead77f6f6ad5
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/dcn20/dcn20_resource.c