Commit e7c31ab
committed
drm/apple: Relax locking for back light updates
Locking all modeset locks was the obviously correct solution and the
overlocking wasn't much of an issue when only a single CRTC/display
output was supported.
Now with more output the over locking is becomming an issue and I even
ran into a deadlock.
Ideally the backlight related data either should live in a private
object or in sub-classed CRTC state. In practice just locking the CRTC
for the internal display with backlight should be good enough.
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 667ca85 commit e7c31ab
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
148 | 155 | | |
149 | 156 | | |
150 | 157 | | |
| |||
169 | 176 | | |
170 | 177 | | |
171 | 178 | | |
172 | | - | |
| 179 | + | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
| |||
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
202 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
203 | 217 | | |
204 | 218 | | |
205 | 219 | | |
206 | 220 | | |
207 | | - | |
| 221 | + | |
208 | 222 | | |
209 | 223 | | |
210 | 224 | | |
| |||
0 commit comments