]> git.baikalelectronics.ru Git - kernel.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)
commit202744c5899c99375bc09c5fbf6601d420f76574
treea32582ce72c532d1adafc6fa7decd58ed985399f
parentf72fa9c21e421e3e1c833fd71eb7c9c7366659f3
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