Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp973004imi; Fri, 22 Jul 2022 13:58:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vbbyiSpQ35aB3LaO+HfxyuPxN4cR2MY7rkliXngAJRVGTT4Q2DYZrdE1NO+M2hqyjn1f71 X-Received: by 2002:a05:6402:84f:b0:437:6293:d264 with SMTP id b15-20020a056402084f00b004376293d264mr1534980edz.317.1658523487936; Fri, 22 Jul 2022 13:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658523487; cv=none; d=google.com; s=arc-20160816; b=f+YZlwIXOk8HwK9sKICn+LSHMIGIymYbiIvt5FnE/PjjpLl5lfzZlImFHN+tw4Pbdf MoDX1K6/949YGas3ufCPCRSMvPJgQzOZ+pE7KfrevQcuztzlw1O52IuorAjZJ8JsJ2pu UUdRmF5Gib9c3CXDSiYAkQDVHmWhM/fySS13mKlcuB2q5c4WiGG2Uvdh1kPv6JVHFNQQ 6DqfAxrjdE4NRjGX+bc8OTMt7+/pC6LPfajnUcup+eobuEDUmMCAvKvLUqEbnBNy5Row 0lYYRTsVihd9HOeWEfhSnHJH8NYIP8kf2e864F04czRbjGlI3aebbMZVLhCBx7jXmBME sl7A== 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=7+kt7lXOg2rVGR6fwaVlAW44Sd/NwFG7DwhTa+6yfvM=; b=xi6L4zR7PzVfC6jgh08ovU66BW4S04INV1Dh+fMA4Yp1UCgpmB3LuD71UbyRsvqLmZ aSdwBOhCtcOyjwz2TJMAr/pD7cJpcTL6CkrA8tSHu5KKHA/7c1fjik+coJMK+2GwruI0 Ii6zdCBZas72V5Vju+qndD/Dp+ID2TH11j/2ILXtYeR6IJlrq5YnnCScs9Xo5LX8akxz FOaVXjT79+4VDC08yFewgaPDLLTRpRhCMHusMeSpWqNvI6KBJuxW7ttOqL3Z0vUmkLMT 3jXBos0nP6z2EQt2jmWDSYRr4RqQacp1JJ8ODeJyGJwFHDIPrC0EBt4u5A0qvMxSUnwh V+YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=elkhrBkg; 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 qa15-20020a170907868f00b006feef404001si7259944ejc.801.2022.07.22.13.57.43; Fri, 22 Jul 2022 13:58:07 -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=elkhrBkg; 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 S236855AbiGVUeu (ORCPT + 99 others); Fri, 22 Jul 2022 16:34:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236848AbiGVUen (ORCPT ); Fri, 22 Jul 2022 16:34:43 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E5577A75 for ; Fri, 22 Jul 2022 13:34:37 -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:References: In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7+kt7lXOg2rVGR6fwaVlAW44Sd/NwFG7DwhTa+6yfvM=; b=elkhrBkgGSiO5UJ34CwXrkxblr u7jbS6bDQb/EQulXwN5VwNSKUfkHEKy0s5PfDb7mLyEYc0F/CrnjhpQqzyOHk459b94i6WOsCVp4u cJQZOJNxlJVWXYrhhlcgXsXQZBi85MKpokjp31zBEKmI3XAmfbpXiB9rPnRTVJGCkcCVcIOf8Vqai Fk53yqzzOJ0awTKMxCTod5oiW+qj3tzLGlI7Hcyes93yyYSpE7gpdsawQK5hVhXMR0/Wfo2lJwAT2 v/GZ+aESwfOPF5d92BhlUzZXTwYJ3Qv9KwJ89+5T6khGQbTL/Z1EVcWQINMjU3F9VaF7Jwya+NrRS vLygpAvQ==; 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 1oEzM1-002fLB-5M; Fri, 22 Jul 2022 22:34:33 +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 3/4] Documentation/gpu: Document GFXOFF's count and residency Date: Fri, 22 Jul 2022 17:33:46 -0300 Message-Id: <20220722203347.70176-4-andrealmeid@igalia.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220722203347.70176-1-andrealmeid@igalia.com> References: <20220722203347.70176-1-andrealmeid@igalia.com> 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 Add documentation explaining those two new files. Signed-off-by: André Almeida --- Documentation/gpu/amdgpu/thermal.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/gpu/amdgpu/thermal.rst b/Documentation/gpu/amdgpu/thermal.rst index 997231b6adcf..c31f94c6c681 100644 --- a/Documentation/gpu/amdgpu/thermal.rst +++ b/Documentation/gpu/amdgpu/thermal.rst @@ -104,3 +104,17 @@ Read it to check current GFXOFF's status of a GPU:: If GFXOFF is enabled, the value will be transitioning around [0, 3], always getting into 0 when possible. When it's disabled, it's always at 2. Returns ``-EINVAL`` if it's not supported. + +``amdgpu_gfxoff_count`` +----------------------- + +Read it to get the total GFXOFF entry count at the time of query since system +power-up. *Only supported in vangogh* + +``amdgpu_gfxoff_residency`` +--------------------------- + +Write 1 to amdgpu_gfxoff_residency to start logging, and 0 to stop. Read it to +get average GFXOFF residency % multiplied by 100 during the last logging +interval. E.g. a value of 7854 means 78.54% of the time in the last logging +interval the GPU was in GFXOFF mode. *Only supported in vangogh* -- 2.37.1