diff options
| author | Jyri Sarha <[email protected]> | 2017-10-12 09:19:46 +0000 |
|---|---|---|
| committer | Jyri Sarha <[email protected]> | 2017-10-13 12:24:21 +0000 |
| commit | ce99f7206c9105851d97202ed08c058af6f11ac4 (patch) | |
| tree | 61d725de2ecd5fc218deefc92d6ff510e049924b /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/tilcdc: Use tilcdc_crtc_shutdown() in tilcdc_crtc_destroy() (diff) | |
| download | kernel-ce99f7206c9105851d97202ed08c058af6f11ac4.tar.gz kernel-ce99f7206c9105851d97202ed08c058af6f11ac4.zip | |
drm/tilcdc: Precalculate total frametime in tilcdc_crtc_set_mode()
We need the total frame refresh time to check if we are too close to
vertical sync when updating the two framebuffer DMA registers and risk
a collision. This new method is more accurate that the previous that
based on mode's vrefresh value, which itself is inaccurate or may not
even be initialized.
Reported-by: Kevin Hao <[email protected]>
Fixes: 11abbc9f39e0 ("drm/tilcdc: Set framebuffer DMA address to HW only if CRTC is enabled")
Cc: <[email protected]> # v4.11+
Signed-off-by: Jyri Sarha <[email protected]>
Reviewed-by: Tomi Valkeinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
