]> 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)
commit8e2e9df58ad2a650fceca8a1c673bbe92771375b
tree8816c701d96f4895a91686d5d28cb22ec7add1e9
parent51926d6a49f72681ed45171ecea7d4d59802bc31
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