* [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use
@ 2018-07-12 15:37 Chris Wilson
2018-07-12 15:37 ` [PATCH i-g-t 2/2] lib/gt: Check GEM is operation before injecting a hang Chris Wilson
2018-07-12 19:01 ` [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Ville Syrjälä
0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2018-07-12 15:37 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
As we need GEM and the GPU to do a GPGPU fill, we should check that it
is operable before using -- skipping rather than failing when the device
is wedged.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/gem_gpgpu_fill.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/gem_gpgpu_fill.c b/tests/gem_gpgpu_fill.c
index 8ef05a3f0..dfb581652 100644
--- a/tests/gem_gpgpu_fill.c
+++ b/tests/gem_gpgpu_fill.c
@@ -104,6 +104,7 @@ igt_simple_main
data.drm_fd = drm_open_driver_render(DRIVER_INTEL);
data.devid = intel_get_drm_devid(data.drm_fd);
+ igt_require_gem(data.drm_fd);
data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
igt_assert(data.bufmgr);
--
2.18.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH i-g-t 2/2] lib/gt: Check GEM is operation before injecting a hang
2018-07-12 15:37 [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Chris Wilson
@ 2018-07-12 15:37 ` Chris Wilson
2018-07-12 19:01 ` [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Ville Syrjälä
1 sibling, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2018-07-12 15:37 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
To inject a hang, we execute a spinning batch. This means we require GEM
to be operation before the hang, so check.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
lib/igt_gt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index 89b318ae6..86c6e1972 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -118,6 +118,7 @@ void igt_require_hang_ring(int fd, int ring)
if (!igt_check_boolean_env_var("IGT_HANG", true))
igt_skip("hang injection disabled by user");
+ igt_require_gem(fd);
gem_require_ring(fd, ring);
gem_context_require_bannable(fd);
if (!igt_check_boolean_env_var("IGT_HANG_WITHOUT_RESET", false))
--
2.18.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use
2018-07-12 15:37 [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Chris Wilson
2018-07-12 15:37 ` [PATCH i-g-t 2/2] lib/gt: Check GEM is operation before injecting a hang Chris Wilson
@ 2018-07-12 19:01 ` Ville Syrjälä
1 sibling, 0 replies; 3+ messages in thread
From: Ville Syrjälä @ 2018-07-12 19:01 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, intel-gfx
On Thu, Jul 12, 2018 at 04:37:08PM +0100, Chris Wilson wrote:
> As we need GEM and the GPU to do a GPGPU fill, we should check that it
> is operable before using -- skipping rather than failing when the device
> is wedged.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Series is
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> tests/gem_gpgpu_fill.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/gem_gpgpu_fill.c b/tests/gem_gpgpu_fill.c
> index 8ef05a3f0..dfb581652 100644
> --- a/tests/gem_gpgpu_fill.c
> +++ b/tests/gem_gpgpu_fill.c
> @@ -104,6 +104,7 @@ igt_simple_main
>
> data.drm_fd = drm_open_driver_render(DRIVER_INTEL);
> data.devid = intel_get_drm_devid(data.drm_fd);
> + igt_require_gem(data.drm_fd);
>
> data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
> igt_assert(data.bufmgr);
> --
> 2.18.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-12 19:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-12 15:37 [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Chris Wilson
2018-07-12 15:37 ` [PATCH i-g-t 2/2] lib/gt: Check GEM is operation before injecting a hang Chris Wilson
2018-07-12 19:01 ` [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Ville Syrjälä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).