0099-drm-vc4-Remove-extra-barrier-s-aroudn-CTnCA-CTnEA-se.patch 974 B

1234567891011121314151617181920212223242526272829303132
  1. From 77d99c047cae1413a2a5f2aa2f0a0723388d9e7b Mon Sep 17 00:00:00 2001
  2. From: Eric Anholt <eric@anholt.net>
  3. Date: Fri, 23 Oct 2015 12:33:43 +0100
  4. Subject: [PATCH] drm/vc4: Remove extra barrier()s aroudn CTnCA/CTnEA setup.
  5. The writel() that these expand to already does barriers.
  6. Signed-off-by: Eric Anholt <eric@anholt.net>
  7. ---
  8. drivers/gpu/drm/vc4/vc4_gem.c | 9 +++------
  9. 1 file changed, 3 insertions(+), 6 deletions(-)
  10. --- a/drivers/gpu/drm/vc4/vc4_gem.c
  11. +++ b/drivers/gpu/drm/vc4/vc4_gem.c
  12. @@ -104,14 +104,11 @@ submit_cl(struct drm_device *dev, uint32
  13. {
  14. struct vc4_dev *vc4 = to_vc4_dev(dev);
  15. - V3D_WRITE(V3D_CTNCA(thread), start);
  16. - barrier();
  17. -
  18. - /* Set the end address of the control list. Writing this
  19. - * register is what starts the job.
  20. + /* Set the current and end address of the control list.
  21. + * Writing the end register is what starts the job.
  22. */
  23. + V3D_WRITE(V3D_CTNCA(thread), start);
  24. V3D_WRITE(V3D_CTNEA(thread), end);
  25. - barrier();
  26. }
  27. int