Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Juha-Pekka Heikkilä" <juhapekka.heikkila@gmail.com>
To: Swati Sharma <swati2.sharma@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 3/3] tests/intel/kms_hdmi_audio_bw: Gate hibernate test
Date: Wed, 25 Nov 2026 13:19:02 +0200	[thread overview]
Message-ID: <ec5ffd49-73bc-44d3-abcf-152ab39f9922@gmail.com> (raw)
In-Reply-To: <20261120134400.1888895-4-swati2.sharma@intel.com>

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>

On 20/11/2026 15.44, Swati Sharma wrote:
> Require the -r option to run the suspend-to-disk audio recovery test.
> This keeps the full hibernate cycle opt-in while leaving other recovery
> tests unchanged.
> 
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> ---
>   tests/intel/kms_hdmi_audio_bw.c | 31 +++++++++++++++++++++++++++----
>   1 file changed, 27 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/intel/kms_hdmi_audio_bw.c b/tests/intel/kms_hdmi_audio_bw.c
> index 31a7f2949..eb34acd04 100644
> --- a/tests/intel/kms_hdmi_audio_bw.c
> +++ b/tests/intel/kms_hdmi_audio_bw.c
> @@ -40,7 +40,7 @@
>    * arg[1]:
>    *
>    * @mem: Suspend to memory, respecting the system's mem_sleep default
> - * @disk: Suspend to disk (hibernate)
> + * @disk: Suspend to disk (hibernate), enabled with -r
>    *
>    * SUBTEST: dpms-audio-recovery
>    * Description: Validate audio state restoration after a DPMS off/on cycle
> @@ -58,6 +58,7 @@ typedef struct {
>   	igt_output_t *output;
>   	igt_crtc_t *crtc;
>   	struct igt_fb fb;
> +	bool do_hibernate;
>   } data_t;
>   
>   /* All sample rates declared in the EDID SAD */
> @@ -552,10 +553,29 @@ static void test_audio_recovery(data_t *data, enum igt_suspend_state state,
>   	cleanup_connector(data);
>   }
>   
> -int igt_main()
> +static int opt_handler(int opt, int opt_index, void *opt_data)
>   {
> -	data_t data = {};
> +	data_t *data = opt_data;
>   
> +	switch (opt) {
> +	case 'r':
> +		data->do_hibernate = true;
> +		break;
> +	default:
> +		return IGT_OPT_HANDLER_ERROR;
> +	}
> +
> +	return IGT_OPT_HANDLER_SUCCESS;
> +}
> +
> +static data_t data;
> +
> +static const char *help_str =
> +"  -r\t\tEnable the full suspend-to-disk audio recovery test\n"
> +;
> +
> +int igt_main_args("r", NULL, help_str, opt_handler, &data)
> +{
>   	igt_fixture() {
>   		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
>   		igt_require(is_intel_device(data.drm_fd));
> @@ -586,8 +606,11 @@ int igt_main()
>   
>   	igt_describe("Validate audio recovery after suspend to disk "
>   		     "(hibernate) with constrained hblank.");
> -	igt_subtest("suspend-disk-audio-recovery")
> +	igt_subtest("suspend-disk-audio-recovery") {
> +		igt_require_f(data.do_hibernate,
> +			      "Run with -r to enable full hibernate\n");
>   		test_audio_recovery(&data, SUSPEND_STATE_DISK, false);
> +	}
>   
>   	igt_describe("Validate audio recovery after a DPMS off/on cycle "
>   		     "with constrained hblank.");


  reply	other threads:[~2026-11-25 11:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 13:43 [PATCH i-g-t 0/3] Add hibernate autoresume helper and test coverage Swati Sharma
2026-11-20 13:43 ` [PATCH i-g-t 1/3] lib/igt_aux: Add hibernate autoresume helper Swati Sharma
2026-11-25 11:18   ` Juha-Pekka Heikkilä
2026-11-20 13:43 ` [PATCH i-g-t 2/3] tests/intel/kms_hdmi_audio_bw: Use hibernate helper Swati Sharma
2026-11-25 11:18   ` Juha-Pekka Heikkilä
2026-11-20 13:44 ` [PATCH i-g-t 3/3] tests/intel/kms_hdmi_audio_bw: Gate hibernate test Swati Sharma
2026-11-25 11:19   ` Juha-Pekka Heikkilä [this message]
2026-11-20 20:42 ` ✓ Xe.CI.BAT: success for Add hibernate autoresume helper and test coverage Patchwork
2026-11-20 21:08 ` ✓ i915.CI.BAT: " Patchwork
2026-11-22  0:37 ` ✗ i915.CI.Full: failure " Patchwork
2026-11-22 14:10 ` ✗ Xe.CI.FULL: " 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=ec5ffd49-73bc-44d3-abcf-152ab39f9922@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=swati2.sharma@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox