[PATCH] drm/amdgpu: log when amdgpu.dc=1 but ASIC is unsupported

Alex Deucher alexdeucher at gmail.com
Wed Dec 11 14:42:30 UTC 2019


On Wed, Dec 11, 2019 at 5:27 AM Simon Ser <contact at emersion.fr> wrote:
>
> This makes it easier to figure out whether the kernel parameter has been
> taken into account.
>
> Signed-off-by: Simon Ser <contact at emersion.fr>
> Cc: Harry Wentland <hwentlan at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>

Applied. thanks.

Alex


> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 7a6c837c0a85..10618353383f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -2525,6 +2525,9 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
>                 return amdgpu_dc != 0;
>  #endif
>         default:
> +               if (amdgpu_dc > 0)
> +                       DRM_INFO("Display Core has been requested via kernel parameter "
> +                                        "but isn't supported by ASIC, ignoring\n");
>                 return false;
>         }
>  }
> --
> 2.24.0
>
>
> _______________________________________________
> 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