Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp962889imi; Fri, 22 Jul 2022 13:41:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uUmaNOAof7TTVTS5aIjrSp+56DbfoNtcnAdxQrPtZ6WTdcLGr/VWbmLO2p28kpkz6oqMYB X-Received: by 2002:a17:907:2bde:b0:72b:4da0:6f3c with SMTP id gv30-20020a1709072bde00b0072b4da06f3cmr1234250ejc.623.1658522498283; Fri, 22 Jul 2022 13:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658522498; cv=none; d=google.com; s=arc-20160816; b=dJ4kTYYQY2YARBwkt0xcJeH0uYywpNnmpwZWK0ueEu+T/KoZo32OrwTh1s9UAqfVHJ 7/3AqOxW+jag67uZNc+zbtL0j73b3GvRxvnaQzUs+DT5EsOZN/WaqNskFCU5iKc1+6pR HX3/IphviJNKSg4YdbF7e7auBLh68F28FEoMgqUnPMGJswWWVbV5bQx0zkpwJIJB7b35 CtzeRZz2hprx3E3V7Vil0fixnWowWTy9+wBr+o1fdwvVg5aXH3ksC5hdkhJHO1C3K3P/ DSDocezjQGiUTKssa5uKkkXJnQ20c2Jok6XV4NwjszAIRD6ovFEe3mJkHnU6K7nhRnF2 nWnw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6Edk6LP53p+loikQVsyEVEqo6R6YSj5UL3s0D/QImZU=; b=q48hCI+jeE8VXpkZbijHiCrdZyCZj6mD9yaW+IqHzksoBquMgXy85vPlGaOT8W+zgO 8IGYScwxPZ2DzFhgmXr5NAuqFO9qLj8IZUdNLFS/j3uOwPO4Hsh+kgDtTP80wrRH4Xt5 uLTeGRpYqMY5jctvIxHR37rnOm52te7gGmPhhSexlssa3rRgK7LhCHteXpvFI9aNLrml q8aAZQ2EIbDpGlfQfcQR48xVEcfbj3iRy0bK6lCOJ+Ld8j/WXXE8R5y/RRGdNfP4508P RaxvCv95/LT1Pn55cxpZo03kUmNuVqyhjVbEjYR0fVdyIj5XxruFI+DKt1ZOPlB0/8lg 9zFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=XHvQODn+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e28-20020a056402331c00b0043a9bb390d3si6705553eda.278.2022.07.22.13.41.13; Fri, 22 Jul 2022 13:41: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=fail header.i=@igalia.com header.s=20170329 header.b=XHvQODn+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233965AbiGVUe1 (ORCPT + 99 others); Fri, 22 Jul 2022 16:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbiGVUeX (ORCPT ); Fri, 22 Jul 2022 16:34:23 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7307F7436B for ; Fri, 22 Jul 2022 13:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6Edk6LP53p+loikQVsyEVEqo6R6YSj5UL3s0D/QImZU=; b=XHvQODn+amREJW7cT7O29IPI6v xjPm9oiaRqc4tn78T/ooJJ+k0VBlXPyAN2LhbrFyxRekFrYr3NKsk5fcP0BZK2JVMWcPXqs7av8Ml 2S6b/G8O33keCKnXn1hHtiiHYO4N57JDCn3oSHzNe9KeCduvutTh2ZCeODf+6NMZdnaX2unc1YpaB jvwEqE2QXuQ4I80xBvTQRGrMom/r4/tQRFwaCYyzWZ20ezgGRdtNwJs4qtr/o7uYmiDfHsfXgoPTc cPQfEJJg3NL+YcOqtBXICEr5/G3s3VVhXwNyqO5g8fF9wjf1eBtH9PqBNIBGgZBUQvKirEzURed67 Iwt/SBKg==; Received: from 201-13-50-220.dsl.telesp.net.br ([201.13.50.220] helo=localhost.localdomain) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1oEzLe-002fLB-Tr; Fri, 22 Jul 2022 22:34:11 +0200 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: Alex Deucher , =?UTF-8?q?=27Christian=20K=C3=B6nig=27?= , 'Pan Xinhui' , David Airlie , Daniel Vetter , Hawking Zhang , Tao Zhou , Felix Kuehling , Jack Xiao , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tom St Denis , Rodrigo Siqueira Cc: kernel-dev@igalia.com, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH 0/4] drm/amd: Add more GFXOFF stats for vangogh Date: Fri, 22 Jul 2022 17:33:43 -0300 Message-Id: <20220722203347.70176-1-andrealmeid@igalia.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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,SPF_HELO_NONE,SPF_PASS 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 This series adds new logging features for GFXOFF available for vangogh and documentation for it. I've created a small userspace program to interact with this new debugfs interface and it can be found at: https://gitlab.freedesktop.org/andrealmeid/gfxoff_tool André Almeida (4): drm/amd: Add detailed GFXOFF stats to debugfs drm/amd/pm: Implement GFXOFF's entry count and residency for vangogh Documentation/gpu: Document GFXOFF's count and residency drm/amdgpu: Document gfx_off members of struct amdgpu_gfx Documentation/gpu/amdgpu/thermal.rst | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 168 ++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 39 ++++ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 14 +- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 45 +++++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 3 + drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 34 +++- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 22 +++ .../pm/swsmu/inc/pmfw_if/smu_v11_5_ppsmc.h | 5 +- drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 5 +- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 92 ++++++++++ drivers/gpu/drm/amd/pm/swsmu/smu_internal.h | 3 + 13 files changed, 439 insertions(+), 7 deletions(-) -- 2.37.1