stats[TTM_PL_SYSTEM].drm.resident/1024UL);
 
        /* Amdgpu specific memory accounting keys: */
-       drm_printf(p, "amd-memory-visible-vram:\t%llu KiB\n",
-                  stats[TTM_PL_VRAM].visible/1024UL);
        drm_printf(p, "amd-evicted-vram:\t%llu KiB\n",
                   stats[TTM_PL_VRAM].evicted/1024UL);
-       drm_printf(p, "amd-evicted-visible-vram:\t%llu KiB\n",
-                  stats[TTM_PL_VRAM].evicted_visible/1024UL);
        drm_printf(p, "amd-requested-vram:\t%llu KiB\n",
                   stats[TTM_PL_VRAM].requested/1024UL);
-       drm_printf(p, "amd-requested-visible-vram:\t%llu KiB\n",
-                  stats[TTM_PL_VRAM].requested_visible/1024UL);
        drm_printf(p, "amd-requested-gtt:\t%llu KiB\n",
                   stats[TTM_PL_TT].requested/1024UL);
 
 
 #include "amdgpu_trace.h"
 #include "amdgpu_amdkfd.h"
 #include "amdgpu_vram_mgr.h"
+#include "amdgpu_vm.h"
 
 /**
  * DOC: amdgpu_object
                        stats[type].drm.active += size;
                else if (bo->flags & AMDGPU_GEM_CREATE_DISCARDABLE)
                        stats[type].drm.purgeable += size;
-
-               if (type == TTM_PL_VRAM && amdgpu_res_cpu_visible(adev, res))
-                       stats[type].visible += size;
        }
 
        /* amdgpu specific stats: */
 
        if (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) {
                stats[TTM_PL_VRAM].requested += size;
-               if (bo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED)
-                       stats[TTM_PL_VRAM].requested_visible += size;
-
-               if (type != TTM_PL_VRAM) {
+               if (type != TTM_PL_VRAM)
                        stats[TTM_PL_VRAM].evicted += size;
-                       if (bo->flags & AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED)
-                               stats[TTM_PL_VRAM].evicted_visible += size;
-               }
        } else if (bo->preferred_domains & AMDGPU_GEM_DOMAIN_GTT) {
                stats[TTM_PL_TT].requested += size;
        }
 
        struct amdgpu_vm_bo_base        entries[];
 };
 
-struct amdgpu_mem_stats {
-       struct drm_memory_stats drm;
-
-       uint64_t visible;
-       uint64_t evicted;
-       uint64_t evicted_visible;
-       uint64_t requested;
-       uint64_t requested_visible;
-};
-
 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo)
 {
        return container_of(tbo, struct amdgpu_bo, tbo);
 
 struct amdgpu_job;
 struct amdgpu_bo_list_entry;
 struct amdgpu_bo_vm;
-struct amdgpu_mem_stats;
 
 /*
  * GPUVM handling
        unsigned int    vmhub;
 };
 
+struct amdgpu_mem_stats {
+       struct drm_memory_stats drm;
+
+       /* buffers that requested this placement */
+       uint64_t requested;
+       /* buffers that requested this placement
+        * but are currently evicted */
+       uint64_t evicted;
+};
+
 struct amdgpu_vm {
        /* tree of virtual addresses mapped */
        struct rb_root_cached   va;