Commit Graph

1565 Commits

Author SHA1 Message Date
Martin Whitaker 7ade7a9fe3 Fix cmake configuration when searching for modules
- don't falsely detect gmmlib pkgconfig when gmmlib is not found in workspace
- restore original PKG_CONFIG_PATH after overriding it
  - it may be needed for subsequent searches, e.g. for finding libva

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

Change-Id: I17088dd94e366821b977565f4736eb5f3679896b
2018-10-09 15:44:38 +02:00
Artur Harasimiuk f1bbdbdd54 infrastructure update
Change-Id: I2df6b4fda694065c4b20097433fd5b3a798697b7
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-09 12:54:12 +02:00
Pawel Wilma a05f832f80 Fix for batch buffer flattening
Change-Id: Ib13ec6573b985cf03876bd7e37a31606b230a790
2018-10-09 12:28:40 +02:00
ocldev 70b5251248 gmmlib revision update
Change-Id: I2c6fd28db30def68a3adbff6ac96f01dd09ad26e
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-09 08:53:45 +02:00
Maciej Dziuban 07e03af67e Extract trimCandidatesList to WddmResidencyController
Change-Id: I8938ee79975caf9cb09f7183c87452dc94a6b3e6
2018-10-09 00:55:10 +02:00
Mrozek, Michal 12b4d44375 Add new debug flag to limit the number of returned devices.
Change-Id: I01e1b6804291956fb62b84ff5df68c57b51bd17d
2018-10-09 00:35:51 +02:00
Artur Harasimiuk 118d3ed0e2 cpack: improve package naming
check cmake version and use component model for naming (>=3.6) or set
package file name based on generator.

add {?dist} to rpm package name

Change-Id: Idf723d7477ca711a250e86935cf4dbcf483cbd8a
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-08 19:57:06 +02:00
Maciej Dziuban b2dd8a9a1d Create WddmResidencyController to encapsulate basic residency data
Change-Id: I6dd94405ca5ea3a13b137c1e0ead72e615d36e00
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-10-08 15:11:58 +02:00
Dunajski, Bartosz 88bd89cb58 Aub test for multiple TimestampPackets scenario
Change-Id: I2edb289324370d81fc3b250fdccf3ed1bfdb2437
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2018-10-08 14:38:42 +02:00
Artur Harasimiuk a6d9e74851 Revert "Refactor of glcl sharing"
This reverts commit 51ecef7ec2.

Change-Id: Ia654fe0d50a2144371c3def7e768ef9707419c61
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-08 14:03:57 +02:00
Maciej Dziuban 130a7ac8b8 Delete TypeSelector helper
Change-Id: Iff5fe62d31fa7b07658cfcf81ebd2c12d47e2b3b
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-10-08 13:18:36 +02:00
Hoppe, Mateusz 2f7158e035 Move createPhysicalAllocator() to a common CSR class
- AUB and TBX use this method and it was duplicated,
- moving to common base class allows to remove duplicates

Change-Id: Ia9f08dfb0967de1b5968ac0e531733c5b868e504
2018-10-08 11:38:57 +02:00
Pawel Wilma 5cd7ca460c Refactoring of internal options extraction
Change-Id: Ice53746e696ba6de5bb2c901e713594ee90bf99c
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2018-10-05 15:28:31 +02:00
Wilma, Pawel 7d93fedbab Fix for problems with uninitialized SPatchExecutionEnvironment
Change-Id: I46b1c5badc6505b8443e7c1eaca1fc56a03f0768
2018-10-05 14:58:36 +02:00
Katarzyna Cencelewska 51ecef7ec2 Refactor of glcl sharing
new pattern to load gl functions from dll

Change-Id: I6f39945d3c53b5a169b0829f36b2102c3ef5e18a
2018-10-05 12:41:31 +02:00
Krystian 526a3a664b Adding new tool for decoding and encoding OCL binary.
Decoder decodes the binary to kernel heaps and patch token data, which
is in a human readible form. Encoder encodes it back to binary form.

