Commit Graph

1724 Commits

Author SHA1 Message Date
Filip Hazubski 5be4d89b73 Rename function
Rename MemorySynchronizationCommands::isDcFlushAllowed
to MemorySynchronizationCommands::getDcFlushEnable

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-30 17:03:22 +01:00
Aravind Gopalakrishnan 882ae8088f Skip L3Flush event packets during timestamp calculation
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-12-29 20:03:48 +01:00
Kopryk, Kamil 446a78a134 Force stateless addressing mode for PVC
PVC will support buffers greater than 4GB, hence we have to
use stateless accessing mode as default.

Signed-off-by: Kopryk, Kamil <kamil.kopryk@intel.com>
2021-12-29 14:53:18 +01:00
Maciej Plewka 615688336f Program all fields in SCM
Related-To: NEO-6432

This change applies WA that always programs all fields in SCM for
gen12lp. Also for those platforms Force Non-Coherent is set to 0x2.

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-12-28 16:30:47 +01:00
Szymon Morek d9f6757378 Change return type from unique_ptr to vector
In some of the drm functions there is a pattern
to store array in unique_ptr and pass it's length
as an argument. This commit simplifies this.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-28 10:33:53 +01:00
Jaime Arteaga 3b497270c8 Add support for memory free policies
Add support for ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_BLOCKING_FREE
added in v1.3.

Related-To: LOCI-2672

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-12-28 08:27:50 +01:00
Mayank Raghuwanshi 25403cf85d Add support for device level performance factor
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-12-28 07:13:51 +01:00
Young Jin Yoon c9f6460d9f Revert "Fix truncation issues from size_t to uint32_t"
This reverts commit 314d549b003a26066a3290db8d87eef59fb347f9.

This revert is to avoid errors and performance regressions on
specific platforms.

Related-To: LOCI-2558

Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2021-12-27 19:00:58 +01:00
Maciej Plewka df7723411f Patch image descriptor fields with dword width
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-12-27 17:55:42 +01:00
Patryk Wrobel 349ee79d83 Improve unit tests of ModuleBuildLogImp::getString()
Added unit tests, which cover corner cases related to size of a passed buffer.
This PR is a follow-up to introduction of recompilation warning and is caused
by removal of a bug in usage of memcpy_s.

Related-To: NEO-5819
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2021-12-27 16:53:07 +01:00
Joshua Santosh Ranjan e1ef9ac79a Revert "Metric Detect Paranoid mode and fail gracefully"
This reverts commit a720282358dff08fb36b95eaf9bf184efa315f48.

This revert is to avoid suggesting to disable paranoid mode.
This revert also avoids L0 metrics mandating paranoid mode
setting.

Related-To: LOCI-2822

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-12-23 19:30:47 +01:00
T J Vivek Vilvaraj 9a39cad07d sysman:add reinitialization code to diagnostics
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-12-23 18:27:06 +01:00
Patryk Wrobel 3599e7aeda Add warning when device binary had to be recompiled
Introduced a new warning, which is printed to build log, when the
binary needs to be recompiled. Added a new flag -Wno-recompiled-from-ir
to allow suppression of that message. Removed a bug related to memcpy_s
from ModuleBuildLogImp::getString() and aligned it with specification.

Related-To: NEO-5819
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2021-12-23 16:13:59 +01:00
Jaime Arteaga 7364288ed9 Revert "Use correct enum values for sampler in clamp mode"
This reverts commit c8737c6b4b3c67a81f7b4d1ea0918a5f9daac87d.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-12-22 22:17:57 +01:00
Mateusz Jablonski 896e01c1cb Require exact revision when getting binary builtin for PVC
this change also implements logic for recompilation of builtin from spv in L0
in case when binary resource is not available


Related-To: NEO-6170
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-22 19:56:54 +01:00
Maciej Plewka c92a4acc01 Use correct enum values for sampler in clamp mode
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-12-22 19:40:30 +01:00
Filip Hazubski f4c151cce5 Refactor PipeControlArgs struct
Remove struct PipeControlArgsBase

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-22 17:13:16 +01:00
Filip Hazubski 9a450d1b74 Pass hwInfo to appendMiFlushDw
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-22 15:22:47 +01:00
Vilvaraj, T J Vivek 15f102a7cb sysman:modify diagnostics tests
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-12-22 14:53:38 +01:00
Filip Hazubski eec857932a Split test file
Split test_metric_streamer_2.cpp file

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-22 14:40:43 +01:00
Szymon Morek 2647d563c7 Remove i915 structs from MemoryInfo
Use structs defined in ioctl_helper.h instead of
i915 dependent ones to avoid conflicts between
different kernels

Related-To: NEO-6149

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-22 12:46:59 +01:00
Jaime Arteaga dfe2be6e1a Remove EnableCrossDeviceAccess
And rely now on querying the KMD for support.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-12-22 09:13:11 +01:00
Jaime Arteaga e5415dad5d Use base pointer when looking for peer allocations
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-12-22 06:03:31 +01:00
Neil R Spruit 64ca4b3456 Allow Explicit RTDispatch args and remove multi free of rtMemoryBackedBuffer
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2021-12-21 20:09:36 +01:00
Zbigniew Zdanowicz 6ab4b566aa Shift csr factory initialization to shared library
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-21 18:43:31 +01:00
Filip Hazubski 0fd685541d Add isDcFlushAllowed function to HwInfoConfig
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-21 18:29:43 +01:00
Mateusz Hoppe 4d906328e1 Change Allocation type in Mock Kernel to ISA
- ult refactor

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-12-21 15:35:39 +01:00
Dominik Dabek 17beabc32d Add full src path to ocloc cmd
Makes it easier to copy and execute the command

Related-To: NEO-6002

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-21 13:01:58 +01:00
Filip Hazubski 6d439f88bb Explicitly set dcFlushEnable value
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-21 12:21:11 +01:00
Mateusz Hoppe 17f82bbe12 Fix double ISA transfer for user kernels in L0
Related-To: NEO-6555

- ISA should only be copied once, after linking phase is complete

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-12-21 07:54:51 +01:00
Young Jin Yoon 702faca7a9 Fix truncation issues from size_t to uint32_t
Related-To: LOCI-2558
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2021-12-21 00:07:52 +01:00
Kamil Diedrich 6940fbf387 Program private 2 scratch in L0
Related-To: NEO-5427
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-12-20 23:25:09 +01:00
T J Vivek Vilvaraj b95428078e sysman: filter diagnostics related accesses
prevent diagnostics related calls on unsupported platforms


Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-12-20 12:49:49 +01:00
Filip Hazubski 461e6d841d Remove redundant thread arbitration policy variables for SCM
Remove CommandStreamReceiver::lastSentThreadArbitrationPolicy
Remove CommandStreamReceiver::requiredThreadArbitrationPolicy

Related-To: NEO-5995

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-17 19:47:59 +01:00
Bartosz Dunajski 02e00b2969 Add xe_hp_and_later L0 cmdlist unit tests
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-17 11:42:50 +01:00
Mateusz Jablonski 4d5ca8997b Move Deleter struct definition to mock_cmdqueue.h
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-17 10:29:58 +01:00
Mateusz Jablonski 66bf806018 Remove magic number from set/getBatchBufferStartAddressGraphicsaddress methods
rename methods to set/getBatchBufferStartAddress

Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-16 19:03:01 +01:00
Zbigniew Zdanowicz 59b9ee0127 Drop stalling command for partitioned kernels on xe hpc platform
Related-To: NEO-6262

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-16 16:51:38 +01:00
Michal Mrozek 62faecf6d5 Optimize virtual calls #2.
Optimize frequently used virtual cost.
Compiler cannot inline those which causes overhead.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-12-16 16:26:59 +01:00
Bartosz Dunajski e040c8c6bb Initial compression support for L0 Device allocations
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-16 15:55:13 +01:00
Michal Mrozek b4ad6e011f Restore assert.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-12-16 13:37:26 +01:00
Michal Mrozek dc44b13b53 Optimize getRootDeviceIndex.
Virtual functions are not easily optimizable by compiler,
so making this normal function.
This function is called heavily so it needs to be highly optimized.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-12-16 11:53:12 +01:00
Bartosz Dunajski 8b4a7dac8f Respect Uncompressed hint when allocating L0 Image
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-16 00:51:38 +01:00
Mateusz Jablonski 3e862d1fbc Add test matcher for at least Skylake platform
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 19:52:00 +01:00
Bartosz Dunajski 175d4d332f L0 compression hints parsing support
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-15 16:51:29 +01:00
Mateusz Jablonski ee18008750 Remove duplicated test.h header
use full path to include test.h
add missing headers to source list


Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 15:34:45 +01:00
Mateusz Jablonski ad184642a6 Use full path to include test.h 3/n
fix files in level_zero

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 13:42:33 +01:00
Zbigniew Zdanowicz c7693650de Fix partition count after command list reset
Related-To: NEO-6262

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-15 11:11:26 +01:00
Ranjan, Joshua Santhosh 5a2a19fa1a Sysman Fix FirmwareUtil Cleanup
Fixed by avoiding library function access if library is unavailable.


Related-To: LOCI-2719

Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
2021-12-15 09:18:18 +01:00
Jim Snow b813171797 Add unit test to verify rtDispatchGlobals is correctly patched
Related-To: NEO-6529

Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2021-12-15 07:53:16 +01:00