[PATCH] drm/i915/display/dp: Reduce log level for SOURCE OUI write failures

Pottumuttu, Sai Teja sai.teja.pottumuttu at intel.com
Wed Oct 9 17:02:58 UTC 2024


On 05-10-2024 02:38, Clint Taylor wrote:
> Some devices NAK DPCD writes to the SOURCE OUI (0x300) DPCD registers.
> Reduce the log level priority to prevent dmesg noise for these devices.
>
> Signed-off-by: Clint Taylor <clinton.a.taylor at intel.com>
> ---
>   drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index fbb096be02ad..9920ec1f9c53 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -3418,7 +3418,7 @@ intel_edp_init_source_oui(struct intel_dp *intel_dp, bool careful)
>   	}
>   
>   	if (drm_dp_dpcd_write(&intel_dp->aux, DP_SOURCE_OUI, oui, sizeof(oui)) < 0)
> -		drm_err(&i915->drm, "Failed to write source OUI\n");
> +		drm_info(&i915->drm, "Failed to write source OUI\n");
>   

Just had one small question here, I think NAK is one case, but in case 
of other errors/failures (EINVAL, ENOMEM) would we still want to reduce 
the log level?

Thanks,
Sai Teja

>   	intel_dp->last_oui_write = jiffies;
>   }


More information about the Intel-gfx mailing list