088b3cc5bbf798bfc4eb0d79b68e16cdc4eb8eee
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0098-drm-vc4-No-need-to-stop-the-stopped-threads.patch
1 From 8591fab92df5153be99548dbdd9b1fcb075a7924 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Fri, 23 Oct 2015 12:31:56 +0100
4 Subject: [PATCH] drm/vc4: No need to stop the stopped threads.
5
6 This was leftover debug code from the hackdriver. We never submit
7 unless the thread is already idle.
8
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 ---
11 drivers/gpu/drm/vc4/vc4_gem.c | 4 ----
12 1 file changed, 4 deletions(-)
13
14 --- a/drivers/gpu/drm/vc4/vc4_gem.c
15 +++ b/drivers/gpu/drm/vc4/vc4_gem.c
16 @@ -104,10 +104,6 @@ submit_cl(struct drm_device *dev, uint32
17 {
18 struct vc4_dev *vc4 = to_vc4_dev(dev);
19
20 - /* Stop any existing thread and set state to "stopped at halt" */
21 - V3D_WRITE(V3D_CTNCS(thread), V3D_CTRUN);
22 - barrier();
23 -
24 V3D_WRITE(V3D_CTNCA(thread), start);
25 barrier();
26