[PATCH] drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921)
Alex Deucher
alexdeucher at gmail.com
Fri Jan 8 18:16:12 UTC 2021
On Thu, Jan 7, 2021 at 6:53 PM Alexandre Demers
<alexandre.f.demers at gmail.com> wrote:
>
> This fix bug 210921 where DRM_INFO floods log when hitting an unsupported ASIC in
> amdgpu_device_asic_has_dc_support(). This info should be only called once.
>
> Signed-off-by: Alexandre Demers <alexandre.f.demers at gmail.com>
Applied. Thanks!
Alex
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 1cb7d73f7317..9246c2ae7b63 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -3034,7 +3034,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
> #endif
> default:
> if (amdgpu_dc > 0)
> - DRM_INFO("Display Core has been requested via kernel parameter "
> + DRM_INFO_ONCE("Display Core has been requested via kernel parameter "
> "but isn't supported by ASIC, ignoring\n");
> return false;
> }
> --
> 2.30.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