AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921)
@ 2021-01-07 23:53 Alexandre Demers
  2021-01-08 18:16 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Demers @ 2021-01-07 23:53 UTC (permalink / raw)
  To: amd-gfx; +Cc: alexander.deucher

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@gmail.com>
---
 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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921)
  2021-01-07 23:53 [PATCH] drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921) Alexandre Demers
@ 2021-01-08 18:16 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2021-01-08 18:16 UTC (permalink / raw)
  To: Alexandre Demers; +Cc: Deucher, Alexander, amd-gfx list

On Thu, Jan 7, 2021 at 6:53 PM Alexandre Demers
<alexandre.f.demers@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@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@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-08 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-07 23:53 [PATCH] drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921) Alexandre Demers
2021-01-08 18:16 ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox