Buffer usage of less size resulted in invalid board number.
Added logic to use sufficient size to retrieve board number
from PMT.
Added logic to provide decoded values rather than ASCII
characters.
Related-To: LOCI-3545
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
Invoking FwDeviceInit from several modules without closing
igsc device result in memory leak.
Add support to invoke FwDeviceInit only during creation of fw util
interface.
Related-To: LOCI-3204
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
Add platform check to read pmt offsets corresponding to
tile instead of root node for single tile devices.
Related-To: LOCI-2575
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
With this change, init for sysman PCI, Global operations and Events
API would not be done during zeInit.
init and thereby PCI, Global operations and Events API handle creation
would be done implicitly only when user explicitly calls any APIs.
Related-To: LOCI-3127
Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
The distance from the SGUnit to the Root port is constant.
calculating the Rootport and Cardbus based on this observation.
the root port and card bus are used by Warmreset function to
preserve the PCI config space.
Resolves: LOCI-2899
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
the scpoe of the restorer is till the LinuxSysmanImp is deleted.
Ideally the scope of restorer needs to be function level.
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
convert the present system of calling Inc/Dec of
execution environment to a more elegant solution
Resolves: LOCI-3165
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
The following modifications were done as part of the fix
for warm reset.
1. Release sysman resources before quiscenting the GPU.
2. Add additional checks to confirm quiscenting of the GPU
before launching the diagnostics tests.
3. Fixed warm reset with wait time to allow the changes to be
propagated to the entire GPU PCI tree.
4. Modified the ULT's completely to avoid the usage of MOCKS.
5. Made Diagnostics handle creation per-device from per-SubDevice.
Related-To: LOCI-3053
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
warm and cold reset are common functionality,
the code is being moved to the common sysman implementation
from diagnostics specific files.
Related-To: LOCI-1908
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
Before performing gpu device reset, first all level zero resources
and gpu device specific resources have to be cleaned up. Also as
after device reset, state of gpu device would be lost.
Hence after performing gpu device reset, level zero device have
to be reinitialized by querying gpu device again.
This change is aimed at reinitializing the level zero resources
after gpu device reset, so that user could continue using level zero
devices after device reset.
Related-To: LOCI-2627
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).
Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
This patch adds two ULTs.
Verify that an IN USE error is returned if the device is open by another
process.
Verify that reset succeeds if device is not in use.
Verify that reset with force succeeds if device is in use.
Verify that reset without force succeeds if device is opened during
reset, and process is killed.
Verify that reset with force fails with device in use
if device is opened during reset, and process will not die
Change-Id: I232572c192bc481d8d63ef39c7494976100325ff
Signed-off-by: Bill Jordan <bill.jordan@intel.com>