Commit Graph

11779 Commits

Author SHA1 Message Date
Krystian Chmielewski 62ed04d5c1 feat(zebin): add platform compatibility check
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-08 19:05:06 +01:00
Kamil Kopryk 4a48077a9f Correct typo - executionEnvironment
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-11-08 18:23:07 +01:00
Dominik Dabek 30fe24aa79 Avoid cmpexchg due to CPU Hardware limitation
Limit the amount of times compare_exchange_weak is called,
to avoid issues with contention when multiple cpu cores request
the same address.

Related-To: NEO-7030

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-11-08 17:11:52 +01:00
Mateusz Hoppe f77f47099c OCL: Fix error for too big dimensions
- cases with null lws should only fail when computed
lws sizes result in too big number of workgroups

Related-To: NEO-6976

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-11-08 16:11:41 +01:00
Krystian Chmielewski 7be9881758 Fix 32b elf symbols
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-08 15:30:21 +01:00
Artur Harasimiuk e643f745d3 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-11-08 14:55:07 +01:00
Mateusz Jablonski 67e1da1c07 Reorder members of Hardware Info to achieve optimal struct padding
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-08 14:54:18 +01:00
Dunajski, Bartosz 918d7b1da4 Helper for MI_SET_PREDICATE programming
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-11-08 14:20:01 +01:00
Kamil Kopryk c027d2c494 Remove not needed isL3Configurable helper function
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

Remove isL3Configurable function from
- HwHelper
- PreambleHelper
2022-11-08 14:11:23 +01:00
Kacper Nowak a12251d464 feat(zebin): code improvements
- Set initial value for ArgIndexT index in
KernelArgMiscInfoT struct
- Add check for arg index in extended metadata in order to avoid OOB
accesses
- Fix missing: populating ArgTypeTraits + refactor ULTs in order to
check it
- Add missing ULTs for Program::callPopulateZebinExtendedArgsMetadataOnce

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-11-08 14:10:55 +01:00
Katarzyna Cencelewska 2d229f3fea Set as default use of device based timestamps
Related-To: NEO-7042
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-11-08 13:34:58 +01:00
Krystian Chmielewski b435c061c7 fix ocloc test
Add handling for 32bit elfs in ocloc tests.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-08 13:29:46 +01:00
Daria Hinz 60a8bcb3d7 Use device ID from ProductConfigHelper
This commit switches the device ID logic from the deprecated
to the new one, so that if the user passes a hex value to the -device
parameter, ocloc will use the new implementation in the product config
helper.

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
Related-To: NEO-7487
2022-11-08 12:40:54 +01:00
Mateusz Hoppe a30cc94708 Zebin - fix program headers
- do not add CPU segment LOAD in debug zebin

Resolves: NEO-7481

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-11-08 12:32:19 +01:00
Pawel Cieslak cf66060533 Use provided I915_HEADERS_DIR in osv style builds
Related-To: NEO-5838
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-11-08 12:11:44 +01:00
Wrobel, Patryk 4c05a54c2b Use correct heap when opening device memory IPC handle
This change extends the logic of opening IPC
memory handles and fills the gap between this
logic and allocation of USM device buffers.

When HEAP_EXTENDED is available, then it is
preferred.

Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com>
2022-11-08 12:08:04 +01:00
Kamil Kopryk eafea5e2fe Move HwInfoConfig ownership to RootDeviceEnvironment 1/n
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

- Added HwInfoConfig getter in RootDeviceEnvironment,
which temporarily takes HwInfoConfig from the global array
- use HwInfoConfig from RootDeviceEnvironment to
call ConfigureHardwareCustom function
- Added getHwInfoConfig in DeviceFixture
- ConfigureHardwareCustom function and few others changed to const
- Small code cleanup
2022-11-08 10:52:08 +01:00
Kamil Kopryk 68300a9605 Correct typo - createFunc
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-11-08 09:16:43 +01:00
Kamil Kopryk 0b02e7a48b Remove not needed HwHelper functions
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

Remove not needed HwHelper functions
- getBindingTableStateSurfaceStatePointer
- getBindingTableStateSize
- getBindingTableStateAlignement
2022-11-08 09:16:28 +01:00
Cetnerowski, Adam b579bf645b Debug variable documentation cleanup (1/n)
- Apply common style
- Clarify definition
- Clarify usage

Related-to: NEO-6968

Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
2022-11-08 09:13:13 +01:00
Daria Hinz 0b3edc662e Remove unnecessary platform name translation
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2022-11-08 00:33:39 +01:00
Kamil Kopryk bf64769807 Remove not needed std::vector copies
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-11-07 23:25:14 +01:00
ocldev 6da32a9c5e dependencies update
Signed-off-by: ocldev <ocldev@intel.com>
2022-11-07 23:18:33 +01:00
Jim Snow 48ba0554db Allocate RTDispatchGlobals as array-of-structures.
This fixes several bugs in previous (reverted) implementation.
We use correct RTStack pointer offset, and a larger RTStack size.

