Commit 682439f
drm/amd/display: filter out invalid bits in pipe_fuses
[Why]
Reading pipe_fuses from register may have invalid bits set, which may
affect the num_pipes erroneously.
[How]
Add read_pipes_fuses() call and filter bits based on expected number
of pipes.
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x1 parent 8f586cc commit 682439f
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
2082 | 2090 | | |
2083 | 2091 | | |
2084 | 2092 | | |
| |||
2122 | 2130 | | |
2123 | 2131 | | |
2124 | 2132 | | |
2125 | | - | |
| 2133 | + | |
2126 | 2134 | | |
2127 | 2135 | | |
2128 | 2136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1632 | 1632 | | |
1633 | 1633 | | |
1634 | 1634 | | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
1635 | 1643 | | |
1636 | 1644 | | |
1637 | 1645 | | |
| |||
1674 | 1682 | | |
1675 | 1683 | | |
1676 | 1684 | | |
1677 | | - | |
| 1685 | + | |
1678 | 1686 | | |
1679 | 1687 | | |
1680 | 1688 | | |
| |||
0 commit comments