drm/amdgpu: add timestamp counter query support for yellow carp
authorAaron Liu <aaron.liu@amd.com>
Tue, 26 Jan 2021 02:46:34 +0000 (10:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Jun 2021 20:03:19 +0000 (16:03 -0400)
commitde8d6375e34be4d2e463ebbab53f6f799678bee6
tree673c0d614207de10e2f5ba6803fbc710fb24c9f1
parentbb763b5f8efda540a35fd4ba5ca7d27aeb5162a9
drm/amdgpu: add timestamp counter query support for yellow carp

Allows software to query HW counters to timestamp submissions.
This patch can address KFDPerfCountersTest.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: chen gong <curry.gong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c