diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2018-04-10 17:33:14 -0400 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2018-04-10 17:33:14 -0400 |
commit | 6aac0a48b02f5d7ed64e4fdc2aa48843d425905b (patch) | |
tree | 2f0da09a79b2a3a799c8e5f98b09152b4e12425a | |
parent | 9d7d024816686f922735f7adccd00e3fc44e2e03 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c | 4 |
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) | |||
307 | struct kfd_process_device *pdd; | 307 | struct kfd_process_device *pdd; |
308 | 308 | ||
309 | /*Iterating over all devices*/ | 309 | /*Iterating over all devices*/ |
310 | while (kfd_topology_enum_kfd_devices(id, &dev) == 0 && | 310 | while (kfd_topology_enum_kfd_devices(id, &dev) == 0) { |
311 | id < NUM_OF_SUPPORTED_GPUS) { | ||
312 | |||
313 | if (!dev) { | 311 | if (!dev) { |
314 | id++; /* Skip non GPU devices */ | 312 | id++; /* Skip non GPU devices */ |
315 | continue; | 313 | continue; |