diff mbox

[i-g-t] tests/pm_sseu: Require Gen8+ early in setup

Message ID 1428109272-22546-1-git-send-email-jeff.mcgee@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

jeff.mcgee@intel.com April 4, 2015, 1:01 a.m. UTC
From: Jeff McGee <jeff.mcgee@intel.com>

Pre-Gen8 devices should be skipped early instead of failing
when test resources are not found.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89822
Signed-off-by: Jeff McGee <jeff.mcgee@intel.com>
---
 tests/pm_sseu.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Daniel Vetter April 7, 2015, 8:57 a.m. UTC | #1
On Fri, Apr 03, 2015 at 06:01:12PM -0700, jeff.mcgee@intel.com wrote:
> From: Jeff McGee <jeff.mcgee@intel.com>
> 
> Pre-Gen8 devices should be skipped early instead of failing
> when test resources are not found.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89822
> Signed-off-by: Jeff McGee <jeff.mcgee@intel.com>

Applied, thanks.
-Daniel

> ---
>  tests/pm_sseu.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/pm_sseu.c b/tests/pm_sseu.c
> index 34465db..320371f 100644
> --- a/tests/pm_sseu.c
> +++ b/tests/pm_sseu.c
> @@ -262,6 +262,8 @@ gem_init(void)
>  
>  	gem.devid = intel_get_drm_devid(gem.drm_fd);
>  	gem.gen = intel_gen(gem.devid);
> +	igt_require_f(gem.gen >= 8,
> +		      "SSEU power gating only relevant for Gen8+");
>  	gem.has_ppgtt = gem_uses_aliasing_ppgtt(gem.drm_fd);
>  
>  	gem.bufmgr = drm_intel_bufmgr_gem_init(gem.drm_fd, 4096);
> -- 
> 2.3.3
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

diff --git a/tests/pm_sseu.c b/tests/pm_sseu.c
index 34465db..320371f 100644
--- a/tests/pm_sseu.c
+++ b/tests/pm_sseu.c
@@ -262,6 +262,8 @@  gem_init(void)
 
 	gem.devid = intel_get_drm_devid(gem.drm_fd);
 	gem.gen = intel_gen(gem.devid);
+	igt_require_f(gem.gen >= 8,
+		      "SSEU power gating only relevant for Gen8+");
 	gem.has_ppgtt = gem_uses_aliasing_ppgtt(gem.drm_fd);
 
 	gem.bufmgr = drm_intel_bufmgr_gem_init(gem.drm_fd, 4096);