mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
L0 Core Add Support For pci_speed_ext
This patch adds support for reading PCI bandwidth, generation and linkwidth information from sysfs nodes for the linux platform. Related-To: LOCI-2969 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
061af9c284
commit
05a150f49f
@@ -83,4 +83,16 @@ TEST_F(WddmTests, whenCreatingContextWithPowerHintSuccessIsReturned) {
|
||||
EXPECT_TRUE(wddm->createContext(*newContext));
|
||||
}
|
||||
|
||||
TEST(WddmPciSpeedInfoTest, WhenGetPciSpeedInfoIsCalledThenUnknownIsReturned) {
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
RootDeviceEnvironment rootDeviceEnvironment(executionEnvironment);
|
||||
auto wddm = Wddm::createWddm(nullptr, rootDeviceEnvironment);
|
||||
wddm->init();
|
||||
auto speedInfo = wddm->getPciSpeedInfo();
|
||||
|
||||
EXPECT_EQ(-1, speedInfo.genVersion);
|
||||
EXPECT_EQ(-1, speedInfo.width);
|
||||
EXPECT_EQ(-1, speedInfo.maxBandwidth);
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user