Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Swati Sharma <swati2.sharma@intel.com>, <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t 5/5] tests/intel/kms_pm_dc: Add XE support
Date: Mon, 11 Sep 2023 20:30:15 +0530	[thread overview]
Message-ID: <af67e09f-723d-cc3d-0dbd-05768a83fa0c@intel.com> (raw)
In-Reply-To: <20230908175039.1291593-6-swati2.sharma@intel.com>

Hi Swati,

On Fri-08-09-2023 11:20 pm, Swati Sharma wrote:
> Add XE driver support for kms pm tests.
> 
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> ---
>   tests/intel/kms_pm_dc.c | 19 +++++++++++--------
>   1 file changed, 11 insertions(+), 8 deletions(-)
> 
> diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
> index cbb419e12..63999e813 100644
> --- a/tests/intel/kms_pm_dc.c
> +++ b/tests/intel/kms_pm_dc.c
> @@ -36,6 +36,9 @@
>   #include "limits.h"
>   #include "time.h"
>   #include "igt_pm.h"
> +#include "xe/xe_ioctl.h"

This headerfile is not required.

> +#include "xe/xe_query.h"
> +
>   /**
>    * TEST: kms pm dc
>    * Category: Display
> @@ -44,7 +47,7 @@
>    * SUBTEST: dc3co-vpb-simulation
>    * Description: Make sure that system enters DC3CO when PSR2 is active and system
>    *              is in SLEEP state
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: dc3co, pm_dc, psr2
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -53,7 +56,7 @@
>    * SUBTEST: dc5-dpms
>    * Description: Validate display engine entry to DC5 state while all connectors's
>    *              DPMS property set to OFF
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: dpms, pm_dc
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -62,7 +65,7 @@
>    * SUBTEST: dc5-dpms-negative
>    * Description: Validate negative scenario of DC5 display engine entry to DC5 state
>    *              while all connectors's DPMS property set to ON
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: dpms, pm_dc
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -70,7 +73,7 @@
>    *
>    * SUBTEST: dc5-psr
>    * Description: This test validates display engine entry to DC5 state while PSR is active
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: pm_dc, psr
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -79,7 +82,7 @@
>    * SUBTEST: dc6-dpms
>    * Description: Validate display engine entry to DC6 state while all connectors's
>    *              DPMS property set to OFF
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: dpms, pm_dc
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -87,7 +90,7 @@
>    *
>    * SUBTEST: dc6-psr
>    * Description: This test validates display engine entry to DC6 state while PSR is active
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: pm_dc, psr
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -95,7 +98,7 @@
>    *
>    * SUBTEST: dc9-dpms
>    * Description: This test validates display engine entry to DC9 state
> - * Driver requirement: i915
> + * Driver requirement: i915, xe
>    * Functionality: dpms, pm_dc
>    * Mega feature: Display Power
>    * Run type: FULL
> @@ -734,7 +737,7 @@ igt_main

Still, it is i915 specific only, since you are trying to open i915 
device. Probably, you need a change as below:

-     data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+     data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);

- Bhanu

>   
>   	igt_describe("This test validates display engine entry to DC9 state");
>   	igt_subtest("dc9-dpms") {
> -		is_dgfx = gem_has_lmem(data.drm_fd);
> +		is_dgfx = is_xe_device(data.drm_fd) ? xe_has_vram(data.drm_fd) : gem_has_lmem(data.drm_fd);
>   		if (!is_dgfx)
>   			igt_require_f(igt_pm_pc8_plus_residencies_enabled(data.msr_fd),
>   				      "PC8+ residencies not supported\n");

  reply	other threads:[~2023-09-11 15:01 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08 17:50 [igt-dev] [PATCH i-g-t 0/5] Add XE support for display PM tests Swati Sharma
2023-09-08 17:50 ` [igt-dev] [PATCH i-g-t 1/5] tests/intel/kms_pm_backlight: Add XE support Swati Sharma
2023-09-11 14:42   ` Modem, Bhanuprakash
2023-09-08 17:50 ` [igt-dev] [PATCH i-g-t 2/5] tests/intel/kms_pm_lpsp: " Swati Sharma
2023-09-11 14:44   ` Modem, Bhanuprakash
2023-09-11 15:08     ` Sharma, Swati2
2023-09-13 10:42       ` Modem, Bhanuprakash
2023-09-08 17:50 ` [igt-dev] [PATCH i-g-t 3/5] tests/intel/kms_pm_dc: Use linear modifier to set primary plane Swati Sharma
2023-09-11 14:45   ` Modem, Bhanuprakash
2023-09-11 15:10     ` Sharma, Swati2
2023-09-13 10:43       ` Modem, Bhanuprakash
2023-09-08 17:50 ` [igt-dev] [PATCH i-g-t 4/5] tests/intel/kms_pm_dc: Use gem_has_lmem() Swati Sharma
2023-09-11 14:51   ` Modem, Bhanuprakash
2023-09-11 15:12     ` Sharma, Swati2
2023-09-08 17:50 ` [igt-dev] [PATCH i-g-t 5/5] tests/intel/kms_pm_dc: Add XE support Swati Sharma
2023-09-11 15:00   ` Modem, Bhanuprakash [this message]
2023-09-11 15:13     ` Sharma, Swati2
2023-09-08 19:19 ` [igt-dev] ✗ GitLab.Pipeline: warning for Add XE support for display PM tests Patchwork
2023-09-08 19:56 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-09-08 20:25 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork
2023-09-09  0:50 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-09-14 14:03 [igt-dev] [PATCH i-g-t 0/5] " Swati Sharma
2023-09-14 14:04 ` [igt-dev] [PATCH i-g-t 5/5] tests/intel/kms_pm_dc: Add XE support Swati Sharma
2023-09-14 14:47   ` Modem, Bhanuprakash

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=af67e09f-723d-cc3d-0dbd-05768a83fa0c@intel.com \
    --to=bhanuprakash.modem@intel.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