Commit d934e53
drm/amd/pm: fix smu i2c data read risk
the smu driver_table is used for all types of smu
tables data transcation (e.g: PPtable, Metrics, i2c, Ecc..).
it is necessary to hold this lock to avoiding data tampering
during the i2c read operation.
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org1 parent 6725f33 commit d934e53
6 files changed
Lines changed: 6 additions & 6 deletions
File tree
- drivers/gpu/drm/amd/pm/swsmu
- smu11
- smu13
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2113 | 2113 | | |
2114 | 2114 | | |
2115 | 2115 | | |
2116 | | - | |
2117 | 2116 | | |
2118 | 2117 | | |
2119 | 2118 | | |
| |||
2130 | 2129 | | |
2131 | 2130 | | |
2132 | 2131 | | |
| 2132 | + | |
2133 | 2133 | | |
2134 | 2134 | | |
2135 | 2135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3021 | 3021 | | |
3022 | 3022 | | |
3023 | 3023 | | |
3024 | | - | |
3025 | 3024 | | |
3026 | 3025 | | |
3027 | 3026 | | |
| |||
3038 | 3037 | | |
3039 | 3038 | | |
3040 | 3039 | | |
| 3040 | + | |
3041 | 3041 | | |
3042 | 3042 | | |
3043 | 3043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3842 | 3842 | | |
3843 | 3843 | | |
3844 | 3844 | | |
3845 | | - | |
3846 | 3845 | | |
3847 | 3846 | | |
3848 | 3847 | | |
| |||
3859 | 3858 | | |
3860 | 3859 | | |
3861 | 3860 | | |
| 3861 | + | |
3862 | 3862 | | |
3863 | 3863 | | |
3864 | 3864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1525 | 1525 | | |
1526 | 1526 | | |
1527 | 1527 | | |
1528 | | - | |
1529 | 1528 | | |
1530 | 1529 | | |
1531 | 1530 | | |
| |||
1542 | 1541 | | |
1543 | 1542 | | |
1544 | 1543 | | |
| 1544 | + | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2320 | 2320 | | |
2321 | 2321 | | |
2322 | 2322 | | |
2323 | | - | |
2324 | 2323 | | |
2325 | 2324 | | |
2326 | 2325 | | |
| |||
2337 | 2336 | | |
2338 | 2337 | | |
2339 | 2338 | | |
| 2339 | + | |
2340 | 2340 | | |
2341 | 2341 | | |
2342 | 2342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | 1766 | | |
1768 | 1767 | | |
1769 | 1768 | | |
| |||
1780 | 1779 | | |
1781 | 1780 | | |
1782 | 1781 | | |
| 1782 | + | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | 1785 | | |
| |||
0 commit comments