Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a259c591 authored by Kalesh Singh's avatar Kalesh Singh
Browse files

VTS: Require memtrack::GetGpuDeviceInfo() on 5.4 kernels

Per buffer dmabuf changes can be backported to the 5.4 kernel.
Require the GetGpuDeviceInfo() to allow de-dupping imported dmabuf
memory form the total GPU memory for lost RAM calculation.

Test: atest VtsHalMemtrackTargetTest
Bug: 176477627
Change-Id: Ibaf48c84928b39d62f8552d1674c98d635e834f5
parent 768cec42
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -79,10 +79,10 @@ TEST_P(MemtrackAidlTest, GetGpuDeviceInfo) {

    auto status = memtrack_->getGpuDeviceInfo(&device_info);

    // Devices with < 5.10 kernels aren't required to provide an implementation of
    // Devices with < 5.4 kernels aren't required to provide an implementation of
    // getGpuDeviceInfo(), and can return EX_UNSUPPORTED_OPERATION
    if (status.getExceptionCode() == EX_UNSUPPORTED_OPERATION) {
        KernelVersion min_kernel_version = KernelVersion(5, 10, 0);
        KernelVersion min_kernel_version = KernelVersion(5, 4, 0);
        KernelVersion kernel_version = VintfObject::GetInstance()
                                               ->getRuntimeInfo(RuntimeInfo::FetchFlag::CPU_VERSION)
                                               ->kernelVersion();