[PATCH libdrm 1/2] intel: Do not use libpciaccess on Android

Tomasz Figa tfiga at google.com
Tue Mar 27 02:50:11 UTC 2018


On Wed, Mar 21, 2018 at 2:36 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> From: Tomasz Figa <tfiga at google.com>
>
> This patch makes the code not rely anymore on libpciaccess when compiled
> for Android to eliminate ioperm() and iopl() syscalls required by that
> library. As a side effect, the mappable aperture size is hardcoded to 64
> MiB on Android, however nothing seems to rely on this value anyway, as
> checked be grepping relevant code in drm_gralloc and Mesa.
>
> Cc: John Stultz <john.stultz at linaro.org>
> Cc: Rob Herring <rob.herring at linaro.org>
> Cc: John Stultz <john.stultz at linaro.org>
> Cc: Tomasz Figa <tfiga at google.com>
> Signed-off-by: Tomasz Figa <tfiga at google.com>
> [Emil Velikov: rebase against master]
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> Tomasz, I've taken the liberty of pulling the patch from the Android
> tree. Hope you don't mind.

Thanks Emil for digging it up. I have no objections.

For reference, we used this as a quick hack before moving build of
graphics components to Chrome OS side. After that, for short time, we
had libpciaccess being built with autotools (and some small patch
disabling port IO related stuff). Eventually we got rid of it
completely, as Mesa stopped using libdrm_intel for i965 (and we don't
use i915).

Best regards,
Tomasz


More information about the dri-devel mailing list