]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Stop reporting special chip memory pools as CPU memory in fdinfo
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 24 Oct 2024 09:23:40 +0000 (10:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 16:32:47 +0000 (11:32 -0500)
So far these specialized on chip memory pools were reported as system
memory (aka 'cpu') which is not correct and misleading. Lets remove that
and consider later making them visible as their own thing.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Cc: Yunxiang Li <Yunxiang.Li@amd.com>
Cc: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 0d3fb6b4212e6b18f23309a4810731c104f9c73f..b5f65ef1efcdeee82c008c1d51d3e7d177aa721c 100644 (file)
@@ -1209,17 +1209,6 @@ void amdgpu_bo_get_memory(struct amdgpu_bo *bo,
                type = res->mem_type;
        }
 
-       /* Squash some into 'cpu' to keep the legacy userspace view. */
-       switch (type) {
-       case TTM_PL_VRAM:
-       case TTM_PL_TT:
-       case TTM_PL_SYSTEM:
-               break;
-       default:
-               type = TTM_PL_SYSTEM;
-               break;
-       }
-
        if (drm_WARN_ON_ONCE(&adev->ddev, type >= sz))
                return;