[Intel-gfx] [PATCH] drm/i915: Extend GET_APERTURE ioctl to report available map space

Mark Kettenis mark.kettenis at xs4all.nl
Mon Sep 22 12:07:15 CEST 2014


Hi Chris,

> This patch extends the current DRM_I915_GEM_GET_APERTURE ioctl to
> include a couple of new fields in its reply to userspace - the total
> amount of space available in the mappable region of the aperture and
> also the single largest block available.

Would it be possible to include the total size of the mappable region
as well?  Currently libdrm_intel has a:

        /* XXX add a query for the kernel value? */

in drm_intel_get_aperture_sizes(), and some fallback code that uses
libpciaccess to figure out the size of the aperture.  That is a bit of
a problem for systems like OpenBSD that restrict userland access to
PCI config space.

Thanks,

Mark





More information about the Intel-gfx mailing list