Change-Id: Id07b1294ba24360e90c824171741cf14bd43cfad
2018-10-05 12:18:18 +02:00
Zdanowicz, Zbigniew bb62343aba Add new parameter to thread data dispatching
Change-Id: I86710b0cc764156f4c2db9d24ccd1c96b32d7660
2018-10-05 12:06:25 +02:00
Dunajski, Bartosz 73b2e947a5 Multiple TimestampPackets handling
Change-Id: Ia5936c3d0a34b892aa4444026a5aebc681f126c2
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2018-10-05 01:54:35 +02:00
Maciej Dziuban bc4700a193 Add OsContext argument to MemoryManager::makeNonResidentEvictionAllocations
OsContext has to propagate through following calls first:
- WddmCommandStreamReceiver<GfxFamily>::processEviction
- CommandStreamReceiver::makeSurfacePackNonResident

Change-Id: I7559c7406b2860c51905c9961cec251fac231b08
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-10-05 01:28:31 +02:00
Zdanowicz, Zbigniew 2d7077e138 Fix correct command buffer estimation for non-kernel enqueue calls
Change-Id: I8655d1824c229f13104e085f55fa15c310a17210
2018-10-05 00:47:54 +02:00
Koska, Andrzej 2110ba6ca4 Passing correct taskCount to waitForTaskCountAndCleanAllocationList
Change-Id: Ib0d2474bcd5827f8030331f7ef45ffc2805b955b
2018-10-04 23:53:43 +02:00
Artur Harasimiuk 5976cef692 fix naming convention in mock_gmm
Change-Id: I0173d2f4413b8dc56788c9a2d065221d10070878
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-04 22:59:31 +02:00
Mateusz Jablonski 6a3bbc002e Set correct flags for tiling when platform doesn't support y tiling
Change-Id: I39de5c91aafb9099d799c3323016df692cab349c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-04 22:55:11 +02:00
Mateusz Jablonski 77bbd2b89b Don't access command stream receivers when vector is empty
Change-Id: I1011b94be1ec7f28b71659c27b09b93e577769e2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-04 22:42:38 +02:00
Milczarek, Slawomir 61000c0dd4 CSR AUB + HW mode - flush to poll MMIO for completion
Ensures that each submit of LRCA be serialized through the simulator
like it is for AUBs captured in the standalone mode.

Change-Id: I1e3ad500012dce960d0e64b56af1cb60142772da
2018-10-04 10:32:08 +02:00
Hoppe, Mateusz a73801097f Change LRCA initialization
- program Debug register

Change-Id: I9993263b94fac0c56126f550fe174792dba6744b
2018-10-04 03:43:40 +02:00
Hoppe, Mateusz 9c3d89dc36 Fixes for aub tests
- remove unnecessary createAllocationAndHandleResidency calls
for hostptr memory used for buffers
- expect data under correct GPU VA from GraphicsAllocation in
AUBReadBuffer test

Change-Id: Ida8f3bbf4f2f5d27535f56952079528472992f0b
2018-10-04 01:01:50 +02:00
Artur Harasimiuk 599f6e28ef reuse gmmlib dynamic library when target is present and already built
instead of copying gmmlib shared library into our build build folders we
can use LD_LIBRARY_PATH to use .so file located in original location.

Change-Id: Icf8ae4000032c0032866e940a243a7f5881a4c16
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-10-04 00:15:41 +02:00
Dunajski, Bartosz 2cd411227c Improve PageTableManager creation
Change-Id: If359c76ae880fb2e1f56fc561aca761530787b5e
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2018-10-03 22:37:05 +02:00
Mateusz Jablonski b602cd2bb8 Pass execution environment to memory manager
Change-Id: If43cf9d1353b4cbc02ea269fb9105c01cc4e0876
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-03 22:12:26 +02:00
Mrozek, Michal 84865512cd Scheduler cannot utilize scratch space.
Change-Id: Ib3e6e3aef711477f800ae437c59eb7340a481510
2018-10-03 21:59:11 +02:00
Filip Hazubski 3fdb17bc7f Move hw specific GpgpuWalkerHelper functions to separate file
Change-Id: If2e793d0c3de1a5245bbdee065111a504807b134
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2018-10-03 20:19:47 +02:00
Hoppe, Mateusz ce29770d61 Extend PhysicalAddressAllocator with page size and alignement
- this allows for reserving 64k pages or bigger with specified alignement
if required

Change-Id: I256d6c0d9e7fee0e2bac5f4ab5e4fd49ea9d8d50
2018-10-03 20:02:58 +02:00
Milczarek, Slawomir ec48ccecdb AUB CSRs to use a shared address mapper (CPU VA to GTT VA)
This commit moves address mapper from CSR to execution environment
in order to generate unique GTT VA for LRCA, HWSP and ring buffer
between different CSRs.
Additionally, moved the rest of AUB file stream tests to separate module.

