linux/drivers/gpu/drm/amd
Nicholas Kazlauskas 09e5665ada drm/amd/display: Update plane tiling attributes for stream updates
[Why]
Tiling and DCC attributes can change when swapping framebuffers but
these will only ever get updated on full commits where
state->allow_modeset is true. But for the page-flip IOCTL
state->allow_modeset = false so these aren't updated and DCC changes
aren't being programmed.

[How]
Split out updating the tiling and DCC attributes into its own function
that's called when creating the plane for the first time but also
called when switching framebuffers before commit stream updates.

These functions also don't modify the plane state directly since the
plane state being used as reference is often the current one
being used by the hardware.

DC needs to be able to compare plane_state to the stream update
structures to determine if the hardware programming should happen. If
it's modified in place then nothing will be programmed and we can run
into concurrency issues.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-03-19 15:04:03 -05:00
..
acp
amdgpu drm/amdgpu: Add sysfs files for returning VRAM/GTT info v2 2019-03-19 15:04:02 -05:00
amdkfd drm/amdkfd: avoid HMM change cause circular lock 2019-03-19 15:03:37 -05:00
display drm/amd/display: Update plane tiling attributes for stream updates 2019-03-19 15:04:03 -05:00
include drm/amd/powerplay: add enable_umd_pstate functions for SMU11 2019-03-19 15:03:59 -05:00
lib
powerplay drm/amd/powerplay: add od condition for power limit 2019-03-19 15:04:02 -05:00