Commit Graph

20 Commits

Author SHA1 Message Date
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
Kulkarni, Ashwin Kumar cf55a92b79 Defer Sysman PCI, Global operations and Events Module Initialization
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>
2022-08-02 08:56:04 +02:00
Bellekallu Rajkiran cf9e48db83 Update PCI interface
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>
2022-06-17 11:58:20 +02:00
Mayank Raghuwanshi fac75222a3 Move Pci bdf parsing to os specific layer
Related-To: LOCI-2879

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-03-15 08:58:30 +01:00
Ayush Pandey 715b9d31d2 Find sscanf alternative.
Used strtol() to write sscanfUtil to extraxt info of BDF pcipath.

Related-To: LOCI-1002

Signed-off-by: Ayush Pandey <ayush.pandey@intel.com>
2022-01-21 09:02:48 +01:00
Mayank Raghuwanshi d2014b2869 Add support for 32 GTs pci link speed and 0 power_min_limit
Related-To: LOCI-2489, LOCI-2488

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-09-07 08:51:45 +02:00
Jitendra Sharma c54152bbbc Sysman: Add support to check whether resizable PCI BAR is enabled
Related-To: LOCI-2414

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-08-09 19:37:16 +02:00
Jitendra Sharma fdc71ea26e Sysman: Fix format specifier mismatch warning in PCI API
Related-To: LOCI-2445
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-07-30 22:27:21 +02:00
Jitendra Sharma 478edfc0e4 Sysman: Add support to check if resizable Bar supported
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-07-27 08:13:08 +02:00
Daniel Enriquez 2f7ad764ad Implementation of the BAR Properties 1.2.
Windows Implementation for Resizable Bar on 1.2.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-06-29 22:01:16 +02:00
lgotszal 3bd4bca911 Copyright header update
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>
2021-05-17 20:38:19 +02:00
Daniel Enriquez c7037aca4d Enabling Windows Pci component.
Change-Id: Idfd1acb8f257ab91dd28707f0b42b3da3981214e
2020-08-28 23:48:13 +02:00
mraghuwa 4b8d4285d7 add getDeviceHandle() at OS specific level
Change-Id: I95fc24043f8f603d6270323b0f23a78f9d8ad2f1
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-08-18 17:11:22 +02:00
Jitendra Sharma f4742855d8 Update zesDevicePciGetBars API to report correct count of bars
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>
2020-08-07 18:08:06 +02:00
Vilvaraj, T J Vivek a6ea7ab7db update Sysman PCI APIs to lastest Spec
Change-Id: Ie4daf2eb3596f05f824579eff3fe811ebb2f2032
2020-08-05 18:01:37 +02:00
Jaime Arteaga 902fc2f6c4 level-zero v1.0 (2/N)
Change-Id: I1419231a721fab210e166d26a264cae04d661dcd
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
Signed-off-by: macabral <matias.a.cabral@intel.com>
Signed-off-by: davidoli <david.olien@intel.com>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com>
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-08-03 13:11:13 +02:00
T.J. Vivek Vilvaraj 6224db771a PCI driver fix for Discrete devices
Change-Id: I91e444c88b5e72463c7f181ece535da4150a2665
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-15 23:33:59 +02:00
Jitendra Sharma c43759cc48 Cleanup and fixes in sysman source
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>
2020-06-25 18:32:33 +02:00
Mraghuwa b6ccfed471 Redesign ULT by mocking sysfs and implementing for pci
Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
2020-06-02 08:46:10 +02:00
Brandon Fliflet 27f4bce42f Initial support for oneAPI Level Zero
Change-Id: I221df8427b1844237a4d9d900c58512706b0be0f
2020-03-06 14:53:29 +01:00