From b3eb1561f8b0b7709aee37a2e5651708f8829482 Mon Sep 17 00:00:00 2001 From: "Yates, Brandon" Date: Thu, 26 Jan 2023 18:43:26 +0000 Subject: [PATCH] feat(L0debug): Enable MTL Turn runtime capability flag for mtl debug support on Related-to: NEO-7659 Signed-off-by: Yates, Brandon --- .../tools/test/unit_tests/sources/debug/test_debug_api.cpp | 6 +++--- shared/source/xe_hpg_core/hw_info_mtl.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp b/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp index f67800347b..35502cd3eb 100644 --- a/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp +++ b/level_zero/tools/test/unit_tests/sources/debug/test_debug_api.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -155,7 +155,7 @@ TEST_F(DebugApiTest, givenSubDeviceWhenCallingDebugAttachThenErrorIsReturned) { EXPECT_EQ(nullptr, debugSession); } -using isDebugSupportedProduct = IsWithinProducts; +using isDebugSupportedProduct = IsWithinProducts; HWTEST2_F(DebugApiTest, givenDeviceWhenDebugAttachIsAvaialbleThenGetPropertiesReturnsCorrectFlag, isDebugSupportedProduct) { zet_device_debug_properties_t debugProperties = {}; debugProperties.flags = ZET_DEVICE_DEBUG_PROPERTY_FLAG_FORCE_UINT32; @@ -168,7 +168,7 @@ HWTEST2_F(DebugApiTest, givenDeviceWhenDebugAttachIsAvaialbleThenGetPropertiesRe EXPECT_EQ(ZET_DEVICE_DEBUG_PROPERTY_FLAG_ATTACH, debugProperties.flags); } -using isDebugNotSupportedProduct = IsNotWithinProducts; +using isDebugNotSupportedProduct = IsNotWithinProducts; HWTEST2_F(DebugApiTest, givenDeviceWhenDebugIsNotSupportedThenGetPropertiesReturnsCorrectFlag, isDebugNotSupportedProduct) { zet_device_debug_properties_t debugProperties = {}; debugProperties.flags = ZET_DEVICE_DEBUG_PROPERTY_FLAG_FORCE_UINT32; diff --git a/shared/source/xe_hpg_core/hw_info_mtl.cpp b/shared/source/xe_hpg_core/hw_info_mtl.cpp index d3b4adbc42..459f7faf99 100644 --- a/shared/source/xe_hpg_core/hw_info_mtl.cpp +++ b/shared/source/xe_hpg_core/hw_info_mtl.cpp @@ -76,7 +76,8 @@ const RuntimeCapabilityTable MTL::capabilityTable{ true, // supportsMediaBlock false, // p2pAccessSupported false, // p2pAtomicAccessSupported - true // fusedEuEnabled + true, // fusedEuEnabled + true // l0DebuggerSupported }; WorkaroundTable MTL::workaroundTable = {};