Commit Graph

925 Commits

Author SHA1 Message Date
eead3ec683 Abort execution when registering invalid sharing object
Change-Id: Ie6091eb659c423ffe5deb4a3ffe55ae0ef66797d
2018-07-05 08:35:49 +02:00
cf1f60a1b4 ci: run build on Fedora in one container
fix for dnf install issue:
error: rpmdb: BDB0689 Packages page 465 is on free list with type 7
error: rpmdb: BDB0061 PANIC: Invalid argument

Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/59

Change-Id: I7ee5afc7b2398feabb5aa2e9c42feae6196ed1be
2018-07-05 00:59:06 +02:00
98f1b72e7b Set preferred platform to avoid setting the latest platform as default
Change-Id: Id8bad91d97b6abe2d63bf691350dfff33225ebc8
2018-07-05 00:50:35 +02:00
0aea0b6fca Fix include order dependency
Change-Id: I65fe4f51040f57fd074f61b5917872d69f441998
2018-07-05 00:49:39 +02:00
4dee2c789a gmmlib revision update
Change-Id: Iaaf05c4f3d17142f68ed9247a717f956ce9b1164
2018-07-04 16:38:27 +02:00
d83ff8f245 igc revision update
Change-Id: I9505f44274ffcc8b916fc5580bf76c8aa280d968
2018-07-04 16:09:21 +02:00
c4c127a7c6 Infrastructure update
Change-Id: Ibe161ec1afca647f612336c13385750d9bac5357
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-04 05:00:07 -07:00
cb44a28f8e version.cmake improvements
- dynamically calculate NEO_DRIVER_VERSION for non-UNIX
- remove fixed NEO_DRIVER_VERSION from main cmake file

Change-Id: Ifab6182b1895086c1399f70112a4c9ad4cc66a0f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-04 13:06:59 +02:00
64277ee849 TBX CommandStreamReceiver fix for makeCoherent
- makeCoherent should be called after TBX finished processing
 - this is when tagAddress is updated with taskCount
makeCoherent is called from makeNonResident which is invoked just
after flush and may happen before TBX server finished processing
leading to invalid data to be read back to CPU accessible memory

- this fix adds waiting for taskCount to blocking calls for TBX CSR
before calling makeNonResident on surfaces to guarantee correct data
from TBX server is ready.

Change-Id: I498a5454e0826eec2a5413a08880af40268550e1
2018-07-04 12:04:32 +02:00
8fd7f6a8ce Passing the capabilityTable as a reference to the constructor
previously we couldn't add new variable to capabilityTable structure
becasue then we get too large function argument passed by
value

Change-Id: I162967ba195ec18fc781d127012f82e8876913a6
2018-07-03 16:51:17 +02:00
87af7b3c2b Adding support for formats P010 and P016
Change-Id: Id57fa936be9c31049fd50a5309a7fd02f000f7e3
2018-07-03 16:06:07 +02:00
9b83722dd5 ci: build Neo using IGC from Fedora 28 copr repository
Change-Id: Ica65281d26065e52c367720f46ded466e01e732b
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-07-03 15:03:23 +02:00
de35fc8f76 ci: build Neo using IGC from Fedora 27 copr repository
Change-Id: Ic893433767e3d2ad1e7175c45894dfa838908c63
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-07-03 14:57:28 +02:00
e26d67cde3 Aux surface programming for Buffers [1/n]: Gmm interface improvement
Change-Id: I984b8ebee27808a236217e82bb4e910550d624c4
2018-07-03 13:00:08 +02:00
86565e5f06 AUB subcapture in toggle mode to be controlled with HKCU regkey
- move AUBDumpToggleCaptureOnOff from HKLM to HKCU without admin rights
- fix AUB subcapture in toggle mode to call make resident in standalone mode

Change-Id: Ia6971921f33bb9ca63112790af870217da8a1585
2018-07-03 12:56:06 +02:00
f82b88e5bf Device enqueue - fix global pointer increment in scheduler in 32 bits
- global pointer address is stored as ulong so 8 byte increment is
required in 32 bit

