lib/drmtest: Retire requests via drop caches after gem_quiescent_gpu
PATCH 1/1 lib/drmtest: Retire requests via drop caches after gem_quiescent_gpu
From: Oscar Mateo <[email protected]>
This helps make sure that the GPU is really quiescent by getting rid of any residual stuff.
--- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+)
lib/drmtest.c +2 -0
@@ -47,6 +47,7 @@#include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" /* This file contains a bunch of wrapper functions to directly use gem ioctls. * Mostly useful to write kernel tests. */
@@ -163,6 +164,7 @@ void gem_quiescent_gpu(int fd) }gem_sync (fd, handle); +igt_drop_caches_set (DROP_RETIRE ); }/**
Signature · 1 line
1.7.9.5
Daniel Vetter
AppliedQuoted 6 lines · On Tue, Nov 05, 2013 at 02:15:19PM +0000, [email protected] wrote:
From: Oscar Mateo <[email protected]>
This helps make sure that the GPU is really quiescent by getting rid of any residual stuff.
Signed-off-by Oscar Mateo <[email protected]>
Merged, thanks for the patch.
-Daniel
Quoted 31 lines
--- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+)lib/drmtest.c +2
-0@@ -47,6 +47,7 @@#include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" /* This file contains a bunch of wrapper functions to directly use gem ioctls. * Mostly useful to write kernel tests. */ @@ -163,6 +164,7 @@ void gem_quiescent_gpu(int fd) }gem_sync (fd, handle); +igt_drop_caches_set (DROP_RETIRE ); }/** Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 10 lines · Daniel Vetter
Quoted 6 lines · On Tue, Nov 05, 2013 at 02:15:19PM +0000, [email protected] wrote:
From: Oscar Mateo <[email protected]>
This helps make sure that the GPU is really quiescent by getting rid of any residual stuff.
Signed-off-by Oscar Mateo <[email protected]>Merged, thanks for the patch.
-Daniel
I'm hitting what seems to be a race on gem_suspend. Please fix. Subtest debugfs-reader: SUCCESS
Test assertion failure function igt_drop_caches_set, file igt_debugfs.c:336:
Quoted 41 lines
Quoted 32 lines
--- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+)lib/drmtest.c +2
-0@@ -47,6 +47,7 @@#include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" /* This file contains a bunch of wrapper functions to directly use gem ioctls. * Mostly useful to write kernel tests. */ @@ -163,6 +164,7 @@ void gem_quiescent_gpu(int fd) }gem_sync (fd, handle); +igt_drop_caches_set (DROP_RETIRE ); }/** Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Ben Widawsky, Intel Open Source Technology Center
Hi Ben,
I have drv_suspend running in a loop for a few hours now and I haven´t been able to hit that problem. Could you give some more info? were you using piglit? were you able to reproduce it systematically?
I did have to fix the test for my system, thought (the output of the serial "cat" was going into std output instead of /dev/null and creating all kinds of craziness). I sent a patch to the mailing list.
Cheers,
Oscar
Quoted 70 lines
-----Original Message-----
From: Ben Widawsky [mailto:[email protected]]
Sent: Monday, November 11, 2013 12:30 AM
To: Daniel Vetter
Cc: Mateo Lozano, Oscar; [email protected]
Subject: Re: [Intel-gfx] [PATCH] lib/drmtest: Retire requests via drop caches aftergem_quiescent_gpuQuoted 10 lines · Daniel Vetter
Quoted 6 lines · On Tue, Nov 05, 2013 at 02:15:19PM +0000, [email protected] wrote:
From: Oscar Mateo <[email protected]>
This helps make sure that the GPU is really quiescent by getting rid of any residual stuff.
Signed-off-by Oscar Mateo <[email protected]>Merged, thanks for the patch.
-DanielI'm hitting what seems to be a race on
gem_suspend. Please fix. Subtest debugfs-reader: SUCCESS
Test assertion failure functionigt_drop_caches_set, file igt_debugfs.c:336:Quoted 15 lines
Quoted 15 lines
--- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+)lib/drmtest.c index e3fc166..d8fc60f renamed from lib/drmtest.c +0
-0100644
lib/drmtest.c +1
-0@@ -47,6 +47,7 @@#include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" Quoted 1 line
lib/drmtest.c line 52
Quoted 1 line
lib/drmtest.c +0
-0/* This file contains a bunch of wrapper functions to directly use gem ioctls.
Quoted 12 lines
Quoted 12 lines
lib/drmtest.c +0
-0* Mostly useful to write kernel tests. */ @@ -163,6 +164,7 @@ void
gem_quiescent_gpu(int fd)lib/drmtest.c +1
-1}gem_sync (fd, handle); +igt_drop_caches_set (DROP_RETIRE ); }/** -- 1.7.9.5
Quoted 13 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Ben Widawsky, Intel Open Source Technology Center
Quoted 8 lines · Oscar
Hi Ben,
I have
drv_suspendrunning in a loop for a few hours now and I haven´t been able to hit that problem. Could you give some more info? were you using piglit? were you able to reproduce it systematically?I did have to fix the test for my system, thought (the output of the serial "cat" was going into std output instead of
/dev/nulland creating all kinds of craziness). I sent a patch to the mailing list.Cheers,
Oscar
I can get exactly what I was running when I get home. It was exactly something to the effect of:
while [ 1 ] ; do drv_suspend --run-subtest debufs-reader ; done
I may have put a few other tests before, be definitely none after.
Quoted 72 lines
Quoted 72 lines
-----Original Message-----
From: Ben Widawsky [mailto:[email protected]]
Sent: Monday, November 11, 2013 12:30 AM
To: Daniel Vetter
Cc: Mateo Lozano, Oscar; [email protected]
Subject: Re: [Intel-gfx] [PATCH] lib/drmtest: Retire requests via drop caches aftergem_quiescent_gpuQuoted 10 lines · Daniel Vetter
Quoted 6 lines · On Tue, Nov 05, 2013 at 02:15:19PM +0000, [email protected] wrote:
From: Oscar Mateo <[email protected]>
This helps make sure that the GPU is really quiescent by getting rid of any residual stuff.
Signed-off-by Oscar Mateo <[email protected]>Merged, thanks for the patch.
-DanielI'm hitting what seems to be a race on
gem_suspend. Please fix. Subtest debugfs-reader: SUCCESS
Test assertion failure functionigt_drop_caches_set, file igt_debugfs.c:336:Quoted 15 lines
Quoted 15 lines
--- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+)lib/drmtest.c index e3fc166..d8fc60f renamed from lib/drmtest.c +0
-0100644
lib/drmtest.c +1
-0@@ -47,6 +47,7 @@#include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" Quoted 1 line
lib/drmtest.c line 52
Quoted 1 line
lib/drmtest.c +0
-0/* This file contains a bunch of wrapper functions to directly use gem ioctls.
Quoted 12 lines
Quoted 12 lines
lib/drmtest.c +0
-0* Mostly useful to write kernel tests. */ @@ -163,6 +164,7 @@ void
gem_quiescent_gpu(int fd)lib/drmtest.c +1
-1}gem_sync (fd, handle); +igt_drop_caches_set (DROP_RETIRE ); }/** -- 1.7.9.5
Quoted 13 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Ben Widawsky, Intel Open Source Technology Center
Signature · 5 lines
Ben Widawsky, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx