]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdkfd: Add gws number to kfd topology node properties
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 3 May 2019 14:10:38 +0000 (09:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 May 2019 19:43:58 +0000 (14:43 -0500)
commit29e764621bbcd4a93745cf1b9fd5a2f5f45c3f72
treea32582ce72c532d1adafc6fa7decd58ed985399f
parentd33ea570bd20f7ac7abea4f56f1df299e179356b
drm/amdkfd: Add gws number to kfd topology node properties

Add amdgpu_amdkfd interface to get num_gws and add num_gws
to /sys/class/kfd/kfd/topology/nodes/x/properties. Only report
num_gws if MEC FW support GWS barriers. Currently it is
determined by a module parameter which will be replaced
with MEC FW version check when firmware is ready.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.h