Commit Graph

714 Commits

Author SHA1 Message Date
Young Jin Yoon e09ac446c4 Mask bit 0 of timestamp for event profiling
Related-to: LOCI-1161
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-12-31 23:51:12 +01:00
Kamil Diedrich e0da0e1868 Fix for block load and store
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2020-12-31 12:28:26 +01:00
Mateusz Jablonski 1b7d7afc07 Refactor USM properties
store reference to std of root device indices and device bitfields
store NEO::Device in USM properties

Related-To: NEO-3691
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-12-30 11:36:56 +01:00
Young Jin Yoon 06dad67c5a Add a return statement for getCsrForLowPriority
Related-to: LOCI-1124
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-12-29 21:34:05 +01:00
Jaime Arteaga a6ac10088c Initialize kernel immutable data when kernel is created
This instead of when the associated module is created, to avoid
allocating memory for kernels that are never created nor used.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-29 19:29:10 +01:00
Vinod Tipparaju 1d7e91de24 Split cmdlist ULTs into two files
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-12-29 18:44:25 +01:00
Vinod Tipparaju bbb0e9d095 Fix to Append signal/ wait events for appendMemoryFill & appendMemoryCopyRegion
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-12-29 07:28:50 +01:00
Jitendra Sharma ea6e2982fb Query free memory info inside zesMemoryGetState API
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-12-26 02:32:49 +01:00
Young Jin Yoon 571007cfe9 Support low priority command queues
Related-to: LOCI-1124
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-12-24 05:00:34 +01:00
Vinod Tipparaju 5440c83539 Fix to acquire lock during migrating shared allocation via makeResident() call
This fix is required to guarentee thread safety

Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-12-24 04:42:08 +01:00
Jitendra Sharma 7c70a14bc4 Implement ZE_ENABLE_PCI_ID_DEVICE_ORDER environment variable
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-12-23 12:08:43 +01:00
Kanhaiya Singh 9ff19c5fbd Handling for invalid event argument
Signed-off-by: Kanhaiya Singh <kanhaiya.singh@intel.com>
2020-12-23 11:25:38 +01:00
Vilvaraj, T J Vivek bddc63e8bd add firmware flashing utility interface
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-12-22 09:10:11 +01:00
Slawomir Milczarek 6986d5de0b Add helper functions for memory compression to CSR
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-12-21 17:43:03 +01:00
William Jordan b04cd08cc8 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-18 22:19:27 +01:00
Konstanty Misiak e665111013 Verify debug manager state in UltConfigListener
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-12-18 14:18:36 +01:00
Artur Harasimiuk 09a5cc99a9 use proper variable in copy_third_party_files
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-12-17 16:12:34 +01:00
Daria Hinz 1ef9a1c35f Add extended functionality for timestamps at Event
Related-To: NEO-4584
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2020-12-17 10:53:16 +01:00
Mayank Raghuwanshi 328ef7a6f6 Update zello sysman for ras module
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-12-16 15:25:01 +01:00
Krystian Chmielewski 4948c39d39 Remove executionEnvironment from KernelInfo
Related-To: NEO-3739
2020-12-16 14:56:57 +01:00
Daniel Enriquez b83922ecdb Fix energy counter precision for Sysman in Windows.
Conversion to mJ was faulty and losing precision, this fix the problem.
2020-12-16 09:43:15 +01:00
Jim Snow 37cd49330c Implement ZE_CACHE_CONFIG_FLAG_LARGE_DATA for zeKernelSetCacheConfig
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2020-12-16 07:00:13 +01:00
Pawel Wilma 9bd0c69913 Add ClearColor allocation support for blitter
Related-To: NEO-5175

Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2020-12-14 18:22:05 +01:00
Artur Harasimiuk 05ab806126 cmake: refactor unit tests targets dependencies
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-12-14 14:57:42 +01:00
Jitendra Sharma f514fd7b35 Adding some more ULTs for sysman Engine
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-12-12 08:53:51 +01:00
Zbigniew Zdanowicz b32b5784c2 Fix calculations for offseted addresses
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-12-11 20:25:54 +01:00
Mateusz Hoppe 0747cb80f5 Sip programming changes
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-12-11 15:05:30 +01:00
Konstanty Misiak 10f06bb942 Refactor of L0 commandQueue tests
Related-To: NEO-4520

Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-12-11 14:04:47 +01:00
Maciej Plewka 830bcd6987 Scratch using bindless heaps
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-12-11 09:38:44 +01:00
Mateusz Jablonski 714d4c61f9 Remove gmock from mock driver handle
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-12-11 09:25:28 +01:00
Jaime Arteaga d46bb59508 Migrate shared-allocations made resident with makeMemoryResident
Shared-allocations are currently migrated to GPU by the page-fault
manager when calling executeCommandLists. Allocations to migrate are
taken from the lists container. However, if a shared-allocation
has been made resident with zeContextMakeMemoryResident(), it is not
added to the list container, and hence it is not migrated to device.

So, add a container of resident allocations to the driver and migrate
them along with the other allocations.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-12-11 03:27:42 +01:00
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