[Intel-gfx] [PATCH 3/3] test/gem_dummy_reloc_loop: add tests for dual bsd ring

2015-01-12 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong --- tests/gem_dummy_reloc_loop.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tests/gem_dummy_reloc_loop.c b/tests/gem_dummy_reloc_loop.c index 335700d..5e0a10a 100644 --- a/tests/gem_dummy_reloc_loop.c +++ b/tests/gem_dummy_reloc_loop.c

[Intel-gfx] [PATCH i-g-t 0/3] tests: Add tests for new exec flags to export two bsd rings

2015-01-12 Thread Zhipeng Gong
depends on that new libdrm. http://lists.freedesktop.org/archives/intel-gfx/2014-December/056569.html Zhipeng Gong (3): i-g-t: check whether kernel has dual bsd ring tests/gem_exec_params: check the invalid flags for dual bsd ring test/gem_dummy_reloc_loop: add tests for dual bsd ring lib

[Intel-gfx] [PATCH 1/3] i-g-t: check whether kernel has dual bsd ring

2015-01-12 Thread Zhipeng Gong
v2: change the number to be consistent with upstream (Zhipeng) Signed-off-by: Zhipeng Gong --- lib/ioctl_wrappers.c | 16 lib/ioctl_wrappers.h | 1 + 2 files changed, 17 insertions(+) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 5bca455..19a457a 100644 --- a

[Intel-gfx] [PATCH 2/3] tests/gem_exec_params: check the invalid flags for dual bsd ring

2015-01-12 Thread Zhipeng Gong
v2: add more tests to address Daniel's comments(Zhipeng) Signed-off-by: Zhipeng Gong --- tests/gem_exec_params.c | 41 + 1 file changed, 41 insertions(+) diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index f63eda9..54f0dc3 100644

[Intel-gfx] [PATCH 1/2] drm/i915: Specify bsd rings through exec flag

2015-01-12 Thread Zhipeng Gong
SKL GT3 machine v2: fix whitespace (Rodrigo) v3: remove incorrect chunk that came on -collector rebase. (Rodrigo) v4: change the comment (Zhipeng) v5: address Daniel's comment (Zhipeng) Signed-off-by: Zhipeng Gong Reviewed-by: Rodrigo Vivi (for v4) --- drivers/gpu/drm/i915/i915_gem_execbuf

[Intel-gfx] [PATCH 2/2] drm/i915: add I915_PARAM_HAS_BSD2 to i915_getparam

2015-01-12 Thread Zhipeng Gong
This will let userland only try to use the new ring when the appropriate kernel is present v2: change the number to be consistent with upstream (Zhipeng) Signed-off-by: Zhipeng Gong Reviewed--by: Rodrigo Vivi (for v1) --- drivers/gpu/drm/i915/i915_dma.c | 3 +++ include/uapi/drm/i915_drm.h

[Intel-gfx] [PATCH] drm/i915: Specify bsd rings through exec flag

2014-12-09 Thread Zhipeng Gong
through execution flag. This mechanism is usable for all the platforms with 2 VCS rings. v2: fix whitespace (Rodrigo) v3: remove incorrect chunk that came on -collector rebase. (Rodrigo) v4: change the comment (Zhipeng) Signed-off-by: Zhipeng Gong Reviewed-by-by: Rodrigo Vivi Signed-off-by

[Intel-gfx] [PATCH i-g-t 3/3] test/gem_dummy_reloc_loop: add tests for dual bsd ring

2014-12-02 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong Reviewed-by: Rodrigo Vivi Tested-by: Rodrigo Vivi --- tests/gem_dummy_reloc_loop.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tests/gem_dummy_reloc_loop.c b/tests/gem_dummy_reloc_loop.c index 7a97140..7a406f3 100644 --- a/tests

[Intel-gfx] [PATCH i-g-t 2/3] tests/gem_exec_params: check the invalid flags for dual bsd ring

