All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: "Shankar, Uma" <uma.shankar@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Tomi Leppänen" <tomi@tomin.site>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/sdvo: fix panel_type initialization
Date: Fri, 04 Aug 2023 18:03:21 +0300	[thread overview]
Message-ID: <87zg36u9xi.fsf@intel.com> (raw)
In-Reply-To: <CY5PR11MB634423568E25C9A4DF005C1DF409A@CY5PR11MB6344.namprd11.prod.outlook.com>

On Fri, 04 Aug 2023, "Shankar, Uma" <uma.shankar@intel.com> wrote:
>> -----Original Message-----
>> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Jani Nikula
>> Sent: Thursday, August 3, 2023 5:57 PM
>> To: intel-gfx@lists.freedesktop.org
>> Cc: Nikula, Jani <jani.nikula@intel.com>; Tomi Leppänen <tomi@tomin.site>;
>> stable@vger.kernel.org
>> Subject: [Intel-gfx] [PATCH] drm/i915/sdvo: fix panel_type initialization
>>
>> Commit 3f9ffce5765d ("drm/i915: Do panel VBT init early if the VBT declares an
>> explicit panel type") started using -1 as the value for unset panel_type. It gets
>> initialized in intel_panel_init_alloc(), but the SDVO code never calls it.
>>
>> Call intel_panel_init_alloc() to initialize the panel, including the panel_type.
>
> Change looks good to me. Thanks Jani for identifying the root cause and fixing the issue.
> Reviewed-by: Uma Shankar <uma.shankar@intel.com>

Thanks, pushed to drm-intel-next.

BR,
Jani.

>
>> Reported-by: Tomi Leppänen <tomi@tomin.site>
>> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8896
>> Fixes: 3f9ffce5765d ("drm/i915: Do panel VBT init early if the VBT declares an explicit
>> panel type")
>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> Cc: <stable@vger.kernel.org> # v6.1+
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>>  drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.c
>> b/drivers/gpu/drm/i915/display/intel_sdvo.c
>> index 8298a86d1334..b4faf97936b9 100644
>> --- a/drivers/gpu/drm/i915/display/intel_sdvo.c
>> +++ b/drivers/gpu/drm/i915/display/intel_sdvo.c
>> @@ -2752,7 +2752,7 @@ static struct intel_sdvo_connector
>> *intel_sdvo_connector_alloc(void)
>>       __drm_atomic_helper_connector_reset(&sdvo_connector->base.base,
>>                                           &conn_state->base.base);
>>
>> -     INIT_LIST_HEAD(&sdvo_connector->base.panel.fixed_modes);
>> +     intel_panel_init_alloc(&sdvo_connector->base);
>>
>>       return sdvo_connector;
>>  }
>> --
>> 2.39.2
>

-- 
Jani Nikula, Intel Open Source Graphics Center

WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: "Shankar, Uma" <uma.shankar@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Tomi Leppänen" <tomi@tomin.site>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: RE: [Intel-gfx] [PATCH] drm/i915/sdvo: fix panel_type initialization
Date: Fri, 04 Aug 2023 18:03:21 +0300	[thread overview]
Message-ID: <87zg36u9xi.fsf@intel.com> (raw)
In-Reply-To: <CY5PR11MB634423568E25C9A4DF005C1DF409A@CY5PR11MB6344.namprd11.prod.outlook.com>

On Fri, 04 Aug 2023, "Shankar, Uma" <uma.shankar@intel.com> wrote:
>> -----Original Message-----
>> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Jani Nikula
>> Sent: Thursday, August 3, 2023 5:57 PM
>> To: intel-gfx@lists.freedesktop.org
>> Cc: Nikula, Jani <jani.nikula@intel.com>; Tomi Leppänen <tomi@tomin.site>;
>> stable@vger.kernel.org
>> Subject: [Intel-gfx] [PATCH] drm/i915/sdvo: fix panel_type initialization
>>
>> Commit 3f9ffce5765d ("drm/i915: Do panel VBT init early if the VBT declares an
>> explicit panel type") started using -1 as the value for unset panel_type. It gets
>> initialized in intel_panel_init_alloc(), but the SDVO code never calls it.
>>
>> Call intel_panel_init_alloc() to initialize the panel, including the panel_type.
>
> Change looks good to me. Thanks Jani for identifying the root cause and fixing the issue.
> Reviewed-by: Uma Shankar <uma.shankar@intel.com>

Thanks, pushed to drm-intel-next.

BR,
Jani.

>
>> Reported-by: Tomi Leppänen <tomi@tomin.site>
>> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8896
>> Fixes: 3f9ffce5765d ("drm/i915: Do panel VBT init early if the VBT declares an explicit
>> panel type")
>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> Cc: <stable@vger.kernel.org> # v6.1+
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>>  drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.c
>> b/drivers/gpu/drm/i915/display/intel_sdvo.c
>> index 8298a86d1334..b4faf97936b9 100644
>> --- a/drivers/gpu/drm/i915/display/intel_sdvo.c
>> +++ b/drivers/gpu/drm/i915/display/intel_sdvo.c
>> @@ -2752,7 +2752,7 @@ static struct intel_sdvo_connector
>> *intel_sdvo_connector_alloc(void)
>>       __drm_atomic_helper_connector_reset(&sdvo_connector->base.base,
>>                                           &conn_state->base.base);
>>
>> -     INIT_LIST_HEAD(&sdvo_connector->base.panel.fixed_modes);
>> +     intel_panel_init_alloc(&sdvo_connector->base);
>>
>>       return sdvo_connector;
>>  }
>> --
>> 2.39.2
>

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2023-08-04 15:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 12:27 [Intel-gfx] [PATCH] drm/i915/sdvo: fix panel_type initialization Jani Nikula
2023-08-03 12:27 ` Jani Nikula
2023-08-03 13:54 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-08-03 13:54 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-08-03 14:10 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-08-03 19:32 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-08-04  7:51 ` [Intel-gfx] [PATCH] " Shankar, Uma
2023-08-04  7:51   ` Shankar, Uma
2023-08-04 15:03   ` Jani Nikula [this message]
2023-08-04 15:03     ` Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zg36u9xi.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stable@vger.kernel.org \
    --cc=tomi@tomin.site \
    --cc=uma.shankar@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.