[PATCH v2 0/5] Extend IGT to support Android
Mark Yacoub
markyacoub at google.com
Wed Apr 30 20:13:21 UTC 2025
On Tue, Apr 29, 2025 at 5:14 PM Dixit, Ashutosh <ashutosh.dixit at intel.com>
wrote:
> On Tue, 29 Apr 2025 13:39:55 -0700, Jeevaka Prabu Badrappan wrote:
> >
> > The primary objective of this proposal is to extend the functionality of
> > IGT to Android environments.
> >
> > Enabling IGT on Android will allow developers to perform comprehensive
> > testing of graphics drivers, ensuring robustness and reliability across
> > different platforms.
>
> Could you give some more context here about why this is needed? Is it
> because Google is moving Chromebooks to Android?
> We also need to think about if this needs addition of an Android build to
> CI and who will support that.
>
> Also, it seems Android was added previously but removed in 2017 in
> 430946d0b881 ("igt: Remove Android support"). So this seems to be a new
> attempt to add Android to IGT.
>
Hello,
Yes - IGT is already in Android but was running off a snapshot from 5 years
ago.
To run it on Android, all required dependencies such as Android.bp were
kept downstream.
On Android, we're trying to move back to upstream and stay close to
upstream and constantly update our downstream repo.
The plan is to keep the Android specific build system such as Android.bp in
the downstream branch as it's not the most relevant to the upstream repo.
Thanks,
-Mark
>
> Thanks.
>
> >
> > By providing stub implementations for libraries that are not natively
> > supported on Android, we will bridge the gap between Android and Linux
> > environments, promoting code reuse and reducing development time.
> >
> > Changes done:
> > - Create stub implementations of GLib, libunwind, libprocps, and
> > other necessary libraries to satisfy IGT dependencies on Android.
> > - Replace glib hash table with generic hash table implementation
> >
> > Note:
> > - Incase of linux systems, system libraries will be used whereas for
> > Android stubs will be used with reduced test coverage.
> > - Support will be provided to maintain Android support.
> >
> > Jeevaka Prabu Badrappan (4):
> > Replace program_invocation_short_name with prog_name from command line
> > Avoid use of pthread_cancel by introducing an exit flag
> > Replace glib hash table with c specific implementation
> > igt-gpu-tools: Changes to compile for Android
> >
> > Sapna (1):
> > Add stub for libunwind, procps and glib
> >
> > include/stub/glib.h | 43 +++++++++++++
> > include/stub/libproc2/pids.h | 41 ++++++++++++
> > include/stub/libunwind.h | 20 ++++++
> > lib/igt_core.c | 4 ++
> > lib/igt_core.h | 1 +
> > lib/igt_device_scan.c | 118 ++++++++++++++++++++++++++---------
> > lib/igt_dummyload.c | 6 +-
> > lib/igt_dummyload.h | 2 +
> > lib/igt_kmod.c | 10 +++
> > lib/xe/xe_spin.c | 2 +-
> > tests/intel/xe_create.c | 1 +
> > tools/gputop.c | 6 +-
> > tools/intel_gpu_top.c | 2 +-
> > 13 files changed, 220 insertions(+), 36 deletions(-)
> > create mode 100644 include/stub/glib.h
> > create mode 100644 include/stub/libproc2/pids.h
> > create mode 100644 include/stub/libunwind.h
> >
> > --
> > 2.49.0
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20250430/e4c9db95/attachment.htm>
More information about the igt-dev
mailing list