Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1289304rwd; Sat, 20 May 2023 17:28:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WzOmhbmVy1+CnFTV9QrCCYqL40Fz1p1Bhl3WaZdi68E8IpbmSlYUdvJeuxtnwC2fgNsBk X-Received: by 2002:a05:6a21:9205:b0:ec:e5bb:1bc4 with SMTP id tl5-20020a056a21920500b000ece5bb1bc4mr4736367pzb.6.1684628918352; Sat, 20 May 2023 17:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684628918; cv=none; d=google.com; s=arc-20160816; b=FM6e3vn+ZVDL9oibJDzHfShQfcLtg3mVZpOZw0PbvZtdMMfybV/i2u//ZjAW9q6gY4 UurXweUPg6gcAOk8yJ+wIlXxfw4JWJcAo0EYfTyuF3jlSqOnYkc3MhNMw20+UeVSk9Wh lDs3eVqSQ5Wf3iNGwiHdUEiW7qVLRat6F0NJV0MIK2dLkC1CZEGm9JNUxKewoYjT06lX 9v8iinGlyuIwJO1WYIhMyPe/p15kYyQEsBdk0QlJuhcBu2kRCLp8lCNYin7ylLF7XOgh oYfOrSHVHZ3isCYfJ8Rq67rDaczdvyMIqf6KSkqlD9MG/3n8Hs8k8xsNmOstgX8hyH8a cWwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hzuHTgVFvJOcibg5XLms2snXPUj1XRLOS2dGHZrGZ9w=; b=eiEkSTGGTCBnUSd7Iw4at+irpO/aHnLVkHwUIX3UtZlGiPHhZSsNqpKiE2G703dcbK q3pGyeaib39QAx9d+ZvbW4uQI/xgP08gQGYOwCsH22Yn9wfdcTmyDd7hTS8McaRECdgR Dkb89b2C2jXcoCUkQC1hx/clSqdEBt5NUR7hnrkYRyo3xQfpW0YKkU/GLFigkvpyX4JD UajMhcXx0xuGOC3/E4/5XgD2LPnNczVvT7EAfz9JiM87JdXsUdDfQZwDN41qXHYxq6kb W7nSSJjE05wXHt0Gzm/jmeWyTuEt9EKFQ4UenS+UCxtGWbZ49m61fq7G/3XkowWkECbg op+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=de+9pEzv; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b0053145cd75besi2209372pgp.41.2023.05.20.17.28.26; Sat, 20 May 2023 17:28:38 -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=@linaro.org header.s=google header.b=de+9pEzv; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229988AbjEUADS (ORCPT + 99 others); Sat, 20 May 2023 20:03:18 -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-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 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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