Change-Id: I1c3df1c402223ed957124c8d7522570936cbcee3
2018-07-03 12:00:08 +02:00
0a91c1e3a9 automatically detect driver major and minor version
Change-Id: Ibdf187ca336855ceca960dab1486cc668654495f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-03 11:49:30 +02:00
5897d98c61 fix invalid dereference in DataParameterTest
Some tokens may not be processed by Neo. We should check whether
token was stored in dataParameterBuffers array instead of blindly
dereference element zero.

Change-Id: Ibb3e80c3b3fc031c6b5e9c8bea404429d8a48c34
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-03 09:51:04 +02:00
74bc0afb03 Infrastructure update
Change-Id: I40aea040df39240239b285c107a2ace2da8ad902
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-02 16:11:12 +02:00
ddb358f262 Add unit test for checking CSR base address in preamble
Change-Id: I0bcdd9156492e767691691d1f207ea053bc5b002
2018-07-02 15:19:14 +02:00
784ddf0a6c cleanup dead code, readability fixes
Change-Id: I91a3947d4ec0ef2264afed5abc58ff66151f0dc6
2018-07-02 12:50:15 +02:00
ef52a37edf remove redundant expect
Neo can work with more recent version of IGC. In such case some of
patch tokens my not be supported yet. Thus, expecting vector size to be
1 for every valid token is invalid assumption.

Change-Id: I987c29912590bcf15c13073fdbb463e7f9db3d1d
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-07-02 09:38:27 +02:00
3548876263 Setting the GpuAddress from a fragment in createGraphicsAllocation
Change-Id: I4d60aceea96dfbe50b2af4a1fbaada6a150ddd35
2018-06-29 16:13:29 +02:00
815151cb94 Simplify memory manager interfaces.
- Remove one function that routes to another function.

Change-Id: I44c17bf51abaf3aebf0692086de0f38e0693ab59
2018-06-29 15:39:10 +02:00
26ffab8a0c improve kernel data parameter ULTs:
- add assert to check size() of patchInfo.dataParameterBuffers
- add test case to ensure that unknown parameter is not added
- move one test case from TEST_P -> TEST_F. no need to be TEST_P as
  GetParam() is not used

Change-Id: I9ff753601ac1d4f2484cf13f5fa6b728b0dcd4a2
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-29 12:50:49 +02:00
ad96adfcef Remove isRootDevice logic.
- Our device are always root devices.

Change-Id: I057485cda9fba2988b0910f5349f7ced527abe29
2018-06-29 11:22:41 +02:00
b52b1d0aea Simplify platform destructor.
- remove not needed code.

Change-Id: I7fad36e651e33156a136467f8b2e32d88f13ac13
2018-06-29 11:12:40 +02:00
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
5186474ef5 return CL_BUILD_NONE when clGetProgramBuildInfo is called
return CL_BUILD_NONE from clGetProgramBuildInfo (CL_PROGRAM_BUILD_STATUS)
when clCreateProgramWithBinary was called and no build has been performed
on the specified program object for device.

Change-Id: Ib59dd07671a69ab1325c6c51f28e9dd550d5e5bf
2018-06-29 06:56:45 +02:00
415623b08f Remove default parameter.
Change-Id: I7da92801c7fa45b66bb7d770154d901bd3af9f5c
2018-06-28 14:47:20 +02:00
561cdb7df5 allow gmmlib to be detected using pkg-config
Change-Id: I9f706f100c9902b71a6bfa6465e17a68d26be49e
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-28 13:55:36 +02:00
01fccf26a9 ci: switch Arch build to gcc8 on Semaphore
Change-Id: I764a902b89c84b318429198fa72bd138b4452a49
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-28 13:48:38 +02:00
317e6c08f4 use GNUInstallDirs to detect locations
Change-Id: I288a0420caaaa6965e1e7f2f6f1a1491682d407a
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-28 13:40:10 +02:00
b20bcb8b31 Move platform shutdown to destructor.
Change-Id: Ifeca1c5fe11d8e562b9f4641737b6bf1ac70aac6
2018-06-28 12:36:23 +02:00
b7545f1401 Decrement context ref count as a last action in program destructor.
- There are various calls to device inside destructor.
- Memory manager is protected via device , which is protected by context.
- If context is destroyed it means that device may be destroyed, which means
that memory manager may be destroyed and we have a seg fault.

Change-Id: I2cb6a69790f53bf2c9fba89160078b009e105574
2018-06-28 09:01:51 +02:00
887df5a90d Add reference on device while creating a context
- Context uses device, it needs to make sure it exists.

Change-Id: I1aeaabc53b6198965dc8f4e6fa37585490774a3f
2018-06-28 08:53:23 +02:00
d447c8c951 Add trailing space to compiler extensions string
Change-Id: Ib9e2f33916dd1475defc60bfc297ef36fc87eb03
2018-06-28 00:38:55 +02:00
f5baa783de ci: add findutils package to Fedora containers
Change-Id: I04be3d7a40b63ac81265c22796cb39cd11bbe895
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-27 22:57:27 +02:00
934f30fadf ci: find directory containing IGC
Change-Id: I1fa9d3505fe65ac96a1919cf8c2af22abc3544b7
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2018-06-27 18:13:48 +02:00
e18e9fb94e Move static methods from Gmm to new GmmHelper class
Change-Id: I84fbe94f0e1072324164086b456c71a46ae5040c
2018-06-27 16:46:09 +02:00
a95cca71e4 Device now adds dependencies on ExecutionEnvironment
- This allows for ExecutionEnvironment to live longer then platform after
its global destruction
- Device adds references to ExecutionEnvironment after creation
- When device is destroyed it removes the dependency causing the cleanup
- Platform upon destruction no longer destroys the device, but decrements
the internal ref count.

Change-Id: I22593ea44b2b50e3416575a9e97e3ce0a1f8b5c0
2018-06-27 16:37:29 +02:00
bc7aa63a37 package: respect CMAKE_INSTALL_PREFIX
don't force /opt/intel/opencl which is location of legacy Intel OpenCL
driver. Use CMAKE_INSTALL_PREFIX to install driver in location where
user wants

Change-Id: I2b55a2ec8129a06ee6a0e97a7adcfa69084e3502
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-06-27 15:15:45 +02:00
3b726b76ee Remove enabling preemption watermark
Change-Id: I2de768907193c8b2b104536ce9972743a2af7d92
2018-06-27 15:03:21 +02:00
5d357fb646 fixed typo in cl_intel_va_api_media_sharing.md
https://github.com/intel/compute-runtime/pull/56

Change-Id: I8479fa18d17cb4cdd0379de2b52590ec384b4615
2018-06-27 14:03:14 +02:00
a21c0a0074 Add control on platform life cycle.
Change-Id: I5c24b41747d822b71dd57e9a949cf25fcc78a453
2018-06-27 10:09:26 +02:00
0f91c3bc47 Update internal.
Change-Id: Id9cd2d4016bd32b577c049e504667023a3de75f3
2018-06-27 09:34:53 +02:00
4a4ad6460c Revert: Setting the GpuAddress from a fragment in createGraphicsAllocation
Change-Id: Ifd0a26f58b748df5e43e57b4e0be6b94c2051890
18.26.10987
2018-06-26 17:05:26 +02:00
fc8d3d9ee4 Use locally allocated platform in platform tests.
Change-Id: If69d1d9d09a9bcd1f215dc562d1c15681bef3f41
2018-06-26 15:08:36 +02:00
686209874a Remove not used parameters in PlatformFixture SetUp function
Change-Id: Ib58c97e377218350cea19373dd1f193c4cc32a45
2018-06-26 15:00:27 +02:00
b563e07394 Setting the GpuAddress from a fragment in createGraphicsAllocation
Change-Id: I4f6afbdd4d86ab2958de29cf49aaed9b8e2ea642
2018-06-26 14:43:08 +02:00