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,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 7182DC433B4 for ; Tue, 18 May 2021 09:09:05 +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 3294760720 for ; Tue, 18 May 2021 09:09:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3294760720 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=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96CDD6EAE1; Tue, 18 May 2021 09:09:04 +0000 (UTC) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA2BE6EAE1; Tue, 18 May 2021 09:09:03 +0000 (UTC) IronPort-SDR: AuvuuDsiaBhUO23Dq7xt0BF33hWxiO+K4pmnX24PZSVuZjd/AXAzSCXoramJA3RWyt09HLHyZl PwO7YW94WcOg== X-IronPort-AV: E=McAfee;i="6200,9189,9987"; a="261894363" X-IronPort-AV: E=Sophos;i="5.82,309,1613462400"; d="scan'208";a="261894363" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 02:09:02 -0700 IronPort-SDR: yPJN47b28MnhQmYDYnkruaXNg+D3o1fuSGmv/OhvwUhWQRWO4Ku/3NAzTDjmSBTyAX6yt7MWf5 t85NZBHNN50Q== X-IronPort-AV: E=Sophos;i="5.82,309,1613462400"; d="scan'208";a="438576762" Received: from alirazas-mobl.ger.corp.intel.com (HELO [10.213.211.104]) ([10.213.211.104]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 02:09:00 -0700 Subject: Re: [PATCH 0/7] Per client engine busyness To: Simon Ser , "Nieto, David M" References: <6cf2f14a-6a16-5ea3-d307-004faad4cc79@linux.intel.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc Message-ID: <7f8fc38a-cd25-aa1f-fa2d-5d3334edb3d2@linux.intel.com> Date: Tue, 18 May 2021 10:08:59 +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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "nouveau@lists.freedesktop.org" , Intel Graphics Development , Maling list - DRI developers , "jhubbard@nvidia.com" , "Koenig, Christian" , "aritger@nvidia.com" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 17/05/2021 20:03, Simon Ser wrote: > On Monday, May 17th, 2021 at 8:16 PM, Nieto, David M wrote: > >> Btw is DRM_MAJOR 226 consider uapi? I don't see it in uapi headers. > > It's not in the headers, but it's de facto uAPI, as seen in libdrm: > > > git grep 226 > xf86drm.c > 99:#define DRM_MAJOR 226 /* Linux */ I suspected it would be yes, thanks. I was just wondering if stat(2) and a chrdev major check would be a solid criteria to more efficiently (compared to parsing the text content) detect drm files while walking procfs. Regards, Tvrtko