All of lore.kernel.org
 help / color / mirror / Atom feed
From: Claudio Suarez <cssk@net-c.es>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, intel-gfx@lists.freedesktop.org,
	"David Airlie" <airlied@linux.ie>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jani Nikula" <jani.nikula@linux.intel.com>,
	"Joonas Lahtinen" <joonas.lahtinen@linux.intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Pan Xinhui" <Xinhui.Pan@amd.com>,
	"Emma Anholt" <emma@anholt.net>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Patrik Jakobsson" <patrik.r.jakobsson@gmail.com>,
	"Jingoo Han" <jingoohan1@gmail.com>,
	"Rob Clark" <robdclark@gmail.com>, "Sean Paul" <sean@poorly.run>,
	linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org,
	"Chen-Yu Tsai" <wens@csie.org>,
	"Sandy Huang" <hjc@rock-chips.com>,
	heiko@sntech.de, "Neil Armstrong" <narmstrong@baylibre.com>,
	"Robert Foss" <robert.foss@linaro.org>,
	"Ben Skeggs" <bskeggs@redhat.com>,
	nouveau@lists.freedesktop.org
Subject: Re: [PATCH v3 13/13] drm/i915: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi
Date: Fri, 22 Oct 2021 12:25:33 +0200	[thread overview]
Message-ID: <YXKRnUHWuboQKBF1@zorro.micasa> (raw)
In-Reply-To: <YXFwB7rN4bvR0Z+m@intel.com>

On Thu, Oct 21, 2021 at 04:49:59PM +0300, Ville Syrjälä wrote:
> On Wed, Oct 20, 2021 at 12:51:21AM +0200, Claudio Suarez wrote:
> > drm_get_edid() internally calls to drm_connector_update_edid_property()
> > and then drm_add_display_info(), which parses the EDID.
> > This happens in the function intel_hdmi_set_edid() and
> > intel_sdvo_tmds_sink_detect() (via intel_sdvo_get_edid()).
> > 
> > Once EDID is parsed, the monitor HDMI support information is available
> > through drm_display_info.is_hdmi. Retriving the same information with
> > drm_detect_hdmi_monitor() is less efficient. Change to
> > drm_display_info.is_hdmi
> 
> I meant we need to examine all call chains that can lead to
> .detect() to make sure all of them do in fact update the
> display_info beforehand.

Well, I studied it carefully and, yes, all call chains that can lead to
drm_display_info.is_hdmi / drm_detect_hdmi_monitor() update display_info
beforehand. In the case that this doesn't happen, the code is unchanged.

Do you want I explain the changes in the code here again ? Or do you want
to me change the commit message to be more clear ? In the first case, I can
write here a detailed explanation. In the second case I can make a longer commit
message.

Or both?

Best Regards,
Claudio Suarez.



WARNING: multiple messages have this Message-ID (diff)
From: Claudio Suarez <cssk@net-c.es>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, intel-gfx@lists.freedesktop.org,
	"David Airlie" <airlied@linux.ie>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jani Nikula" <jani.nikula@linux.intel.com>,
	"Joonas Lahtinen" <joonas.lahtinen@linux.intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Pan Xinhui" <Xinhui.Pan@amd.com>,
	"Emma Anholt" <emma@anholt.net>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Patrik Jakobsson" <patrik.r.jakobsson@gmail.com>,
	"Jingoo Han" <jingoohan1@gmail.com>,
	"Rob Clark" <robdclark@gmail.com>, "Sean Paul" <sean@poorly.run>,
	linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org,
	"Chen-Yu Tsai" <wens@csie.org>,
	"Sandy Huang" <hjc@rock-chips.com>,
	heiko@sntech.de, "Neil Armstrong" <narmstrong@baylibre.com>,
	"Robert Foss" <robert.foss@linaro.org>,
	"Ben Skeggs" <bskeggs@redhat.com>,
	nouveau@lists.freedesktop.org
Subject: Re: [Nouveau] [PATCH v3 13/13] drm/i915: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi
Date: Fri, 22 Oct 2021 12:25:33 +0200	[thread overview]
Message-ID: <YXKRnUHWuboQKBF1@zorro.micasa> (raw)
In-Reply-To: <YXFwB7rN4bvR0Z+m@intel.com>

On Thu, Oct 21, 2021 at 04:49:59PM +0300, Ville Syrjälä wrote:
> On Wed, Oct 20, 2021 at 12:51:21AM +0200, Claudio Suarez wrote:
> > drm_get_edid() internally calls to drm_connector_update_edid_property()
> > and then drm_add_display_info(), which parses the EDID.
> > This happens in the function intel_hdmi_set_edid() and
> > intel_sdvo_tmds_sink_detect() (via intel_sdvo_get_edid()).
> > 
> > Once EDID is parsed, the monitor HDMI support information is available
> > through drm_display_info.is_hdmi. Retriving the same information with
> > drm_detect_hdmi_monitor() is less efficient. Change to
> > drm_display_info.is_hdmi
> 
> I meant we need to examine all call chains that can lead to
> .detect() to make sure all of them do in fact update the
> display_info beforehand.

