Commit 1dd2fa0
drm/amdgpu: Save and restore switch state
During a DPC error kernel waits for the link to be active before
notifying downstream devices. On certain platforms with Broadcom switch
in synthetiic mode, switch responds with values even though the link is
not fully ready. The config space restoration done by pcie port driver
for SWUS/DS of dGPU is thus not effective as the switch is still doing
internal enumeration.
As a workaround, save state of SWUS/DS device in driver. Add additional
check to see if link is active and restore the values during DPC error
callbacks.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 111821e commit 1dd2fa0
2 files changed
+83
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
913 | 916 | | |
914 | 917 | | |
915 | 918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
5013 | 5015 | | |
5014 | 5016 | | |
5015 | 5017 | | |
5016 | | - | |
| 5018 | + | |
| 5019 | + | |
5017 | 5020 | | |
5018 | 5021 | | |
5019 | 5022 | | |
| |||
6986 | 6989 | | |
6987 | 6990 | | |
6988 | 6991 | | |
6989 | | - | |
| 6992 | + | |
| 6993 | + | |
6990 | 6994 | | |
| 6995 | + | |
6991 | 6996 | | |
6992 | 6997 | | |
6993 | 6998 | | |
6994 | 6999 | | |
6995 | 7000 | | |
6996 | | - | |
6997 | | - | |
| 7001 | + | |
| 7002 | + | |
| 7003 | + | |
| 7004 | + | |
| 7005 | + | |
| 7006 | + | |
| 7007 | + | |
| 7008 | + | |
| 7009 | + | |
| 7010 | + | |
| 7011 | + | |
| 7012 | + | |
6998 | 7013 | | |
| 7014 | + | |
| 7015 | + | |
| 7016 | + | |
| 7017 | + | |
| 7018 | + | |
| 7019 | + | |
6999 | 7020 | | |
7000 | 7021 | | |
7001 | 7022 | | |
| |||
7097 | 7118 | | |
7098 | 7119 | | |
7099 | 7120 | | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
| 7133 | + | |
| 7134 | + | |
| 7135 | + | |
| 7136 | + | |
| 7137 | + | |
| 7138 | + | |
| 7139 | + | |
| 7140 | + | |
| 7141 | + | |
| 7142 | + | |
| 7143 | + | |
| 7144 | + | |
| 7145 | + | |
| 7146 | + | |
| 7147 | + | |
| 7148 | + | |
| 7149 | + | |
| 7150 | + | |
| 7151 | + | |
| 7152 | + | |
| 7153 | + | |
| 7154 | + | |
| 7155 | + | |
| 7156 | + | |
| 7157 | + | |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
| 7164 | + | |
| 7165 | + | |
| 7166 | + | |
| 7167 | + | |
| 7168 | + | |
| 7169 | + | |
| 7170 | + | |
| 7171 | + | |
| 7172 | + | |
7100 | 7173 | | |
7101 | 7174 | | |
7102 | 7175 | | |
| |||
7121 | 7194 | | |
7122 | 7195 | | |
7123 | 7196 | | |
| 7197 | + | |
| 7198 | + | |
7124 | 7199 | | |
7125 | 7200 | | |
7126 | 7201 | | |
| |||
7556 | 7631 | | |
7557 | 7632 | | |
7558 | 7633 | | |
7559 | | - | |
| 7634 | + | |
0 commit comments