Commit Graph

683 Commits

Author SHA1 Message Date
Mateusz Hoppe
d3f3730989 Refactor L0 core tests
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-12-09 17:51:15 +01:00
Mateusz Jablonski
b6a20f9b23 Move mock_gmm and mock_gdi to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-12-09 13:45:57 +01:00
Jaime Arteaga
86e25638d3 Set SysMan DDI to null if SysMan is not enabled
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-09 12:41:22 +01:00
Jaime Arteaga
beb3c5ed05 Add support for global work offset extension in L0
Add experimental extension to set global work offest in L0.
Current L0 specification does not have interface to export
experimental function symbols, so for now, applications need
to find the symbol like with dlsym on Linux.

A blackbox test showing functionality is also added.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-09 07:33:40 +01:00
wpjordan
ab14df5aa6 Revert "Add netlink and gen netlink library loader."
This reverts commit 864f069b8f.
2020-12-08 20:41:09 +01:00
Mayank Raghuwanshi
29254cb683 update <pid> case for zetSysmanProcessesGetState
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-12-08 19:55:03 +01:00
Mateusz Jablonski
9183a9b638 Correct shared tests
create mock_gmm target if not exists

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-12-08 19:31:57 +01:00
Kacper Nowak
4804eca86d Refactoring Level Zero ULTs in order to use standalone spirv builtins
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2020-12-08 09:19:05 +01:00
William Jordan
864f069b8f Add netlink and gen netlink library loader.
Netlink and generic netlink are standard linux
interfaces to allow management traffic between
user space and kernel subsystems over sockets.
This patch adds a loader for the generic netlink
library to allow Level 0 Sysman to manage
linux hardware that implements the generic
netlink interface. ULTs updated.

Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-12-08 01:40:25 +01:00
Zbigniew Zdanowicz
b4a901ac1c Fix aligned address for USM pointers
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-12-07 15:25:04 +01:00
Zbigniew Zdanowicz
19bea962d0 Use imported host pointers in the driver when available
Related-To: NEO-5126

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-12-03 13:52:14 +01:00
Mateusz Hoppe
8198a739c8 Refactor Sip Kernel usage
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-12-03 10:43:53 +01:00
Jaime Arteaga
b668feaf0d Minor fixes to L0 blackbox tests
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-03 01:28:08 +01:00
Maciej Plewka
7a5c9d39b5 Encode dispatch kernel with global bindless heaps
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-12-02 17:30:15 +01:00
Jaime Arteaga
be90b9ff93 Add support for ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED
Add support for device and shared allocations that use the
ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED flag, whether the
kernel using the memory is stateless or statefull.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-02 10:43:45 +01:00
Jitendra Sharma
7883fa331a Add zello_copy black_box test
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-12-02 07:57:45 +01:00
Jobczyk, Lukasz
343fd602fa Add method to submit kernel on single subdevice
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2020-12-01 22:15:05 +01:00
Jaime Arteaga
00c92c8c14 Add L0 sample for IPC memory access between two different devices
In this example, two processes are launched on different devices
if more than one device is detected. Then, P2P capabilities are
queried through zeDeviceCanAccessPeer().

If P2P capabilities are available, then an IPC memory handle is
exchanged from server to client, and the client process running on
device 1 copies data from its buffer (allocated on device 1) to
the buffer exported by the server (allocated on device 0).

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-01 18:31:44 +01:00
Mateusz Hoppe
f284bb9711 Enable level_zero Driver unit test
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-12-01 18:30:43 +01:00
Artur Harasimiuk
294624e03b Revert "Add netlink and gen netlink library loader."
This reverts commit 660ad6a1f3.
2020-12-01 17:52:52 +01:00
macabral
720ba46548 Register kernel Elf for debugging purpose
Signed-off-by: macabral <matias.a.cabral@intel.com>
2020-12-01 17:16:14 +01:00
William Jordan
4732a4e692 Level 0 Sysman FabricPort updates.
Add fabric port routines to zello_sysman.
Add subdevice support to FabricPort routines.
Update source paths for additional FabricPort development.

Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-12-01 05:38:06 +01:00
Jaime Arteaga
5f77fb9196 Add L0 sample for IPC memory
In this example, two processes are launched on the same device,
and an IPC memory handle is exchanged from server to client.

Then, the client process running copies data from its buffer
to the buffer exported by the server.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-01 05:28:29 +01:00
William Jordan
660ad6a1f3 Add netlink and gen netlink library loader.
Netlink and generic netlink are standard linux
interfaces to allow management traffic between
user space and kernel subsystems over sockets.
This patch adds a loader for the generic netlink
library to allow Level 0 Sysman to manage
linux hardware that implements the generic
netlink interface.

Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-11-30 20:18:25 +01:00
Zbigniew Zdanowicz
4602220e62 Add manager of imported host pointers
Related-To: NEO-5126

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-11-30 13:28:25 +01:00
Filip Hazubski
6c4b1f951c Do not force cl_khr_3d_image_writes extension when compiling kernels
Update usage of SUPPORTED_IMAGES flag and do not use images when disabled.
Use SUPPORTED_2_0 only on fully OCL 2.1 conformant platforms.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-11-27 17:20:46 +01:00
Krzysztof Gibala
baea633bdd Correct logic in MultiRootDeviceFixture
Related-To: NEO-4589

Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-27 16:22:39 +01:00
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