Well, I studied it carefully and, yes, all call chains that can lead to
drm_display_info.is_hdmi / drm_detect_hdmi_monitor() update display_info
beforehand. In the case that this doesn't happen, the code is unchanged.

Do you want I explain the changes in the code here again ? Or do you want
to me change the commit message to be more clear ? In the first case, I can
write here a detailed explanation. In the second case I can make a longer commit
message.

Or both?

Best Regards,
Claudio Suarez.



WARNING: multiple messages have this Message-ID (diff)
From: Claudio Suarez <cssk@net-c.es>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
	linux-tegra@vger.kernel.org, intel-gfx@lists.freedesktop.org,
	"David Airlie" <airlied@linux.ie>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
	"Jani Nikula" <jani.nikula@linux.intel.com>,
	"Joonas Lahtinen" <joonas.lahtinen@linux.intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Pan Xinhui" <Xinhui.Pan@amd.com>,
	"Emma Anholt" <emma@anholt.net>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Patrik Jakobsson" <patrik.r.jakobsson@gmail.com>,
	"Jingoo Han" <jingoohan1@gmail.com>,
	"Rob Clark" <robdclark@gmail.com>, "Sean Paul" <sean@poorly.run>,
	linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org,
	"Chen-Yu Tsai" <wens@csie.org>,
	"Sandy Huang" <hjc@rock-chips.com>,
	heiko@sntech.de, "Neil Armstrong" <narmstrong@baylibre.com>,
	"Robert Foss" <robert.foss@linaro.org>,
	"Ben Skeggs" <bskeggs@redhat.com>,
	nouveau@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v3 13/13] drm/i915: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi
Date: Fri, 22 Oct 2021 12:25:33 +0200	[thread overview]
Message-ID: <YXKRnUHWuboQKBF1@zorro.micasa> (raw)
In-Reply-To: <YXFwB7rN4bvR0Z+m@intel.com>

On Thu, Oct 21, 2021 at 04:49:59PM +0300, Ville Syrjälä wrote:
> On Wed, Oct 20, 2021 at 12:51:21AM +0200, Claudio Suarez wrote:
> > drm_get_edid() internally calls to drm_connector_update_edid_property()
> > and then drm_add_display_info(), which parses the EDID.
> > This happens in the function intel_hdmi_set_edid() and
> > intel_sdvo_tmds_sink_detect() (via intel_sdvo_get_edid()).
> > 
> > Once EDID is parsed, the monitor HDMI support information is available
> > through drm_display_info.is_hdmi. Retriving the same information with
> > drm_detect_hdmi_monitor() is less efficient. Change to
> > drm_display_info.is_hdmi
> 
> I meant we need to examine all call chains that can lead to
> .detect() to make sure all of them do in fact update the
> display_info beforehand.

Well, I studied it carefully and, yes, all call chains that can lead to
drm_display_info.is_hdmi / drm_detect_hdmi_monitor() update display_info
beforehand. In the case that this doesn't happen, the code is unchanged.

Do you want I explain the changes in the code here again ? Or do you want
to me change the commit message to be more clear ? In the first case, I can
write here a detailed explanation. In the second case I can make a longer commit
message.

Or both?

Best Regards,
Claudio Suarez.



  reply	other threads:[~2021-10-22 11:36 UTC|newest]

