Hi Alvin,

This patch does quite a few things at once and I'd rather split this.

The change we _really_ need in your series is the stale cache eviction
problem. It is unfortunate that this is a problem in general, and not
only in Tyr. For that, using the DMA API as soon as the BO is created is
enough. You can do that in patch 6 by calling sg_table() before the CPU
is allowed to touch the buffer, like you already do in this one.

Two other things are done by this patch:

- Honor writeback mappings -> this should be its own patch.
- Add a "coherent" flag, and thread it through the driver.

What it does not do is "support write combine mappings". In fact, write
combine mappings is the only thing properly supported and tested so far
:)

The problem with the second bullet point is that a) everything else
needed to support coherent==true is missing and b) I don't have a system
where coherent==true to test this. If others do, great, but even still,
lets do this as a separate series. So I'd prefer if the coherent flag
was dropped, along with patch 8.

— Daniel

Reply via email to