public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] i915/pm_rpm: Probe connectors to run standalone
Date: Mon, 27 May 2019 13:56:48 +0300	[thread overview]
Message-ID: <20190527105648.GA21231@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20190524213942.18772-1-chris@chris-wilson.co.uk>

On Fri, May 24, 2019 at 10:39:42PM +0100, Chris Wilson wrote:
> In order to run as a standalone test (i.e. immediately after booting a
> device), we need to explicitly probe the connectors.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Good to not depend on a preceding (cached) state:
Reviewed-by: Imre Deak <imre.deak@intel.com>

Btw, the driver does an initial probing during loading via
poll_init_work, can you confirm that the point here is that you don't
want to depend on that, since it happens asynchronously?

> ---
>  tests/i915/i915_pm_rpm.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
> index a2c9d0ede..2f7e30592 100644
> --- a/tests/i915/i915_pm_rpm.c
> +++ b/tests/i915/i915_pm_rpm.c
> @@ -394,8 +394,9 @@ static void init_mode_set_data(struct mode_set_data *data)
>  	if (data->res) {
>  		igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
>  		for (int i = 0; i < data->res->count_connectors; i++) {
> -			data->connectors[i] = drmModeGetConnectorCurrent(drm_fd,
> -									 data->res->connectors[i]);
> +			data->connectors[i] =
> +				drmModeGetConnector(drm_fd,
> +						    data->res->connectors[i]);
>  			data->edids[i] = get_connector_edid(data->connectors[i], i);
>  		}
>  
> -- 
> 2.20.1
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2019-05-27 10:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-24 21:39 [igt-dev] [PATCH i-g-t] i915/pm_rpm: Probe connectors to run standalone Chris Wilson
2019-05-26 10:42 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/pm_rpm: Probe connectors to run standalone (rev2) Patchwork
2019-05-26 14:24 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-05-27 10:56 ` Imre Deak [this message]
2019-05-27 11:04   ` [igt-dev] [PATCH i-g-t] i915/pm_rpm: Probe connectors to run standalone Chris Wilson
2019-05-27 12:12     ` Imre Deak
  -- strict thread matches above, loose matches on Subject: below --
2019-04-05  8:36 Chris Wilson

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=20190527105648.GA21231@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox