mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm: nouveau: memory coherency for ARM
@ 2014-06-27 11:22 Alexandre Courbot
  2014-06-27 11:22 ` [PATCH v3 1/2] drm/nouveau: cleanup TTM population logic Alexandre Courbot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexandre Courbot @ 2014-06-27 11:22 UTC (permalink / raw)
  To: Ben Skeggs, David Airlie, Lucas Stach, Thierry Reding
  Cc: nouveau, dri-devel, linux-tegra, linux-arm-kernel, linux-kernel,
	gnurou, Alexandre Courbot

v2 was doing some pretty nasty things with the DMA API, so I took a different
approach for this v3.

As suggested, this version uses ttm_dma_populate() to populate BOs. The reason
for doing this was that it would entitle us to using the DMA sync functions,
but since the memory returned is already coherent anyway, we do not even
need to call these functions anymore.

So this series has turned into 2 small patches:

- The first attempts to make it more obvious that Nouveau can use different
ways to populate TTs, and make it possible to choose which method to use from
a single place.
- The second leverages this work to select the DMA allocator to populate TTs
on ARM.

Doing this solves all our coherency problems with Nouveau on Tegra, and
hopefully makes the code easier to read in the process.

Alexandre Courbot (2):
  drm/nouveau: cleanup TTM population logic
  drm/nouveau: use DMA TT population method on ARM

 drivers/gpu/drm/nouveau/nouveau_bo.c  | 63 ++++++++++++++++++-----------------
 drivers/gpu/drm/nouveau/nouveau_drm.h | 11 ++++++
 drivers/gpu/drm/nouveau/nouveau_ttm.c | 17 ++++++++++
 3 files changed, 61 insertions(+), 30 deletions(-)

-- 
2.0.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-03 10:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-27 11:22 [PATCH v3 0/2] drm: nouveau: memory coherency for ARM Alexandre Courbot
2014-06-27 11:22 ` [PATCH v3 1/2] drm/nouveau: cleanup TTM population logic Alexandre Courbot
2014-06-27 11:22 ` [PATCH v3 2/2] drm/nouveau: use DMA TT population method on ARM Alexandre Courbot
2014-07-03 10:05 ` [PATCH v3 0/2] drm: nouveau: memory coherency for ARM Alexandre Courbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®