diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2017-06-05 05:43:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-08 10:54:33 -0400 |
commit | 7df289865c69ea39e1f81de0abe839acc54e604b (patch) | |
tree | 56b9e15657d44ddb04aa0b1cf12bc6586da4e453 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | b9683c21f69b3d8d7b6741d31a0e3cbf26c7191b (diff) |
drm/amdgpu: Add module param to control CIK support
If AMDGPU supports CIK, add a module parameter to control CIK
support. It's on by default in AMDGPU, while it is off by default
in radeon.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index cda06a1bd7d7..e0911798e2c2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -87,6 +87,21 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags) | |||
87 | struct amdgpu_device *adev; | 87 | struct amdgpu_device *adev; |
88 | int r, acpi_status; | 88 | int r, acpi_status; |
89 | 89 | ||
90 | #ifdef CONFIG_DRM_AMDGPU_CIK | ||
91 | if (!amdgpu_cik_support) { | ||
92 | switch (flags & AMD_ASIC_MASK) { | ||
93 | case CHIP_KAVERI: | ||
94 | case CHIP_BONAIRE: | ||
95 | case CHIP_HAWAII: | ||
96 | case CHIP_KABINI: | ||
97 | case CHIP_MULLINS: | ||
98 | dev_info(dev->dev, | ||
99 | "CIK support disabled by module param\n"); | ||
100 | return -ENODEV; | ||
101 | } | ||
102 | } | ||
103 | #endif | ||
104 | |||
90 | adev = kzalloc(sizeof(struct amdgpu_device), GFP_KERNEL); | 105 | adev = kzalloc(sizeof(struct amdgpu_device), GFP_KERNEL); |
91 | if (adev == NULL) { | 106 | if (adev == NULL) { |
92 | return -ENOMEM; | 107 | return -ENOMEM; |