Commit 3b7329c
drm/amdgpu: Add amdgpu suspend-resume code path under SRIOV
- Under SRIOV, we need to send REQ_GPU_FINI to the hypervisor
during the suspend time. Furthermore, we cannot request a
mode 1 reset under SRIOV as VF. Therefore, we will skip it
as it is called in suspend_noirq() function.
- In the resume code path, we need to send REQ_GPU_INIT to the
hypervisor and also resume PSP IP block under SRIOV.
Signed-off-by: Bokun Zhang <Bokun.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org1 parent 11e3836 commit 3b7329c
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1053 | 1057 | | |
1054 | 1058 | | |
1055 | 1059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3152 | 3152 | | |
3153 | 3153 | | |
3154 | 3154 | | |
3155 | | - | |
| 3155 | + | |
| 3156 | + | |
3156 | 3157 | | |
3157 | 3158 | | |
3158 | 3159 | | |
| |||
4064 | 4065 | | |
4065 | 4066 | | |
4066 | 4067 | | |
| 4068 | + | |
4067 | 4069 | | |
4068 | 4070 | | |
4069 | 4071 | | |
4070 | 4072 | | |
4071 | 4073 | | |
4072 | 4074 | | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
4073 | 4082 | | |
4074 | 4083 | | |
4075 | 4084 | | |
| |||
4093 | 4102 | | |
4094 | 4103 | | |
4095 | 4104 | | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
4096 | 4108 | | |
4097 | 4109 | | |
4098 | 4110 | | |
| |||
4111 | 4123 | | |
4112 | 4124 | | |
4113 | 4125 | | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
4114 | 4132 | | |
4115 | 4133 | | |
4116 | 4134 | | |
| |||
4125 | 4143 | | |
4126 | 4144 | | |
4127 | 4145 | | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
4128 | 4153 | | |
4129 | 4154 | | |
4130 | 4155 | | |
| |||
0 commit comments