Commit Graph

37 Commits

Author SHA1 Message Date
Mrozek, Michal 928632ec19 Disable Aub Stream when in tbx mode.
Change-Id: Iffd5fa5efe3f236954a3888fdd286bd5f889393f
2018-12-13 17:46:04 +01:00
Mrozek, Michal 17de3fbeb9 Add option to generate random inputs to tests.
Change-Id: I940e6405fbd964bbe8c815f9fc8466d04efe4bbf
2018-12-07 12:22:35 +01:00
Mrozek, Michal deb4bd844b Initialize rand in tests.
Change-Id: I534a89b070f9f5be2182fcd4a58f96a85c6d93de
2018-12-06 19:00:30 +01:00
Zdanowicz, Zbigniew 323f765659 Fix correct number of subslices in ULT when no subslices argument is given
Change-Id: I09090c328c8966106bc42e37aa1869c56254a263
2018-11-30 08:42:22 +01:00
Zdanowicz, Zbigniew 7dbd0ea4f3 Move Scratch Space functionality to dedicated class
Change-Id: Ic7655c4b971513961aba6823478a139ffc943466
2018-11-29 11:55:56 +01:00
Mrozek, Michal fbf0d44fff Initialize tag to 0 in tbx mode.
Change-Id: Ic85984384446cb75bdcebe1ec50fa4cc1dd69600
2018-11-23 08:09:42 +01:00
Napiatek, Henryk J 6d828e6653 Allow override of default platform Hardware Info Config
New string debug variable HardwareInfoOverride is used to
specify new Hardware Info Config to be selected, for example 1x4x8.

Change-Id: I6d939608e6551e4a9102e5ab2e08255ee4982933
2018-10-10 10:34:23 +02:00
Mateusz Jablonski 83f733fb70 Use dynamic gmmlib on Linux
Change-Id: Ia7d30fecf0406a14babe83d29743562de8bf7a29
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-09-21 17:34:31 +02:00
Hoppe, Mateusz fe912704b8 Enhance AubTests with TBX server capability
- aub_tests started with "--tbx" option connects to TBX server
- CSR is created in dual mode: TBX + AUB to dump aub file
- with this enhancement it is possible to debug aub tests live

Change-Id: I0302f5f4bac4c293661a149f64888770dd49343c
2018-09-19 15:34:36 +02:00
Hoppe, Mateusz 31d3cc847c Rename setupGtSystemInfo to setupHardwareInfo
- adding new parameter for FeatureTable setup

Change-Id: I1f1c66894555003612e08127801c6b096b0a2400
2018-08-29 16:24:16 +02:00
Venevtsev, Igor b49101803c Fixed aub_tests aub files producing
Change-Id: I7d83fba27828a57855a642c4be9944dc0f1e4603
2018-08-29 12:57:50 +02:00
Artur Harasimiuk 01ec633182 improve custom event listener error reporting
During multi process test execution it may be difficult to propery read
output from tests. Output lines maybe mixed so determining things like
hardware or random seed becomes difficult.

This change adds extra data to output:
  [  FAILED  ][ BDW ][ 35357 ] <test name>
  [  FAILED  ][ BDW ][ 35358 ] <test name>

From this we can easily find that test failed on BDW with
gtest_seed=35357 and 35358.

Change-Id: I21e0767162d390f56dd270b1ba8650664c3898b5
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-08-17 12:57:29 +02:00
Dunajski, Bartosz 117a7d15ad Aux translation [2/n]: Add new builtins
Each Kernel arg for aux translation needs to have own builtin kernel.
This is required to build MultiDispatchInfo before copying into SSH

Change-Id: I4b2f42518cf06bb31c31fd5f83f7da927bde99c3
2018-08-10 18:24:21 +02:00
Mateusz Jablonski 96e3163386 Prepare to use gmm dynamic lib on Linux
Change-Id: Ie1b0c8fe13c4e044f1f2b0651349840d2850f423
2018-07-19 01:04:52 +02:00
Mateusz Jablonski 36db75da28 Create gmm client context wrapper, reduce mock_gmm
Change-Id: I4eec4366afeb175fea4bf7934e3046b50fe30fe9
2018-07-17 11:46:04 +02:00
Mrozek, Michal 7437960534 Preload GMM library before tests execution on Windows.
- Fixes massive performance regressions in ult execution time (5x)

Change-Id: Idf13f90624309c1b3fb6744f0db3b7567e68fb17
2018-07-10 09:04:32 +02:00
Mateusz Jablonski 94dbdb602d Add instance of gmm helper to execution environment
Change-Id: I1b044611fbad91fbb681ba233938f41502f29056
2018-07-06 08:48:19 +02:00
Dunajski, Bartosz 5408913d38 Set HwInfo to GmmHelper on Device creation
This allows querying HwInfo from code that doesnt have access to Device

