[Intel-gfx] [PATCH i-g-t 0/3] Memory bandwidth tester

2015-10-05 Thread Antti Koskipaa
blending versions of the copy and write tests. Antti Koskipaa (3): gem_render_copy: Make render_copyfunc more generic gem_render_copy: Add functions for performance testing gem_memory_bandwidth: Add test lib/gen8_render.h| 3 + lib/intel_batchbuffer.c | 40 + l

[Intel-gfx] [PATCH i-g-t 2/3] gem_render_copy: Add functions for performance testing

2015-10-05 Thread Antti Koskipaa
come. Signed-off-by: Antti Koskipaa --- lib/gen8_render.h | 3 ++ lib/intel_batchbuffer.c | 40 +++ lib/intel_batchbuffer.h | 2 ++ lib/rendercopy.h| 12 lib/rendercopy_gen8.c | 53 +++ shaders/ps/discard.g7a | 73

[Intel-gfx] [PATCH i-g-t 1/3] gem_render_copy: Make render_copyfunc more generic

2015-10-05 Thread Antti Koskipaa
This will allow adding more tests that use this function without excessive copying and pasting. Signed-off-by: Antti Koskipaa --- lib/rendercopy_gen8.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index

[Intel-gfx] [PATCH i-g-t 3/3] gem_memory_bandwidth: Add test

2015-10-05 Thread Antti Koskipaa
This is a benchmark for testing the GPU read and write bandwidth. Issue: VIZ-5664 Signed-off-by: Antti Koskipaa --- tests/.gitignore | 1 + tests/Makefile.sources | 1 + tests/gem_memory_bandwidth.c | 209 +++ 3 files changed, 211

[Intel-gfx] [PATCH 1/2] drm/i915: Allow parsing of variable size child device entries from VBT

2015-07-10 Thread Antti Koskipaa
entries as zero. If this is not good enough for the future, we can always sprinkle extra version checks in there. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/intel_bios.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_bios.c b

[Intel-gfx] [PATCH 0/2] VBT and I_boost fixes

2015-07-10 Thread Antti Koskipaa
These are required for SKL PV. I tested these on SNB and SKL. Antti Koskipaa (2): drm/i915: Allow parsing of variable size child device entries from VBT drm/i915: Per-DDI I_boost override drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu/drm/i915/intel_bios.c | 30

[Intel-gfx] [PATCH 2/2] drm/i915: Per-DDI I_boost override

2015-07-10 Thread Antti Koskipaa
An OEM may request increased I_boost beyond the recommended values by specifying an I_boost value to be applied to all swing entries for a port. These override values are specified in VBT. v2: rebase and remove unused iboost_bit variable Issue: VIZ-5676 Signed-off-by: Antti Koskipaa

[Intel-gfx] [PATCH v2] drm/i915: Per-DDI I_boost override

2015-07-03 Thread Antti Koskipaa
An OEM may request increased I_boost beyond the recommended values by specifying an I_boost value to be applied to all swing entries for a port. These override values are specified in VBT. v2: rebase and remove unused iboost_bit variable Issue: VIZ-5676 Signed-off-by: Antti Koskipaa

[Intel-gfx] [PATCH] drm/i915: Per-DDI I_boost override

2015-06-18 Thread Antti Koskipaa
An OEM may request increased I_boost beyond the recommended values by specifying an I_boost value to be applied to all swing entries for a port. These override values are specified in VBT. Issue: VIZ-5676 Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu

[Intel-gfx] [PATCH i-g-t v2] tests/pm_backlight: Add backlight test

2015-05-28 Thread Antti Koskipaa
This is a basic sanity test of the backlight sysfs interface. v2: - Add jani's suggestion for immediate readback - Remove unused parameter from test_and_verify() - Add fade test Issue: VIZ-3377 Signed-off-by: Antti Koskipaa --- tests/.gitignore | 1 + tests/Makefile.sources

[Intel-gfx] [PATCH i-g-t] tests/pm_backlight: Add backlight test

2015-05-23 Thread Antti Koskipaa
This is a basic sanity test of the backlight sysfs interface. Issue: VIZ-3377 Signed-off-by: Antti Koskipaa --- tests/.gitignore | 1 + tests/Makefile.sources | 1 + tests/pm_backlight.c | 144 + 3 files changed, 146 insertions

[Intel-gfx] [PATCH i-g-t] kms_cursor_crc: Test cursor size change ioctl

