Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Bernatowicz, Marcin" <marcin.bernatowicz@linux.intel.com>
To: Jakub Kolakowski <jakub1.kolakowski@intel.com>,
	igt-dev@lists.freedesktop.org
Cc: Adam Miszczak <adam.miszczak@linux.intel.com>,
	Lukasz Laguna <lukasz.laguna@intel.com>
Subject: Re: [PATCH i-g-t v2 2/2] tests/intel/xe_pm: Add a check for power management capability
Date: Mon, 17 Mar 2025 10:17:52 +0100	[thread overview]
Message-ID: <66d1d97a-9d73-4d87-91dd-00ab59a4a2d3@linux.intel.com> (raw)
In-Reply-To: <20250314112732.795523-3-jakub1.kolakowski@intel.com>



On 3/14/2025 12:27 PM, Jakub Kolakowski wrote:
> Add a check for power management capability of device tested in tests
> related to D3 states. Currently if test is started on configuration
> that does not support the PM capability it doesn't skip, instead
> depending on test it may fail, abort or timeout.
> With this change test will skip with a clear message why it did.
> 
> Cc: Adam Miszczak <adam.miszczak@linux.intel.com>
> Cc: Lukasz Laguna <lukasz.laguna@intel.com>
> Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
> Signed-off-by: Jakub Kolakowski <jakub1.kolakowski@intel.com>
> ---
>   tests/intel/xe_pm.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c
> index c2026474d..53792e1c6 100644
> --- a/tests/intel/xe_pm.c
> +++ b/tests/intel/xe_pm.c
> @@ -146,6 +146,10 @@ static void vram_d3cold_threshold_restore(int sig)
>   
>   static bool setup_d3(device_t device, enum igt_acpi_d_state state)
>   {
> +	

trailing whitespace

> +	igt_require_f(igt_has_pci_pm_capability(device.pci_root),
> +					"PCI power management capability not found\n");

Alignment should match open parenthesis

please run checkpatch

> +
>   	dpms_on_off(device, DRM_MODE_DPMS_OFF);
>   
>   	/*


  reply	other threads:[~2025-03-17  9:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-14 11:27 [PATCH i-g-t v2 0/2] Add a check for power management PCI capability Jakub Kolakowski
2025-03-14 11:27 ` [PATCH i-g-t v2 1/2] lib/igt_pm: Introduce helper to check for PM capability Jakub Kolakowski
2025-03-17  9:12   ` Bernatowicz, Marcin
2025-03-17 16:56   ` Kamil Konieczny
2025-03-14 11:27 ` [PATCH i-g-t v2 2/2] tests/intel/xe_pm: Add a check for power management capability Jakub Kolakowski
2025-03-17  9:17   ` Bernatowicz, Marcin [this message]
2025-03-14 22:49 ` ✓ Xe.CI.BAT: success for Add a check for power management PCI capability (rev3) Patchwork
2025-03-14 23:15 ` ✓ i915.CI.BAT: " Patchwork
2025-03-15  7:30 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-15 10:38 ` ✗ i915.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=66d1d97a-9d73-4d87-91dd-00ab59a4a2d3@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=adam.miszczak@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jakub1.kolakowski@intel.com \
    --cc=lukasz.laguna@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