mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
86ecbf3507
commit
322089fa5f
@@ -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++) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user