OSDN Git Service

drm/amdkfd: protect raven_device_info with KFD_SUPPORT_IOMMU_V2
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Oct 2021 13:39:37 +0000 (09:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Oct 2021 15:43:57 +0000 (11:43 -0400)
raven_device_info is not used when KFD_SUPPORT_IOMMU_V2 is not
set.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c

index 5137132..0fffaf8 100644 (file)
@@ -93,7 +93,6 @@ static const struct kfd_device_info carrizo_device_info = {
        .num_xgmi_sdma_engines = 0,
        .num_sdma_queues_per_engine = 2,
 };
-#endif
 
 static const struct kfd_device_info raven_device_info = {
        .asic_family = CHIP_RAVEN,
@@ -113,6 +112,7 @@ static const struct kfd_device_info raven_device_info = {
        .num_xgmi_sdma_engines = 0,
        .num_sdma_queues_per_engine = 2,
 };
+#endif
 
 #ifdef CONFIG_DRM_AMDGPU_CIK
 static const struct kfd_device_info hawaii_device_info = {