[Intel-gfx] [PATCH 3/7] drm/i915: Fix broken transcoder err state
Ville Syrjälä
ville.syrjala at linux.intel.com
Tue Feb 4 14:28:36 UTC 2020
On Tue, Feb 04, 2020 at 04:59:23PM +0530, Anshuman Gupta wrote:
> Skip the trascoder whose pipe is disabled while
> initializing trascoder error state in 3 display
> pipe syatem.
>
> Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 5709e672151a..cf36c3d0f8fc 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -18607,8 +18607,10 @@ intel_display_capture_error_state(struct drm_i915_private *dev_priv)
>
> for (i = 0; i < ARRAY_SIZE(error->transcoder); i++) {
> enum transcoder cpu_transcoder = transcoders[i];
> + enum pipe pipe = (enum pipe)cpu_transcoder;
Not correct for EDP transcoder.
>
> - if (!INTEL_INFO(dev_priv)->trans_offsets[cpu_transcoder])
> + if (!INTEL_INFO(dev_priv)->trans_offsets[cpu_transcoder] &&
> + !(INTEL_INFO(dev_priv)->pipe_mask & BIT(pipe)))
> continue;
>
> error->transcoder[i].available = true;
> --
> 2.24.0
--
Ville Syrjälä
Intel
More information about the Intel-gfx
mailing list