feature: update base layout of L0 handles to match ze_handle_t layout

this layout is required by L0 DDI Handle extension

Related-To: NEO-13121, NEO-13917
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-02-19 17:56:25 +00:00
committed by Compute-Runtime-Automation
parent 26ab3d89f0
commit 276c606329
49 changed files with 180 additions and 155 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -20,7 +20,7 @@ struct OsSysman;
class Diagnostics : _zes_diag_handle_t {
public:
~Diagnostics() override {}
virtual ~Diagnostics() = default;
virtual ze_result_t diagnosticsGetProperties(zes_diag_properties_t *pProperties) = 0;
virtual ze_result_t diagnosticsGetTests(uint32_t *pCount, zes_diag_test_t *pTests) = 0;
virtual ze_result_t diagnosticsRunTests(uint32_t start, uint32_t end, zes_diag_result_t *pResult) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2024 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -21,6 +21,7 @@ struct OsSysman;
class Engine : _zes_engine_handle_t {
public:
virtual ~Engine() = default;
virtual ze_result_t engineGetProperties(zes_engine_properties_t *pProperties) = 0;
virtual ze_result_t engineGetActivity(zes_engine_stats_t *pStats) = 0;
virtual ze_result_t engineGetActivityExt(uint32_t *pCount, zes_engine_stats_t *pStats) = 0;

View File

@@ -30,7 +30,7 @@ class FabricDevice {
class FabricPort : _zes_fabric_port_handle_t {
public:
~FabricPort() override = default;
virtual ~FabricPort() = default;
virtual ze_result_t fabricPortGetProperties(zes_fabric_port_properties_t *pProperties) = 0;
virtual ze_result_t fabricPortGetLinkType(zes_fabric_link_type_t *pLinkType) = 0;
virtual ze_result_t fabricPortGetConfig(zes_fabric_port_config_t *pConfig) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -18,6 +18,7 @@ namespace Sysman {
struct OsSysman;
class Fan : _zes_fan_handle_t {
public:
virtual ~Fan() = default;
virtual ze_result_t fanGetProperties(zes_fan_properties_t *pProperties) = 0;
virtual ze_result_t fanGetConfig(zes_fan_config_t *pConfig) = 0;
virtual ze_result_t fanSetDefaultMode() = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2024 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -19,7 +19,7 @@ struct OsSysman;
class Firmware : _zes_firmware_handle_t {
public:
~Firmware() override {}
virtual ~Firmware() = default;
virtual ze_result_t firmwareGetProperties(zes_firmware_properties_t *pProperties) = 0;
virtual ze_result_t firmwareFlash(void *pImage, uint32_t size) = 0;
virtual ze_result_t firmwareGetFlashProgress(uint32_t *pCompletionPercent) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -21,7 +21,7 @@ struct OsSysman;
class Frequency : _zes_freq_handle_t {
public:
~Frequency() override {}
virtual ~Frequency() = default;
virtual ze_result_t frequencyGetProperties(zes_freq_properties_t *pProperties) = 0;
virtual ze_result_t frequencyGetAvailableClocks(uint32_t *pCount, double *phFrequency) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -20,6 +20,7 @@ struct OsSysman;
class Memory : _zes_mem_handle_t {
public:
virtual ~Memory() = default;
virtual ze_result_t memoryGetProperties(zes_mem_properties_t *pProperties) = 0;
virtual ze_result_t memoryGetBandwidth(zes_mem_bandwidth_t *pBandwidth) = 0;
virtual ze_result_t memoryGetState(zes_mem_state_t *pState) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -19,7 +19,7 @@ struct OsSysman;
class Performance : _zes_perf_handle_t {
public:
~Performance() override {}
virtual ~Performance() = default;
virtual ze_result_t performanceGetProperties(zes_perf_properties_t *pProperties) = 0;
virtual ze_result_t performanceGetConfig(double *pFactor) = 0;
virtual ze_result_t performanceSetConfig(double pFactor) = 0;

View File

@@ -18,6 +18,7 @@ namespace Sysman {
struct OsSysman;
class Power : _zes_pwr_handle_t {
public:
virtual ~Power() = default;
virtual ze_result_t powerGetProperties(zes_power_properties_t *pProperties) = 0;
virtual ze_result_t powerGetEnergyCounter(zes_power_energy_counter_t *pEnergy) = 0;
virtual ze_result_t powerGetLimits(zes_power_sustained_limit_t *pSustained, zes_power_burst_limit_t *pBurst, zes_power_peak_limit_t *pPeak) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -20,6 +20,7 @@ struct OsSysman;
class Ras : _zes_ras_handle_t {
public:
virtual ~Ras() = default;
virtual ze_result_t rasGetProperties(zes_ras_properties_t *pProperties) = 0;
virtual ze_result_t rasGetConfig(zes_ras_config_t *pConfig) = 0;
virtual ze_result_t rasSetConfig(const zes_ras_config_t *pConfig) = 0;

View File

@@ -21,6 +21,7 @@ namespace Sysman {
struct OsSysman;
class Scheduler : _zes_sched_handle_t {
public:
virtual ~Scheduler() = default;
virtual ze_result_t schedulerGetProperties(zes_sched_properties_t *pProperties) = 0;
virtual ze_result_t getCurrentMode(zes_sched_mode_t *pMode) = 0;
virtual ze_result_t getTimeoutModeProperties(ze_bool_t getDefaults, zes_sched_timeout_properties_t *pConfig) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -20,7 +20,7 @@ struct OsSysman;
class Standby : _zes_standby_handle_t {
public:
~Standby() override {}
virtual ~Standby() = default;
virtual ze_result_t standbyGetProperties(zes_standby_properties_t *pProperties) = 0;
virtual ze_result_t standbyGetMode(zes_standby_promo_mode_t *pMode) = 0;
virtual ze_result_t standbySetMode(const zes_standby_promo_mode_t mode) = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -19,6 +19,7 @@ namespace Sysman {
struct OsSysman;
class Temperature : _zes_temp_handle_t {
public:
virtual ~Temperature() = default;
virtual ze_result_t temperatureGetProperties(zes_temp_properties_t *pProperties) = 0;
virtual ze_result_t temperatureGetConfig(zes_temp_config_t *pConfig) = 0;
virtual ze_result_t temperatureSetConfig(const zes_temp_config_t *pConfig) = 0;

View File

@@ -22,6 +22,7 @@ struct OsSysman;
class VfManagement : _zes_vf_handle_t {
public:
virtual ~VfManagement() = default;
virtual ze_result_t vfGetCapabilities(zes_vf_exp2_capabilities_t *pCapability) = 0;
virtual ze_result_t vfGetMemoryUtilization(uint32_t *pCount, zes_vf_util_mem_exp2_t *pMemUtil) = 0;
virtual ze_result_t vfGetEngineUtilization(uint32_t *pCount, zes_vf_util_engine_exp2_t *pEngineUtil) = 0;