Commit 7fb363c
drm/amd/display: Let drm_crtc_vblank_on/off manage interrupts
[Why]
We manage interrupts for CRTCs in two places:
1. In manage_dm_interrupts(), when CRTC get enabled or disabled
2. When drm_vblank_get/put() starts or kills the vblank counter, calling
into amdgpu_dm_crtc_set_vblank()
The interrupts managed by these twp places should be identical.
[How]
Since manage_dm_interrupts() already use drm_crtc_vblank_on/off(), just
move all CRTC interrupt management into amdgpu_dm_crtc_set_vblank().
This has the added benefit of disabling all CRTC and HUBP interrupts
when there are no vblank requestors.
Note that there is a TODO item - unchanged from when it was first
introduced - to properly identify the HUBP instance from the OTG
instance, rather than just assume direct mapping.
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent f9e6759 commit 7fb363c
File tree
2 files changed
+47
-37
lines changed- drivers/gpu/drm/amd/display/amdgpu_dm
2 files changed
+47
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8246 | 8246 | | |
8247 | 8247 | | |
8248 | 8248 | | |
8249 | | - | |
8250 | | - | |
8251 | | - | |
8252 | | - | |
8253 | | - | |
8254 | | - | |
8255 | | - | |
8256 | | - | |
8257 | | - | |
8258 | | - | |
8259 | | - | |
8260 | | - | |
| 8249 | + | |
8261 | 8250 | | |
8262 | | - | |
8263 | | - | |
8264 | | - | |
8265 | | - | |
8266 | | - | |
8267 | | - | |
8268 | | - | |
8269 | | - | |
8270 | | - | |
8271 | | - | |
8272 | | - | |
8273 | | - | |
8274 | | - | |
8275 | | - | |
8276 | | - | |
8277 | | - | |
8278 | | - | |
8279 | | - | |
8280 | | - | |
8281 | | - | |
8282 | | - | |
| 8251 | + | |
8283 | 8252 | | |
8284 | | - | |
8285 | 8253 | | |
8286 | 8254 | | |
8287 | 8255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| 295 | + | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| |||
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
309 | 317 | | |
310 | 318 | | |
311 | 319 | | |
312 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
313 | 355 | | |
314 | 356 | | |
315 | 357 | | |
| |||
0 commit comments