Commit Graph

633 Commits

Author SHA1 Message Date
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
Mateusz Hoppe
4d2750161d Move OsAgnosticMemoryManager to shared
Resolves: NEO-5188
-move MockGraphicsAllocation to shared

Change-Id: I17e90af48183f003151fab075a46e40d7df3f160
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-02 21:02:53 +01:00
Jaroslaw Chodor
d181a2e5a3 Fixing zeKernelGetProperties
Additionally, adding zell_world_jitc_ocloc BB test

Change-Id: If3b8c7e4bd4a789ec1b4f4de55ab21e91c1e7afa
2020-11-02 19:38:39 +01:00
Aravind Gopalakrishnan
f9e0c04b54 Fix build error in ult
Change-Id: I44a66975df4d12e68b967f5dac28cffb8a145004
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2020-11-02 18:48:33 +01:00
Maciej Plewka
44af85b492 Return correct maxFillSize property
Related-To: NEO-5205

Change-Id: I62b7fec89451c640f70028b8d3ecb81f7655225d
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-02 16:10:01 +01:00
Mateusz Hoppe
17b2a29945 Remove incorrect UNRECOVERABLE_IF()
Change-Id: I5d56fcff8ca2449404c30b89d54f631b1da3db87
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-10-30 17:42:57 +01:00
Zbigniew Zdanowicz
c678f3d9b0 Make DeviceBitfield argument constant
Related-To: NEO-5225

Change-Id: I14a5a4cc3394cd2b58a74bda183c734a0d17ac25
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-10-30 13:45:32 +01:00
Jitendra Sharma
17970ad5e7 Add sysman handles for subdevice only after subdevices are created
Move location of assigning sysman handles, such that sysman handle
will be assigned to device and then assign that sysman handle
to subdevices of that device.

Change-Id: Ia606954a866c491e45803b903c8419ee09b1a939
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-30 09:45:08 +01:00
Jaroslaw Chodor
3e4079574c Reduce number of devices is multidevice fixture
Change-Id: I3269d9938f5842da87d2c2effef9e54286b3c0b5
2020-10-29 21:11:58 +01:00
Jaroslaw Chodor
345e56a151 Zebin improvements
* cleaning-up per-thread buffer size calculations
* fixing default slm alignment to 16
* adding scratch space slots
* renaming slm addressing mode
* adding support for zeinfo version

Change-Id: I0450353788b8488a685976d7f1dd26a44360383c
2020-10-29 16:33:21 +01:00
Mateusz Hoppe
d539a7f8e4 Adjust AllocationProperties for SBA tracking buffer
Change-Id: I00d9d40c854c45775254b017997c53f17559daa4
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-10-29 15:48:25 +01:00
davidoli
2fe425dc22 Improve thread private data destructor to be more robust
These changes make the at-exit processing of destructors
less sensitive to the order in which destructors are
called.

Without this change, if the destructor for the
list of thread private data pointers is called first,
then the thread private data destructor will segfault.

Change-Id: I4767de682eacf32bba874555532d043415bbea61
Signed-off-by: davidoli <david.olien@intel.com>
2020-10-29 12:22:14 +01:00
Mateusz Hoppe
ac3b65ba82 Refactor isDebuggerActive
- use it for SourceLevelDebugger only

Change-Id: I130219a13d6baa1f72c5b35295afd6efa4bf37fa
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-10-29 12:21:18 +01:00
Jaime Arteaga
e3ef10d57e Update Level Zero BUILD.md file
This to reflect current name for basic sample, zello_world_gpu.
Also, modify this sample to return vendorId in hexadecimal format.

Change-Id: If073648e436b607125a9f4176db640d070f7f7f3
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-10-29 11:12:13 +01:00
Maciej Plewka
6bb4112d1e Create heap helper for bindless
Related-To: NEO-4724

Change-Id: I62527a3ad06dce5d886b6ecfebd3c9abc46f6741
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-10-29 10:51:38 +01:00
mraghuwa
4e4affe53b Modify tdp sysfs path
Change-Id: Ie387a96f67b5760d8f1e359eea61c66aec631afd
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-29 10:33:23 +01:00
Zbigniew Zdanowicz
30a67618f8 Add DeviceBitfield argument to CSR constructor
Related-To: NEO-5225

Change-Id: I8cf0aef3ec16314cfb1a787852b6c20ce0f65955
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-10-28 17:10:31 +01:00
SaiKishore Konda
8c75080d9e update Memory Location for zesMemoryGetProperties
Change-Id: I2698352d89ed2351e6fa8ec0b58b277387650bc0
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-10-28 07:23:36 +01:00
Mateusz Hoppe
65690ccb21 Fix indirect dispatch programming
Related-To: NEO-5195

Change-Id: I82975abaa6323d27d3718ce1619748f7d83b55b4
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-10-28 01:06:08 +01:00
mraghuwa
978003e96e Add subdevice support for RAS module
Change-Id: Iced5aeed86d6b19a4710992155257e420ae1296f
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-27 17:54:29 +01:00
Mateusz Hoppe
31118b0bd7 Link L0 blackbox tests with ze_intel_gpu
Change-Id: I875db7fbf48cf2467d327c7de1d489db1bddd79b
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-10-27 14:37:45 +01:00
Kanhaiya
5ab3e9966d Retrieve PhysicalSize of zes_mem_properties_t
Change-Id: Ie7dbf9630becf097af7a5a7a234d5ea1da471492
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-27 13:20:59 +01:00
Jaime Arteaga
2fb48224a7 Remove unneeded variable
Change-Id: I1abc953063ed196bc045ef3084747a5328e7d443
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-10-27 09:30:20 +01:00
Mrozek, Michal
f53a6acb7f Revert "Use device allocation for events if host visibility not set"
This reverts commit 27e2c32daa.

Change-Id: I8035aad67a1aa1ed37d95a9bcd4354a64d75ac07
2020-10-26 00:21:27 -07:00