refactor: cleanup includes

Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
This commit is contained in:
Jaroslaw Warchulski
2025-11-13 09:16:13 +00:00
committed by Compute-Runtime-Automation
parent a80951ee87
commit b1dbeebe01
33 changed files with 91 additions and 40 deletions

View File

@@ -13,9 +13,13 @@
#include "level_zero/ze_api.h"
#include <limits>
#include <vector>
namespace NEO {
class GraphicsAllocation;
struct ImplicitArgs;
}
} // namespace NEO
namespace L0 {

View File

@@ -8,9 +8,9 @@
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/windows/windows_wrapper.h"
#include "level_zero/sysman/source/api/events/sysman_os_events.h"
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"
namespace L0 {
namespace Sysman {

View File

@@ -7,9 +7,10 @@
#include "level_zero/sysman/source/api/global_operations/windows/sysman_os_global_operations_imp.h"
#include "shared/source/helpers/gfx_core_helper.h"
#include "shared/source/os_interface/os_interface.h"
#include "shared/source/os_interface/os_time.h"
#include "level_zero/sysman/source/device/sysman_device_imp.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"
namespace L0 {
namespace Sysman {

View File

@@ -18,6 +18,8 @@
#include "level_zero/sysman/source/shared/linux/sysman_fs_access_interface.h"
#include "level_zero/sysman/source/shared/linux/zes_os_sysman_imp.h"
#include <sstream>
namespace L0 {
namespace Sysman {

View File

@@ -12,8 +12,6 @@
#include "level_zero/sysman/source/shared/windows/product_helper/sysman_product_helper.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"
#include <Windows.h>
namespace L0 {
namespace Sysman {

View File

@@ -7,6 +7,7 @@
#pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/windows/windows_wrapper.h"
#include "level_zero/sysman/source/api/memory/sysman_os_memory.h"
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"

View File

@@ -7,6 +7,7 @@
#include "level_zero/sysman/source/api/pci/windows/sysman_os_pci_imp.h"
#include "level_zero/sysman/source/device/sysman_device_imp.h"
#include "level_zero/sysman/source/shared/windows/product_helper/sysman_product_helper.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,6 +7,8 @@
#include "level_zero/sysman/source/api/performance/windows/sysman_os_performance_imp.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"
namespace L0 {
namespace Sysman {

View File

@@ -7,10 +7,11 @@
#include "level_zero/sysman/source/api/power/windows/sysman_os_power_imp.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "level_zero/sysman/source/shared/windows/product_helper/sysman_product_helper.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"
#include "level_zero/sysman/source/sysman_const.h"
namespace L0 {
namespace Sysman {

View File

@@ -11,6 +11,8 @@
#include "level_zero/sysman/source/shared/linux/product_helper/sysman_product_helper_hw.h"
#include "level_zero/sysman/source/shared/linux/product_helper/sysman_product_helper_hw.inl"
#include <sstream>
namespace L0 {
namespace Sysman {
constexpr static auto gfxProduct = IGFX_BMG;

View File

@@ -7,13 +7,15 @@
#pragma once
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys.h"
#include <level_zero/ze_api.h>
#include <level_zero/zes_api.h>
#include "neo_igfxfmid.h"
#include <map>
#include <memory>
#include <string>
#include <vector>
namespace NEO {
@@ -24,6 +26,7 @@ namespace L0 {
namespace Sysman {
class SysmanProductHelper;
class WddmSysmanImp;
using SysmanProductHelperCreateFunctionType = std::unique_ptr<SysmanProductHelper> (*)();
extern SysmanProductHelperCreateFunctionType sysmanProductHelperFactory[IGFX_MAX_PRODUCT];

View File

@@ -5,8 +5,11 @@
*
*/
#include "level_zero/sysman/source/device/sysman_device.h"
#include "level_zero/sysman/source/shared/windows/product_helper/sysman_product_helper.h"
#include "level_zero/sysman/source/shared/windows/product_helper/sysman_product_helper_hw.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"
#include "level_zero/sysman/source/sysman_const.h"
namespace L0 {

View File

@@ -8,10 +8,12 @@
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"
#include "shared/source/helpers/gfx_core_helper.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/driver_info.h"
#include "shared/source/os_interface/windows/wddm/wddm.h"
#include "level_zero/core/source/driver/driver.h"
#include "level_zero/sysman/source/device/sysman_device_imp.h"
#include "level_zero/sysman/source/shared/firmware_util/sysman_firmware_util.h"
#include "level_zero/sysman/source/shared/windows/pmt/sysman_pmt.h"
#include "level_zero/sysman/source/shared/windows/product_helper/sysman_product_helper.h"
@@ -65,6 +67,12 @@ SysmanDeviceImp *WddmSysmanImp::getSysmanDeviceImp() {
return pParentSysmanDeviceImp;
}
const NEO::HardwareInfo &WddmSysmanImp::getHardwareInfo() const {
return pParentSysmanDeviceImp->getHardwareInfo();
}
PRODUCT_FAMILY WddmSysmanImp::getProductFamily() const { return pParentSysmanDeviceImp->getProductFamily(); }
SysmanProductHelper *WddmSysmanImp::getSysmanProductHelper() {
UNRECOVERABLE_IF(nullptr == pSysmanProductHelper);
return pSysmanProductHelper.get();

View File

@@ -6,24 +6,29 @@
*/
#pragma once
#include "shared/source/helpers/hw_info.h"
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/driver_info.h"
#include "shared/source/os_interface/product_helper.h"
#include "level_zero/sysman/source/device/os_sysman.h"
#include "level_zero/sysman/source/device/sysman_device.h"
#include "level_zero/sysman/source/device/sysman_device_imp.h"
#include "level_zero/sysman/source/shared/firmware_util/sysman_firmware_util.h"
#include "level_zero/sysman/source/shared/windows/sysman_kmd_sys_manager.h"
#include "neo_igfxfmid.h"
#include <array>
#include <cstdint>
namespace NEO {
class Wddm;
}
struct HardwareInfo;
} // namespace NEO
namespace L0 {
namespace Sysman {
class FirmwareUtil;
class KmdSysManager;
class SysmanProductHelper;
class PlatformMonitoringTech;
struct SysmanDevice;
struct SysmanDeviceImp;
class WddmSysmanImp : public OsSysman, NEO::NonCopyableAndNonMovableClass {
public:
@@ -40,8 +45,8 @@ class WddmSysmanImp : public OsSysman, NEO::NonCopyableAndNonMovableClass {
uint32_t getSubDeviceCount() override;
void getDeviceUuids(std::vector<std::string> &deviceUuids) override;
SysmanDeviceImp *getSysmanDeviceImp();
const NEO::HardwareInfo &getHardwareInfo() const override { return pParentSysmanDeviceImp->getHardwareInfo(); }
PRODUCT_FAMILY getProductFamily() const { return pParentSysmanDeviceImp->getProductFamily(); }
const NEO::HardwareInfo &getHardwareInfo() const override;
PRODUCT_FAMILY getProductFamily() const;
SysmanProductHelper *getSysmanProductHelper();
PlatformMonitoringTech *getSysmanPmt();
bool getUuid(std::array<uint8_t, NEO::ProductHelper::uuidSize> &uuid);

View File

@@ -9,6 +9,7 @@
#include "shared/test/common/helpers/default_hw_info.h"
#include "level_zero/sysman/source/device/sysman_device_imp.h"
#include "level_zero/sysman/source/driver/sysman_driver.h"
#include "level_zero/sysman/source/driver/sysman_driver_handle_imp.h"
#include "level_zero/sysman/source/shared/windows/zes_os_sysman_imp.h"

View File

@@ -6,13 +6,17 @@
*/
#pragma once
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "level_zero/core/source/event/event.h"
#include "level_zero/core/source/helpers/api_handle_helper.h"
#include "level_zero/tools/source/metrics/os_interface_metric.h"
#include "level_zero/zet_intel_gpu_metric.h"
#include <cstring>
#include <map>
#include <vector>
namespace L0 {
struct Device;
} // namespace L0

View File

@@ -7,7 +7,8 @@
#include "level_zero/tools/source/metrics/metric_oa_export_data.h"
#include "shared/source/helpers/string.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/debug_helpers.h"
#include "level_zero/tools/source/metrics/metric_oa_enumeration_imp.h"
#include "level_zero/tools/source/metrics/metric_oa_source.h"

View File

@@ -5,6 +5,7 @@
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/os_interface/linux/engine_info.h"
#include "shared/source/os_interface/linux/i915_prelim.h"

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2023 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,6 +7,7 @@
#pragma once
#include <cstddef>
#include <unordered_set>
namespace NEO {

View File

@@ -11,6 +11,7 @@
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/os_interface.h"
#include "shared/source/utilities/io_functions.h"
namespace NEO {
std::unique_ptr<NEO::Debugger> DebuggerL0::create(NEO::Device *device) {

View File

@@ -7,8 +7,8 @@
#pragma once
#include "shared/source/commands/bxml_generator_glue.h"
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/is_pod_v.h"
#include <cstring>
#include <igfxfmid.h>

View File

@@ -101,6 +101,7 @@ set(NEO_CORE_HELPERS
${CMAKE_CURRENT_SOURCE_DIR}/hw_walk_order.h
${CMAKE_CURRENT_SOURCE_DIR}/in_order_cmd_helpers.cpp
${CMAKE_CURRENT_SOURCE_DIR}/in_order_cmd_helpers.h
${CMAKE_CURRENT_SOURCE_DIR}/is_pod_v.h
${CMAKE_CURRENT_SOURCE_DIR}/kernel_helpers.cpp
${CMAKE_CURRENT_SOURCE_DIR}/kernel_helpers.h
${CMAKE_CURRENT_SOURCE_DIR}/kmd_notify_properties.cpp

View File

@@ -139,11 +139,6 @@ namespace InterruptId {
static constexpr uint32_t notUsed = std::numeric_limits<uint32_t>::max();
}
namespace TypeTraits {
template <typename T>
constexpr bool isPodV = std::is_standard_layout_v<T> && std::is_trivial_v<T> && std::is_trivially_copyable_v<T>;
} // namespace TypeTraits
struct BcsSplitSettings {
BcsInfoMask allEngines = {};
BcsInfoMask h2dEngines = {};

View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <type_traits>
namespace NEO {
namespace TypeTraits {
template <typename T>
constexpr bool isPodV = std::is_standard_layout_v<T> && std::is_trivial_v<T> && std::is_trivially_copyable_v<T>;
} // namespace TypeTraits
} // namespace NEO

View File

@@ -9,6 +9,7 @@
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/debug_helpers.h"
#include <cstddef>
#include <cstdint>
#include <limits>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2024 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -7,12 +7,11 @@
#pragma once
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/is_pod_v.h"
#include <cstddef>
#include <cstdint>
#include <type_traits>
template <typename T>
struct Vec3 {

View File

@@ -16,7 +16,6 @@
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/linux/drm_wrappers.h"
#include "shared/source/os_interface/linux/engine_info.h"
#include "shared/source/os_interface/linux/file_descriptor.h"
#include "shared/source/os_interface/linux/i915.h"
#include "shared/source/os_interface/linux/ioctl_helper.h"
#include "shared/source/os_interface/linux/memory_info.h"
@@ -25,9 +24,10 @@
#include "shared/source/os_interface/os_time.h"
#include "shared/source/os_interface/product_helper.h"
#include "shared/source/utilities/directory.h"
#include "shared/source/utilities/logger.h"
#include <fcntl.h>
#include <span>
#include <ios>
#include <ostream>
#include <sstream>
namespace NEO {

View File

@@ -7,8 +7,8 @@
#pragma once
#include "shared/source/commands/bxml_generator_glue.h"
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/is_pod_v.h"
#include <cstring>
#include <igfxfmid.h>

View File

@@ -7,8 +7,8 @@
#pragma once
#include "shared/source/commands/bxml_generator_glue.h"
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/is_pod_v.h"
#include <cstdint>
#include <cstring>

View File

@@ -8,8 +8,8 @@
#pragma once
#include "shared/source/commands/bxml_generator_glue.h"
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/is_pod_v.h"
#include "shared/source/xe_hpc_core/hw_info.h"
#include "neo_igfxfmid.h"

View File

@@ -7,8 +7,8 @@
#pragma once
#include "shared/source/commands/bxml_generator_glue.h"
#include "shared/source/helpers/common_types.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/helpers/is_pod_v.h"
#include "shared/source/xe_hpg_core/hw_info.h"
#include "neo_igfxfmid.h"

View File

@@ -7,14 +7,11 @@
#include "shared/test/common/mocks/mock_sip.h"
#include "shared/source/helpers/string.h"
#include "shared/source/memory_manager/memory_allocation.h"
#include "shared/test/common/helpers/test_files.h"
#include "common/StateSaveAreaHeader.h"
#include <fstream>
#include <map>
namespace NEO {
static constexpr SIP::StateSaveAreaHeaderV3 mockSipStateSaveAreaHeaderV3 = {

View File

@@ -6,7 +6,7 @@
*/
#include "shared/source/gmm_helper/client_context/gmm_client_context.h"
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/compiler_product_helper.h"
#include "shared/source/os_interface/linux/memory_info.h"
#include "shared/source/os_interface/linux/os_context_linux.h"