aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-09-29 03:27:02 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-10-09 18:05:33 -0400
commit44779b43f15977885a0e3b45bf6deb6be18725e5 (patch)
tree2319438d337d6a81714532471b843f23f849b1ba /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent3023015f791639838ec5d80e5c14851238a1a7d9 (diff)
drm/amdgpu: Move gfx flag in_suspend to adev
Move in_suspend flag to adev from gfx, so can be used in other ip blocks, also keep consistent with gpu_in_reset flag. Reviewed-by: Evan Quan <evan.quan@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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 44140cce067c..d0102cfc8efb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1015,6 +1015,9 @@ struct amdgpu_device {
1015 bool has_hw_reset; 1015 bool has_hw_reset;
1016 u8 reset_magic[AMDGPU_RESET_MAGIC_NUM]; 1016 u8 reset_magic[AMDGPU_RESET_MAGIC_NUM];
1017 1017
1018 /* s3/s4 mask */
1019 bool in_suspend;
1020
1018 /* record last mm index being written through WREG32*/ 1021 /* record last mm index being written through WREG32*/
1019 unsigned long last_mm_index; 1022 unsigned long last_mm_index;
1020 bool in_gpu_reset; 1023 bool in_gpu_reset;