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>
Modify PCI interface to get max speed and width from
pci config space.
Related-To: LOCI-3137
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@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 change updates Temperature APIs to get correct current
temperature based on updated PMT interface.
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This change does the following:
- As per latest spec, update zesDevicePciGetBars API to report
correct number of bars.
- Cleanup to remove environment variable check while creating
temperature handles.
Change-Id: I4f86210093e3d142183a01bef89417ef9d9fde9b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
In this Change:
- Initialize local variables used in pci source.
- Move setting of temperature handle's type to constructor of
TemperatureImp class as temperature handle's type is used in
init() of TemperatureImp class.
- Allow only ENOENT errno at the end of FsAccess::listDirectory function.
Because in this function all directory entries will be read in a
loop. And loop will exit only after readdir() finished reading
all entries in directory and thus readdir() will exit, when it fails
reading any further entry. Thus system will return ENOENT for readdir.
Change-Id: Ibd3ac3f841b114fd87edea1410750b33f3a14e5b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
If system reports incorrect PCI width, then check width against valid
value, and report correct PCI width accordingly.
Change-Id: I56f8fe96785ccd22032860d55dd96b81d5fc53f7
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
Implemented function level reset.
Implementation is:
Make sure we are root (otherwise, return insufficient permissions)
Make sure no one has the device open
(otherwise, return hande object in use)
Close our file handle
Unbind the device from the kernel driver
Make sure no one still has the device open
(otherwise, kill them)
Perform function level reset (FLR)
Rebind the device to the kernel driver
Change-Id: Ic57b95487e73b5a5f2d03e619d813bf4199adf40
Signed-off-by: Bill Jordan <bill.jordan@intel.com>