All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: petri.latvala@intel.com, Chris Wilson <chris.p.wilson@intel.com>,
	igt-dev@lists.freedesktop.org, badal.nilawar@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t v3 4/4] i915_pm_rpm: rpm resume by user forcewake
Date: Wed, 18 May 2022 13:02:11 -0700	[thread overview]
Message-ID: <87bkvuzk1o.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20220518165454.17352-5-anshuman.gupta@intel.com>

On Wed, 18 May 2022 09:54:54 -0700, Anshuman Gupta wrote:
>

Hi Anshuman,

> +static void
> +enable_one_screen_or_forcewake_get_and_wait(struct mode_set_data *data)
> +{
> +	bool headless;
> +
> +	/* Try to resume by enabling any type of display */
> +	headless = !enable_one_screen_with_type(data, SCREEN_TYPE_ANY);
> +
> +	/*
> +	 * Get User Forcewake to trigger rpm resume in case of headless
> +	 * as well as no display being connected.
> +	 */
> +	if (headless) {
> +		data->fw_fd = igt_open_forcewake_handle(drm_fd);
> +		igt_require(data->fw_fd > 0);
> +	}
> +	igt_assert(wait_for_active());
> +}
> +
> +static void clear_forcewake(struct mode_set_data *data)

I was trying to merge this as is but because of other things that went in
meanwhile this patch doesn't apply now. Could you please quickly re-spin
it?

Also, I was going to merge it anyway, but since we are respinning maybe
s/clear_forcewake/forcewake_put/ since we have now changed the naming for
these functions?

Thanks.
--
Ashutosh

> +{
> +	if (data->fw_fd <= 0)
> +		return;
> +
> +	data->fw_fd = close(data->fw_fd);
> +	igt_assert_eq(data->fw_fd, 0);
> +}
> +
> +static void
> +disable_all_screens_or_forcewake_put_and_wait(struct mode_set_data *data)
> +{
> +	clear_forcewake(data);
> +	disable_all_screens(data);
> +	igt_assert(wait_for_suspended());
> +}

  reply	other threads:[~2022-05-18 20:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-18 16:54 [igt-dev] [PATCH i-g-t v3 0/4] RPM Test on HEADLESS Anshuman Gupta
2022-05-18 16:54 ` [igt-dev] [PATCH i-g-t v3 1/4] test: i915_pm_rpm: init devid in setup_envirnoment Anshuman Gupta
2022-05-18 16:54 ` [igt-dev] [PATCH i-g-t v3 2/4] i915_pm_rpm: s/display_disabled/display_enabled Anshuman Gupta
2022-05-18 16:54 ` [igt-dev] [PATCH i-g-t v3 3/4] test: i915_pm_rpm: conditional initialization of igt_display_t Anshuman Gupta
2022-05-18 16:54 ` [igt-dev] [PATCH i-g-t v3 4/4] i915_pm_rpm: rpm resume by user forcewake Anshuman Gupta
2022-05-18 20:02   ` Dixit, Ashutosh [this message]
2022-05-18 17:43 ` [igt-dev] ✓ Fi.CI.BAT: success for RPM Test on HEADLESS (rev3) Patchwork
2022-05-18 20:57 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2022-05-19 11:35 [igt-dev] [PATCH i-g-t v3 0/4] RPM Test on HEADLESS Anshuman Gupta
2022-05-19 11:35 ` [igt-dev] [PATCH i-g-t v3 4/4] i915_pm_rpm: rpm resume by user forcewake Anshuman Gupta

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=87bkvuzk1o.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=chris.p.wilson@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@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.