mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Rename L0HwHelper -> L0GfxCoreHelper
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
785b9eeece
commit
73b2104183
@@ -406,9 +406,9 @@ void DebugSessionImp::applyResumeWa(uint8_t *bitmask, size_t bitmaskSize) {
|
||||
|
||||
UNRECOVERABLE_IF(bitmaskSize % 8 != 0);
|
||||
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
|
||||
uint32_t *dwordBitmask = reinterpret_cast<uint32_t *>(bitmask);
|
||||
for (uint32_t i = 0; i < bitmaskSize / sizeof(uint32_t) - 1; i = i + 2) {
|
||||
@@ -425,9 +425,9 @@ bool DebugSessionImp::writeResumeCommand(const std::vector<EuThread::ThreadId> &
|
||||
|
||||
if (stateSaveAreaHeader->versionHeader.version.major < 2u) {
|
||||
auto &hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
constexpr uint32_t sipResumeValue = 0x40000000;
|
||||
|
||||
bool isBindlessSip = (debugArea.reserved1 == 1);
|
||||
|
||||
@@ -1266,9 +1266,9 @@ void DebugSessionLinux::handleAttentionEvent(prelim_drm_i915_debug_event_eu_atte
|
||||
}
|
||||
|
||||
auto hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
auto threadsWithAttention = l0HwHelper.getThreadsFromAttentionBitmask(hwInfo, tileIndex, attention->bitmask, attention->bitmask_size);
|
||||
auto threadsWithAttention = l0GfxCoreHelper.getThreadsFromAttentionBitmask(hwInfo, tileIndex, attention->bitmask, attention->bitmask_size);
|
||||
|
||||
printBitmask(attention->bitmask, attention->bitmask_size);
|
||||
|
||||
@@ -1365,7 +1365,7 @@ int DebugSessionLinux::threadControl(const std::vector<EuThread::ThreadId> &thre
|
||||
auto classInstance = DrmHelper::getEngineInstance(connectedDevice, tile, hwInfo.capabilityTable.defaultEngineType);
|
||||
UNRECOVERABLE_IF(!classInstance);
|
||||
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
bitmaskSizeOut = 0;
|
||||
|
||||
@@ -1399,7 +1399,7 @@ int DebugSessionLinux::threadControl(const std::vector<EuThread::ThreadId> &thre
|
||||
if (command == PRELIM_I915_DEBUG_EU_THREADS_CMD_INTERRUPT ||
|
||||
command == PRELIM_I915_DEBUG_EU_THREADS_CMD_RESUME ||
|
||||
command == PRELIM_I915_DEBUG_EU_THREADS_CMD_STOPPED) {
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
euControl.bitmask_size = static_cast<uint32_t>(bitmaskSize);
|
||||
euControl.bitmask_ptr = reinterpret_cast<uint64_t>(bitmask.get());
|
||||
}
|
||||
|
||||
@@ -232,11 +232,11 @@ ze_result_t DebugSessionWindows::handleEuAttentionBitsEvent(DBGUMD_READ_EVENT_EU
|
||||
euAttentionBitsParams.BitMaskSizeInBytes, &euAttentionBitsParams.BitmaskArrayPtr);
|
||||
|
||||
auto hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
auto threadsWithAttention = l0CoreHelper.getThreadsFromAttentionBitmask(hwInfo, 0u,
|
||||
reinterpret_cast<uint8_t *>(&euAttentionBitsParams.BitmaskArrayPtr),
|
||||
euAttentionBitsParams.BitMaskSizeInBytes);
|
||||
auto threadsWithAttention = l0GfxCoreHelper.getThreadsFromAttentionBitmask(hwInfo, 0u,
|
||||
reinterpret_cast<uint8_t *>(&euAttentionBitsParams.BitmaskArrayPtr),
|
||||
euAttentionBitsParams.BitMaskSizeInBytes);
|
||||
|
||||
printBitmask(reinterpret_cast<uint8_t *>(&euAttentionBitsParams.BitmaskArrayPtr), euAttentionBitsParams.BitMaskSizeInBytes);
|
||||
|
||||
@@ -547,10 +547,10 @@ ze_result_t DebugSessionWindows::acknowledgeEvent(const zet_debug_event_t *event
|
||||
|
||||
ze_result_t DebugSessionWindows::resumeImp(const std::vector<EuThread::ThreadId> &threads, uint32_t deviceIndex) {
|
||||
auto hwInfo = connectedDevice->getHwInfo();
|
||||
auto &l0CoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = connectedDevice->getNEODevice()->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
l0CoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
printBitmask(bitmask.get(), bitmaskSize);
|
||||
|
||||
KM_ESCAPE_INFO escapeInfo = {0};
|
||||
|
||||
@@ -60,13 +60,13 @@ TEST(DebugSessionTest, givenApplyResumeWaCalledThenWAIsApplied) {
|
||||
Mock<L0::DeviceImp> deviceImp(neoDevice, neoDevice->getExecutionEnvironment());
|
||||
|
||||
auto sessionMock = std::make_unique<MockDebugSession>(config, &deviceImp);
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
size_t bitmaskSize = 32;
|
||||
auto bitmask = std::make_unique<uint8_t[]>(bitmaskSize);
|
||||
bitmask.get()[0] = 1;
|
||||
sessionMock->applyResumeWa(bitmask.get(), bitmaskSize);
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1, bitmask.get()[4]);
|
||||
} else {
|
||||
EXPECT_EQ(0, bitmask.get()[4]);
|
||||
@@ -922,7 +922,7 @@ TEST(DebugSessionTest, GivenBindlessSipVersion1AndResumeWARequiredWhenCallingRes
|
||||
NEO::MockDevice *neoDevice(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(&hwInfo, 0));
|
||||
Mock<L0::DeviceImp> deviceImp(neoDevice, neoDevice->getExecutionEnvironment());
|
||||
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
auto sessionMock = std::make_unique<MockDebugSession>(config, &deviceImp);
|
||||
ASSERT_NE(nullptr, sessionMock);
|
||||
@@ -941,7 +941,7 @@ TEST(DebugSessionTest, GivenBindlessSipVersion1AndResumeWARequiredWhenCallingRes
|
||||
auto result = sessionMock->resume(thread);
|
||||
EXPECT_EQ(result, ZE_RESULT_SUCCESS);
|
||||
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1u, sessionMock->readRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeResumeCommandCalled);
|
||||
@@ -966,7 +966,7 @@ TEST(DebugSessionTest, GivenErrorFromReadRegisterWhenResumingThreadThenRegisterI
|
||||
NEO::MockDevice *neoDevice(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(&hwInfo, 0));
|
||||
Mock<L0::DeviceImp> deviceImp(neoDevice, neoDevice->getExecutionEnvironment());
|
||||
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
auto sessionMock = std::make_unique<MockDebugSession>(config, &deviceImp);
|
||||
ASSERT_NE(nullptr, sessionMock);
|
||||
@@ -984,7 +984,7 @@ TEST(DebugSessionTest, GivenErrorFromReadRegisterWhenResumingThreadThenRegisterI
|
||||
|
||||
auto result = sessionMock->resume(thread);
|
||||
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1u, sessionMock->readRegistersCallCount);
|
||||
EXPECT_EQ(0u, sessionMock->writeRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeResumeCommandCalled);
|
||||
@@ -1012,7 +1012,7 @@ TEST(DebugSessionTest, GivenErrorFromWriteRegisterWhenResumingThreadThenRegister
|
||||
NEO::MockDevice *neoDevice(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(&hwInfo, 0));
|
||||
Mock<L0::DeviceImp> deviceImp(neoDevice, neoDevice->getExecutionEnvironment());
|
||||
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
auto sessionMock = std::make_unique<MockDebugSession>(config, &deviceImp);
|
||||
ASSERT_NE(nullptr, sessionMock);
|
||||
@@ -1030,7 +1030,7 @@ TEST(DebugSessionTest, GivenErrorFromWriteRegisterWhenResumingThreadThenRegister
|
||||
|
||||
auto result = sessionMock->resume(thread);
|
||||
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1u, sessionMock->readRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeResumeCommandCalled);
|
||||
@@ -1057,7 +1057,7 @@ TEST(DebugSessionTest, GivenNonBindlessSipVersion1AndResumeWARequiredWhenCalling
|
||||
NEO::MockDevice *neoDevice(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(&hwInfo, 0));
|
||||
Mock<L0::DeviceImp> deviceImp(neoDevice, neoDevice->getExecutionEnvironment());
|
||||
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
auto sessionMock = std::make_unique<MockDebugSession>(config, &deviceImp);
|
||||
ASSERT_NE(nullptr, sessionMock);
|
||||
@@ -1076,7 +1076,7 @@ TEST(DebugSessionTest, GivenNonBindlessSipVersion1AndResumeWARequiredWhenCalling
|
||||
auto result = sessionMock->resume(thread);
|
||||
EXPECT_EQ(result, ZE_RESULT_SUCCESS);
|
||||
|
||||
if (l0CoreHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1u, sessionMock->readRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeRegistersCallCount);
|
||||
EXPECT_EQ(1u, sessionMock->writeResumeCommandCalled);
|
||||
|
||||
@@ -5204,7 +5204,7 @@ TEST_F(DebugApiLinuxTest, GivenResumeWARequiredWhenCallingResumeThenWaIsAppliedT
|
||||
zet_debug_config_t config = {};
|
||||
config.pid = 0x1234;
|
||||
|
||||
auto &l0HwHelper = L0HwHelper::get(neoDevice->getHardwareInfo().platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(neoDevice->getHardwareInfo().platform.eRenderCoreFamily);
|
||||
auto sessionMock = std::make_unique<MockDebugSessionLinux>(config, device, 10);
|
||||
ASSERT_NE(nullptr, sessionMock);
|
||||
SIP::version version = {2, 0, 0};
|
||||
@@ -5225,7 +5225,7 @@ TEST_F(DebugApiLinuxTest, GivenResumeWARequiredWhenCallingResumeThenWaIsAppliedT
|
||||
auto bitmask = handler->euControlBitmask.get();
|
||||
|
||||
EXPECT_EQ(1u, bitmask[0]);
|
||||
if (l0HwHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1u, bitmask[4]);
|
||||
} else {
|
||||
EXPECT_EQ(0u, bitmask[4]);
|
||||
@@ -5239,7 +5239,7 @@ TEST_F(DebugApiLinuxTest, GivenResumeWARequiredWhenCallingResumeThenWaIsAppliedT
|
||||
|
||||
bitmask = handler->euControlBitmask.get();
|
||||
|
||||
if (l0HwHelper.isResumeWARequired()) {
|
||||
if (l0GfxCoreHelper.isResumeWARequired()) {
|
||||
EXPECT_EQ(1u, bitmask[0]);
|
||||
EXPECT_EQ(1u, bitmask[4]);
|
||||
} else {
|
||||
@@ -5437,7 +5437,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenEuAttentionEventForThreadsWhenHandlingEv
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0},
|
||||
@@ -5452,7 +5452,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenEuAttentionEventForThreadsWhenHandlingEv
|
||||
sessionMock->stoppedThreads[thread.packed] = 1;
|
||||
}
|
||||
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
|
||||
prelim_drm_i915_debug_event_eu_attention attention = {};
|
||||
attention.base.type = PRELIM_DRM_I915_DEBUG_EVENT_EU_ATTENTION;
|
||||
@@ -5485,7 +5485,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenEuAttentionEventWithInvalidClientWhenHan
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0},
|
||||
@@ -5496,7 +5496,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenEuAttentionEventWithInvalidClientWhenHan
|
||||
{0, 0, 0, 0, 5},
|
||||
{0, 0, 0, 0, 6}};
|
||||
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
|
||||
prelim_drm_i915_debug_event_eu_attention attention = {};
|
||||
|
||||
@@ -5577,7 +5577,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenInterruptedThreadsWhenOnlySomeThreadsRai
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0}};
|
||||
@@ -5588,7 +5588,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenInterruptedThreadsWhenOnlySomeThreadsRai
|
||||
sessionMock->allThreads[EuThread::ThreadId(0, 0, 0, 4, 0)]->stopThread(1u);
|
||||
}
|
||||
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
|
||||
ze_device_thread_t thread = {0, 0, 0, UINT32_MAX};
|
||||
ze_device_thread_t thread2 = {0, 0, 1, UINT32_MAX};
|
||||
@@ -5682,7 +5682,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenEventSeqnoLowerEqualThanSentInterruptWhe
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0},
|
||||
@@ -5693,7 +5693,7 @@ TEST_F(DebugApiLinuxAttentionTest, GivenEventSeqnoLowerEqualThanSentInterruptWhe
|
||||
{0, 0, 0, 0, 5},
|
||||
{0, 0, 0, 0, 6}};
|
||||
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
|
||||
ze_device_thread_t thread = {0, 0, 0, UINT32_MAX};
|
||||
sessionMock->pendingInterrupts.push_back(std::pair<ze_device_thread_t, bool>(thread, false));
|
||||
|
||||
@@ -756,9 +756,9 @@ TEST_F(TileAttachTest, givenStoppedThreadsWhenHandlingAttentionEventThenStoppedT
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0HwHelper = L0HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &l0GfxCoreHelper = L0GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
l0HwHelper.getAttentionBitmaskForSingleThreads({thread}, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads({thread}, hwInfo, bitmask, bitmaskSize);
|
||||
|
||||
prelim_drm_i915_debug_event_eu_attention attention = {};
|
||||
attention.base.type = PRELIM_DRM_I915_DEBUG_EVENT_EU_ATTENTION;
|
||||
|
||||
@@ -172,7 +172,7 @@ TEST_F(DebugApiWindowsAttentionTest, GivenEuAttentionEventForThreadsWhenHandling
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0},
|
||||
@@ -189,7 +189,7 @@ TEST_F(DebugApiWindowsAttentionTest, GivenEuAttentionEventForThreadsWhenHandling
|
||||
}
|
||||
sessionMock->allContexts.insert(0x12345);
|
||||
|
||||
l0CoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
mockWddm->numEvents = 1;
|
||||
mockWddm->eventQueue[0].readEventType = DBGUMD_READ_EVENT_EU_ATTN_BIT_SET;
|
||||
copyBitmaskToEventParams(&mockWddm->eventQueue[0].eventParamsBuffer.eventParamsBuffer, bitmask, bitmaskSize);
|
||||
@@ -209,7 +209,7 @@ TEST_F(DebugApiWindowsAttentionTest, GivenNoContextWhenHandlingAttentionEventThe
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0},
|
||||
@@ -225,7 +225,7 @@ TEST_F(DebugApiWindowsAttentionTest, GivenNoContextWhenHandlingAttentionEventThe
|
||||
sessionMock->stoppedThreads[thread.packed] = 1;
|
||||
}
|
||||
|
||||
l0CoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
mockWddm->numEvents = 1;
|
||||
mockWddm->eventQueue[0].readEventType = DBGUMD_READ_EVENT_EU_ATTN_BIT_SET;
|
||||
copyBitmaskToEventParams(&mockWddm->eventQueue[0].eventParamsBuffer.eventParamsBuffer, bitmask, bitmaskSize);
|
||||
@@ -267,7 +267,7 @@ TEST_F(DebugApiWindowsAttentionTest, GivenInterruptedThreadsWhenOnlySomeThreadsR
|
||||
std::unique_ptr<uint8_t[]> bitmask;
|
||||
size_t bitmaskSize = 0;
|
||||
auto &hwInfo = neoDevice->getHardwareInfo();
|
||||
auto &l0CoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0CoreHelper>();
|
||||
auto &l0GfxCoreHelper = neoDevice->getRootDeviceEnvironment().getHelper<L0GfxCoreHelper>();
|
||||
|
||||
std::vector<EuThread::ThreadId> threads{
|
||||
{0, 0, 0, 0, 0}};
|
||||
@@ -276,7 +276,7 @@ TEST_F(DebugApiWindowsAttentionTest, GivenInterruptedThreadsWhenOnlySomeThreadsR
|
||||
sessionMock->stoppedThreads[threads[0].packed] = 1;
|
||||
sessionMock->allContexts.insert(0x12345);
|
||||
|
||||
l0CoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
l0GfxCoreHelper.getAttentionBitmaskForSingleThreads(threads, hwInfo, bitmask, bitmaskSize);
|
||||
ze_device_thread_t thread = {0, 0, 0, UINT32_MAX};
|
||||
ze_device_thread_t thread2 = {0, 0, 1, UINT32_MAX};
|
||||
sessionMock->pendingInterrupts.push_back(std::pair<ze_device_thread_t, bool>(thread, false));
|
||||
|
||||
Reference in New Issue
Block a user