summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2018-04-10 17:33:14 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2018-04-10 17:33:14 -0400
commit6aac0a48b02f5d7ed64e4fdc2aa48843d425905b (patch)
tree2f0da09a79b2a3a799c8e5f98b09152b4e12425a /drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
parent9d7d024816686f922735f7adccd00e3fc44e2e03 (diff)
downloadblackbird-op-linux-6aac0a48b02f5d7ed64e4fdc2aa48843d425905b.tar.gz
blackbird-op-linux-6aac0a48b02f5d7ed64e4fdc2aa48843d425905b.zip
drm/amdkfd: Remove limit on number of GPUs (follow-up)
This condition was missed in a previous commit with the same title. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
index 66852de410c8..f16ac2b2f060 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
@@ -307,9 +307,7 @@ int kfd_init_apertures(struct kfd_process *process)
struct kfd_process_device *pdd;
/*Iterating over all devices*/
- while (kfd_topology_enum_kfd_devices(id, &dev) == 0 &&
- id < NUM_OF_SUPPORTED_GPUS) {
-
+ while (kfd_topology_enum_kfd_devices(id, &dev) == 0) {
if (!dev) {
id++; /* Skip non GPU devices */
continue;
OpenPOWER on IntegriCloud