Change-Id: I0084f824f557cd85c2fdfbf0ff2ec71118e9af2e
2018-06-29 11:02:52 +02:00
Dunajski, Bartosz e18e9fb94e Move static methods from Gmm to new GmmHelper class
Change-Id: I84fbe94f0e1072324164086b456c71a46ae5040c
2018-06-27 16:46:09 +02:00
Mateusz Jablonski b659d270ae Revert "Create wrapper for GmmClientContext"
This reverts commit 50c31872d8.

Change-Id: Id154ca2d217e5e45623750f641ebad5dc5e840a2
2018-06-21 16:14:45 +02:00
Mateusz Jablonski 50c31872d8 Create wrapper for GmmClientContext
reduce mock gmm to implementation of OpenGmm function

Change-Id: I657412af2d11486c9924cf3ab9a8b4f51e603964
2018-06-21 10:17:46 +02:00
Kamil Diedrich 9aa29edb73 Return -1 and print a message for invalid product param
Change-Id: Ie6e5728ae343170e4ac3087bd37d7554906de5d1
2018-06-14 15:04:59 +02:00
Mateusz Jablonski 5007c60a03 Generate dll names to lib_names.h
Remove some not needed ifdef blocks

Change-Id: I29f787bde819a2f19312dd5713df0d4534a47cd8
2018-06-11 18:00:56 +02:00
Mateusz Jablonski 98b8b4b6a4 Prepare to use gmm as dll on Windows
Since this commit neo on Windows can use static or shared gmm lib

Change-Id: I7db70d7f9bc969e8193ac77e8b6d65ecc57d0093
2018-06-08 17:35:01 +02:00
mplewka 95e5aba86a Decode sip binaries once for all tests
Change-Id: I05a54146dc1aa893c5217f60f3b4ca47ded03019
2018-05-29 13:47:19 +02:00
Mrozek, Michal 2e06df06ff Revert enabling preemption in all tests.
-It is causing big execution time increase from 6s to 11s on Debug64 Windows
target.

Change-Id: Id7d6b51e04653ef52248c0c83dc82d086f9cfd11
2018-05-11 14:24:22 +02:00
mplewka 2bc2869fe1 Refactor ult's for preemption enabling part 2
Change-Id: If8e335e87f3a78d35cab12a17880fb1922d479f5
2018-05-10 13:12:03 +02:00
Mateusz Jablonski abbc0a5471 Compile kernels per platform type (core/lp)
compiled kernels are in (binary dir)/(family name with type) folder

Change-Id: Ied1827ab7f4ecc5c1de4c3535b1c0ba3b5cd86ee
2018-04-26 16:47:15 +02:00
Mateusz Jablonski 31157573ca Fix ult execution: change dir after getting run path
Change-Id: If2b9d07809004bfb4edbc4b4c50762226a98d2e9
2018-04-26 11:22:59 +02:00
Mateusz Jablonski 180de340d8 Define variable with binary name suffix
use this variable in tests as it is set once in main.cpp
create function to get binary kernel filename

Change-Id: Ibf7b4c2d390caefda4a5d7fc4667006e7f2edde8
2018-04-25 15:34:34 +02:00
mplewka 079f94cd2d Refactor ult for preemption enabling
Refactoring in ULTs around preemption:
    -refactoring ULTS to not fail with default preemption mode
    -fixing ULT memory leaks observed after enabling preemption
    -mocking getSipKernel in ULTs (to minimize ULT execution time)

Change-Id: I194b56173d7cb23aae94eeeca60051759c817e10
2018-04-16 12:55:30 +02:00
Artur Harasimiuk edfdf3c66a ult: catch&handle SIGABRT
Change-Id: Ifaeed398d0e8a462ab1c6560b775453bbb2328a2
2018-03-13 08:25:21 +01:00
Zdunowski, Piotr 46f3efd79c Allow cloc tests to be run from default location.
Change-Id: Ic5f8e34ff261b45100c98a6065b1aeaab3c4d665
2018-02-21 20:13:52 +01:00
Artur Harasimiuk 063e9623ba cleanup around MockGmmStatus
remove not needed global variable from mock device and refactor gmm
context initialization for ULTs

Change-Id: I594938a7df7dfaaf7a3cf73f8a13ad85a7b58401
2018-02-19 18:58:20 +01:00
Hoppe, Mateusz 012b8bd73c Adding initial PreemptionMode::Initial
- account for initial setting (when set mode was equal to initial(Disabled))
estimate size in cmdStreamCS, program MMIO

Change-Id: Ice218ae986583c8f3bab4f4f6979e38f03e30d7e
2018-02-08 16:21:52 +01:00
Zdanowicz, Zbigniew 474b6a2a23 Enable Mid-Thread preemption for Gen9
Change-Id: Iacec1c8fa899d4fbf0cbb9cc292990546871ca6a
2018-01-16 12:55:35 +01:00
Brandon Fliflet 7e9ad41290 Initial commit
Change-Id: I4bf1707bd3dfeadf2c17b0a7daff372b1925ebbd
2017-12-21 00:45:38 +01:00