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 X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 734AFC433ED for ; Mon, 17 May 2021 16:13:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0B37A60E0B for ; Mon, 17 May 2021 16:13:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B37A60E0B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 953966E1FB; Mon, 17 May 2021 16:13:34 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id D576F6E1FB for ; Mon, 17 May 2021 16:13:32 +0000 (UTC) IronPort-SDR: OYd9aruLhJ8Fbk2bhQiwGkx5hiDQMMVEyJxC3MA8g3g5aXpN4iE0yfLNtcgen8p3EFOyozzXUQ eF2iEKFIyTLQ== X-IronPort-AV: E=McAfee;i="6200,9189,9987"; a="200549994" X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="200549994" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 09:13:31 -0700 IronPort-SDR: JUvNUf/7+VWvieD47SYCmA+YTGt5nDv0LDjk3xtexowBp+JtneNVtjVtLen3n+CopSK6vtUyfx HtKmCYgdsiKQ== X-IronPort-AV: E=Sophos;i="5.82,307,1613462400"; d="scan'208";a="438042594" Received: from lobrie3x-mobl4.ger.corp.intel.com (HELO [10.213.193.103]) ([10.213.193.103]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2021 09:13:29 -0700 To: Maxime Schmitt , intel-gfx@lists.freedesktop.org References: From: Tvrtko Ursulin Organization: Intel Corporation UK Plc Message-ID: <90fa0209-0ce2-7c70-e740-97d6cbe4a10e@linux.intel.com> Date: Mon, 17 May 2021 17:13:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Subject: Re: [Intel-gfx] [PATCH 0/7] Per client engine busyness X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, On 15/05/2021 11:40, Maxime Schmitt wrote: > Hi, > > Nice to see something like this being worked on. > > I wrote a top-like tool some time back (nvtop). > I targeted NVIDIA, because it was the GPU I had at the time. Also, > their driver provides a nice library to retrieve the information from > (NVML). > > Seeing this thread I think it would be nice to support more vendors now > that the information is available. > > I took a look at the DRM documentation, but I am only finding the in- > kernel functions and not what is being exposed to user space. Maybe I > am searching at the wrong place. > Is there some documentation, from the user space point of view, on the > way to discover the GPUs and the metrics that are exposed? There isn't a common framework yet, its under discussion in this thread. AMD has some stuff under /proc//fdinfo/, and i915 at the moment has only global GPU stats (export as a perf/PMU device, see "perf list | grep i915.*/") used by current version of intel_gpu_top. Regards, Tvrtko P.S. I suggest you use reply-to-all when replying on mailing list threads so it's easier to spot your message. _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx