drm/amdgpu:new field in_reset introduced for gfx
authorMonk Liu <Monk.Liu@amd.com>
Thu, 26 Jan 2017 07:32:16 +0000 (15:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:12 +0000 (23:53 -0400)
use it to seperate driver load and gpu reset/resume
because gfx IP need different approach for different
hw_init trigger source

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h

index 3ba21ffdc6c0cb25d22de01476da5fbcbb43d928..9b3b2a3001cc03f3dcaaaec5640928493c858ae4 100644 (file)
@@ -903,6 +903,7 @@ struct amdgpu_gfx {
        /* reset mask */
        uint32_t                        grbm_soft_reset;
        uint32_t                        srbm_soft_reset;
+       bool                            in_reset;
 };
 
 int amdgpu_ib_get(struct amdgpu_device *adev, struct amdgpu_vm *vm,