Thread overview: 107+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-16 18:42 [PATCH v2 00/13] replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi Claudio Suarez
2021-10-16 18:42 ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42 ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 01/13] gpu/drm: make drm_add_edid_modes() consistent when updating connector->display_info Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-19 18:35   ` Ville Syrjälä
2021-10-19 18:35     ` [Intel-gfx] " Ville Syrjälä
2021-10-19 18:35     ` [Nouveau] " Ville Syrjälä
2021-10-19 22:40     ` Claudio Suarez
2021-10-19 22:40       ` [Intel-gfx] " Claudio Suarez
2021-10-19 22:40       ` [Nouveau] " Claudio Suarez
2021-10-19 22:49     ` [PATCH v3 " Claudio Suarez
2021-10-19 22:49       ` [Intel-gfx] " Claudio Suarez
2021-10-19 22:49       ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 02/13] drm/vc4: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 03/13] drm/radeon: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 04/13] drm/tegra: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 05/13] drm/gma500: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 06/13] drm/exynos: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-26 22:28   ` Inki Dae
2021-10-26 22:28     ` [Intel-gfx] " Inki Dae
2021-10-26 22:28     ` [Nouveau] " Inki Dae
2021-10-26 23:13     ` Inki Dae
2021-11-02 12:34     ` Claudio Suarez
2021-11-02 12:34       ` Claudio Suarez
2021-11-02 12:34       ` [Intel-gfx] " Claudio Suarez
2021-11-02 12:34       ` Claudio Suarez
2021-11-02 12:34       ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 07/13] drm/msm: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-11-25 13:26   ` Dmitry Baryshkov
2021-11-25 13:26     ` [Intel-gfx] " Dmitry Baryshkov
2021-11-25 13:26     ` [Nouveau] " Dmitry Baryshkov
2021-10-16 18:42 ` [PATCH v2 08/13] drm/sun4i: " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 09/13] drm/sti: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 10/13] drm/rockchip: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 11/13] drm/bridge: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 12/13] drm/nouveau: " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42 ` [PATCH v2 13/13] drm/i915: " Claudio Suarez
2021-10-16 18:42   ` [Intel-gfx] " Claudio Suarez
2021-10-16 18:42   ` [Nouveau] " Claudio Suarez
2021-10-19 18:37   ` Ville Syrjälä
2021-10-19 18:37     ` [Intel-gfx] " Ville Syrjälä
2021-10-19 18:37     ` [Nouveau] " Ville Syrjälä
2021-10-19 22:51     ` [PATCH v3 " Claudio Suarez
2021-10-19 22:51       ` [Intel-gfx] " Claudio Suarez
2021-10-19 22:51       ` [Nouveau] " Claudio Suarez
2021-10-21 13:49       ` Ville Syrjälä
2021-10-21 13:49         ` [Intel-gfx] " Ville Syrjälä
2021-10-21 13:49         ` [Nouveau] " Ville Syrjälä
2021-10-22 10:25         ` Claudio Suarez [this message]
2021-10-22 10:25           ` [Intel-gfx] " Claudio Suarez
2021-10-22 10:25           ` [Nouveau] " Claudio Suarez
2021-10-22 12:01           ` Ville Syrjälä
2021-10-22 12:01             ` [Intel-gfx] " Ville Syrjälä
2021-10-22 12:01             ` [Nouveau] " Ville Syrjälä
2021-10-22 12:22             ` [Intel-gfx] " Ville Syrjälä
2021-10-22 12:22               ` [Nouveau] " Ville Syrjälä
2021-10-24 22:17               ` Claudio Suarez
2021-10-24 22:17                 ` [Nouveau] " Claudio Suarez
2021-11-02 12:56                 ` Claudio Suarez
2021-11-02 12:56                   ` Claudio Suarez
2021-11-02 12:56                   ` [Intel-gfx] " Claudio Suarez
2021-11-02 12:56                   ` Claudio Suarez
2021-11-02 12:56                   ` [Nouveau] " Claudio Suarez
2021-11-02 13:00                 ` [PATCH v4 " Claudio Suarez
2021-11-02 13:00                   ` Claudio Suarez
2021-11-02 13:00                   ` [Intel-gfx] " Claudio Suarez
2021-11-02 13:00                   ` Claudio Suarez
2021-11-02 13:00                   ` [Nouveau] " Claudio Suarez
2021-10-16 19:36 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi (rev2) Patchwork
2021-10-16 20:07 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-10-16 21:24 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-10-17 15:24 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi (rev3) Patchwork
2021-10-17 15:55 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-10-17 17:11 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-10-18  9:04   ` Claudio Suarez
2021-10-19 18:29     ` Ville Syrjälä
2021-10-19 23:15 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi (rev5) Patchwork
2021-10-19 23:46 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-10-20  4:20 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-10-20 15:41 ` [Intel-gfx] ✓ Fi.CI.IGT: success " Patchwork
2021-11-02 14:25 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi (rev6) Patchwork
2021-11-02 14:57 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-11-02 17:53 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=YXKRnUHWuboQKBF1@zorro.micasa \
    --to=cssk@net-c.es \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=Xinhui.Pan@amd.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bskeggs@redhat.com \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emma@anholt.net \
    --cc=freedreno@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=jingoohan1@gmail.com \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mripard@kernel.org \
    --cc=narmstrong@baylibre.com \
    --cc=nouveau@lists.freedesktop.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=robdclark@gmail.com \
    --cc=robert.foss@linaro.org \
    --cc=rodrigo.vivi@intel.com \
    --cc=sean@poorly.run \
    --cc=thierry.reding@gmail.com \
    --cc=ville.syrjala@linux.intel.com \
    --cc=wens@csie.org \
    /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.