fix(sysman): Create Engine Handles for multiple gt w.r.t Xe driver

For the Xe driver, a single tile can have multiple gts. Now the Engine
handles are created for multiple gts available on the single tile as in
the case for the Xe driver.

Related-To: NEO-14401

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
This commit is contained in:
Pratik Bari
2025-03-19 11:24:11 +00:00
committed by Compute-Runtime-Automation
parent ad49418575
commit f67663d863
23 changed files with 196 additions and 76 deletions

View File

@@ -995,13 +995,15 @@ TEST_F(IoctlPrelimHelperTests, whenCallingGetStatusAndFlagsForResetStatsThenExpe
EXPECT_FALSE(ioctlHelper.validPageFault(0u));
}
TEST_F(IoctlPrelimHelperTests, whenCallingGetTileIdFromGtIdThenMinusOneIsReturned) {
TEST_F(IoctlPrelimHelperTests, whenCallingGetTileIdFromGtIdThenExpectedValueIsReturned) {
auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
auto drm = std::make_unique<DrmMock>(*executionEnvironment->rootDeviceEnvironments[0]);
MockIoctlHelperPrelim20 ioctlHelper{*drm};
EXPECT_EQ(-1, ioctlHelper.getTileIdFromGtId(0));
EXPECT_EQ(-1, ioctlHelper.getTileIdFromGtId(1));
int32_t gtId = 0;
EXPECT_EQ(gtId, ioctlHelper.getTileIdFromGtId(gtId));
gtId = 1;
EXPECT_EQ(gtId, ioctlHelper.getTileIdFromGtId(gtId));
}
TEST(DrmTest, GivenDrmWhenAskedForPreemptionThenCorrectValueReturned) {