Commit Graph

106 Commits

Author SHA1 Message Date
Jobczyk, Lukasz
3fc748c0f9 Use newer GMM API
Related-To: NEO-3832

Change-Id: I9c97a20a6a611118eb14348a8c6960115a20777d
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-05 08:30:09 +01:00
Jobczyk, Lukasz
368b072336 Fix a wddm destructor
Change-Id: Ieaf9a17e59157af01a8a538c0310753023208c2b
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-10-30 15:31:29 +01:00
Michal Mrozek
1580a936b6 Make sure we hint as OpenCL.
Change-Id: I11b75b9e627651d9ee56ce58864cc4520ee82bfd
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-10-24 07:57:23 +02:00
Michal Mrozek
0bb2458dab Fix svm size programming.
-Base it on max64BitAppAddress.

Change-Id: Id68d12b50b798c5a750a3273963982d4315bd776
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-10-21 19:32:59 +02:00
Mateusz Jablonski
fcf2387398 Add tests for selecting KMD adapter
Related-To: NEO-3007

Change-Id: I040662e68dccf574b14ecffa02f5427f6ef1899b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-10 12:06:41 +02:00
Andrzej Koska
0ae977015d Adding a debug variable to select a test device
Change-Id: Icf28d456590d532db44119d95be35ec6933a2647
Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
Related-To: NEO-3239
2019-10-09 14:25:41 +02:00
Mateusz Jablonski
c3fc8d8695 Load proper KMD adapter
Related-To: NEO-3007

Change-Id: I6555caf4351f30677983cef86df48c88d0927ebc
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-03 17:22:19 +02:00
Dunajski, Bartosz
c0c6a46ece Wddm 2.3 improvements
- Dont create synchronization object manually - take it from HW queue
- Construct MonitoredFence from HwQueue object
- D3DKMT_SUBMITCOMMANDTOHWQUEUE should get currentFenceValue
instead of its handle
- Dont pass MonitoredFenceVa/Value in cmd buffer header

Change-Id: I4717119379cef2f0e641ce9f4ef614089491a85d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
Related-To: NEO-3728
2019-09-13 10:27:04 +02:00
Jobczyk, Lukasz
2e8e6bdb18 Move majority of utilities to the core dir
Related-To: NEO-3677

Change-Id: If2e876028b765ad3ecf5f75db8755623b82955b8
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-12 15:07:02 +02:00
Jobczyk, Lukasz
882a216688 Move Debug helpers to the core dir
Related-To: NEO-3677

Change-Id: I2c98595190fadfa8ffd9e378e774c0d4485cbf9e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-05 16:00:35 +02:00
Jobczyk, Lukasz
a79b682fc2 Move a GfxPartition to the core dir
Related-To: NEO-3677

Change-Id: Ia89ba93eefbb2921ef7d64bde7ed4114a0c78e0d
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-04 15:42:25 +02:00
Jobczyk, Lukasz
86edfea3bf Fix OCL specific registry path in a core dir
Change-Id: I5b7792582e6c77a29ffb42b8fe024bc826ae1867
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-09-02 17:33:50 +02:00
Maciej Plewka
7827501b91 Add returned status to MemoryOperationsHandler
Change-Id: Ic8685e3711cec03d8f83d371fa7152ee095a47a0
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-09-02 08:42:50 +02:00
Jobczyk, Lukasz
10795c716f Move DebugSettingsReader to a core dir
Related-To: NEO-3677

Change-Id: I3374abde6717be20c064ec6d65c0751a783f5138
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-08-29 13:49:40 +02:00
Filip Hazubski
6bd101609f Remove bitwise operations on bools from os_interface
Change-Id: If3cfb3daf9deefb0dac040b2c3e709764c7d3155
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-08-13 12:02:18 +02:00
Milczarek, Slawomir
2e3f77a3e9 Add wddm interface to get dedicated video memory size
Related-To: NEO-2687