2014-06-02 Thread Antti Koskipaa
Now that we support cursor changes other than 64x64, a bug was found where the size change was only applied at cursor enable time, rather than at every update. Add a testcase for that. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 55

[Intel-gfx] [PATCH i-g-t v2 0/8] kms_cursor_crc enhancements

2014-04-10 Thread Antti Koskipaa
the future. Also adds a couple more tests to the current set. v2: - reinstate "go nuts" -test - Add background picture for better test coverage Antti Koskipaa (8): kms_cursor_crc: Remove some test cases and change cursor to color kms_cursor_crc: Move cursor enable and disable cal

[Intel-gfx] [PATCH i-g-t v2 8/8] kms_cursor_crc: Add background picture

2014-04-10 Thread Antti Koskipaa
This gives the cursor something to be on, instead of just a black background. Slows the test down only one second over six minutes. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index

[Intel-gfx] [PATCH i-g-t v2 3/8] kms_cursor_crc: Use a function pointer to call test

2014-04-10 Thread Antti Koskipaa
More tests are coming, and this allows us to not repeat the boilerplate code in run_test() for each subtest. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests

[Intel-gfx] [PATCH i-g-t v2 1/8] kms_cursor_crc: Remove some test cases and change cursor to color

2014-04-10 Thread Antti Koskipaa
patch which will add software rendering of the cursor and the CRC generation. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 75 +- 1 file changed, 32 insertions(+), 43 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests

[Intel-gfx] [PATCH i-g-t v2 6/8] kms_cursor_crc: Add moving cursor test

2014-04-10 Thread Antti Koskipaa
Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 16 1 file changed, 16 insertions(+) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 85ff243..b2498a1 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -200,6 +200,20 @@ static void

[Intel-gfx] [PATCH i-g-t v2 4/8] kms_cursor_crc: Separate onscreen and offscreen tests

2014-04-10 Thread Antti Koskipaa
Also remove onscreen boolean from parameter list. All test-related data should be put into test_data from now. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 99 +- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/tests

[Intel-gfx] [PATCH i-g-t v2 2/8] kms_cursor_crc: Move cursor enable and disable calls where they belong

2014-04-10 Thread Antti Koskipaa
We can't have the hw cursor enabled during software render tests. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 54 -- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_

[Intel-gfx] [PATCH i-g-t v2 5/8] kms_cursor_crc: Add reference software rendering

2014-04-10 Thread Antti Koskipaa
This patch first render the cursor with hardware rendering and then with software, acquiring the CRC in both cases so they can be properly compared. Say goodbye to crc_must_match variable. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 27 --- 1 file changed

[Intel-gfx] [PATCH i-g-t v2 7/8] kms_cursor_crc: Add random cursor placement test

2014-04-10 Thread Antti Koskipaa
Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index b2498a1..e00abf5 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -214,6 +214,18 @@ static void

[Intel-gfx] [PATCH i-g-t 3/7] kms_cursor_crc: Use a function pointer to call test

2014-04-02 Thread Antti Koskipaa
More tests are coming, and this allows us to not repeat the boilerplate code in run_test() for each subtest. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests

[Intel-gfx] [PATCH i-g-t 1/7] kms_cursor_crc: Remove some test cases and change cursor to color

2014-04-02 Thread Antti Koskipaa
patch which will add software rendering of the cursor and the CRC generation. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 75 +- 1 file changed, 32 insertions(+), 43 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests

[Intel-gfx] [PATCH i-g-t 0/7] kms_cursor_crc enhancements

2014-04-02 Thread Antti Koskipaa
the future. Also adds a couple more tests to the current set. Antti Koskipaa (7): kms_cursor_crc: Remove some test cases and change cursor to color kms_cursor_crc: Move cursor enable and disable calls where they belong kms_cursor_crc: Use a function pointer to call test kms_cursor_crc

[Intel-gfx] [PATCH i-g-t 7/7] kms_cursor_crc: Add random cursor placement test

2014-04-02 Thread Antti Koskipaa
Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 1e1d348..d461d72 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -208,6 +208,18 @@ static void

[Intel-gfx] [PATCH i-g-t 4/7] kms_cursor_crc: Separate onscreen and offscreen tests

2014-04-02 Thread Antti Koskipaa
Also remove onscreen boolean from parameter list. All test-related data should be put into test_data from now. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 99 +- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/tests

[Intel-gfx] [PATCH i-g-t 5/7] kms_cursor_crc: Add reference software rendering

