Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp493627rwo; Fri, 21 Jul 2023 15:44:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVPg5XX5LPqvXDO9iHEdsDV+JPfSL4BH4/fiQM4J2yMCpDcXK17w/4XvG53ESVrLxproB+ X-Received: by 2002:a17:906:7394:b0:994:577:f9dd with SMTP id f20-20020a170906739400b009940577f9ddmr2751292ejl.9.1689979449423; Fri, 21 Jul 2023 15:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689979449; cv=none; d=google.com; s=arc-20160816; b=mZm9R0fiI4Q++VKJyXFXSWTD4TPF+0LbRD7STm9P92VQlIKgLuM78UWprFSfX18YSw BmFMidVoT2iDZn+p5d7x3bUEyaC35+MJ7OXiM9p/Jvx4jTHS2YuJ6djo0R+eoBETzpdC f0LJ3Kc1A8/1XJ8frd1eN6R3kXiy1P1oq0MzdxBxBUW0uuQLzhlGswsoEyiMtvqjbqpL C+L4AHMVXszi6s4+B5Tx7YWTsGpfFjoo/fS71RHqggI1mZqjVw1Vypa+NWYC4+mhdKFx 6pJcLiYAxek+zC9l2GVELhFeCxppLLHP3GNdBsV+cszVhLUtfHozJlf+I985h7zJgHLV f/6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=l6xRYi4aCBF7mvF9Wq1OcAPDild54ArRewQg4E7JKv4=; fh=dZxOPVQL0KOwZfs8WeF5llXPjlMaWHBf8rWXA5n8yfs=; b=DVlXNUod7BiT5xTzR7dr2yfu7Sw4yOThpDqwISvQWVJed4ZB0Qx55V8DUwJiA2w7zk Ji+6vpBtQnbBol8tOgWr7Wl3mRZhmb+9BsAUr1sqtlg4jdoSqBbYG9r9su+wVhpiLAuQ N1SZ/wB5CRZ43EGpHZFXCZSbroqrm+2UuUCIBJiDa0yPd8tDtFpAfuiLJejHHoPV5tCy CmFe2MKsrtfhbyCKhSfz7sZPDHaj9JVRTbllgnm0FUebC4gdQN5D7zTrKn0HnwuV3wCz mK0ichqDJyGFDcNausGYq5vp8eXCFGP13fnNoIpPmQLzep668u2P2KKv8xupqeiskjst RsFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KkHPlyzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b27-20020a1709062b5b00b0099318359ea8si2582213ejg.452.2023.07.21.15.43.43; Fri, 21 Jul 2023 15:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KkHPlyzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjGUWUX (ORCPT + 99 others); Fri, 21 Jul 2023 18:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbjGUWUV (ORCPT ); Fri, 21 Jul 2023 18:20:21 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E2326BF; Fri, 21 Jul 2023 15:20:20 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3a3efebcc24so1687520b6e.1; Fri, 21 Jul 2023 15:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689978020; x=1690582820; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=l6xRYi4aCBF7mvF9Wq1OcAPDild54ArRewQg4E7JKv4=; b=KkHPlyzjqy+65JjxuJgW31Z63b8E8dgBPO23fclVK63J02CdQ4bxPgkvvAcvKpvVB8 KLce+Y4ZAIlKYS25+ziMYw/Ue1uBPq8EvSWA7k4Zot0rP9lRUYXzVhQLw8oH9wPhebx8 NDFJS1ksZygEE55Cy7PS8rPXlxFm8JFiH6/TRQoEg+hvZzcGB/KgAwgGaynsy1r+ZgBH jwlXF+OvqxKXIamZwRS/075w9H0D/NVYXwuSCjD5K8KsvkhjJBDJSTHZEACzM1+Kfw+n WrDXkZg+aWxz2TFpOjN4Jhi7B4IQ3R8WYEVmN/7/EbmWj6bSLy9fgmRv/x1Ll42WXGhL EZ8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689978020; x=1690582820; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l6xRYi4aCBF7mvF9Wq1OcAPDild54ArRewQg4E7JKv4=; b=BYKNp4IdRobTLxVcMT7L7cnfoD/5yFXas+2M8rDQqaLL3Cun0uL9kHquXAtqjSpVyf MTpu16wP04zQZnChytNqTMnQ/nCJa1OH5+kAK42gjhYBEJL88GZZebwEZPfGpUqsWUlJ 8xpktpjTD3h7iMyXLokCk8kaMjS8py1VXXEzs19OPp67URFv0R8yxQQOl7AseZyNsE7m b57GezNOofdQRa80kkRYHg94anaR1nVPp4j4/FmFsCbHhuvbc5QDFKc/9z+NVnsSpSAh TQ5ZNGnCtru9zg+2uNSYEqtAQqFGc8A7lu/GEyN/QxHkaCuzkP0MARbpWUJ4V4KwQe5c 7vBw== X-Gm-Message-State: ABy/qLZlNtGzZJ0zT63GEdUKLf3BUv0Cn3FFRNme9DnS+MJrAItWNG3D qWyi39Y3JIL7gLsPMlIJHJ4= X-Received: by 2002:a05:6808:200d:b0:3a4:8590:90f2 with SMTP id q13-20020a056808200d00b003a4859090f2mr4502985oiw.47.1689978019839; Fri, 21 Jul 2023 15:20:19 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:fbd8]) by smtp.gmail.com with ESMTPSA id z2-20020a17090a6d0200b002676e961260sm5041674pjj.0.2023.07.21.15.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 15:20:19 -0700 (PDT) Sender: Tejun Heo Date: Fri, 21 Jul 2023 12:20:18 -1000 From: Tejun Heo To: Tvrtko Ursulin Cc: Intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Weiner , Zefan Li , Dave Airlie , Daniel Vetter , Rob Clark , =?iso-8859-1?Q?St=E9phane?= Marchesin , "T . J . Mercier" , Kenny.Ho@amd.com, Christian =?iso-8859-1?Q?K=F6nig?= , Brian Welty , Tvrtko Ursulin , Eero Tamminen Subject: Re: [PATCH 15/17] cgroup/drm: Expose GPU utilisation Message-ID: References: <20230712114605.519432-1-tvrtko.ursulin@linux.intel.com> <20230712114605.519432-16-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 21, 2023 at 12:19:32PM -1000, Tejun Heo wrote: > On Wed, Jul 12, 2023 at 12:46:03PM +0100, Tvrtko Ursulin wrote: > > + drm.active_us > > + GPU time used by the group recursively including all child groups. > > Maybe instead add drm.stat and have "usage_usec" inside? That'd be more > consistent with cpu side. Also, shouldn't this be keyed by the drm device? -- tejun