Change-Id: I02ae44202c0255277a7ac17532485419e0c403ab
2018-10-03 12:50:25 +02:00
Hoppe, Mateusz 5f11e68861 Add EngineType suffix to aub file name in AubFixture
Change-Id: I9b8f27461e6d36d596e85fde973aa1b2f34dbede
2018-10-03 01:56:36 +02:00
Mateusz Jablonski 9a1adc3095 Remove scenarios with memory manager with null csr
Change-Id: Ie151bf3d16c5d994f154c8f9ac3db43702a4798c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2018-10-02 21:43:21 +02:00
Zdanowicz, Zbigniew 2632b21fd1 Organize dispatching of thread data for better reuse of code
Change-Id: I8c156f8b5a50f6fa4dfb5218cdadb2840ff556eb
2018-10-02 18:47:13 +02:00
Cetnerowski, Adam 95cfb156cf ULT renaming: clCreatePerfCountersINTEL tests
Change-Id: I3c32be2317fbdad6522b3f160077732fd0ec55c7
Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
2018-10-02 18:23:00 +02:00
Mateusz Jablonski caa477115f Remove support for static gmmlib
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>

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

Change-Id: I90184d7aabf3dd0d8a74ff40115213241b4ca724
2018-10-02 18:21:51 +02:00
Filip Hazubski c75dc23b6e Change HWCMDTEST_F() tests to HWTEST_F() where possible
Change-Id: Ibfe147a12b53f832723f83809770e1b203159f8f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2018-10-02 17:29:46 +02:00
ocldev 6dfcb913f0 dependencies update
Change-Id: I5f9e9098a1b410211ee83f903faaa9b631ea8896
2018-10-01 15:52:22 +02:00
Filip Hazubski b16bd14f37 Change virtual class HardwareInterface to static
Change-Id: I4f1f59ecb51b95041dc6dcc6c606b94595813f53
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2018-10-01 15:11:43 +02:00
Pawel Wilma f3b1d73e88 Add missing include
Change-Id: I3384f2d599941cfd96bbe93559ebfb323f6eb285
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2018-10-01 10:12:10 +02:00
Milczarek, Slawomir 2227386eb7 CSR with AUB dump to call makeNonResident on AUB CSR
AUB CSR can implement additional actions to be taken on makeNonResident
such as dumping buffer and image resources.

Change-Id: Iab76081116011e0882de3c902db74a5dc4dd0b36
2018-09-29 00:23:40 +02:00
Maciej Dziuban 41e8d70363 Change makeSurfacePackNonResident argument to a reference
Change-Id: Ic95ad2406184e91a78c152fad3fe6f0f4ebb24ae
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-09-28 18:08:18 +02:00
Hoppe, Mateusz 4ea9f496d5 Fixes for AUBs
- pass aub usage in MockDevice to memory manager
- disallow mapping on cpu for cpu inaccessible memory

Change-Id: I5437a06efd4dd32940b603a15ff98a40091e2b04
2018-09-28 15:55:55 +02:00
Cetnerowski, Adam 90b21644ae ULT renanming: clCreatePipe tests
Change-Id: I70c67e41abf89f7f5a521d30c42ba143914bfb17
Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
2018-09-28 11:32:35 +02:00
Maciej Dziuban ea9e7bea31 Change MemoryManager::lastPeriodicTrimFenceValue to a vector
Also start registering OsContext to MemoryManager in
WddmMemoryManagerResidencyTest along with some cleanup in fixture's SetUp

Change-Id: I3f6763ae0cd9bf638cdc5dbbfbc60dfb0fd0ef05
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2018-09-28 06:33:12 +02:00
Dunajski, Bartosz cbd017d495 Handle TimestamPacket with implicit dependencies ownership
Change-Id: I22a4de4e9eb904c359583e235e0de54a7c743e07
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2018-09-28 01:48:02 +02:00
Hoppe, Mateusz 7ddf1d554b Move getAddressSpace from AUB & TBX CSRs to CSRSimulatedHw
Change-Id: Iaa6164445f55efba3681fc41e2ec614f999e1362
2018-09-27 10:43:00 -07:00