Related-To: LOCI-2966

Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2022-11-07 21:25:32 +01:00
Mateusz Jablonski 04a66d2b61 Move helpers tests to shared
ray tracing tests
engine node helper xehp and later tests
hw helper tests

move shared ult from command queue to helpers

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-07 15:36:22 +01:00
Mateusz Jablonski 5b11a4a5fa Return submission status from flushHandler function
Related-To: NEO-7412
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-07 15:09:33 +01:00
Warchulski, Jaroslaw 6cbb3cfb05 Cleanup includes 3
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-07 14:52:31 +01:00
Yates, Brandon 99ef6c499b L0 debug - fix windows bitmask decode
Keep threads created in EU range (0,7)

Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
2022-11-07 14:41:29 +01:00
Mateusz Jablonski ac426f7fdc ULT: move sip tests to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-07 14:04:10 +01:00
Igor Venevtsev f47e1306f2 L0Debug: do not set acknowledge flag for MODULE_UNLOAD event
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-11-07 14:01:29 +01:00
Mateusz Jablonski 2e06634d91 ULT: Move aub mem dump tests to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-07 13:05:45 +01:00
Dunajski, Bartosz 67af920281 Unify programming of ending commands in direct submission path
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-11-07 10:56:36 +01:00
Kacper Nowak 9f465426e8 Zebin: enhance clCreateKernelsInProgramTests ULTs
- Do not use precompiled binaries in clCreateKernelsInProgramTests.
This change is required in order to enable zebin switch by default.

Related-To: NEO-7281
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-11-07 10:37:05 +01:00
Warchulski, Jaroslaw fb25f96081 Cleanup includes 2
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-07 10:36:50 +01:00
Bellekallu Rajkiran 4bbec2dbf4 Add support for board number property
Related-To: LOCI-3545

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-11-07 08:40:11 +01:00
Bellekallu Rajkiran 2c71df0957 Fix urecoverable abort upon detach event
Unrecoverable abort will be invoked when drm ioctls fail during
device destruction.

Remove abort for case where i915 is unbinded.

Related-To: LOCI-3139

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-11-07 08:39:00 +01:00
Compute-Runtime-Validation ddbaa5e8c9 Revert "Cleanup MediaInterfaceDescriptorLoad logic in command encoder"
This reverts commit 349af0bd5e.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-11-07 02:20:27 +01:00
Tratnack, Geoffrey 349af0bd5e Cleanup MediaInterfaceDescriptorLoad logic in command encoder
Add a patch to command encoder for samplers when DSH is dirty.

Signed-off-by: Tratnack, Geoffrey <geoffrey.tratnack@intel.com>
Related-To: LOCI-3365
2022-11-06 03:27:23 +01:00
Katarzyna Cencelewska 5cfb59c27e Disable timestamp shift for gen9
also move hwhelper tests from opencl to shared folder

Related-To: HSD-18025130857
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-11-05 11:58:14 +01:00
Compute-Runtime-Validation d91d22d1fe Revert "Replicate CONSTANT_SURFACE across tiles"
This reverts commit 9a4467f368.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-11-05 07:16:15 +01:00
Kacper Nowak dba54846a1 Zebin: enhance clBuildProgramTests ULTs
- Do not use precompiled binaries in clBuildProgramTests.
This change is required in order to enable zebin switch by default.

Related-To: NEO-7281
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-11-04 19:23:23 +01:00
Mateusz Jablonski 33e1b3a717 Command stream receiver: handle flush method failure when flushing BCS task
Related-To: NEO-7412
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-04 18:38:32 +01:00
Zbigniew Zdanowicz 27d042107a Add feature to estimate number of event packets
Related-To: NEO-7469

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-11-04 18:38:17 +01:00
Krystian Chmielewski 23bb199a15 vme kernels - fallback to ctni
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-04 18:38:01 +01:00
Warchulski, Jaroslaw ef95bfb45e Cleanup includes
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-04 18:04:13 +01:00
Mateusz Jablonski 1c3d5c3892 Prepare mechanism for returning GPU execution error on OCL API
translate task count value to OCL error

Related-To: NEO-7412
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-04 15:54:19 +01:00
Mateusz Jablonski ab6af4247e Add missing tests for hw info config dg1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-04 14:22:45 +01:00
Krystian Chmielewski 78d75dee0f Use mock in KernelArgInfoTest
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-04 14:09:47 +01:00
Krystian Chmielewski d72a5097b7 Remove unneded ocl test files compilation
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-04 14:09:31 +01:00
Krystian Chmielewski bb277c0830 Fix sub group info test
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-11-04 13:32:00 +01:00