Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp963032imi; Fri, 22 Jul 2022 13:41:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uIEDQJXtn3ieQV6G/Ln0+5mK2/OEOSXIeASn92M2MfBQD1RpyPNtTTLXb52pI9T2JPw+aT X-Received: by 2002:a17:903:11c9:b0:16b:8293:c5a1 with SMTP id q9-20020a17090311c900b0016b8293c5a1mr1326391plh.72.1658522509559; Fri, 22 Jul 2022 13:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658522509; cv=none; d=google.com; s=arc-20160816; b=J2TTS4EnjaewhTUI+3HtvyICp67arlVlMeXX8CRz0V4TESn8PzhwNc68l5JlryhjIR LVCsgWHu2K3fYpa9BAhX12ic6G13cfuOpLc3Ogxgh72za05EYVoBTcKB3+XrSDDEMJ6o QcaPsavzfJ8X5SG1/uX4+bLfLYBggtdRLR1dMHLTbxCNj8gf77NjT5KlXffH0RL/u8CL XS5diQVPRZcINO6yRJq4x23PDRGn16VZv60nCjFtosGQmByU7sN2NbW5vJBd0oVN2KXz hNo6saVjeAMN7f99FD6wnWfi2dTwZS7eigsymch+PS89Ui78SlMheMQy0BFKFx9d+GzN +moQ== 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=AvqpOLOaKzQjLCE8a0MQjXay6IH7jaU/OiGpffc7pXk=; b=YQvG5o+hx+sCRmRZ88+gk/QVFA4/K80VxD4yRpCXCXIK4Gbk9zy5gSJa2CPQ/zVf01 AdVfj+VqtxB4m8lLNdI2NPGfMFeOCS2jiAUhrPq/6fipPudRjuY/f/sJj8Qrzb/FdQXF shbyY2qhrd0APRxDnuFieeLoKHAoJTAzPMX2y3f2uEFDAGMnD8KK7yccy31Lr7T72z3K QuLd+0lS5SlT03mup6qa9RiEJNr856Ts26/1zoPDDd3A8talAuQW3AgR7OCXkh3+MFvb cManeDIXXhSZZ+j8UEFaRi3T6aiXMjzm+ERkYu58VG3Gbd8c9Gbv9FmHhAuPiV4S6y95 CTCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=O+RHRvq3; 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 a19-20020a170902ee9300b0016d4f20cc8esi80450pld.336.2022.07.22.13.41.33; Fri, 22 Jul 2022 13:41:49 -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=O+RHRvq3; 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 S236887AbiGVUe5 (ORCPT + 99 others); Fri, 22 Jul 2022 16:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236844AbiGVUer (ORCPT ); Fri, 22 Jul 2022 16:34:47 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B879AF975 for ; Fri, 22 Jul 2022 13:34:45 -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=AvqpOLOaKzQjLCE8a0MQjXay6IH7jaU/OiGpffc7pXk=; b=O+RHRvq38ETi9MaxBQjpLRErKf OOyTpDWel/FJxULm9l1LpRHhdsmNwijywvRk9+RzMCdUk5tchfyAlpefq9p9pqVehdHRPn8kDfrG3 Zapa5oOp4ENFD9i8pLNR59I19XYvoyGNNJrBhRXRFibfOupF89x141sQQwTpEQCgOheIXUK/01yUw hYrU1rz+5Q2+IXiUmXbTm+SlYeOztsoWvd6rp00uiZ9G/ZxVz3pQYipme0X7KxZGxm06NlSLdey/l rd7ENpeG4UM3H4tqaUbn0crBu3hcuu+0bVUSbLERo5ykxjYX/Bh67ufgE2szvezVuMvq/USfBw9Fj /r20uKIw==; 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 1oEzM8-002fLB-HD; Fri, 22 Jul 2022 22:34:40 +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 4/4] drm/amdgpu: Document gfx_off members of struct amdgpu_gfx Date: Fri, 22 Jul 2022 17:33:47 -0300 Message-Id: <20220722203347.70176-5-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 comments to document gfx_off related members of struct amdgpu_gfx. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h index f06e979e2565..a552a49c1b25 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h @@ -332,12 +332,12 @@ struct amdgpu_gfx { uint32_t srbm_soft_reset; /* gfx off */ - bool gfx_off_state; /* true: enabled, false: disabled */ - struct mutex gfx_off_mutex; - uint32_t gfx_off_req_count; /* default 1, enable gfx off: dec 1, disable gfx off: add 1 */ - struct delayed_work gfx_off_delay_work; - uint32_t gfx_off_residency; - uint32_t gfx_off_entrycount; + bool gfx_off_state; /* true: enabled, false: disabled */ + struct mutex gfx_off_mutex; /* mutex to change gfxoff state */ + uint32_t gfx_off_req_count; /* default 1, enable gfx off: dec 1, disable gfx off: add 1 */ + struct delayed_work gfx_off_delay_work; /* async work to set gfx block off */ + uint32_t gfx_off_residency; /* last logged residency */ + uint32_t gfx_off_entrycount; /* count of times GPU has get into GFXOFF state */ /* pipe reservation */ struct mutex pipe_reserve_mutex; -- 2.37.1