]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Enable GWS based on FW Support
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Wed, 15 Jan 2020 21:23:44 +0000 (15:23 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:30 +0000 (16:20 -0400)
commit6c9b71977dc25bcbb0760e3ae04b1721ae044c75
tree8816c701d96f4895a91686d5d28cb22ec7add1e9
parentae0a73095dad621fd6ea630ba8f5be52bd282607
drm/amdkfd: Enable GWS based on FW Support

Rather than only enabling GWS support based on the hws_gws_support
modparm, also check whether the GPU's HWS firmware supports GWS.
Leave the old modparm in place in case users want to test GWS
on GPUs not yet in the support list.

v2: fix broken syntax from the first patch.

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@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_drv.c
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_topology.c