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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1358BC7EE2D for ; Sun, 21 May 2023 00:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229842AbjEUADT (ORCPT ); Sat, 20 May 2023 20:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbjEUADQ (ORCPT ); Sat, 20 May 2023 20:03:16 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00A4418F for ; Sat, 20 May 2023 17:03:13 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f3a166f8e9so2735287e87.0 for ; Sat, 20 May 2023 17:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684627392; x=1687219392; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hzuHTgVFvJOcibg5XLms2snXPUj1XRLOS2dGHZrGZ9w=; b=de+9pEzv+V+RtnsauZw1xJ6xg3xowMNpYhR2hrMHrnN5DwuHS53a/6mYf3PqexfLDE RmrA2Q1Evv0OP57PG0lL7CptzD1/v+W6Ui+nhQg3eOzfYJi3E1B+Nl/i0L1ES4GWMT8f hKQ6Gny7a2IG1sUuaXzRAkjqj425vczlNPoNuYao4FDu0bDB6aHhHifRiA+cbZ6Dp5dL RxXrYhFBElafPjSMSfWd3B42NflJBjfdFsI70JRdiGFsK5LLXgQuRfj6NtUmJvfqTAZk 8ZlXl8RV+FdQ5aW0+FzdsRL+MjC9E0sLOjKiSK+uc9xK5OjdQfAumgrB4VV3YZxgt4cK AIqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684627392; x=1687219392; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hzuHTgVFvJOcibg5XLms2snXPUj1XRLOS2dGHZrGZ9w=; b=CwpUfax1fkADZTnzCqjmYRxaOBrH0lipJoVo0TwGT6je3QWsy9zbyc32skA/IjeDBX P+DbKIToAa82JPVhyJHEdjsBor5FRIWqjGbiC6AbMDik1RBUKsZiNu1LE4T0Z/BtmARR mKN/+h+BkcVRcxttG7rqtp5Rg9CI8xg5EkRX8qSLguHwajaigeuWMfueSzrKPj7FbucY otLGMnxVw3Cl0VGobK9pybAW1aMQuQiZB6wKSBc3+TozMtnM69x3aLYTfmlUe2u64or2 3O/xFGeElF7FsN1vZMYfl91vXfQkjkA408wJKFD2Mr71LebBNQeQt97lt1FIiMF4YRY5 AExQ== X-Gm-Message-State: AC+VfDw8anGpgdl4KtorV0FTppnvl84yplTEZutFiQvKpwi43ozLk2Je AJJNK76FzBnWHs8ehigSUvy1hg== X-Google-Smtp-Source: ACHHUZ4inqGzFl0yu2BA3Hvm7A2976kcqcOuiyRPVgeqFJjRLVRuHQcUW5BDIw84DZ989za7vayVVQ== X-Received: by 2002:ac2:4c49:0:b0:4f0:74:61a0 with SMTP id o9-20020ac24c49000000b004f0007461a0mr2566610lfk.0.1684627392247; Sat, 20 May 2023 17:03:12 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id c28-20020ac2531c000000b004f38411f148sm418378lfh.84.2023.05.20.17.03.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 May 2023 17:03:11 -0700 (PDT) Message-ID: Date: Sun, 21 May 2023 03:03:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 0/9] drm: fdinfo memory stats Content-Language: en-GB To: Rob Clark , dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org, Daniel Vetter , Tvrtko Ursulin , Boris Brezillon , Christopher Healy , Emil Velikov , =?UTF-8?Q?Christian_K=c3=b6nig?= , Rob Clark , Akhil P Oommen , Alex Deucher , "open list:RADEON and AMDGPU DRM DRIVERS" , Arunpravin Paneer Selvam , Bjorn Andersson , Chia-I Wu , Elliot Berman , Guchun Chen , Jim Cromie , Konrad Dybcio , Lijo Lazar , "open list:DRM DRIVER FOR MSM ADRENO GPU" , "open list:DOCUMENTATION" , open list , Mario Limonciello , Maximilian Luz , =?UTF-8?Q?Michel_D=c3=a4nzer?= , Peter Maucher , Sean Paul , Shashank Sharma , Tvrtko Ursulin , YiPeng Chai References: <20230515143023.801167-1-robdclark@gmail.com> From: Dmitry Baryshkov In-Reply-To: <20230515143023.801167-1-robdclark@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- With best wishes Dmitry