All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gupta, Anshuman" <anshuman.gupta@intel.com>
To: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] i915_pm_rpm: Skip i2c read test for DP MST connectors
Date: Tue, 8 Mar 2022 12:22:39 +0000	[thread overview]
Message-ID: <1c71322dfdea44d2a8bc2c68b7b54943@intel.com> (raw)
In-Reply-To: <20220308091227.272415-1-bhanuprakash.modem@intel.com>



> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>
> Sent: Tuesday, March 8, 2022 2:42 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Modem, Bhanuprakash <bhanuprakash.modem@intel.com>; Gupta,
> Anshuman <anshuman.gupta@intel.com>
> Subject: [PATCH i-g-t] i915_pm_rpm: Skip i2c read test for DP MST connectors
> 
> IGT finds the i2c edid over drm i2c node, which will actually the particular DDI or
> TC port.
> 
> In case of DP MST there will be one static primary connector, that is associated
> with actual DDI/PORT and igt will read a valid edid on the parent/primary
> connector but at drm level that connector will be disconnected. Hence endup
> with EDID mismatch on connector.
> 
> This patch will ignore the DP-MST connectors.
> 
> Cc: Anshuman Gupta <anshuman.gupta@intel.com>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> ---
>  tests/i915/i915_pm_rpm.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c index
> 1df0ed2223..2b687e63c0 100644
> --- a/tests/i915/i915_pm_rpm.c
> +++ b/tests/i915/i915_pm_rpm.c
> @@ -670,6 +670,13 @@ static void format_hex_string(const unsigned char
> edid[static EDID_BLOCK_SIZE],
>  		sprintf(buf+i*5, "0x%02x ", edid[i]);  }
> 
> +static bool is_mst_connector(int fd, uint32_t connector_id) {
> +	return kmstest_get_property(fd, connector_id,
> +				    DRM_MODE_OBJECT_CONNECTOR,
> +				    "PATH", NULL, NULL, NULL);
> +}
> +
>  static void test_i2c(struct mode_set_data *data)  {
>  	bool edid_mistmach_i2c_vs_drm = false; @@ -690,6 +697,9 @@ static
> void test_i2c(struct mode_set_data *data)
> 
>  		bool edids_equal;
> 
> +		if (is_mst_connector(drm_fd, data->connectors[i]-
> >connector_id))
> +			continue;
Presumably this will ignore the static DP-MST connector and dynamic DP-MST connector as well?
If above is true then I believe we need a one more check see if connector is disconnected before ignoring 
the connector. I mean for dynamic MST connector if those are connected, we should not be losing the coverage.

Thanks,
Anshuman Gupta.
> +
>  		/* We fail to detect some VGA monitors using our i2c method.
> If you look
>  		 * at the dmesg of these cases, you'll see the Kernel complaining
> about
>  		 * the EDID reading mostly FFs and then disabling bit-banging.
> Since we
> --
> 2.35.1

  reply	other threads:[~2022-03-08 12:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-08  9:12 [igt-dev] [PATCH i-g-t] i915_pm_rpm: Skip i2c read test for DP MST connectors Bhanuprakash Modem
2022-03-08 12:22 ` Gupta, Anshuman [this message]
2022-03-08 15:22 ` [igt-dev] [v2 " Bhanuprakash Modem
2022-03-08 16:08   ` Gupta, Anshuman
2022-03-08 22:04 ` [igt-dev] ✓ Fi.CI.BAT: success for i915_pm_rpm: Skip i2c read test for DP MST connectors (rev2) Patchwork
2022-03-09  4:53 ` [igt-dev] ✓ 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=1c71322dfdea44d2a8bc2c68b7b54943@intel.com \
    --to=anshuman.gupta@intel.com \
    --cc=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.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.