RE: [PATCH] drm/i915/hdmi: Fix potential overflow while using intel_encoder_to_tc

2025-09-03 Thread Kahola, Mika
> -Original Message- > From: Intel-gfx On Behalf Of Ankit > Nautiyal > Sent: Wednesday, 3 September 2025 6.50 > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > Cc: Nautiyal, Ankit K > Subject: [PATCH] drm/i915/hdmi: Fix potential overflow while using > intel_encode

Re: [PATCH] drm/i915/hdmi: Fix potential overflow while using intel_encoder_to_tc

2025-09-03 Thread Nautiyal, Ankit K
On 9/3/2025 3:46 PM, Jani Nikula wrote: On Wed, 03 Sep 2025, "Nautiyal, Ankit K" wrote: On 9/3/2025 1:07 PM, Jani Nikula wrote: On Wed, 03 Sep 2025, Ankit Nautiyal wrote: The helper intel_encoder_to_tc() can potentially return TC_PORT_NONE (-1) and cause overflow while computing ddc pins i

Re: [PATCH] drm/i915/hdmi: Fix potential overflow while using intel_encoder_to_tc

2025-09-03 Thread Jani Nikula
On Wed, 03 Sep 2025, "Nautiyal, Ankit K" wrote: > On 9/3/2025 1:07 PM, Jani Nikula wrote: >> On Wed, 03 Sep 2025, Ankit Nautiyal wrote: >>> The helper intel_encoder_to_tc() can potentially return TC_PORT_NONE >>> (-1) and cause overflow while computing ddc pins in >>> icl_encoder_to_ddc_pin(). >>

Re: [PATCH] drm/i915/hdmi: Fix potential overflow while using intel_encoder_to_tc

2025-09-03 Thread Nautiyal, Ankit K
On 9/3/2025 1:07 PM, Jani Nikula wrote: On Wed, 03 Sep 2025, Ankit Nautiyal wrote: The helper intel_encoder_to_tc() can potentially return TC_PORT_NONE (-1) and cause overflow while computing ddc pins in icl_encoder_to_ddc_pin(). Check for TC_PORT_NONE before deriving the ddc pins for TC por

Re: [PATCH] drm/i915/hdmi: Fix potential overflow while using intel_encoder_to_tc

2025-09-03 Thread Jani Nikula
On Wed, 03 Sep 2025, Ankit Nautiyal wrote: > The helper intel_encoder_to_tc() can potentially return TC_PORT_NONE > (-1) and cause overflow while computing ddc pins in > icl_encoder_to_ddc_pin(). > > Check for TC_PORT_NONE before deriving the ddc pins for TC port. > > Signed-off-by: Ankit Nautiyal