mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-23 09:56:02 +00:00
test/gem_dummy_reloc_loop: add tests for dual bsd ring
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
f8d47cb70d
commit
9f952940c0
@ -43,6 +43,8 @@
|
|||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
|
|
||||||
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
#define LOCAL_I915_EXEC_VEBOX (4<<0)
|
||||||
|
#define LOCAL_I915_EXEC_BSD_RING1 (1<<13)
|
||||||
|
#define LOCAL_I915_EXEC_BSD_RING2 (2<<13)
|
||||||
|
|
||||||
static drm_intel_bufmgr *bufmgr;
|
static drm_intel_bufmgr *bufmgr;
|
||||||
struct intel_batchbuffer *batch;
|
struct intel_batchbuffer *batch;
|
||||||
@ -260,6 +262,22 @@ igt_main
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
igt_subtest("bsd-ring1") {
|
||||||
|
igt_require(gem_has_bsd2(fd));
|
||||||
|
sleep(2);
|
||||||
|
igt_info("running dummy loop on bsd-ring1\n");
|
||||||
|
dummy_reloc_loop(I915_EXEC_BSD|LOCAL_I915_EXEC_BSD_RING1);
|
||||||
|
igt_info("dummy loop run on bsd-ring1 completed\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
igt_subtest("bsd-ring2") {
|
||||||
|
igt_require(gem_has_bsd2(fd));
|
||||||
|
sleep(2);
|
||||||
|
igt_info("running dummy loop on bsd-ring2\n");
|
||||||
|
dummy_reloc_loop(I915_EXEC_BSD|LOCAL_I915_EXEC_BSD_RING2);
|
||||||
|
igt_info("dummy loop run on bsd-ring2 completed\n");
|
||||||
|
}
|
||||||
|
|
||||||
igt_subtest("mixed") {
|
igt_subtest("mixed") {
|
||||||
if (num_rings > 1) {
|
if (num_rings > 1) {
|
||||||
sleep(2);
|
sleep(2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user