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

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