From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97D1DC369DC for ; Tue, 29 Apr 2025 21:14:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2BCDE10E096; Tue, 29 Apr 2025 21:14:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dTgxLtIl"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3479710E096 for ; Tue, 29 Apr 2025 21:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745961256; x=1777497256; h=date:message-id:from:to:cc:subject:in-reply-to: references:mime-version; bh=XRc5v+Ri1BlZxvrxSHsO9ASqLU+xO2xGvGbcN36Drq0=; b=dTgxLtIltQZ5yD2jJ6+E5TeaoTCGg4fS+2GAaN4pdUFs0Y50ZYCK1S2H vWw4i3cQGvqU1bzWkIu1faUTFSAtxk7er1MKDiqoaxbcHUKSFgQIhGw0y zHK4G8uCMtHvQ86zLBnf70kcOhUf7mPrh+gKw4YcKy3wup5BEl6VJL4tk q8zCCwR6WqV5X0g0JWfYmEOnPLd2Sb9Tr3Qek//SkFpcNXv8Hup1Q6wyM VQMCQd5Lz2m1ojjnDtMHxfZ6k/Gol8ZOok08ZCrCHT7ZF63M18OOPqXYT 9/Gfc0vb8qESZHdaKD18fir1kq0SZJd6E+0P3yuJDziUrC3iIYKu4xlNr w==; X-CSE-ConnectionGUID: W9PIQ+n9QEqo+m0gI6CvnA== X-CSE-MsgGUID: Zfw5lHUWRvqmKl0QVUHJ7w== X-IronPort-AV: E=McAfee;i="6700,10204,11418"; a="58259926" X-IronPort-AV: E=Sophos;i="6.15,250,1739865600"; d="scan'208";a="58259926" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2025 14:14:13 -0700 X-CSE-ConnectionGUID: NahcQ0U9TYe+NnO5kNmZtg== X-CSE-MsgGUID: DejkRtvvSAyLmiANgA/jng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,250,1739865600"; d="scan'208";a="139047112" Received: from orsosgc001.jf.intel.com (HELO orsosgc001.intel.com) ([10.165.21.142]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2025 14:14:12 -0700 Date: Tue, 29 Apr 2025 14:14:11 -0700 Message-ID: <85tt66r7q4.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Jeevaka Prabu Badrappan Cc: igt-dev@lists.freedesktop.org, sapna1.singh@intel.com, markyacoub@google.com, seanpaul@google.com, carlos.santa@intel.com Subject: Re: [PATCH v2 0/5] Extend IGT to support Android In-Reply-To: <20250429204000.41537-1-jeevaka.badrappan@intel.com> References: <20250429204000.41537-1-jeevaka.badrappan@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (x86_64-redhat-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" 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. 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 >