aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-07-27 09:06:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 12:09:52 -0400
commit1e317b99f0c244bd8830918fdae9715210baf4fe (patch)
tree1a58b47f1992f10d20c7d0ce21971ad1b993258b /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentd23ee13fba23a3039971a976b2c4857cb5ba9c73 (diff)
drm/amdgpu: Put enable gfx off feature to a delay thread
delay to enable gfx off feature to avoid gfx on/off frequently suggested by Alex and Evan. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 47fbe8f54036..6a8ed9b5d4fd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -954,6 +954,8 @@ struct amdgpu_gfx {
954 bool gfx_off_state; /* true: enabled, false: disabled */ 954 bool gfx_off_state; /* true: enabled, false: disabled */
955 struct mutex gfx_off_mutex; 955 struct mutex gfx_off_mutex;
956 uint32_t gfx_off_req_count; /* default 1, enable gfx off: dec 1, disable gfx off: add 1 */ 956 uint32_t gfx_off_req_count; /* default 1, enable gfx off: dec 1, disable gfx off: add 1 */
957 struct delayed_work gfx_off_delay_work;
958
957 /* pipe reservation */ 959 /* pipe reservation */
958 struct mutex pipe_reserve_mutex; 960 struct mutex pipe_reserve_mutex;
959 DECLARE_BITMAP (pipe_reserve_bitmap, AMDGPU_MAX_COMPUTE_QUEUES); 961 DECLARE_BITMAP (pipe_reserve_bitmap, AMDGPU_MAX_COMPUTE_QUEUES);