[PATCH] drm/amdgpu/virtual_dce: drop error message in hw_init

Yuan, Xiaojie Xiaojie.Yuan at amd.com
Thu Aug 29 01:44:03 UTC 2019


Reviewed-by: Xiaojie Yuan <xiaojie.yuan at amd.com>

BR,
Xiaojie

> On Aug 28, 2019, at 9:56 PM, Alex Deucher <alexdeucher at gmail.com> wrote:
> 
> No need to add new asic cases.  This is a sw display
> implementation, so just drop the error message so when
> we add new asics, all we have to do is add the virtual
> dce IP module.
> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 11 +----------
> 1 file changed, 1 insertion(+), 10 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> index 6dadbed7ce43..fe242cc7c04f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> @@ -452,17 +452,8 @@ static int dce_virtual_hw_init(void *handle)
> #endif
>        /* no DCE */
>        break;
> -    case CHIP_VEGA10:
> -    case CHIP_VEGA12:
> -    case CHIP_VEGA20:
> -    case CHIP_ARCTURUS:
> -    case CHIP_RENOIR:
> -    case CHIP_NAVI10:
> -    case CHIP_NAVI14:
> -    case CHIP_NAVI12:
> -        break;
>    default:
> -        DRM_ERROR("Virtual display unsupported ASIC type: 0x%X\n", adev->asic_type);
> +        break;
>    }
>    return 0;
> }
> -- 
> 2.20.1
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list