drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921)
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix DRM_INFO flood if display core is not supported (bug 210921)
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 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -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; }
Signature · 6 lines
2.30.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
AppliedQuoted 5 lines · Alexandre Demers
This fix bug 210921 where
DRM_INFOfloods log when hitting an unsupported ASIC inamdgpu_device_asic_has_dc_support(). This info should be only called once.Signed-off-by Alexandre Demers <[email protected]>
Applied. Thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -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
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx