diff options
| author | Ville Syrjälä <[email protected]> | 2015-09-10 15:59:07 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2015-10-14 10:41:57 +0000 |
| commit | c4816c7389d8dbcad036be7e5a34584289d9f590 (patch) | |
| tree | 0e3a28aa9658ab8c284d92c859b8113c35535196 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
| parent | Revert "drm/i915: Add primary plane to mask if it's visible" (diff) | |
| download | kernel-c4816c7389d8dbcad036be7e5a34584289d9f590.tar.gz kernel-c4816c7389d8dbcad036be7e5a34584289d9f590.zip | |
drm/i915: Assign hwmode after encoder state readout
The dotclock is often calculated in encoder .get_config(), so we
shouldn't copy the adjusted_mode to hwmode until we have read out the
dotclock.
Gets rid of some warnings like these:
[drm:drm_calc_timestamping_constants [drm]] *ERROR* crtc 21: Can't calculate constants, dotclock = 0!
[drm:i915_get_vblank_timestamp] crtc 0 is disabled
v2: Steal Maarten's idea to move crtc->mode etc. assignment too
Cc: Maarten Lankhorst <[email protected]>
Cc: Patrik Jakobsson <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91428
Reviewed-by: Patrik Jakobsson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
[Jani: cherry-picked from -next to v4.3]
Acked-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
