From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 01/19] drm/edid: reset display info in drm_add_edid_modes() for NULL edid
Date: Tue, 26 Apr 2022 21:52:56 +0300 [thread overview]
Message-ID: <Ymg/iPJeQ2o9Zj2k@intel.com> (raw)
In-Reply-To: <595358f27ca2abb29ce6eaf855e106ff19df87fa.1649948562.git.jani.nikula@intel.com>
On Thu, Apr 14, 2022 at 06:06:44PM +0300, Jani Nikula wrote:
> If a NULL edid gets passed to drm_add_edid_modes(), we should probably
> also reset the display info.
One concern I had with this is resetting of eg. {width,height}_mm
which might have been populated by intel_panel_add_fixed_mode().
But I think that might already happen anyway through one of the
other codepaths that call drm_reset_display_info() so probably not
something that is made any worse by this patch.
IIRC at one point I tried to startd cleaning up the display_info
mess a bit but the patches got stuck in some silly bikeshed
so I gave up.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/drm_edid.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index 324ce8467915..4758e78fad82 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -5721,6 +5721,7 @@ static int drm_edid_connector_update(struct drm_connector *connector,
> u32 quirks;
>
> if (edid == NULL) {
> + drm_reset_display_info(connector);
> clear_eld(connector);
> return 0;
> }
> --
> 2.30.2
--
Ville Syrjälä
Intel
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 01/19] drm/edid: reset display info in drm_add_edid_modes() for NULL edid
Date: Tue, 26 Apr 2022 21:52:56 +0300 [thread overview]
Message-ID: <Ymg/iPJeQ2o9Zj2k@intel.com> (raw)
In-Reply-To: <595358f27ca2abb29ce6eaf855e106ff19df87fa.1649948562.git.jani.nikula@intel.com>
On Thu, Apr 14, 2022 at 06:06:44PM +0300, Jani Nikula wrote:
> If a NULL edid gets passed to drm_add_edid_modes(), we should probably
> also reset the display info.
One concern I had with this is resetting of eg. {width,height}_mm
which might have been populated by intel_panel_add_fixed_mode().
But I think that might already happen anyway through one of the
other codepaths that call drm_reset_display_info() so probably not
something that is made any worse by this patch.
IIRC at one point I tried to startd cleaning up the display_info
mess a bit but the patches got stuck in some silly bikeshed
so I gave up.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/drm_edid.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index 324ce8467915..4758e78fad82 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -5721,6 +5721,7 @@ static int drm_edid_connector_update(struct drm_connector *connector,
> u32 quirks;
>
> if (edid == NULL) {
> + drm_reset_display_info(connector);
> clear_eld(connector);
> return 0;
> }
> --
> 2.30.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2022-04-26 18:53 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 15:06 [Intel-gfx] [PATCH 00/19] drm/edid: CEA data block iterators, and more Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 01/19] drm/edid: reset display info in drm_add_edid_modes() for NULL edid Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-26 18:52 ` Ville Syrjälä [this message]
2022-04-26 18:52 ` Ville Syrjälä
2022-04-14 15:06 ` [Intel-gfx] [PATCH 02/19] drm/edid: check for HF-SCDB block Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-26 19:07 ` [Intel-gfx] " Ville Syrjälä
2022-04-26 19:07 ` Ville Syrjälä
2022-04-14 15:06 ` [Intel-gfx] [PATCH 03/19] drm/edid: clean up CTA data block tag definitions Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 04/19] drm/edid: add iterator for EDID base and extension blocks Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 05/19] drm/edid: add iterator for CTA data blocks Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 06/19] drm/edid: clean up cea_db_is_*() functions Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-26 19:10 ` [Intel-gfx] " Ville Syrjälä
2022-04-26 19:10 ` Ville Syrjälä
2022-04-14 15:06 ` [Intel-gfx] [PATCH 07/19] drm/edid: convert add_cea_modes() to use cea db iter Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 08/19] drm/edid: convert drm_edid_to_speaker_allocation() " Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 09/19] drm/edid: convert drm_edid_to_sad() " Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 10/19] drm/edid: convert drm_detect_hdmi_monitor() " Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 11/19] drm/edid: convert drm_detect_monitor_audio() " Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 12/19] drm/edid: convert drm_parse_cea_ext() " Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 13/19] drm/edid: convert drm_edid_to_eld() " Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 14/19] drm/edid: sunset the old unused cea data block iterators Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 15/19] drm/edid: restore some type safety to cea_db_*() functions Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:06 ` [Intel-gfx] [PATCH 16/19] drm/edid: detect basic audio in all CEA extensions Jani Nikula
2022-04-14 15:06 ` Jani Nikula
2022-04-14 15:07 ` [Intel-gfx] [PATCH 17/19] drm/edid: detect color formats and CTA revision in all CTA extensions Jani Nikula
2022-04-14 15:07 ` Jani Nikula
2022-04-14 15:07 ` [Intel-gfx] [PATCH 18/19] drm/edid: skip CTA extension scan in drm_edid_to_eld() just for CTA rev Jani Nikula
2022-04-14 15:07 ` Jani Nikula
2022-04-14 15:07 ` [Intel-gfx] [PATCH 19/19] drm/edid: sunset drm_find_cea_extension() Jani Nikula
2022-04-14 15:07 ` Jani Nikula
2022-04-14 15:33 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/edid: CEA data block iterators, and more Patchwork
2022-04-14 15:57 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2022-04-14 17:10 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/edid: CEA data block iterators, and more (rev2) Patchwork
2022-04-14 17:35 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-04-14 20:55 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=Ymg/iPJeQ2o9Zj2k@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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.