2014-04-02 Thread Antti Koskipaa
This patch first render the cursor with hardware rendering and then with software, acquiring the CRC in both cases so they can be properly compared. Say goodbye to crc_must_match variable. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 27 +-- 1 file changed

[Intel-gfx] [PATCH i-g-t 6/7] kms_cursor_crc: Add moving cursor test

2014-04-02 Thread Antti Koskipaa
Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 16 1 file changed, 16 insertions(+) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 021d58a..1e1d348 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -194,6 +194,20 @@ static void

[Intel-gfx] [PATCH i-g-t 2/7] kms_cursor_crc: Move cursor enable and disable calls where they belong

2014-04-02 Thread Antti Koskipaa
We can't have the hw cursor enabled during software render tests. Signed-off-by: Antti Koskipaa --- tests/kms_cursor_crc.c | 54 -- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_

[Intel-gfx] [PATCH v7] drm/i915: Reorganize display pipe register accesses

2014-02-04 Thread Antti Koskipaa
, VLV, IVB, Gen2 and HSW w/eDP. I left the UMS cruft untouched. Size differences: textdata bss dec hex filename 5964314634 56 601121 92c21 i915.ko (new) 5931994634 56 597889 91f81 i915.ko (old) Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v6] drm/i915: Reorganize display pipe register accesses

2014-01-29 Thread Antti Koskipaa
4342 56 606125 93fad i915.ko (new) Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 37 +++ drivers/gpu/drm/i915/i915_drv.h | 10 +- drivers/gpu/drm/i915/i915_reg.h | 235 +++- 3 files changed, 181 insertions(+), 101

[Intel-gfx] [PATCH v5] drm/i915: Reorganize display pipe register accesses

2014-01-28 Thread Antti Koskipaa
) Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 37 +++ drivers/gpu/drm/i915/i915_drv.h | 10 +- drivers/gpu/drm/i915/i915_reg.h | 235 +++- 3 files changed, 181 insertions(+), 101 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v4] drm/i915: Reorganize display pipe register accesses

2014-01-27 Thread Antti Koskipaa
, VLV, IVB and HSW w/eDP. I left the UMS cruft untouched. Size differences: textdata bss dec hex filename 5984314342 56 602829 932cd i915.ko (old) 6017594342 56 606157 93fcd i915.ko (new) Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915: Clean up display pipe register accesses

2014-01-27 Thread Antti Koskipaa
in memory. Change register address calculations into array lookups. Tested on SandyBridge and Valleyview I left the UMS cruft untouched. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 36 +++ drivers/gpu/drm/i915/i915_drv.h | 9 +++- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v3] drm/i915: Clean up display pipe register accesses

2014-01-27 Thread Antti Koskipaa
untouched. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 37 +++ drivers/gpu/drm/i915/i915_drv.h | 9 +- drivers/gpu/drm/i915/i915_reg.h | 235 +++- 3 files changed, 180 insertions(+), 101 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v2] drm/i915: Clean up display pipe register accesses

2014-01-24 Thread Antti Koskipaa
hardware will not have the various display pipe register ranges evenly spaced in memory. Change register address calculations into array lookups. Tested on SNB, VLV, IVB and HSW w/eDP. I left the UMS cruft untouched. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 44

[Intel-gfx] [PATCH] drm/i915: Clean up display pipe register accesses

2014-01-15 Thread Antti Koskipaa
ranges evenly spaced in memory. Change register address calculations into array lookups. Tested on SNB, VLV, IVB and HSW w/eDP. I left the UMS cruft untouched. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 44 + drivers/gpu/drm/i915/i915_drv.h | 11 ++- drivers

[Intel-gfx] [RFC v2] drm/i915: Clean up display pipe register accesses

2013-11-27 Thread Antti Koskipaa
calculations into array lookups. Tested on SandyBridge and VLV/BYT. I left the UMS cruft untouched. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/i915_drv.c | 56 +++ drivers/gpu/drm/i915/i915_drv.h | 9 +++- drivers/gpu/drm/i915/i915_reg.h | 99

[Intel-gfx] [RFC] drm/i915: Clean up display pipe register accesses

2013-10-30 Thread Antti Koskipaa
Upcoming hardware will not have the various display pipe register ranges evenly spaced in memory. Change register address calculations into array lookups. Tested on SandyBridge. I left the UMS cruft untouched. Signed-off-by: Antti Koskipaa --- drivers/gpu/drm/i915/dvo_ns2501.c | 6