mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
Enable recoverable page faults on PVC platform only
Related-To: NEO-6355 Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6d30d31381
commit
9b7b193b38
@@ -391,6 +391,11 @@ HWTEST_F(ProductHelperTest, givenProductHelperWhenAskedIfBlitterForImagesIsSuppo
|
||||
EXPECT_FALSE(productHelper->isBlitterForImagesSupported());
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenAskedIfPageFaultIsSupportedThenReturnFalse) {
|
||||
|
||||
EXPECT_FALSE(productHelper->isPageFaultSupported());
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenAskedIfTile64With3DSurfaceOnBCSIsSupportedThenTrueIsReturned) {
|
||||
|
||||
EXPECT_TRUE(productHelper->isTile64With3DSurfaceOnBCSSupported(pInHwInfo));
|
||||
|
||||
@@ -328,12 +328,17 @@ TEST(DrmQueryTest, WhenCallingQueryPageFaultSupportThenReturnFalseByDefault) {
|
||||
TEST(DrmQueryTest, givenPageFaultSupportEnabledWhenCallingQueryPageFaultSupportThenReturnCorrectValue) {
|
||||
auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
|
||||
DrmQueryMock drm{*executionEnvironment->rootDeviceEnvironments[0]};
|
||||
const auto &productHelper = executionEnvironment->rootDeviceEnvironments[0]->getHelper<ProductHelper>();
|
||||
|
||||
for (bool hasPageFaultSupport : {false, true}) {
|
||||
drm.context.hasPageFaultQueryValue = hasPageFaultSupport;
|
||||
drm.queryPageFaultSupport();
|
||||
|
||||
EXPECT_EQ(hasPageFaultSupport, drm.hasPageFaultSupport());
|
||||
if (productHelper.isPageFaultSupported()) {
|
||||
EXPECT_EQ(hasPageFaultSupport, drm.hasPageFaultSupport());
|
||||
} else {
|
||||
EXPECT_FALSE(drm.hasPageFaultSupport());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -72,6 +72,12 @@ PVCTEST_F(PvcProductHelperLinux, givenProductHelperWhenAskedIfPatIndexProgrammin
|
||||
EXPECT_TRUE(productHelper->isVmBindPatIndexProgrammingSupported());
|
||||
}
|
||||
|
||||
HWTEST_EXCLUDE_PRODUCT(ProductHelperTest, givenProductHelperWhenAskedIfPageFaultIsSupportedThenReturnFalse, IGFX_PVC);
|
||||
|
||||
PVCTEST_F(PvcProductHelperLinux, givenProductHelperWhenAskedIsPageFaultSupportedThenReturnTrue) {
|
||||
EXPECT_TRUE(productHelper->isPageFaultSupported());
|
||||
}
|
||||
|
||||
PVCTEST_F(PvcProductHelperLinux, givenAotConfigWhenSetHwInfoRevisionIdForPvcThenCorrectValueIsSet) {
|
||||
auto &compilerProductHelper = this->executionEnvironment->rootDeviceEnvironments[0]->getHelper<CompilerProductHelper>();
|
||||
for (const auto &config : AOT_PVC::productConfigs) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -43,3 +43,7 @@ MTLTEST_F(MtlProductHelperLinux, givenMtlWhenIsBlitterForImagesSupportedIsCalled
|
||||
MTLTEST_F(MtlProductHelperLinux, givenMtlWhenisVmBindPatIndexProgrammingSupportedIsCalledThenTrueIsReturned) {
|
||||
EXPECT_TRUE(productHelper->isVmBindPatIndexProgrammingSupported());
|
||||
}
|
||||
|
||||
MTLTEST_F(MtlProductHelperLinux, givenProductHelperWhenAskedIsPageFaultSupportedThenReturnFalse) {
|
||||
EXPECT_FALSE(productHelper->isPageFaultSupported());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user