[PATCH] drm/amdgpu: no DC support for headless chips

Quan, Evan Evan.Quan at amd.com
Tue Dec 28 01:54:41 UTC 2021


[AMD Official Use Only]

Reviewed-by: Evan Quan <evan.quan at amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Alex
> Deucher
> Sent: Tuesday, December 28, 2021 1:12 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Tareque Md .
> Hanif <tarequemd.hanif at yahoo.com>
> Subject: [PATCH] drm/amdgpu: no DC support for headless chips
> 
> Chips with no display hardware should return false for
> DC support.
> 
> v2: drop Arcturus and Aldebaran
> 
> Fixes: f7f12b25823c0d ("drm/amdgpu: default to true in
> amdgpu_device_asic_has_dc_support")
> Reported-by: Tareque Md.Hanif <tarequemd.hanif at yahoo.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 9dc86c5a1cad..694c3726e0f4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -3166,6 +3166,12 @@ static void
> amdgpu_device_detect_sriov_bios(struct amdgpu_device *adev)
>  bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
>  {
>  	switch (asic_type) {
> +#ifdef CONFIG_DRM_AMDGPU_SI
> +	case CHIP_HAINAN:
> +#endif
> +	case CHIP_TOPAZ:
> +		/* chips with no display hardware */
> +		return false;
>  #if defined(CONFIG_DRM_AMD_DC)
>  	case CHIP_TAHITI:
>  	case CHIP_PITCAIRN:
> --
> 2.33.1


More information about the amd-gfx mailing list