Skip to content

Commit

Permalink
drm/amdgpu: Document gfx_off members of struct amdgpu_gfx
Browse files Browse the repository at this point in the history
Add comments to document gfx_off related members of struct amdgpu_gfx.

Signed-off-by: André Almeida <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
andrealmeid authored and alexdeucher committed Aug 16, 2022
1 parent e761159 commit a021e2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a021e2a

Please sign in to comment.