Change-Id: I44b9cfad250c61d5fadcbdd09f68e2751b43a415
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-07-29 14:49:16 +02:00
Mrozek, Michal
fa06a38e51 Optimize include scheme.
- remove no longer needed stuff

Change-Id: Iae97a69e2a3136909ab8d0b24b259a7bff15e9e0
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-26 11:34:25 +02:00
Venevtsev, Igor
7dfe57e982 Always initialize SVM heap for Windows 32-bit build
Related-To: NEO-2877

Change-Id: If576f57f8d69dc4ed4da11ede16fbdb2d0fcd286
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-07-22 12:22:40 +02:00
Zbigniew Zdanowicz
f01c1d2d49 Add residency mechanism to OS interface
Change-Id: I323ca856d3c901bdc4d5961cdefa42685b53d4d9
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-07-19 13:35:11 +02:00
Jablonski, Mateusz
8a3f215dff Init gmm after filling hardware info
Change-Id: I91c5704ef200b22214f37b2c02197cfad426de70
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2019-07-10 18:36:26 +02:00
Jobczyk, Lukasz
8fca10095e Remove redundant calls from Wddm::init()
Resolves: NEO-3331

Change-Id: I91dc2f170b9feecb9f84f447a9694fdb9b3a03b3
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-07-09 15:10:18 +02:00
Mrozek, Michal
d6dd229543 Fail create allocation if map is unsuccessful.
- This way we will fail whenever mapping is unsuccessful instead of creating
Graphics Allocation that is in undefined state.

Change-Id: I50358d4564cd3fba0f6d05ab47cbbbaffbd9ce1c
2019-06-18 15:29:56 +02:00
Mateusz Jablonski
c8f931f016 Add getter for Gmm Memory
Related-To: NEO-2881

Change-Id: I3fa322267accef7046518d742c29dc746cceeb43
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-07 12:39:20 +02:00
Mateusz Jablonski
394be1aabe Move updating wddm paging fence value to separated method
Related-To: NEO-2881

Change-Id: If051c5f11b7ffbca52407d6ac883f15c4633c5bb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-06 10:12:50 +02:00
Mateusz Jablonski
a6bcdfe9de Move definition of Wddm::configureDeviceAddressSpace to separated file
Related-To: NEO-3155

Change-Id: I1c459384a0285358620a5624655261858b0313ba
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-06-04 10:54:01 +02:00
Zbigniew Zdanowicz
e2906fcdf1 Move interlockedMax to core helpers
Change-Id: I5496ea963e68e0ef1e107c860112b7123d38aa81
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-05-28 17:38:17 +02:00
Dunajski, Bartosz
0f87e9aa1a Rename HardwareInfo members
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-09 09:13:55 +02:00
Dunajski, Bartosz
bb80d327c7 Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-05-08 16:11:01 +02:00
Venevtsev, Igor
f77cd94cd5 [1/n] Use GfxPartition for 32-bit allocations - WddmMemoryManager
Related-To: NEO-2877

Change-Id: Ie3d94f68d5c9958b0b7bade600b964b778aeb4cf
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-04-18 16:41:38 +02:00
Venevtsev, Igor
3a008fafc6 Revert "[1/n] Use GfxPartition for 32-bit allocations - WddmMemoryManager"
This reverts commit 2bb451e76d922861673e052f5f889658ac7db15f.

Change-Id: I1deada59a291a96ef88c8b9b4f2b28861ad27347
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-04-12 20:59:40 +02:00
Venevtsev, Igor
fac6ddaebc [1/n] Use GfxPartition for 32-bit allocations - WddmMemoryManager
Related-To: NEO-2877

Change-Id: I13621bc984e8bb92bea82c07044d9a40bc9ca550
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-04-10 12:58:26 +02:00
Maciej Plewka
9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00
Mateusz Jablonski
6abc3f7d9b Add logic to create wddm allocation with many handles
Change-Id: I1eeffddf7108183ad867d2b05d313f0cf6941c01
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-21 11:28:55 +01:00
Piotr Fusik
db9afd06cd Remove EngineInstanceT.
Change-Id: I08543b5f4ef5e91e6beb8390d448e53702cd9dac
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-20 10:56:22 +01:00
Mateusz Jablonski
5367440fab Refactor Wddm map gpu address method
Change-Id: I9d3d8675bf80af4079e25b84ba6e09b7883c9e28
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-20 08:40:47 +01:00
Venevtsev, Igor
ddf3aa186d Use HEAP_STANDARD for Limited-range allocations
Change-Id: I8b35cda2b5542e98a83021b4ce1c9f5118e6697d
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-03-19 10:18:21 +01:00
Zbigniew Zdanowicz
8e743cc1bd Refactor Wddm interface of mapping GPU VA
Change-Id: Ic807dfb17fd0ab664af281db757e48b0cc424fcb
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-15 07:50:53 +01:00
Zbigniew Zdanowicz
cdb52400c4 Add new functions reserving address range to Memory Manager
Change-Id: I947203c24495c9e5a206b95bb0c69440824586b6
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-14 15:06:11 +01:00
Mateusz Jablonski
395e79fee8 Add support for many GMMs in Graphics Allocation
Change-Id: I955b8dd50b502f91700c5529d0a0a291632aa157
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-13 15:44:45 +01:00
Venevtsev, Igor
74f1896c03 Expose GfxPartition to shared MemoryManager
Change-Id: I039e463f90e88c0ed8e9505cc770c373420ff567
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-03-12 09:25:50 +01:00
Mateusz Jablonski
3f690e1758 Dont unlock/evict wddm allocations during releasing memory
Change-Id: Ib934867886a883a22fde2f0c03e16338dc215e65
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-11 10:20:09 +01:00
Jobczyk, Lukasz
878fd43a1a Reverse logic of creating Memory Manager - part 1
-remove CSR::createMemoryManager method
-create MM from platform before creating devices

Change-Id: I0e7f091c53b0e60ae7101e82a305253af626330e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-08 09:47:29 +01:00
Mateusz Jablonski
5b22a50b28 Allow to create WddmAllocation with multiple handles
Change-Id: Iac9df91b08a6ce610b985586dfb6b5f63dc668cb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-07 13:29:00 +01:00
Mateusz Jablonski
e721f7c08c Cleanup Wddm interface 3/3
don't pass the entire WddmAllocation when only handle is needed

Change-Id: I208a64c81767589a2ac8aba0e717d54426209ecd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-06 10:03:38 +01:00
Mateusz Jablonski
4605a48170 Cleanup Wddm interface 2/n
don't pass the entire WddmAllocation to createAllocation methods

Change-Id: Ibd4c684a362edbe3b2c520b73b71246fed5a9399
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-06 09:30:14 +01:00
Mateusz Jablonski
03527f496d Cleanup Wddm interface 1/n
pass const D3DKMT_HANDLE * to makeResident/evict/destroyAllocation calls
remove gpuPtr from WddmAllocation

Change-Id: Ia5ca162946a2d893d4f56c37f8027eab02af90b0
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-05 17:28:29 +01:00
Dunajski, Bartosz
0939743874 Pass OsContextWin object during Wddm context creation
Change-Id: Iba8d801bb6af4e9d28681caddb9c487500a42c8c
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-04 09:11:59 +01:00
Dunajski, Bartosz
86dabbf6d5 Improve OsContext construction
Change-Id: Ibf9293344cc5c0ae1b2cc011e87d9e3626f3a066
2019-03-01 08:35:38 +01:00
Filip Hazubski
8b57d28116 clang-format: enable sorting includes
Include files are now grouped and sorted in following order:
1. Header file of the class the current file implements
2. Project files
3. Third party files
4. Standard library

Change-Id: If31af05652184169f7fee1d7ad08f1b2ed602cf0
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-02-27 11:50:07 +01:00
Mrozek, Michal
ce77425428 Add support for reserveGpuVirtualAddress.
Change-Id: I068df0dd3b2064cdb93be1c4408eeb86ff264d2f
2019-02-26 12:01:17 +01:00