feature: Pass cookie in vmBindExt

Provide cookie in vmBindExt, so that information about deviceBitField
could be provided to vmBind. This information could be used in
debugUMD code to to create grouping of ISA segments on different
tiles.

Related-To: NEO-11104
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2024-12-16 17:40:50 +00:00
committed by Compute-Runtime-Automation
parent 86ecbf3507
commit 322089fa5f
10 changed files with 15 additions and 13 deletions

View File

@@ -303,7 +303,7 @@ TEST_F(IoctlPrelimHelperTests, whenGettingVmBindExtFromHandlesThenProperStructsA
bindExtHandles.push_back(1u);
bindExtHandles.push_back(2u);
bindExtHandles.push_back(3u);
auto retVal = ioctlHelper.prepareVmBindExt(bindExtHandles);
auto retVal = ioctlHelper.prepareVmBindExt(bindExtHandles, 0);
auto vmBindExt = reinterpret_cast<prelim_drm_i915_vm_bind_ext_uuid *>(retVal.get());
for (size_t i = 0; i < bindExtHandles.size(); i++) {

View File

@@ -334,7 +334,7 @@ TEST(IoctlHelperUpstreamTest, whenGettingVmBindExtFromHandlesThenNullptrIsReturn
bindExtHandles.push_back(1u);
bindExtHandles.push_back(2u);
bindExtHandles.push_back(3u);
auto retVal = ioctlHelper.prepareVmBindExt(bindExtHandles);
auto retVal = ioctlHelper.prepareVmBindExt(bindExtHandles, 0);
EXPECT_EQ(nullptr, retVal);
}

View File

@@ -267,13 +267,14 @@ TEST(IoctlHelperXeTest, whenGettingVmBindExtFromHandlesThenProperStructsAreRetur
bindExtHandles.push_back(1u);
bindExtHandles.push_back(2u);
bindExtHandles.push_back(3u);
auto retVal = xeIoctlHelper->prepareVmBindExt(bindExtHandles);
auto retVal = xeIoctlHelper->prepareVmBindExt(bindExtHandles, 1);
auto vmBindExt = reinterpret_cast<VmBindOpExtAttachDebug *>(retVal.get());
for (size_t i = 0; i < bindExtHandles.size(); i++) {
EXPECT_EQ(bindExtHandles[i], vmBindExt[i].metadataId);
EXPECT_EQ(static_cast<uint32_t>(EuDebugParam::vmBindOpExtensionsAttachDebug), vmBindExt[i].base.name);
EXPECT_EQ(1u, vmBindExt[i].cookie);
}
EXPECT_EQ(reinterpret_cast<uintptr_t>(&vmBindExt[1]), vmBindExt[0].base.nextExtension);