diff options
| author | Feifei Xu <[email protected]> | 2020-11-19 10:12:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-03-24 02:54:49 +0000 |
| commit | 5c03e5843e6bd1e6f2271a54c9b30524ba78bb8f (patch) | |
| tree | b82f270e2f490bdcc81dc3d98e146c13911dccb0 /drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | |
| parent | drm/amdgpu: Add DID for aldebaran (diff) | |
| download | kernel-5c03e5843e6bd1e6f2271a54c9b30524ba78bb8f.tar.gz kernel-5c03e5843e6bd1e6f2271a54c9b30524ba78bb8f.zip | |
drm/amdgpu:add smu mode1/2 support for aldebaran
Use MSG_GfxDriverReset for mode reset and retire MSG_Mode1Reset.
Centralize soc15_asic_mode1_reset() and nv_asic_mode1_reset()functions.
Add mode2_reset_is_support() for smu->ppt_funcs.
Signed-off-by: Feifei Xu <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h index 2b4308c025dd..c02ffbd1df76 100644 --- a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h @@ -1044,6 +1044,10 @@ struct pptable_funcs { * @mode1_reset_is_support: Check if GPU supports mode1 reset. */ bool (*mode1_reset_is_support)(struct smu_context *smu); + /** + * @mode2_reset_is_support: Check if GPU supports mode2 reset. + */ + bool (*mode2_reset_is_support)(struct smu_context *smu); /** * @mode1_reset: Perform mode1 reset. @@ -1279,6 +1283,7 @@ int smu_baco_set_state(void *handle, int state); bool smu_mode1_reset_is_support(struct smu_context *smu); +bool smu_mode2_reset_is_support(struct smu_context *smu); int smu_mode1_reset(struct smu_context *smu); int smu_mode2_reset(void *handle); |
