* [PATCH i-g-t] igt/gem_render_copy: Check for GEM before running
@ 2018-07-09 10:28 Chris Wilson
2018-07-09 13:19 ` [igt-dev] " Ville Syrjälä
0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2018-07-09 10:28 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
gem_render_copy requires a working GPU so check first.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/gem_render_copy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c
index 8373cd738..238e70e97 100644
--- a/tests/gem_render_copy.c
+++ b/tests/gem_render_copy.c
@@ -529,6 +529,7 @@ int main(int argc, char **argv)
igt_fixture {
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
* Re: [igt-dev] [PATCH i-g-t] igt/gem_render_copy: Check for GEM before running
2018-07-09 10:28 [PATCH i-g-t] igt/gem_render_copy: Check for GEM before running Chris Wilson
@ 2018-07-09 13:19 ` Ville Syrjälä
2018-07-09 13:23 ` Chris Wilson
0 siblings, 1 reply; 3+ messages in thread
From: Ville Syrjälä @ 2018-07-09 13:19 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, intel-gfx
On Mon, Jul 09, 2018 at 11:28:47AM +0100, Chris Wilson wrote:
> gem_render_copy requires a working GPU so check first.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> tests/gem_render_copy.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c
> index 8373cd738..238e70e97 100644
> --- a/tests/gem_render_copy.c
> +++ b/tests/gem_render_copy.c
> @@ -529,6 +529,7 @@ int main(int argc, char **argv)
> igt_fixture {
> data.drm_fd = drm_open_driver_render(DRIVER_INTEL);
> data.devid = intel_get_drm_devid(data.drm_fd);
> + igt_require_gem(data.drm_fd);
Is there ever a case where we'd be happy with open_driver() failing?
Just wondering about putting the require into the function itself.
Anyways
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
> igt_assert(data.bufmgr);
> --
> 2.18.0
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
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
* Re: [igt-dev] [PATCH i-g-t] igt/gem_render_copy: Check for GEM before running
2018-07-09 13:19 ` [igt-dev] " Ville Syrjälä
@ 2018-07-09 13:23 ` Chris Wilson
0 siblings, 0 replies; 3+ messages in thread
From: Chris Wilson @ 2018-07-09 13:23 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: igt-dev, intel-gfx
Quoting Ville Syrjälä (2018-07-09 14:19:40)
> On Mon, Jul 09, 2018 at 11:28:47AM +0100, Chris Wilson wrote:
> > gem_render_copy requires a working GPU so check first.
> >
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > ---
> > tests/gem_render_copy.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c
> > index 8373cd738..238e70e97 100644
> > --- a/tests/gem_render_copy.c
> > +++ b/tests/gem_render_copy.c
> > @@ -529,6 +529,7 @@ int main(int argc, char **argv)
> > igt_fixture {
> > data.drm_fd = drm_open_driver_render(DRIVER_INTEL);
> > data.devid = intel_get_drm_devid(data.drm_fd);
> > + igt_require_gem(data.drm_fd);
>
> Is there ever a case where we'd be happy with open_driver() failing?
> Just wondering about putting the require into the function itself.
I suppose we could add require_gem to open_driver_render(), but it
doesn't seem that generic. We definitely can do KMS operations even if
execbuf() returns -EIO.
At some point, we'll just have to bite the bullet and start rewriting
GEM tests to apply to amdgpu as well -- there are quite a few that I
think aren't i915 centric, e.g. gem_sync, that might help define what we
can and what we can't generalise.
-Chris
_______________________________________________
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-09 13:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 10:28 [PATCH i-g-t] igt/gem_render_copy: Check for GEM before running Chris Wilson
2018-07-09 13:19 ` [igt-dev] " Ville Syrjälä
2018-07-09 13:23 ` Chris Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox