Commit Graph

656 Commits

Author SHA1 Message Date
Mateusz Hoppe 8cac8d4b51 Fix possible device nullptr dereference
- abort will be called if device is nullptr

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-26 22:51:44 +01:00
Jaime Arteaga ba89a47aea Add L0 extension for extended module descriptor
Add ZE_experimental_module_program extension to L0 driver to support
multiple input modules being passed to zeModuleCreate().

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-26 22:44:22 +01:00
Jaime Arteaga 9d632b9c92 Use C++ numeric limits instead of C macro
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-25 12:01:07 +01:00
Jaime Arteaga 438ad860ab Zero-initialize memory allocation descriptors in L0 tests
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-25 07:58:36 +01:00
Vilvaraj, T J Vivek 53b1dded2f Sysman zesPowerGetProperties() implementation.
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-11-24 11:48:37 +01:00
Mateusz Jablonski 720326fd6a Reorganize VS solution tree
Move scripts targets to neo scripts folder
Move spirv targets to shared builtins folder
Move compute_runtime_mockable_extra to ze_intel_gpu folder

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-23 19:06:20 +01:00
Mateusz Hoppe 8aacad1854 Create DebuggerL0 only when debugging is supported
Related-To: NEO-5239

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-23 18:28:45 +01:00
Kamil Diedrich 626b71e379 Disable Y16 layout
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2020-11-23 16:34:55 +01:00
Jaime Arteaga 4432547ff5 Add support for importing memory handles through zeMemAllocDevice
Add support for passing ze_external_memory_import_fd_t extended
structure to zeMemAllocDevice() to allocate a device memory
out of an fd handle.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-23 04:18:03 +01:00
Young Jin Yoon 3e69b2084c Add support for zeModuleGetProperties
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-11-21 23:14:30 +01:00
Maciej Plewka c80353587f Patch bindless offset
Related-To: NEO-4724

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-20 23:02:36 +01:00
Aravind Gopalakrishnan 223de6dd8c Revert "Use device allocation for events if host visibility not set"
This reverts commit 2c312bc70a.
Reverting due to failures in CI
2020-11-20 21:21:11 +01:00
Sebastian Luzynski 556b6cd457 Add concurrent kernel execution type
Related-To: NEO-4940
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
2020-11-20 16:12:42 +01:00
Young Jin Yoon 504814445d Add driver handle tests
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-11-20 03:28:36 +01:00
Jaime Arteaga 97437830a7 Add support for exporting memory handles through getAllocProperties
Add support for passing ze_external_memory_export_fd_t extended
structure to zeMemGetAllocProperties() to retrieve an fd handle
for a device allocation.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-20 00:28:15 +01:00
Aravind Gopalakrishnan 2c312bc70a Use device allocation for events if host visibility not set
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2020-11-19 22:51:04 +01:00
Jitendra Sharma 514b191bb6 Add support for sysman event ZES_EVENT_TYPE_FLAG_MEM_HEALTH
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-11-19 17:38:02 +01:00
Mateusz Hoppe 765b6cc2ed Initialize debugging in Os before creating debugger
Related-To: NEO-4516

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-19 16:31:31 +01:00
Jitendra Sharma 4c55491dc1 Update Sysman Memory APIs
This change:

 - Currently for all subdevices in LinuxMemoryImp::getState function,
   free and size values are returned similar values. This change fixes this
   issue and now correct value of size and free memory is returned as
   per subdevice.

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-11-19 08:27:14 +01:00
Vinod Tipparaju 240563099c Clean up code for nullptr device check during cmdlist create
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-11-19 04:24:34 +01:00
Jaime Arteaga 905d59d7e3 Allow disabling statefull optimization in L0
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-18 22:33:05 +01:00
Maciej Plewka 28de4068c9 Read bindless offset from patch token
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-18 17:04:00 +01:00
Jaroslaw Chodor 451f1e7e0d Fixing residency of global const/var buffers
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2020-11-18 13:15:06 +01:00
Daniel Enriquez a116d454fe Sysman: Enabling events for Windows
Enabling events for Sysman in Windows Os Specific path HAL.
2020-11-17 16:37:19 +01:00
Jaime Arteaga 3ee9c509c7 Fix typo in appendQueryKernelTimestamps
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-17 12:17:52 +01:00
Mateusz Hoppe b384bda99a Exclude internally used cmdLists and cmdQs from debugging
Related-To: NEO-5241

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-17 12:17:34 +01:00
Kamil Diedrich 403ebc843c Add support for media formats
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2020-11-17 10:36:29 +01:00
Jaime Arteaga 12598a82e5 Add support for external memory descriptors in device allocations
Add support for reading ze_external_memory_export_desc_t passed
to calls to zeMemAllocDevice. Current driver implementation
only supports handles as dma-buf, so add validation that only
that flag is being used.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-16 23:54:48 +01:00
Maciej Plewka 627febba61 Fix include path
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-16 14:36:20 +01:00
Mateusz Hoppe 0f42ef1ed7 Differentiate between users ISA and internal ISA allocation
Related-To: NEO-5240

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-16 13:16:30 +01:00
Maciej Plewka dad1dcebc3 Add L0 hw helper
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-15 23:58:12 +01:00
Jaime Arteaga b3700370a6 Remove dead-code functions for cache intermediate/last-level config
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-14 04:23:36 +01:00
Bartosz Dunajski 682d2f9029 Initial WDDM_LINUX support
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-11-13 12:51:25 +01:00
Bartosz Dunajski bc1e772ec2 Set correct device bitfield for L0 command queue allocations
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-11-13 12:37:16 +01:00
Mayank Raghuwanshi 9c1739c095 Update zesFrequencyGetState and zesFrequencyGetRange
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-11-13 06:04:50 +01:00
Vilvaraj, T J Vivek e096e5b0f8 fix CmakeLists for sysman frequency
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-11-11 17:32:43 +01:00
Jaime Arteaga 3f6d1f5ee9 Correctly pass descriptors to L0 shared alloc function
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-11 07:04:54 +01:00
Jaime Arteaga 9473abc86a Correctly pass descriptors to L0 device and host alloc functions
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-10 21:31:07 +01:00
Bartosz Dunajski f7905128ca Dont inject commands between blits
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-11-10 16:57:13 +01:00
Maciej Plewka 3f7af19c8f Pass bindless options to compiler when bindless enabled
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-10 11:30:56 +01:00
Vinod Tipparaju f553e1e514 Return "OUT_OF_MEMORY" when gfx alloc on device fails during cmdqueue create
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-11-10 06:26:02 +01:00
Jaime Arteaga 4c5ff75371 Add wait events to appendMemoryCopy
appendMemoryCopy has wait events since v1.0, so add the corresponding
support. Other copy operations were missing passing this
in the entry points, but already had support internally.

Also, rename some variables for consistency.

Also, remove signal event from appendMemoryCopyBlit since it is not
used.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-09 21:28:26 +01:00
Bartosz Dunajski 40d5cc71c9 Windows includes cleanup
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-11-09 14:35:38 +01:00
Mateusz Jablonski 044695f3e4 Stop self-opening ze_intel_gpu library
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-09 14:15:00 +01:00
Jitendra Sharma f4158e10ff Add support for DEVICE_DETACH and DEVICE_ATTACH sysman events
Change-Id: I2da57ec50a0f3e87499660d37fa248a06f9fdb08
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-11-04 03:31:32 +01:00
Jaime Arteaga 6ab9e9f1e0 Initial support for getExternalMemoryProperties and getExtensionProperties
Change-Id: Ib7c75dcae10bfb34dd2f703e481ecdd768370772
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-03 16:05:25 -08:00
Mateusz Jablonski 6c21ed1a28 Fix typo in BB test
Change-Id: Ib605b3f3e0ea3b9425ff17f6f81930c9993a53e5
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-11-03 14:45:30 +01:00
Jaime Arteaga 87fd9b0708 Remove dead-code: OpenCL interop functions from v0.9
Change-Id: I4ef6eb3df8991d1ef0b6f07f81655496914cf396
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-03 14:22:24 +01:00
Vinod Tipparaju 8e6be83fcc Add cmdContainer ULTs - idOffset & numIdd reset, Gfx alloc failure
ULT required to cover IDOffset and numIdd values during reset.
ULT required to cover OUT_OF_MEM retrun during init.
Fix to check for valid gfx allocation inside heap helper & destructor

Change-Id: Ied9049b33dc0605d5f5f51c96114d5e96b26a4f7
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-11-03 13:22:44 +01:00
Spruit, Neil R 3e5f3fe055 Fixed AppendMemoryFill for alignment, multi kernel execution, memory overrun
- Fixed Memory Fill to use aligned allocations in Destination and Source
buffer kernel arguments to ensure proper alignment of memory in the
surface state.
- Fixed patternSize == 1 case where simd size is > the size being
written resulting in the inital kernel append with group count of 0 and
the remainder kernel being executed incorrectly.
- Fixed offset calculation in the remainder kernel to be based off of
the aligned allocation offset.
- Fixed memory overrun case where size < patternsize with the minimum
size being used in the kernel.

Change-Id: I39bd83b3a83ceb6df05d374238f85f7fdf0bd09a
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2020-11-02 16:49:12 -08:00