Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3656159rwd; Mon, 22 May 2023 18:10:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7A/9UTgk2OsZCqPNkMgyd3ETMcyaSJwoxFOWicHJaeA2mAwGGK+FTRmN3faSRy87wJJMsV X-Received: by 2002:a05:6a00:c8d:b0:64c:4f2f:a235 with SMTP id a13-20020a056a000c8d00b0064c4f2fa235mr13528378pfv.30.1684804229558; Mon, 22 May 2023 18:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684804229; cv=none; d=google.com; s=arc-20160816; b=SPH2IwTbCnvsy/aZmbgRgUkQOJGCjdEmzD+4LvLV2ISKLD0/TrEqrd7x9HohaiYepf I+3ZY7PbncaTmTOdMsIwQEZVLKskNYfiR5+7AzgSRWRMCYqnWshwSClHl2mIXnRScg00 I36QkGCfRDbdLZ8UqlBR0tZ7RnvrniwY3Sh0fDrUWaQ/mGdfuNfkzRDZYS7Dm+/tdq1/ J11nbAEfMfvjkTGEKJf4bcZGW/tlKGC8TEpr0FLKL/fAHitReFHKybI+jZEFpfviDDrx VtUNv+jxVBvukOvTVzHWZVafQNPrjbfxwZfl93O84B/hICSVWQM3ttSROABcDDR95P70 yRow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VvJrClLjnc7GTwo//Bcl7YXcX48efgizj6CzwviQgvQ=; b=whwm2m7Nl2J36VPvZbcvziWbgaVk3drhCMQQuwaV8gBNVB+589DNnXGaCIJDFYvvSW XB7Jfzb7bC2CZrm/D810L/kN0L+b+azSL2ZCJ7g/TDWHgIkywXcbm7x6GGsp9CDfVimP J8MjGretW7bmY/R20GUVBD2yUT/tYn5cAyiC/Dj6sa4gfQEhhWTKRAqDeHIhSXJfpfGc DZShQ1veEWl8JVIzcUZcb+DaE+7WblI+Y7/HXLRSDPQQl5dsyf1UZLNLn0yTtirVhMCz wnzc+jvjUFxtWox9KAnlfMQbu3gJs7Gyzn7/2BscDBXdP+kJaIRnNHIQ01yoT/NV1AC0 cuzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bvGtXUuh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020aa79839000000b0062565210347si595908pfl.275.2023.05.22.18.10.15; Mon, 22 May 2023 18:10:29 -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=bvGtXUuh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234999AbjEWAkH (ORCPT + 99 others); Mon, 22 May 2023 20:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235364AbjEWA25 (ORCPT ); Mon, 22 May 2023 20:28:57 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 868092102; Mon, 22 May 2023 17:17:31 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-96f53c06babso891469266b.3; Mon, 22 May 2023 17:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684801050; x=1687393050; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VvJrClLjnc7GTwo//Bcl7YXcX48efgizj6CzwviQgvQ=; b=bvGtXUuh02M6wX2vqbbNUCwtlmzdcXicrq+Ko5UE6ihY1RT0tRKajdOv+r6iAHdByq SjIgqAwjEVEmKbNdHLWb1jo7vev9X5lBvC0kFtiDQrFSkoQmg/bZnQqpA0K/jGIOPlSK PzvaMoQnZUFgIaAGbae2fH91K9sly+pyChl4WBFLwu1xtH7m3AvgeKbOIRMRUqJh0Sqj pDQGNhWeL9IyyAF0ATkVbIzAsERM9ftGF0h1d9WBZfHhXYnYplkAaOByIBMZLKHFSodG gixAne+NV7YCsBACXo0TufuJ01cmJdHYxWYiRgbxKosdc96JFCG+/lA33amnZ8p+I/Vs LzmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684801050; x=1687393050; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VvJrClLjnc7GTwo//Bcl7YXcX48efgizj6CzwviQgvQ=; b=LEm08EFpant2zXhiP0JflZ7g6BB+hqECQOorX9PDVwYgf5RFG4yxaPOxm2ZdKwPWE+ wTixtyljTHPiIYA+6v0YSk0n5nzklbxFdGioGneiS1hSstJ+Uj2f4+F16jO4E4Zk7zqC bIdvxVeei6uiUNQ3jUzWOnowz6yGhqztTG55UraBaLIDsTk7K6f1HmgETSBBbPOlhhVc UHSWobIhnkoG0J8k0OT3aSRm98B+EMfGjchTzkgBWrMh9uwWzEZCHBXP5giOZBGLLAhR DXDvJT3WUbzQ23e6JxFDq5AasRt85ipMI/g+mhWrxQ/ESPkFOm5dnnQQ/+oHuD/xqTiU VnLw== X-Gm-Message-State: AC+VfDyNZq4/egndOrRQ9qX17/ErZp1iIdOa3t1h7CdlhIVTMgP+4h6N OpXWU+hT8BKSn1dtyq6wbPS4VmeObos7NfaAz95mnBIupWCrig== X-Received: by 2002:a17:906:9743:b0:96f:32ae:a7e1 with SMTP id o3-20020a170906974300b0096f32aea7e1mr13882790ejy.63.1684801049644; Mon, 22 May 2023 17:17:29 -0700 (PDT) MIME-Version: 1.0 References: <20230515143023.801167-1-robdclark@gmail.com> In-Reply-To: From: Dave Airlie Date: Tue, 23 May 2023 10:17:17 +1000 Message-ID: Subject: Re: [PATCH v4 0/9] drm: fdinfo memory stats To: Dmitry Baryshkov Cc: Rob Clark , dri-devel@lists.freedesktop.org, "open list:DOCUMENTATION" , Akhil P Oommen , Lijo Lazar , open list , =?UTF-8?Q?Michel_D=C3=A4nzer?= , YiPeng Chai , Mario Limonciello , Rob Clark , Guchun Chen , Shashank Sharma , "open list:RADEON and AMDGPU DRM DRIVERS" , Arunpravin Paneer Selvam , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Sean Paul , Tvrtko Ursulin , Elliot Berman , Tvrtko Ursulin , Maximilian Luz , Bjorn Andersson , Peter Maucher , Emil Velikov , Christopher Healy , Konrad Dybcio , Boris Brezillon , Alex Deucher , freedreno@lists.freedesktop.org, =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 Sun, 21 May 2023 at 10:03, Dmitry Baryshkov wrote: > > On 15/05/2023 17:30, Rob Clark wrote: > > From: Rob Clark > > > > Similar motivation to other similar recent attempt[1]. But with an > > attempt to have some shared code for this. As well as documentation. > > > > It is probably a bit UMA-centric, I guess devices with VRAM might want > > some placement stats as well. But this seems like a reasonable start. > > > > Basic gputop support: https://patchwork.freedesktop.org/series/116236/ > > And already nvtop support: https://github.com/Syllo/nvtop/pull/204 > > > > I've combined the separate series to add comm/cmdline override onto > > the end of this, simply out of convenience (they would otherwise > > conflict in a bunch of places). > > > > v2: Extend things to allow for multiple regions other than just system > > "memory", make drm_show_memory_stats() a helper so that, drivers > > can use it or not based on their needs (but in either case, re- > > use drm_print_memory_stats() > > v3: Docs fixes > > v4: use u64 for drm_memory_stats, small docs update and collected > > Tvrtko's a-b > > > > [1] https://patchwork.freedesktop.org/series/112397/ > > > > Rob Clark (9): > > drm/docs: Fix usage stats typos > > drm: Add common fdinfo helper > > drm/msm: Switch to fdinfo helper > > drm/amdgpu: Switch to fdinfo helper > > drm: Add fdinfo memory stats > > drm/msm: Add memory stats to fdinfo > > drm/doc: Relax fdinfo string constraints > > drm/fdinfo: Add comm/cmdline override fields > > drm/msm: Wire up comm/cmdline override for fdinfo > > > > Documentation/gpu/drm-usage-stats.rst | 101 ++++++++++---- > > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +- > > drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 16 +-- > > drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.h | 2 +- > > drivers/gpu/drm/drm_file.c | 147 +++++++++++++++++++++ > > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 24 +++- > > drivers/gpu/drm/msm/msm_drv.c | 15 ++- > > drivers/gpu/drm/msm/msm_gem.c | 15 +++ > > drivers/gpu/drm/msm/msm_gpu.c | 2 - > > drivers/gpu/drm/msm/msm_gpu.h | 10 ++ > > include/drm/drm_drv.h | 7 + > > include/drm/drm_file.h | 51 +++++++ > > include/drm/drm_gem.h | 32 +++++ > > 13 files changed, 378 insertions(+), 47 deletions(-) > > What is the expected merge plan for this series? msm-next? drm-misc? I'm fine with this going via drm-misc, Acked-by: Dave Airlie if that is the plan. Dave.