2014-12-02 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong Reviewed-by: Rodrigo Vivi Tested-by: Rodrigo Vivi --- tests/gem_exec_params.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index f63eda9..ab19482 100644 --- a/tests/gem_exec_params.c +++ b/tests

[Intel-gfx] [PATCH i-g-t 1/3] lib: check whether kernel has dual bsd ring

2014-12-02 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong Reviewed-by: Rodrigo Vivi Tested-by: Rodrigo Vivi --- lib/ioctl_wrappers.c | 16 lib/ioctl_wrappers.h | 1 + 2 files changed, 17 insertions(+) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 56280b6..ad746e9 100644 --- a/lib

[Intel-gfx] [PATCH i-g-t 0/3] tests: Add tests for new exec flags to export two bsd rings

2014-12-02 Thread Zhipeng Gong
depends on that new libdrm. http://lists.freedesktop.org/archives/intel-gfx/2014-December/056569.html Zhipeng Gong (3): i-g-t: check whether kernel has dual bsd ring tests/gem_exec_params: check the invalid flags for dual bsd ring test/gem_dummy_reloc_loop: add tests for dual bsd ring lib

[Intel-gfx] [PATCH 2/2] drm/i915: add I915_PARAM_HAS_BSD2 to i915_getparam

2014-08-07 Thread Zhipeng Gong
This will let userland only try to use the new ring when the appropriate kernel is present Signed-off-by: Zhipeng Gong --- drivers/gpu/drm/i915/i915_dma.c | 3 +++ include/uapi/drm/i915_drm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu

[Intel-gfx] [PATCH 1/2] drm/i915: Specify bsd rings through exec flag

2014-08-07 Thread Zhipeng Gong
On Broadwell GT3 we have 2 Video Command Streamers (VCS), but userspace has no control when using VCS1 or VCS2. This patch introduces a mechanism to avoid the default ping-pong mode and use one specific ring through execution flag. Signed-off-by: Zhipeng Gong --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 3/3] test/gem_dummy_reloc_loop: add tests for dual bsd ring

2014-08-07 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong --- tests/gem_dummy_reloc_loop.c | 16 1 file changed, 16 insertions(+) diff --git a/tests/gem_dummy_reloc_loop.c b/tests/gem_dummy_reloc_loop.c index 4fe0786..6913537 100644 --- a/tests/gem_dummy_reloc_loop.c +++ b/tests/gem_dummy_reloc_loop.c

[Intel-gfx] [PATCH i-g-t 0/3] tests: Add tests for new exec flags to export two bsd rings

2014-08-07 Thread Zhipeng Gong
The Broadwell GT3 machine has two independent BSD rings that can be used to process the video commands. New execution flags are added to export the two rings to userspace so that userspace can specify the bsd ring. Zhipeng Gong (3): i-g-t: check whether kernel has dual bsd ring tests

[Intel-gfx] [PATCH 1/3] i-g-t: check whether kernel has dual bsd ring

2014-08-07 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong --- lib/ioctl_wrappers.c | 16 lib/ioctl_wrappers.h | 1 + 2 files changed, 17 insertions(+) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index c4e1080..03163a0 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -754,6

[Intel-gfx] [PATCH 2/3] tests/gem_exec_params: check the invalid flags for dual bsd ring

2014-08-07 Thread Zhipeng Gong
Signed-off-by: Zhipeng Gong --- tests/gem_exec_params.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index 769969d..b18ef4e 100644 --- a/tests/gem_exec_params.c +++ b/tests/gem_exec_params.c @@ -126,6 +126,12 @@ igt_main

[Intel-gfx] [PATCH] drm/i915: Specify bsd rings through exec flag

2014-08-05 Thread Zhipeng Gong
On Broadwell GT3 we have 2 Video Command Streamers (VCS), but userspace has no control when using VCS1 or VCS2. This patch introduces a mechanism to avoid the default ping-pong mode and use one specific ring through execution flag. Signed-off-by: Zhipeng Gong --- drivers/gpu/drm/i915