drm/msm/sde: validate framebuffer layout during prepare_fb

Current plane driver calculates framebuffer layout during
atomic commit. If framebuffer layout does not match expected
criteria, source pipe configuration will stay in last
configured value. This will cause smmu fault if the last
configured buffer is unmapped on next commit cycle.

Add layout validation to prepare_fb such that if layout
does not match expected criteria, it will abort current
atomic cycle.

Change-Id: I3f290d07f3fc215aac7627de6a9df7b3f7c89953
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
1 file changed