drm/amdgpu: Document gfx_off members of struct amdgpu_gfx
authorAndré Almeida <andrealmeid@igalia.com>
Wed, 10 Aug 2022 23:28:58 +0000 (20:28 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2022 22:17:32 +0000 (18:17 -0400)
Add comments to document gfx_off related members of struct amdgpu_gfx.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h

index 1b8b4a5..8abdf41 100644 (file)
@@ -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;
-       uint64_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 */
+       uint64_t                        gfx_off_entrycount; /* count of times GPU has get into GFXOFF state */
 
        /* pipe reservation */
        struct mutex                    pipe_reserve_mutex;