summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorYong Zhao2018-07-13 22:17:44 +0200
committerOded Gabbay2018-07-13 22:17:44 +0200
commit98bb92222eef6ac022f352aa4224f4c94a119199 (patch)
tree91d7d592380009038dfb41cddffaa976267a8c64 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentdrm/amdkfd: Consolidate duplicate memory banks info in topology (diff)
downloadkernel-qcow2-linux-98bb92222eef6ac022f352aa4224f4c94a119199.tar.gz
kernel-qcow2-linux-98bb92222eef6ac022f352aa4224f4c94a119199.tar.xz
kernel-qcow2-linux-98bb92222eef6ac022f352aa4224f4c94a119199.zip
drm/amdkfd: Make SDMA engine number an ASIC-dependent variable
On Raven there is only one SDMA engine instead of previously assumed two, so we need to adapt our code to this new scenario. Signed-off-by: Yong Zhao <yong.zhao@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index 37d179ed51dc..ca83254719fc 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -203,6 +203,7 @@ struct kfd_device_info {
bool supports_cwsr;
bool needs_iommu_device;
bool needs_pci_atomics;
+ unsigned int num_sdma_engines;
};
struct kfd_mem_obj {