drm/amdkfd: Try to enable atomics for all GPUs
authorwelu <Wei.Lu2@amd.com>
Tue, 10 Apr 2018 21:33:17 +0000 (17:33 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 10 Apr 2018 21:33:17 +0000 (17:33 -0400)
commit6106dce9559ec5a4b1a97302f2fcc508e40d2747
treebce2387af26c449a9ef53b6b1f753121e340fc0e
parent3e76c2399b55483b1a28499b090f9d6600ab9eff
drm/amdkfd: Try to enable atomics for all GPUs

Report failure to enable atomics only on GPUs that require them.
This allows GPUs that don't require atomics to function, but can
benefit if they are available. This is the case for Vega10, which
doesn't use atomics for basic functioning of the MEC, AQL and HWS
microcode. So it can work without atomics. But shader programs can
still use atomic instructions on systems that support PCIe atomics.

Signed-off-by: welu <Wei.Lu2@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c