Skip to content

Commit 0bb2458

Browse files
Fix svm size programming.
-Base it on max64BitAppAddress. Change-Id: Id68d12b50b798c5a750a3273963982d4315bd776 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
1 parent 26b43af commit 0bb2458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/os_interface/windows/wddm/wddm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ bool Wddm::configureDeviceAddressSpaceImpl() {
959959
if (!hardwareInfoTable[productFamily]) {
960960
return false;
961961
}
962-
auto svmSize = hardwareInfoTable[productFamily]->capabilityTable.gpuAddressSpace == MemoryConstants::max48BitAddress
962+
auto svmSize = hardwareInfoTable[productFamily]->capabilityTable.gpuAddressSpace >= MemoryConstants::max64BitAppAddress
963963
? maximumApplicationAddress + 1u
964964
: 0u;
965965

unit_tests/os_interface/windows/wddm20_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ HWTEST_F(Wddm20InstrumentationTest, configureDeviceAddressSpaceOnInit) {
503503
D3DKMT_HANDLE deviceHandle = DEVICE_HANDLE;
504504
const HardwareInfo hwInfo = *platformDevices[0];
505505
BOOLEAN FtrL3IACoherency = hwInfo.featureTable.ftrL3IACoherency ? 1 : 0;
506-
uintptr_t maxAddr = hwInfo.capabilityTable.gpuAddressSpace == MemoryConstants::max48BitAddress
506+
uintptr_t maxAddr = hwInfo.capabilityTable.gpuAddressSpace >= MemoryConstants::max64BitAppAddress
507507
? reinterpret_cast<uintptr_t>(sysInfo.lpMaximumApplicationAddress) + 1
508508
: 0;
509509
EXPECT_CALL(*gmmMem, configureDeviceAddressSpace(adapterHandle,

0 commit comments

Comments
 (0)