From 7b08ae3c39e2ff6e34d5c2ca5608217207348d56 Mon Sep 17 00:00:00 2001 From: Bellekallu Rajkiran Date: Thu, 7 Dec 2023 06:33:52 +0000 Subject: [PATCH] refactor: Add explicit product helper instantiations Signed-off-by: Bellekallu Rajkiran --- .../product_helper/gen11/icllp/CMakeLists.txt | 1 + .../enable_sysman_product_helper_icllp.cpp | 1 - .../icllp/sysman_product_helper_icllp.cpp | 18 ++++++++++++++++++ .../gen12lp/adln/CMakeLists.txt | 1 + .../enable_sysman_product_helper_adln.cpp | 1 - .../adln/sysman_product_helper_adln.cpp | 18 ++++++++++++++++++ .../gen12lp/adlp/CMakeLists.txt | 1 + .../enable_sysman_product_helper_adlp.cpp | 1 - .../adlp/sysman_product_helper_adlp.cpp | 18 ++++++++++++++++++ .../gen12lp/adls/CMakeLists.txt | 1 + .../enable_sysman_product_helper_adls.cpp | 1 - .../adls/sysman_product_helper_adls.cpp | 18 ++++++++++++++++++ .../dg1/enable_sysman_product_helper_dg1.cpp | 1 - .../gen12lp/dg1/sysman_product_helper_dg1.cpp | 6 ++---- .../product_helper/gen12lp/rkl/CMakeLists.txt | 1 + .../rkl/enable_sysman_product_helper_rkl.cpp | 1 - .../gen12lp/rkl/sysman_product_helper_rkl.cpp | 19 +++++++++++++++++++ .../gen12lp/tgllp/CMakeLists.txt | 1 + .../enable_sysman_product_helper_tgllp.cpp | 1 - .../tgllp/sysman_product_helper_tgllp.cpp | 19 +++++++++++++++++++ .../product_helper/gen9/cfl/CMakeLists.txt | 1 + .../cfl/enable_sysman_product_helper_cfl.cpp | 1 - .../gen9/cfl/sysman_product_helper_cfl.cpp | 18 ++++++++++++++++++ .../product_helper/gen9/kbl/CMakeLists.txt | 1 + .../kbl/enable_sysman_product_helper_kbl.cpp | 1 - .../gen9/kbl/sysman_product_helper_kbl.cpp | 18 ++++++++++++++++++ .../product_helper/gen9/skl/CMakeLists.txt | 1 + .../skl/enable_sysman_product_helper_skl.cpp | 1 - .../gen9/skl/sysman_product_helper_skl.cpp | 18 ++++++++++++++++++ .../pvc/enable_sysman_product_helper_pvc.cpp | 1 - .../pvc/sysman_product_helper_pvc.cpp | 3 +++ .../xe_hpg_core/arl/CMakeLists.txt | 1 + .../arl/enable_sysman_product_helper_arl.cpp | 1 - .../arl/sysman_product_helper_arl.cpp | 19 +++++++++++++++++++ .../dg2/enable_sysman_product_helper_dg2.cpp | 1 - .../dg2/sysman_product_helper_dg2.cpp | 7 +++---- .../xe_hpg_core/mtl/CMakeLists.txt | 1 + .../mtl/enable_sysman_product_helper_mtl.cpp | 1 - .../mtl/sysman_product_helper_mtl.cpp | 19 +++++++++++++++++++ 39 files changed, 221 insertions(+), 22 deletions(-) create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/sysman_product_helper_icllp.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/sysman_product_helper_adln.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/sysman_product_helper_adlp.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/sysman_product_helper_adls.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/sysman_product_helper_rkl.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/sysman_product_helper_tgllp.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/sysman_product_helper_cfl.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/sysman_product_helper_kbl.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/gen9/skl/sysman_product_helper_skl.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/sysman_product_helper_arl.cpp create mode 100644 level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/sysman_product_helper_mtl.cpp diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/CMakeLists.txt index 8edc3e5569..24dbcda72a 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_ICLLP) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_icllp.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_icllp.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/enable_sysman_product_helper_icllp.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/enable_sysman_product_helper_icllp.cpp index 4020bde424..0ada5d41d2 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/enable_sysman_product_helper_icllp.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/enable_sysman_product_helper_icllp.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/sysman_product_helper_icllp.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/sysman_product_helper_icllp.cpp new file mode 100644 index 0000000000..9b37f60e26 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen11/icllp/sysman_product_helper_icllp.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_ICELAKE_LP; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/CMakeLists.txt index 98f2ef7722..a3882e6da3 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_ADLN) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_adln.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_adln.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/enable_sysman_product_helper_adln.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/enable_sysman_product_helper_adln.cpp index d2290a851e..bd9e38f8fc 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/enable_sysman_product_helper_adln.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/enable_sysman_product_helper_adln.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/sysman_product_helper_adln.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/sysman_product_helper_adln.cpp new file mode 100644 index 0000000000..5a825fed21 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adln/sysman_product_helper_adln.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_ALDERLAKE_N; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/CMakeLists.txt index f5adfa8557..e860f7575d 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_ADLP) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_adlp.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_adlp.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/enable_sysman_product_helper_adlp.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/enable_sysman_product_helper_adlp.cpp index 1c1482184f..025ad0e48e 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/enable_sysman_product_helper_adlp.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/enable_sysman_product_helper_adlp.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/sysman_product_helper_adlp.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/sysman_product_helper_adlp.cpp new file mode 100644 index 0000000000..dbca57add7 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adlp/sysman_product_helper_adlp.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_ALDERLAKE_P; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/CMakeLists.txt index 5e78def41a..9382f7cdd0 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_ADLS) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_adls.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_adls.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/enable_sysman_product_helper_adls.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/enable_sysman_product_helper_adls.cpp index 885d153087..a22f71b2f4 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/enable_sysman_product_helper_adls.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/enable_sysman_product_helper_adls.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/sysman_product_helper_adls.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/sysman_product_helper_adls.cpp new file mode 100644 index 0000000000..735e4c4ce0 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/adls/sysman_product_helper_adls.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_ALDERLAKE_S; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/enable_sysman_product_helper_dg1.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/enable_sysman_product_helper_dg1.cpp index 47d751e46b..66b9ea7085 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/enable_sysman_product_helper_dg1.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/enable_sysman_product_helper_dg1.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/sysman_product_helper_dg1.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/sysman_product_helper_dg1.cpp index 6d39cc24eb..02cbd79968 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/sysman_product_helper_dg1.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/dg1/sysman_product_helper_dg1.cpp @@ -6,15 +6,13 @@ */ #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" namespace L0 { namespace Sysman { constexpr static auto gfxProduct = IGFX_DG1; -template <> -ze_result_t SysmanProductHelperHw::getMemoryProperties(zes_mem_properties_t *pProperties, const LinuxSysmanImp *pLinuxSysmanImp) { - return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE; -} +template class SysmanProductHelperHw; } // namespace Sysman } // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/CMakeLists.txt index dc301f5faa..d8e4981f22 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_RKL) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_rkl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_rkl.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/enable_sysman_product_helper_rkl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/enable_sysman_product_helper_rkl.cpp index af4e497c16..3716e1bccb 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/enable_sysman_product_helper_rkl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/enable_sysman_product_helper_rkl.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/sysman_product_helper_rkl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/sysman_product_helper_rkl.cpp new file mode 100644 index 0000000000..4e061ff491 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/rkl/sysman_product_helper_rkl.cpp @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { + +constexpr static auto gfxProduct = IGFX_ROCKETLAKE; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/CMakeLists.txt index f7e5e5f8ca..13f6c3c9a0 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_TGLLP) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_tgllp.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_tgllp.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/enable_sysman_product_helper_tgllp.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/enable_sysman_product_helper_tgllp.cpp index 7e67946f92..1f08cb6bde 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/enable_sysman_product_helper_tgllp.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/enable_sysman_product_helper_tgllp.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/sysman_product_helper_tgllp.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/sysman_product_helper_tgllp.cpp new file mode 100644 index 0000000000..fa67b39114 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen12lp/tgllp/sysman_product_helper_tgllp.cpp @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { + +constexpr static auto gfxProduct = IGFX_TIGERLAKE_LP; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/CMakeLists.txt index 999fcf98b0..a08fe4ca0d 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_CFL) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_cfl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_cfl.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/enable_sysman_product_helper_cfl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/enable_sysman_product_helper_cfl.cpp index affcd619b6..0ba5d1cf49 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/enable_sysman_product_helper_cfl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/enable_sysman_product_helper_cfl.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/sysman_product_helper_cfl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/sysman_product_helper_cfl.cpp new file mode 100644 index 0000000000..42db6fab28 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/cfl/sysman_product_helper_cfl.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_COFFEELAKE; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/CMakeLists.txt index e769bed72d..3c97da0b34 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_KBL) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_kbl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_kbl.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/enable_sysman_product_helper_kbl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/enable_sysman_product_helper_kbl.cpp index 93f7bc9fc0..27addca390 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/enable_sysman_product_helper_kbl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/enable_sysman_product_helper_kbl.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/sysman_product_helper_kbl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/sysman_product_helper_kbl.cpp new file mode 100644 index 0000000000..5cb35b6556 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/kbl/sysman_product_helper_kbl.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_KABYLAKE; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/CMakeLists.txt index b98ab638e8..371cabc252 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_SKL) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_skl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_skl.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/enable_sysman_product_helper_skl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/enable_sysman_product_helper_skl.cpp index f4454efb48..1197adf375 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/enable_sysman_product_helper_skl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/enable_sysman_product_helper_skl.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/sysman_product_helper_skl.cpp b/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/sysman_product_helper_skl.cpp new file mode 100644 index 0000000000..a77def7fe1 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/gen9/skl/sysman_product_helper_skl.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { +constexpr static auto gfxProduct = IGFX_SKYLAKE; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/enable_sysman_product_helper_pvc.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/enable_sysman_product_helper_pvc.cpp index f62ced35b6..52018a6970 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/enable_sysman_product_helper_pvc.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/enable_sysman_product_helper_pvc.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/sysman_product_helper_pvc.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/sysman_product_helper_pvc.cpp index f951a3e6bd..a147789a68 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/sysman_product_helper_pvc.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpc_core/pvc/sysman_product_helper_pvc.cpp @@ -6,6 +6,7 @@ */ #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 "level_zero/sysman/source/sysman_const.h" namespace L0 { @@ -31,5 +32,7 @@ void SysmanProductHelperHw::getMediaPerformanceFactorMultiplier(cons } } +template class SysmanProductHelperHw; + } // namespace Sysman } // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/CMakeLists.txt index 6c2ddb9b22..24f46e8a08 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_ARL) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_arl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_arl.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/enable_sysman_product_helper_arl.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/enable_sysman_product_helper_arl.cpp index 3e147cf135..e2d67cca81 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/enable_sysman_product_helper_arl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/enable_sysman_product_helper_arl.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/sysman_product_helper_arl.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/sysman_product_helper_arl.cpp new file mode 100644 index 0000000000..23ba8c695c --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/arl/sysman_product_helper_arl.cpp @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { + +constexpr static auto gfxProduct = IGFX_ARROWLAKE; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/enable_sysman_product_helper_dg2.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/enable_sysman_product_helper_dg2.cpp index 9a375513b9..3105fe5337 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/enable_sysman_product_helper_dg2.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/enable_sysman_product_helper_dg2.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/sysman_product_helper_dg2.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/sysman_product_helper_dg2.cpp index 744e98637e..be89924185 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/sysman_product_helper_dg2.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/dg2/sysman_product_helper_dg2.cpp @@ -6,15 +6,14 @@ */ #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" namespace L0 { namespace Sysman { + constexpr static auto gfxProduct = IGFX_DG2; -template <> -ze_result_t SysmanProductHelperHw::getMemoryBandwidth(zes_mem_bandwidth_t *pBandwidth, const LinuxSysmanImp *pLinuxSysmanImp) { - return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE; -} +template class SysmanProductHelperHw; } // namespace Sysman } // namespace L0 diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/CMakeLists.txt b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/CMakeLists.txt index 62781a8e39..4c7a450c8a 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/CMakeLists.txt +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/CMakeLists.txt @@ -8,6 +8,7 @@ if(SUPPORT_MTL) target_sources(${L0_STATIC_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/enable_sysman_product_helper_mtl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/sysman_product_helper_mtl.cpp ) endif() diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/enable_sysman_product_helper_mtl.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/enable_sysman_product_helper_mtl.cpp index 8f578f0692..6df0aee9fe 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/enable_sysman_product_helper_mtl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/enable_sysman_product_helper_mtl.cpp @@ -6,7 +6,6 @@ */ #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" namespace L0 { namespace Sysman { diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/sysman_product_helper_mtl.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/sysman_product_helper_mtl.cpp new file mode 100644 index 0000000000..e7088c72d9 --- /dev/null +++ b/level_zero/sysman/source/shared/linux/product_helper/xe_hpg_core/mtl/sysman_product_helper_mtl.cpp @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2023 Intel Corporation + * + * SPDX-License-Identifier: MIT + * + */ + +#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" + +namespace L0 { +namespace Sysman { + +constexpr static auto gfxProduct = IGFX_METEORLAKE; + +template class SysmanProductHelperHw; + +} // namespace Sysman +} // namespace L0