[PATCH] drm/amdgpu/nv: add missing CONFIG_DRM_AMD_DC check

Randy Dunlap rdunlap at infradead.org
Fri Oct 1 20:18:09 UTC 2021


On 10/1/21 12:48 PM, Alex Deucher wrote:
> Check was missing for cyan skillfish.
> 
> Fixes: 82d96c34b0d49b ("drm/amd/display: add cyan_skillfish display support")
> Reported-by: Randy Dunlap <rdunlap at infradead.org>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Acked-by: Randy Dunlap <rdunlap at infradead.org> # build-tested

Thanks.

> ---
>   drivers/gpu/drm/amd/amdgpu/nv.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
> index 96975c8cc026..898e688be63c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/nv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/nv.c
> @@ -891,8 +891,10 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)
>   		}
>   		if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
>   			amdgpu_device_ip_block_add(adev, &amdgpu_vkms_ip_block);
> +#if defined(CONFIG_DRM_AMD_DC)
>   		else if (amdgpu_device_has_dc_support(adev))
>   			amdgpu_device_ip_block_add(adev, &dm_ip_block);
> +#endif
>   		amdgpu_device_ip_block_add(adev, &gfx_v10_0_ip_block);
>   		amdgpu_device_ip_block_add(adev, &sdma_v5_0_ip_block);
>   		break;
> 


-- 
~Randy


More information about the amd-gfx mailing list