Re: [PATCH 3/4] dma-buf: add support for mapping with dma mapping attributes

From: Liam Mark
Date: Mon Jan 21 2019 - 17:14:55 EST


On Mon, 21 Jan 2019, Christoph Hellwig wrote:

> On Mon, Jan 21, 2019 at 12:20:42PM -0800, Liam Mark wrote:
> > I have left this to clients, but if they own the buffer they can have the
> > knowledge as to whether CPU access is needed in that use case (example for
> > post-processing).
>
> That is an API design which the user is more likely to get wrong than
> right and thus does not pass the smell test.
>

With the previous version of ION Android ION clients were successfully
managing all their cache maintenance.



Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project