Message ID | 20230525155227.560094-2-robdclark@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp478383vqr; Thu, 25 May 2023 09:02:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wvh3SqXxP5tHeRDwwRKC9Sgco1TLSvcJ16JpgvKHxrT+epC309xUgJAVFRY8QP2aVR6UT X-Received: by 2002:a05:6a20:a115:b0:105:a24f:cff1 with SMTP id q21-20020a056a20a11500b00105a24fcff1mr20113007pzk.24.1685030520635; Thu, 25 May 2023 09:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685030520; cv=none; d=google.com; s=arc-20160816; b=t3R576TKPZCGrT4llO8upa492+95wu8lUaunCwoyDORkEeVgdo4n0DmFI8Vge4FcL/ ECKTS5bXKj0WdtWhCDgTclomXDjogEagqKFYSrBeiQMGD2FHsF3DmMXC/6FU+w0mxz1T +8ilcGIqJ7Tu2ZlvMt4Wj9fCqqrCgLPK6OezebogakgntcBXaPhdFVtZKDBcAlRgV8yG yyEHWpY9nUU5C2Owvo/6PrPfgHewZQWJfbq7ouqR9zFUFrXYgALTNmOGAY83S2GOJNJA 7gwEHE4q3FHERePCWXYO7GnRLdQ2rkYAMA2qKo+gboce9sNdl4PdRsn9a1UJvN4bvaye L0FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7rVaUtme+EMgdLDqkT+0xJV+Z1WpGr8J4+UhWtVcjr8=; b=b3znfv+WApOlVz/Q1QXkEA/tNO6HH9qxiCWIIshg9Dd+cGHhNsB5CkSWLAhJjrMNuj rl3epQ+JV1khXTDAlN4xOhjB6ME2OObpbYU5Jjshk9GGLWIoZMCy0xfM6xrBh4jRuP0J uQnEg2RwbuEe+oUxNCe6XUZ9trbHaSMCVaIxcRWcAjp3c4ykQNVaAgwR7ebUhIYmMyQc ujNwfSkCnW+zLnFr97rAT9uhuP1B20sobq/cYetkM4T6XSuemWxt1q+fdeLtimsxzGwb hzOsEXcGTGt+f3VTcO/aVJZVBfRui3DxRzk6AOI0nyDru29OuLz6UZWMXm+GLxys6kXo 603A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IvUB2IKX; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c66-20020a633545000000b00534792ee482si1367357pga.758.2023.05.25.09.01.44; Thu, 25 May 2023 09:02:00 -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=IvUB2IKX; 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 S241842AbjEYPxR (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Thu, 25 May 2023 11:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241833AbjEYPwq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 25 May 2023 11:52:46 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE3C6195 for <linux-kernel@vger.kernel.org>; Thu, 25 May 2023 08:52:37 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5341737d7aeso1566902a12.2 for <linux-kernel@vger.kernel.org>; Thu, 25 May 2023 08:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685029957; x=1687621957; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7rVaUtme+EMgdLDqkT+0xJV+Z1WpGr8J4+UhWtVcjr8=; b=IvUB2IKXdPVzS5BHfvNthVBhxLC614xiN9wuIVEsKpqc1sdU2CVUrIYrj3r6tqujTX F3CVgK0ZbMwTucYdyQPx3X/ff411RAhSLG/vO/b+hJpLobzQSlBLoLuslMCn/hv91N3i AaJE9RtBh/wqPaSk7mLBnNqR+WhHs9sfwhB2WPeWfbQEprGfGpz6xUXwnemLMb7co5Nn KMI5V0296BHn7TijqODaERxEfhtHVC/Tb3jYa2AXbWjvmZRNNAaCK7xe+fLbnWxebTCc 1WngHtTOP2scTVVWs19ADnOWMzOQoKkacKdlvcAEYti9dTduIBqxtvADOiHZsS+4emR/ zPWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685029957; x=1687621957; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7rVaUtme+EMgdLDqkT+0xJV+Z1WpGr8J4+UhWtVcjr8=; b=JQvE62K5pNwTvEwt9HPII3F5maPCwp48JNPRDGBxL61CCQwVnOS4sNpc5IB1GwiHDA sQn80bC8XwQXCvR2n5PLVVHrndFdL4R9HQVG0vaZElB8UV85pWxkI6AfEb8qe/qb6h7X QeC0uVfRClOU6ud+q0jl2npmUSmyTKMjmedIiU+QYJZATjDKj8ksqPuhoFyOx09il2ie wTkqzherp9P9GxMT7XzgIcA4UGmFIwrQ/7558B0lw42oIl5Ky6w0+/NBimyFyvu7jh3F I9GePXcZogE03sviDhp68bhiBXcXN58ei6D3ra31FmL7wuIXnHTEM6nJGybiRmbfIEwB Rspg== X-Gm-Message-State: AC+VfDzOBOREvdDAUz4WDfRyYdbJhoVWTgB7qbxWwY+36QZEmxXNh6JP 5CU8EHoKzRALhADFlYO3AGw= X-Received: by 2002:a17:902:e852:b0:1a9:5aef:1aea with SMTP id t18-20020a170902e85200b001a95aef1aeamr2316030plg.66.1685029957214; Thu, 25 May 2023 08:52:37 -0700 (PDT) Received: from localhost ([2a00:79e1:abd:4a00:61b:48ed:72ab:435b]) by smtp.gmail.com with ESMTPSA id 9-20020a170902c10900b001a5fccab02dsm1598335pli.177.2023.05.25.08.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 08:52:36 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: dri-devel@lists.freedesktop.org Cc: Rob Clark <robdclark@chromium.org>, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, "Pan, Xinhui" <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Shashank Sharma <shashank.sharma@amd.com>, Tvrtko Ursulin <tvrtko.ursulin@intel.com>, =?utf-8?b?TWFyZWsgT2zFocOhaw==?= <marek.olsak@amd.com>, Dave Airlie <airlied@redhat.com>, Neil Armstrong <neil.armstrong@linaro.org>, amd-gfx@lists.freedesktop.org (open list:RADEON and AMDGPU DRM DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] drm/amdgpu: Remove duplicate fdinfo fields Date: Thu, 25 May 2023 08:52:25 -0700 Message-Id: <20230525155227.560094-2-robdclark@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230525155227.560094-1-robdclark@gmail.com> References: <20230525155227.560094-1-robdclark@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766882563373659782?= X-GMAIL-MSGID: =?utf-8?q?1766882563373659782?= |
Series |
[1/2] drm/amdgpu: Fix no-procfs build
|
|
Commit Message
Rob Clark
May 25, 2023, 3:52 p.m. UTC
From: Rob Clark <robdclark@chromium.org> Some of the fields that are handled by drm_show_fdinfo() crept back in when rebasing the patch. Remove them again. Fixes: 376c25f8ca47 ("drm/amdgpu: Switch to fdinfo helper") Signed-off-by: Rob Clark <robdclark@chromium.org> --- drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 3 --- 1 file changed, 3 deletions(-)
Comments
On Thu, May 25, 2023 at 11:52 AM Rob Clark <robdclark@gmail.com> wrote: > > From: Rob Clark <robdclark@chromium.org> > > Some of the fields that are handled by drm_show_fdinfo() crept back in > when rebasing the patch. Remove them again. > > Fixes: 376c25f8ca47 ("drm/amdgpu: Switch to fdinfo helper") > Signed-off-by: Rob Clark <robdclark@chromium.org> Series is: Reviewed-by: <alexander.deucher@amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c > index 13d7413d4ca3..a93e5627901a 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c > @@ -80,23 +80,20 @@ void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file) > > amdgpu_ctx_mgr_usage(&fpriv->ctx_mgr, usage); > > /* > * ****************************************************************** > * For text output format description please see drm-usage-stats.rst! > * ****************************************************************** > */ > > drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid); > - drm_printf(p, "drm-driver:\t%s\n", file->minor->dev->driver->name); > - drm_printf(p, "drm-pdev:\t%04x:%02x:%02x.%d\n", domain, bus, dev, fn); > - drm_printf(p, "drm-client-id:\t%Lu\n", vm->immediate.fence_context); > drm_printf(p, "drm-memory-vram:\t%llu KiB\n", stats.vram/1024UL); > drm_printf(p, "drm-memory-gtt: \t%llu KiB\n", stats.gtt/1024UL); > drm_printf(p, "drm-memory-cpu: \t%llu KiB\n", stats.cpu/1024UL); > drm_printf(p, "amd-memory-visible-vram:\t%llu KiB\n", > stats.visible_vram/1024UL); > drm_printf(p, "amd-evicted-vram:\t%llu KiB\n", > stats.evicted_vram/1024UL); > drm_printf(p, "amd-evicted-visible-vram:\t%llu KiB\n", > stats.evicted_visible_vram/1024UL); > drm_printf(p, "amd-requested-vram:\t%llu KiB\n", > -- > 2.40.1 >
Hi Rob, On 25/05/2023 17:52, Rob Clark wrote: > From: Rob Clark <robdclark@chromium.org> > > Some of the fields that are handled by drm_show_fdinfo() crept back in > when rebasing the patch. Remove them again. > > Fixes: 376c25f8ca47 ("drm/amdgpu: Switch to fdinfo helper") > Signed-off-by: Rob Clark <robdclark@chromium.org> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c > index 13d7413d4ca3..a93e5627901a 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c > @@ -80,23 +80,20 @@ void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file) > > amdgpu_ctx_mgr_usage(&fpriv->ctx_mgr, usage); > > /* > * ****************************************************************** > * For text output format description please see drm-usage-stats.rst! > * ****************************************************************** > */ > > drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid); > - drm_printf(p, "drm-driver:\t%s\n", file->minor->dev->driver->name); > - drm_printf(p, "drm-pdev:\t%04x:%02x:%02x.%d\n", domain, bus, dev, fn); > - drm_printf(p, "drm-client-id:\t%Lu\n", vm->immediate.fence_context); > drm_printf(p, "drm-memory-vram:\t%llu KiB\n", stats.vram/1024UL); > drm_printf(p, "drm-memory-gtt: \t%llu KiB\n", stats.gtt/1024UL); > drm_printf(p, "drm-memory-cpu: \t%llu KiB\n", stats.cpu/1024UL); > drm_printf(p, "amd-memory-visible-vram:\t%llu KiB\n", > stats.visible_vram/1024UL); > drm_printf(p, "amd-evicted-vram:\t%llu KiB\n", > stats.evicted_vram/1024UL); > drm_printf(p, "amd-evicted-visible-vram:\t%llu KiB\n", > stats.evicted_visible_vram/1024UL); > drm_printf(p, "amd-requested-vram:\t%llu KiB\n", I got: drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c: In function ‘amdgpu_show_fdinfo’: drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:64:32: error: variable ‘domain’ set but not used [-Werror=unused-but-set-variable] 64 | uint32_t bus, dev, fn, domain; | ^~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:64:28: error: variable ‘fn’ set but not used [-Werror=unused-but-set-variable] 64 | uint32_t bus, dev, fn, domain; | ^~ drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:64:23: error: variable ‘dev’ set but not used [-Werror=unused-but-set-variable] 64 | uint32_t bus, dev, fn, domain; | ^~~ drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:64:18: error: variable ‘bus’ set but not used [-Werror=unused-but-set-variable] 64 | uint32_t bus, dev, fn, domain; after applying patch 2, can you fix it ? Seems you can keep the drm-pdev print line I applied patch 1 Thanks, Neil
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c index 13d7413d4ca3..a93e5627901a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c @@ -80,23 +80,20 @@ void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file) amdgpu_ctx_mgr_usage(&fpriv->ctx_mgr, usage); /* * ****************************************************************** * For text output format description please see drm-usage-stats.rst! * ****************************************************************** */ drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid); - drm_printf(p, "drm-driver:\t%s\n", file->minor->dev->driver->name); - drm_printf(p, "drm-pdev:\t%04x:%02x:%02x.%d\n", domain, bus, dev, fn); - drm_printf(p, "drm-client-id:\t%Lu\n", vm->immediate.fence_context); drm_printf(p, "drm-memory-vram:\t%llu KiB\n", stats.vram/1024UL); drm_printf(p, "drm-memory-gtt: \t%llu KiB\n", stats.gtt/1024UL); drm_printf(p, "drm-memory-cpu: \t%llu KiB\n", stats.cpu/1024UL); drm_printf(p, "amd-memory-visible-vram:\t%llu KiB\n", stats.visible_vram/1024UL); drm_printf(p, "amd-evicted-vram:\t%llu KiB\n", stats.evicted_vram/1024UL); drm_printf(p, "amd-evicted-visible-vram:\t%llu KiB\n", stats.evicted_visible_vram/1024UL); drm_printf(p, "amd-requested-vram:\t%llu KiB\n",