Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Gupta, Anshuman" <anshuman.gupta@intel.com>
To: "Bhatt, Jigar" <jigar.bhatt@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Varide, Nischal" <nischal.varide@intel.com>,
	"Shankar, Uma" <uma.shankar@intel.com>,
	"Sharma, Swati2" <swati2.sharma@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v2 1/2] tests/i915/i915_pm_dc: Refactoring pwr_dmn_info to debugfs_dump
Date: Fri, 24 Sep 2021 11:16:08 +0000	[thread overview]
Message-ID: <1b1f8b0d26794ea387d160cb88907d97@intel.com> (raw)
In-Reply-To: <20210924100315.1895668-2-jigar.bhatt@intel.com>



> -----Original Message-----
> From: Bhatt, Jigar <jigar.bhatt@intel.com>
> Sent: Friday, September 24, 2021 3:33 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Bhatt, Jigar <jigar.bhatt@intel.com>; Gupta, Anshuman
> <anshuman.gupta@intel.com>; Varide, Nischal <nischal.varide@intel.com>;
> Shankar, Uma <uma.shankar@intel.com>; Sharma, Swati2
> <swati2.sharma@intel.com>
> Subject: [PATCH i-g-t v2 1/2] tests/i915/i915_pm_dc: Refactoring pwr_dmn_info
> to debugfs_dump
Please fix the version number here.
With that.
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
> 
> Refactoring pwr_dmn_info to debugfs_dump so other test can use it for
> dumping debugfs file.[Anshuman]
> 
> Signed-off-by: Jigar Bhatt <jigar.bhatt@intel.com>
> ---
>  tests/i915/i915_pm_dc.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c index
> 9d0a15d8..04acf839 100644
> --- a/tests/i915/i915_pm_dc.c
> +++ b/tests/i915/i915_pm_dc.c
> @@ -50,7 +50,7 @@ typedef struct {
>  	int msr_fd;
>  	int debugfs_fd;
>  	uint32_t devid;
> -	char *pwr_dmn_info;
> +	char *debugfs_dump;
>  	igt_display_t display;
>  	struct igt_fb fb_white, fb_rgb, fb_rgr;
>  	enum psr_mode op_psr_mode;
> @@ -217,7 +217,7 @@ static void check_dc_counter(data_t *data, int dc_flag,
> uint32_t prev_dc_count)
>  		(dc_flag & CHECK_DC5 ? "DC5" : "DC6"));
>  	igt_assert_f(dc_state_wait_entry(data->debugfs_fd, dc_flag,
> prev_dc_count),
>  		     "%s state is not achieved\n%s:\n%s\n", tmp,
> PWR_DOMAIN_INFO,
> -		     data->pwr_dmn_info = igt_sysfs_get(data->debugfs_fd,
> PWR_DOMAIN_INFO));
> +		     data->debugfs_dump = igt_sysfs_get(data->debugfs_fd,
> +PWR_DOMAIN_INFO));
>  }
> 
>  static void setup_videoplayback(data_t *data) @@ -504,7 +504,7 @@ int
> main(int argc, char *argv[])
>  	}
> 
>  	igt_fixture {
> -		free(data.pwr_dmn_info);
> +		free(data.debugfs_dump);
>  		close(data.debugfs_fd);
>  		close(data.msr_fd);
>  		display_fini(&data);
> --
> 2.25.1

  reply	other threads:[~2021-09-24 11:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 10:03 [igt-dev] [PATCH i-g-t v2 0/2] tests/i915/i915_pm_dc: Refactoring pwr_dmn_info to debugfs_dump and fix DC9-dpms test Jigar Bhatt
2021-09-24 10:03 ` [igt-dev] [PATCH i-g-t v2 1/2] tests/i915/i915_pm_dc: Refactoring pwr_dmn_info to debugfs_dump Jigar Bhatt
2021-09-24 11:16   ` Gupta, Anshuman [this message]
2021-09-24 10:03 ` [igt-dev] [PATCH i-g-t v2 2/2] tests/i915/i915_pm_dc: Fix DC9 test Jigar Bhatt
2021-09-24 11:15   ` Gupta, Anshuman
2021-09-24 11:08 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/i915_pm_dc: Refactoring pwr_dmn_info to debugfs_dump and fix DC9-dpms test (rev2) Patchwork
2021-09-24 12:56 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2021-09-22  5:52 [igt-dev] [PATCH i-g-t v2 0/2] tests/i915/i915_pm_dc: Refactoring pwr_dmn_info to debugfs_dump and fix DC9 test Jigar Bhatt
2021-09-22  5:53 ` [igt-dev] [PATCH i-g-t v2 1/2] tests/i915/i915_pm_dc: Refactoring pwr_dmn_info to debugfs_dump Jigar Bhatt

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=1b1f8b0d26794ea387d160cb88907d97@intel.com \
    --to=anshuman.gupta@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jigar.bhatt@intel.com \
    --cc=nischal.varide@intel.com \
    --cc=swati2.sharma@intel.com \
    --cc=uma.shankar@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