diff options
| author | Victor Zhao <[email protected]> | 2022-06-21 08:59:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-08-16 22:14:31 +0000 |
| commit | bfaced6ee77484d8b9c6baf86a8e9406f80108c5 (patch) | |
| tree | aa16a3b0b5dbc3425bfb4c270b488ee026edcf9e /drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h | |
| parent | drm/amdgpu: add debugfs amdgpu_reset_level (diff) | |
| download | kernel-bfaced6ee77484d8b9c6baf86a8e9406f80108c5.tar.gz kernel-bfaced6ee77484d8b9c6baf86a8e9406f80108c5.zip | |
drm/amdgpu: save and restore gc hub regs
Save and restore gfxhub regs as they will be reset during mode 2
Signed-off-by: Victor Zhao <[email protected]>
Acked-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h index beabab515836..f8036f2b100e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h @@ -35,6 +35,8 @@ struct amdgpu_gfxhub_funcs { void (*init)(struct amdgpu_device *adev); int (*get_xgmi_info)(struct amdgpu_device *adev); void (*utcl2_harvest)(struct amdgpu_device *adev); + void (*mode2_save_regs)(struct amdgpu_device *adev); + void (*mode2_restore_regs)(struct amdgpu_device *adev); }; struct amdgpu_gfxhub { |
