refactor: remove not needed device parameter from AUBFamilyMapper

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-05-07 12:56:34 +00:00
committed by Compute-Runtime-Automation
parent 0afc042205
commit 04990d90f7
14 changed files with 31 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -89,13 +89,12 @@ typedef CmdServicesMemTraceRegisterWrite::RegisterSizeValues RegisterSizeValues;
typedef CmdServicesMemTraceRegisterWrite::RegisterSpaceValues RegisterSpaceValues;
typedef CmdServicesMemTraceMemoryPoll::DataSizeValues DataSizeValues;
template <int deviceIn, int addressingBitsIn>
template <int addressingBitsIn>
struct Traits {
typedef struct AubStream Stream;
enum {
addressingBits = addressingBitsIn,
device = deviceIn
};
};
@@ -412,4 +411,4 @@ struct LrcaHelperCccs : public LrcaHelper {
extern const uint64_t pageMask;
extern const size_t dwordCountMax;
} // namespace AubMemDump
} // namespace AubMemDump

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2024 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -18,16 +18,12 @@
namespace AubMemDump {
enum {
device = deviceValue
};
// Instantiate these common template implementations.
template struct AubDump<Traits<device, 32>>;
template struct AubDump<Traits<device, 48>>;
template struct AubDump<Traits<32>>;
template struct AubDump<Traits<48>>;
template struct AubPageTableHelper32<Traits<device, 32>>;
template struct AubPageTableHelper64<Traits<device, 48>>;
template struct AubPageTableHelper32<Traits<32>>;
template struct AubPageTableHelper64<Traits<48>>;
} // namespace AubMemDump
namespace NEO {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2024 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,17 +17,12 @@
#include "config.h"
namespace AubMemDump {
enum {
device = deviceValue
};
// Instantiate these common template implementations.
template struct AubDump<Traits<device, 32>>;
template struct AubDump<Traits<device, 48>>;
template struct AubDump<Traits<32>>;
template struct AubDump<Traits<48>>;
template struct AubPageTableHelper32<Traits<device, 32>>;
template struct AubPageTableHelper64<Traits<device, 48>>;
template struct AubPageTableHelper32<Traits<32>>;
template struct AubPageTableHelper64<Traits<48>>;
} // namespace AubMemDump
namespace NEO {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,9 +17,7 @@ struct Gen12LpFamily;
template <>
struct AUBFamilyMapper<Gen12LpFamily> {
enum { device = AubMemDump::DeviceValues::Tgllp };
using AubTraits = AubMemDump::Traits<device, MemoryConstants::gfxAddressBits>;
using AubTraits = AubMemDump::Traits<MemoryConstants::gfxAddressBits>;
static const AubMemDump::LrcaHelper *const csTraits[aub_stream::NUM_ENGINES];

View File

@@ -17,17 +17,12 @@
#include "config.h"
namespace AubMemDump {
enum {
device = DeviceValues::Tgllp
};
// Instantiate these common template implementations.
template struct AubDump<Traits<device, 32>>;
template struct AubDump<Traits<device, 48>>;
template struct AubDump<Traits<32>>;
template struct AubDump<Traits<48>>;
template struct AubPageTableHelper32<Traits<device, 32>>;
template struct AubPageTableHelper64<Traits<device, 48>>;
template struct AubPageTableHelper32<Traits<32>>;
template struct AubPageTableHelper64<Traits<48>>;
} // namespace AubMemDump
namespace NEO {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2024 Intel Corporation
* Copyright (C) 2024-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,9 +17,7 @@ struct Xe2HpgCoreFamily;
template <>
struct AUBFamilyMapper<Xe2HpgCoreFamily> {
enum { device = AubMemDump::DeviceValues::Bmg };
using AubTraits = AubMemDump::Traits<device, MemoryConstants::gfxAddressBits>;
using AubTraits = AubMemDump::Traits<MemoryConstants::gfxAddressBits>;
static const AubMemDump::LrcaHelper *const csTraits[aub_stream::NUM_ENGINES];

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2024 Intel Corporation
* Copyright (C) 2024-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -12,7 +12,6 @@
namespace NEO {
struct Xe2HpgCoreFamily;
using Family = NEO::Xe2HpgCoreFamily;
constexpr static auto deviceValue = AubMemDump::DeviceValues::Bmg;
template class AubHelperHw<Family>;
} // namespace NEO

View File

@@ -17,9 +17,7 @@ struct Xe3CoreFamily;
template <>
struct AUBFamilyMapper<Xe3CoreFamily> {
enum { device = AubMemDump::DeviceValues::Ptl };
using AubTraits = AubMemDump::Traits<device, MemoryConstants::gfxAddressBits>;
using AubTraits = AubMemDump::Traits<MemoryConstants::gfxAddressBits>;
static const AubMemDump::LrcaHelper *const csTraits[aub_stream::NUM_ENGINES];

View File

@@ -12,7 +12,6 @@
namespace NEO {
struct Xe3CoreFamily;
using Family = NEO::Xe3CoreFamily;
constexpr static auto deviceValue = AubMemDump::DeviceValues::Ptl;
template class AubHelperHw<Family>;
} // namespace NEO

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2023 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,9 +17,7 @@ struct XeHpcCoreFamily;
template <>
struct AUBFamilyMapper<XeHpcCoreFamily> {
enum { device = AubMemDump::DeviceValues::Pvc };
using AubTraits = AubMemDump::Traits<device, MemoryConstants::gfxAddressBits>;
using AubTraits = AubMemDump::Traits<MemoryConstants::gfxAddressBits>;
static const AubMemDump::LrcaHelper *const csTraits[aub_stream::NUM_ENGINES];

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2022 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -12,7 +12,6 @@
namespace NEO {
struct XeHpcCoreFamily;
using Family = NEO::XeHpcCoreFamily;
constexpr static auto deviceValue = AubMemDump::DeviceValues::Pvc;
template class AubHelperHw<Family>;
} // namespace NEO

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2023 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -17,9 +17,7 @@ struct XeHpgCoreFamily;
template <>
struct AUBFamilyMapper<XeHpgCoreFamily> {
enum { device = AubMemDump::DeviceValues::Dg2 };
using AubTraits = AubMemDump::Traits<device, MemoryConstants::gfxAddressBits>;
using AubTraits = AubMemDump::Traits<MemoryConstants::gfxAddressBits>;
static const AubMemDump::LrcaHelper *const csTraits[aub_stream::NUM_ENGINES];

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2022 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -12,7 +12,6 @@
namespace NEO {
struct XeHpgCoreFamily;
using Family = NEO::XeHpgCoreFamily;
constexpr static auto deviceValue = AubMemDump::DeviceValues::Dg2;
template class AubHelperHw<Family>;
} // namespace NEO