Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Hsin-Yi Wang <hsinyi@chromium.org>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/selftests: Rename pm_ prefixed functions names
Date: Tue, 20 Apr 2021 09:49:55 -0400	[thread overview]
Message-ID: <YH7cAx8cE4nszX7+@intel.com> (raw)
In-Reply-To: <20210420130853.10573-1-jani.nikula@intel.com>

On Tue, Apr 20, 2021 at 04:08:53PM +0300, Jani Nikula wrote:
> From: Hsin-Yi Wang <hsinyi@chromium.org>
> 
> pm_resume and pm_suspend might be conflict with the ones defined in
> include/linux/suspend.h. Rename all pm_* to igt_pm_* in selftests since
> they are only used here.
> 
> v2 by Jani:
> - Use igt_ prefix instead of i915_ to avoid colliding with existing
>   i915_pm_* functions

what about i915_st_pm?!

> - Rename all pm_ prefixed functions in the file
> 
> Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>  drivers/gpu/drm/i915/selftests/i915_gem.c | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/selftests/i915_gem.c b/drivers/gpu/drm/i915/selftests/i915_gem.c
> index dc394fb7ccfa..152d9ab135b1 100644
> --- a/drivers/gpu/drm/i915/selftests/i915_gem.c
> +++ b/drivers/gpu/drm/i915/selftests/i915_gem.c
> @@ -87,14 +87,14 @@ static void simulate_hibernate(struct drm_i915_private *i915)
>  	intel_runtime_pm_put(&i915->runtime_pm, wakeref);
>  }
>  
> -static int pm_prepare(struct drm_i915_private *i915)
> +static int igt_pm_prepare(struct drm_i915_private *i915)
>  {
>  	i915_gem_suspend(i915);
>  
>  	return 0;
>  }
>  
> -static void pm_suspend(struct drm_i915_private *i915)
> +static void igt_pm_suspend(struct drm_i915_private *i915)
>  {
>  	intel_wakeref_t wakeref;
>  
> @@ -104,7 +104,7 @@ static void pm_suspend(struct drm_i915_private *i915)
>  	}
>  }
>  
> -static void pm_hibernate(struct drm_i915_private *i915)
> +static void igt_pm_hibernate(struct drm_i915_private *i915)
>  {
>  	intel_wakeref_t wakeref;
>  
> @@ -116,7 +116,7 @@ static void pm_hibernate(struct drm_i915_private *i915)
>  	}
>  }
>  
> -static void pm_resume(struct drm_i915_private *i915)
> +static void igt_pm_resume(struct drm_i915_private *i915)
>  {
>  	intel_wakeref_t wakeref;
>  
> @@ -148,16 +148,16 @@ static int igt_gem_suspend(void *arg)
>  	if (err)
>  		goto out;
>  
> -	err = pm_prepare(i915);
> +	err = igt_pm_prepare(i915);
>  	if (err)
>  		goto out;
>  
> -	pm_suspend(i915);
> +	igt_pm_suspend(i915);
>  
>  	/* Here be dragons! Note that with S3RST any S3 may become S4! */
>  	simulate_hibernate(i915);
>  
> -	pm_resume(i915);
> +	igt_pm_resume(i915);
>  
>  	err = switch_to_context(ctx);
>  out:
> @@ -183,16 +183,16 @@ static int igt_gem_hibernate(void *arg)
>  	if (err)
>  		goto out;
>  
> -	err = pm_prepare(i915);
> +	err = igt_pm_prepare(i915);
>  	if (err)
>  		goto out;
>  
> -	pm_hibernate(i915);
> +	igt_pm_hibernate(i915);
>  
>  	/* Here be dragons! */
>  	simulate_hibernate(i915);
>  
> -	pm_resume(i915);
> +	igt_pm_resume(i915);
>  
>  	err = switch_to_context(ctx);
>  out:
> -- 
> 2.20.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2021-04-20 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20 13:08 [Intel-gfx] [PATCH] drm/i915/selftests: Rename pm_ prefixed functions names Jani Nikula
2021-04-20 13:19 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
2021-04-20 13:45 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-04-20 13:49 ` Rodrigo Vivi [this message]
2021-04-20 14:41   ` [Intel-gfx] [PATCH] " Jani Nikula
2021-04-20 14:52     ` Rodrigo Vivi
2021-04-21  8:20       ` Jani Nikula
2021-04-20 15:05 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " 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=YH7cAx8cE4nszX7+@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=hsinyi@chromium.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@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