Commit cd3037f3 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Alex Deucher
Browse files

drm/amdgpu: Stop reporting special chip memory pools as CPU memory in fdinfo



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: default avatarTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Suggested-by: default avatarChristian König <christian.koenig@amd.com>
Cc: Yunxiang Li <Yunxiang.Li@amd.com>
Cc: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fdee0872
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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;