Commit 0a9906c
drm/amd/display: Clear update flags after update has been applied
[Why]
Since the surface/stream update flags aren't cleared after applying
updates, those same updates may be applied again in a future call to
update surfaces/streams for surfaces/streams that aren't actually part
of that update (i.e. applying an update for one surface/stream can
trigger unintended programming on a different surface/stream).
For example, when an update results in a call to
program_front_end_for_ctx, that function may call program_pipe on all
pipes. If there are surface update flags that were never cleared on the
surface some pipe is attached to, then the same update will be
programmed again.
[How]
Clear the surface and stream update flags after applying the updates.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3441
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3616
Cc: Melissa Wen <[email protected]>
Reviewed-by: Aric Cyr <[email protected]>
Signed-off-by: Josip Pavic <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 7671f62)
Cc: [email protected]1 parent d6b9f49 commit 0a9906c
1 file changed
+34
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5065 | 5065 | | |
5066 | 5066 | | |
5067 | 5067 | | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
5068 | 5081 | | |
5069 | 5082 | | |
5070 | 5083 | | |
5071 | 5084 | | |
5072 | 5085 | | |
| 5086 | + | |
| 5087 | + | |
5073 | 5088 | | |
5074 | 5089 | | |
5075 | 5090 | | |
| |||
5086 | 5101 | | |
5087 | 5102 | | |
5088 | 5103 | | |
5089 | | - | |
| 5104 | + | |
5090 | 5105 | | |
5091 | | - | |
| 5106 | + | |
| 5107 | + | |
5092 | 5108 | | |
| 5109 | + | |
| 5110 | + | |
| 5111 | + | |
| 5112 | + | |
| 5113 | + | |
5093 | 5114 | | |
5094 | 5115 | | |
5095 | 5116 | | |
| |||
5099 | 5120 | | |
5100 | 5121 | | |
5101 | 5122 | | |
| 5123 | + | |
| 5124 | + | |
5102 | 5125 | | |
5103 | 5126 | | |
5104 | 5127 | | |
5105 | 5128 | | |
5106 | 5129 | | |
5107 | 5130 | | |
5108 | 5131 | | |
5109 | | - | |
| 5132 | + | |
5110 | 5133 | | |
5111 | | - | |
5112 | | - | |
5113 | | - | |
5114 | | - | |
| 5134 | + | |
| 5135 | + | |
5115 | 5136 | | |
5116 | | - | |
5117 | | - | |
5118 | | - | |
5119 | | - | |
| 5137 | + | |
| 5138 | + | |
| 5139 | + | |
| 5140 | + | |
| 5141 | + | |
| 5142 | + | |
5120 | 5143 | | |
5121 | 5144 | | |
5122 | 5145 | | |
| |||
0 commit comments