]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sti: do not post HQVDP command if no update
authorFabien DESSENNE <fabien.dessenne@st.com>
Mon, 5 Dec 2016 15:09:33 +0000 (16:09 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 6 Jan 2017 14:12:03 +0000 (15:12 +0100)
commit3731735a81b4e7186a9a385cb0c437cdd8d591be
treea5aa9454b70d5f6ff1e7cd11233aa19639bf5522
parentca99258ab7b279c19ebb359270c6c49419e4a6aa
drm/sti: do not post HQVDP command if no update

Do not process update requests with unmodified parameters.

Since the HQVDP command queue is limited to 2, we shall take care of
not posting unneeded commands, which would abusively fill the command
queue leading to frame update skip.
This typically happens when the driver is called with legacy
(non-atomic) IOCTL : in that case atomic_update() is called multiple
times with the same parameters.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/drm/sti/sti_hqvdp.c