Commit be4e3666 authored by Matthew Auld's avatar Matthew Auld

drm/i915: remove intel_memory_region avail

No longer used.
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Jon Bloomfield <jon.bloomfield@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Cc: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Reviewed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220629174350.384910-4-matthew.auld@intel.com
parent 141f733b
...@@ -198,8 +198,7 @@ void intel_memory_region_debug(struct intel_memory_region *mr, ...@@ -198,8 +198,7 @@ void intel_memory_region_debug(struct intel_memory_region *mr,
if (mr->region_private) if (mr->region_private)
ttm_resource_manager_debug(mr->region_private, printer); ttm_resource_manager_debug(mr->region_private, printer);
else else
drm_printf(printer, "total:%pa, available:%pa bytes\n", drm_printf(printer, "total:%pa bytes\n", &mr->total);
&mr->total, &mr->avail);
} }
static int intel_memory_region_memtest(struct intel_memory_region *mem, static int intel_memory_region_memtest(struct intel_memory_region *mem,
...@@ -242,7 +241,6 @@ intel_memory_region_create(struct drm_i915_private *i915, ...@@ -242,7 +241,6 @@ intel_memory_region_create(struct drm_i915_private *i915,
mem->min_page_size = min_page_size; mem->min_page_size = min_page_size;
mem->ops = ops; mem->ops = ops;
mem->total = size; mem->total = size;
mem->avail = mem->total;
mem->type = type; mem->type = type;
mem->instance = instance; mem->instance = instance;
......
...@@ -75,7 +75,6 @@ struct intel_memory_region { ...@@ -75,7 +75,6 @@ struct intel_memory_region {
resource_size_t io_size; resource_size_t io_size;
resource_size_t min_page_size; resource_size_t min_page_size;
resource_size_t total; resource_size_t total;
resource_size_t avail;
u16 type; u16 type;
u16 instance; u16 instance;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment