summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAshutosh Dixit <ashutosh.dixit@intel.com>2020-04-27 08:51:38 -0700
committerChris Wilson <chris@chris-wilson.co.uk>2020-04-29 14:18:15 +0100
commit5349e28013a626d1ede6a13b36e37d03abf0e202 (patch)
tree18516fe61b0a8a8a2bea138622569b41c2398bf8 /lib
parentd095827add11d4e8158b87683971ee659749d9a4 (diff)
lib/ioctl_wrappers: Delete gem_total_mappable_size()
gem_total_mappable_size() has no callers and calls the DRM_I915_GEM_GET_APERTURE ioctl using 'struct local_i915_gem_get_aperture' which has fields which are unsupported in the kernel. Delete the function. Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/ioctl_wrappers.c17
-rw-r--r--lib/ioctl_wrappers.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 627717d2..25d04b3e 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -980,23 +980,6 @@ struct local_i915_gem_get_aperture {
};
#define DRM_I915_GEM_GET_APERTURE 0x23
#define LOCAL_IOCTL_I915_GEM_GET_APERTURE DRM_IOR (DRM_COMMAND_BASE + DRM_I915_GEM_GET_APERTURE, struct local_i915_gem_get_aperture)
-/**
- * gem_total_mappable_size:
- * @fd: open i915 drm file descriptor
- *
- * Feature test macro to query the kernel for the total mappable size.
- *
- * Returns: Total mappable address space size.
- */
-uint64_t gem_total_mappable_size(int fd)
-{
- struct local_i915_gem_get_aperture aperture;
-
- memset(&aperture, 0, sizeof(aperture));
- do_ioctl(fd, LOCAL_IOCTL_I915_GEM_GET_APERTURE, &aperture);
-
- return aperture.map_total_size;
-}
/**
* gem_total_stolen_size:
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 9b29fce8..799d9026 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -132,7 +132,6 @@ int gem_gpu_reset_type(int fd);
bool gem_gpu_reset_enabled(int fd);
bool gem_engine_reset_enabled(int fd);
int gem_available_fences(int fd);
-uint64_t gem_total_mappable_size(int fd);
uint64_t gem_total_stolen_size(int fd);
uint64_t gem_available_aperture_size(int fd);
uint64_t gem_aperture_size(int fd);