fix: handle not aligned gtt size reported by i915

when i915 reports gtt size between 47 and 48 bits we consider
it as 48 bit VA space

Related-To: GSD-8215
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-03-28 08:46:55 +00:00
committed by Compute-Runtime-Automation
parent d6a14d4ed5
commit 420e1391b2
19 changed files with 150 additions and 73 deletions

View File

@@ -174,7 +174,7 @@ class DrmMock : public Drm {
else
return Drm::useVMBindImmediate();
}
int queryGttSize(uint64_t &gttSizeOutput) override {
int queryGttSize(uint64_t &gttSizeOutput, bool alignUpToFullRange) override {
gttSizeOutput = storedGTTSize;
return storedRetValForGetGttSize;
}
@@ -276,7 +276,7 @@ class DrmMock : public Drm {
GemVmControl receivedGemVmControl{};
uint32_t latestCreatedVmId = 0u;
uint64_t storedGTTSize = 1ull << 47;
uint64_t storedGTTSize = defaultHwInfo->capabilityTable.gpuAddressSpace + 1;
uint64_t storedParamSseu = ULONG_MAX;
Ioctls ioctlCount{};